sqllogictest
Artifact Content
Not logged in

Artifact 63297ea3c04a138ad2f628aac46c3a2c5bc9c708:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

query I rowsort
SELECT - col2 * + + col2 * + col2 FROM tab1 AS cor0
----
-205379
-314432
-884736

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT ALL COUNT( ALL 10 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL COUNT ( ALL 10 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 49 BETWEEN - 92 AND NULL
----

query I rowsort
SELECT - col0 * - - col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4
SELECT ALL MAX( ALL + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL MAX ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT + - col2 * - - ( - + 66 ) FROM tab0 AS cor0
----
3102
6534
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6
SELECT ALL - SUM( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL - SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 77 * - 63 / ( col0 ) IS NULL )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT DISTINCT - 0 DIV col2 + + col0 * + - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT - 0 / col2 + + col0 * + - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + 18 + + col0 + - + ( - col1 ) FROM tab1 AS cor0
----
108
156
83

query I rowsort
SELECT + + col0 + - - 66 FROM tab0 AS cor0
----
153
163
81

query I rowsort
SELECT ( - 22 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT DISTINCT + COUNT( * ) + + ( + COUNT( * ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT + COUNT ( * ) + + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 = - 33 / + 48 * + col2 + - - col0
----

query I rowsort
SELECT ALL + - col1 + + 61 AS col1 FROM tab2 AS cor0
----
-16
-6
10

query I rowsort
SELECT DISTINCT col1 + - 73 + 26 + + col0 FROM tab1
----
18
43
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-16
SELECT DISTINCT 11 - + COUNT( - 54 ) * - - 90 DIV - COUNT( ALL 32 ) FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT 11 - + COUNT ( - 54 ) * - - 90 / - COUNT ( ALL 32 ) FROM tab0
----
101

query I rowsort
SELECT DISTINCT + col2 * - + col1 - - col0 + + col0 FROM tab1
----
-1242
-125
-3014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-18
SELECT CAST( - - col0 AS SIGNED ) - col0 - + col1 + 28 AS col2 FROM tab2 AS cor0
----
-23
-39
-49

skipif mysql # not compatible
query I rowsort label-18
SELECT CAST ( - - col0 AS INTEGER ) - col0 - + col1 + 28 AS col2 FROM tab2 AS cor0
----
-23
-39
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT - 97 + + + 31 - - COUNT( * ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-19
SELECT - 97 + + + 31 - - COUNT ( * ) FROM tab1
----
-63

query I rowsort
SELECT + - 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT + SUM( ALL + 90 ) FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-21
SELECT + SUM ( ALL + 90 ) FROM tab0 AS cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL - MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL - MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT ALL + SUM( ALL - col2 ) col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-23
SELECT ALL + SUM ( ALL - col2 ) col0 FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT - COUNT( + + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-24
SELECT - COUNT ( + + col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col0 * - - 29 * + col0 AS col1 FROM tab1 cor0
----
-209525
-240149
-75429

query II rowsort
SELECT DISTINCT - 84, col0 AS col1 FROM tab1 cor0
----
-84
51
-84
85
-84
91

onlyif mysql # aggregate syntax: 
query I rowsort label-27
SELECT DISTINCT - - COUNT( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT - - COUNT ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 36 + + col2 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 30 * - 85 AS col1 FROM tab2
----
-2550
-2550
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-30
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT DISTINCT + MAX( DISTINCT 0 ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT + MAX ( DISTINCT 0 ) AS col0 FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 58 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-33
SELECT col0 + + ( - CAST( + - col1 AS SIGNED ) ) FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-33
SELECT col0 + + ( - CAST ( + - col1 AS INTEGER ) ) FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT 9 * + - col2 FROM tab1 AS cor0
----
-531
-612
-864

query I rowsort
SELECT ALL 63 AS col1 FROM tab0 cor0
----
63
63
63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-37
SELECT DISTINCT - + col0 * 19 * - + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT - + col0 * 19 * - + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col2 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT DISTINCT - MAX( 64 ) FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT - MAX ( 64 ) FROM tab2 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT DISTINCT + + MIN( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT + + MIN ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - 79 * + col0 + + - col0 * - 33 AS col0 FROM tab0 AS cor0
----
-4002
-4462
-690

query II rowsort
SELECT - - col2 - - ( - col0 ) AS col0, + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-23
8281
-26
7225
45
2601

query III rowsort
SELECT * FROM tab0 WHERE ( 61 NOT BETWEEN 68 + - col0 AND - 10 - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - - 35 ) - col2 AS col1 FROM tab1
----
-24
-33
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-45
SELECT COUNT( * ) + + - 13 AS col2, + 67 FROM tab1
----
-10
67

skipif mysql # not compatible
query II rowsort label-45
SELECT COUNT ( * ) + + - 13 AS col2, + 67 FROM tab1
----
-10
67

query I rowsort
SELECT col2 + 40 FROM tab0
----
139
50
87

query I rowsort
SELECT ALL + col0 - - 98 * 67 AS col2 FROM tab0
----
6581
6653
6663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 + - col0 col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT DISTINCT 20 - + - SUM( 81 ) * + - 59 FROM tab2
----
-14317

skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT 20 - + - SUM ( 81 ) * + - 59 FROM tab2
----
-14317

query I rowsort
SELECT DISTINCT col0 * ( - - col0 ) - - col0 AS col0 FROM tab2
----
2162
4160
5700

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT - - COUNT( * ) * 80 * - + 83 * + + MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
-1015920

skipif mysql # not compatible
query I rowsort label-52
SELECT - - COUNT ( * ) * 80 * - + 83 * + + MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-1015920

query I rowsort
SELECT + col2 * 43 * - + col1 FROM tab2 AS cor0
----
-132440
-167098
-50439

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - 40 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * 81 + + col0 FROM tab1 AS cor0
----
1185
3898
490

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 69 > NULL
----

query II rowsort
SELECT ALL + - ( col1 ), col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT DISTINCT MAX( ALL col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT MAX ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT - ( - MIN( + col2 ) ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-59
SELECT - ( - MIN ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT 8 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 96 * + col0 - - 16 FROM tab0 AS cor0
----
1456
8368
9328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-62
SELECT ALL + 55 - + + 66 * + - 2 - + 82 AS col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN + CAST( + col2 AS SIGNED ) AND + col0 + - 62
----

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL + 55 - + + 66 * + - 2 - + 82 AS col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN + CAST ( + col2 AS INTEGER ) AND + col0 + - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ( - - MIN( DISTINCT - 16 ) ) col1 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-63
SELECT ( - - MIN ( DISTINCT - 16 ) ) col1 FROM tab0 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-64
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 62 * + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-64
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 62 * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT DISTINCT + SUM( col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT + SUM ( col2 ) AS col0 FROM tab2
----
121

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT COUNT( * ) * 59 * + SUM( DISTINCT - 67 ) FROM tab1
----
-11859

skipif mysql # not compatible
query I rowsort label-68
SELECT COUNT ( * ) * 59 * + SUM ( DISTINCT - 67 ) FROM tab1
----
-11859

query I rowsort
SELECT ALL + 97 * + + 17 FROM tab0
----
1649
1649
1649

query I rowsort
SELECT 7 * - col0 AS col1 FROM tab1
----
-357
-595
-637

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - 25, - 80, - col1 )
----

query I rowsort
SELECT - - 78 FROM tab2 WHERE NOT + 30 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-73
SELECT DISTINCT - CAST( ( + 82 ) AS SIGNED ) * - - 50 AS col1 FROM tab2
----
-4100

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT - CAST ( ( + 82 ) AS INTEGER ) * - - 50 AS col1 FROM tab2
----
-4100

query I rowsort
SELECT col2 * col2 + 16 AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col0, + col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT + - COUNT( DISTINCT + col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-76
SELECT + - COUNT ( DISTINCT + col0 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT + + COUNT( ALL - 85 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-77
SELECT + + COUNT ( ALL - 85 ) col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 89 ) col1 FROM tab2 AS cor0
----
89
89
89

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( - 91 ) IS NULL
----

query I rowsort
SELECT 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + - col0 * + 20 - + col1 AS col0 FROM tab2 AS cor0
----
-1357
-1567
-971

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * - col0 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT - COUNT( * ) + - 58 AS col0 FROM tab2 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-84
SELECT - COUNT ( * ) + - 58 AS col0 FROM tab2 cor0
----
-61

query I rowsort
SELECT col0 + + - col1 + col1 - - - col2 * - col0 AS col1 FROM tab0 AS cor0
----
720
957
9700

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 5 / + 26 * + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-87
SELECT DISTINCT - CAST( - 60 AS SIGNED ) FROM tab2 cor0
----
60

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT - CAST ( - 60 AS INTEGER ) FROM tab2 cor0
----
60

query I rowsort
SELECT DISTINCT + col1 * - - 62 FROM tab1 AS cor0
----
2914
310
868

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT + 51 DIV - - col2 AS col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-89
SELECT + 51 / - - col2 AS col0 FROM tab2
----
0
1
2

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 41, - col0 AS col0 FROM tab1
----
41
-51
41
-85
41
-91

query III rowsort
SELECT * FROM tab2 WHERE + 0 - + 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT DISTINCT + + COUNT( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT + + COUNT ( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT ALL - col1 * + col0 + 92 FROM tab1 AS cor0
----
-333
-4185
-622

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT + + COUNT( * ) * COUNT( col0 ) * ( 18 ) AS col2 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-95
SELECT + + COUNT ( * ) * COUNT ( col0 ) * ( 18 ) AS col2 FROM tab2 AS cor0
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-96
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) * + + 49 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-96
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + + 49 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-97
SELECT DISTINCT - COUNT( * ) DIV 42 * - SUM( DISTINCT + col0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT - COUNT ( * ) / 42 * - SUM ( DISTINCT + col0 ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-98
SELECT ALL * FROM tab0 WHERE CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-98
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT - col1 * + + 41 AS col2 FROM tab0
----
-3321
-41
-861

query II rowsort
SELECT - 48 AS col2, - ( col2 ) AS col2 FROM tab1
----
-48
-59
-48
-68
-48
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT ALL - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT DISTINCT + col0, 72 FROM tab1 AS cor0
----
51
72
85
72
91
72

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL + 48 * MIN( + + 47 ) AS col2 FROM tab0 cor0
----
2256

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL + 48 * MIN ( + + 47 ) AS col2 FROM tab0 cor0
----
2256

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT DISTINCT MIN( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL < 23 / - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT MIN ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL < 23 / - col2
----
NULL

query I rowsort
SELECT + col2 / - col1 FROM tab1 cor0 WHERE NOT NULL NOT IN ( - col0, 94 * - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 AS col1, 87 + 1 * + - 20 col2, + col0 FROM tab2 AS cor0
----
9 values hashing to ad09b03fa6c8e135805efba6f9241091

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab0 AS cor0 WHERE NOT + col1 * + 85 BETWEEN - 89 AND NULL
----

query I rowsort
SELECT + 89 * + col0 * - ( + + col2 ) FROM tab2
----
-227840
-387150
-94162

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + 15 AND + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col2 FROM tab1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT ( + ( + + col2 ) ) * 85 * 87 DIV col1 * - + col1 AS col0 FROM tab2
----
-170085
-295757
-428867

skipif mysql # not compatible
query I rowsort label-112
SELECT ( + ( + + col2 ) ) * 85 * 87 / col1 * - + col1 AS col0 FROM tab2
----
-170085
-295757
-428867

query II rowsort
SELECT + col0 * 74, ( + col1 ) + - col1 AS col1 FROM tab0
----
1110
0
6438
0
7178
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-114
SELECT ALL 90 * - - col0 AS col1 FROM tab2 WHERE NOT + col0 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL 90 * - - col0 AS col1 FROM tab2 WHERE NOT + col0 = - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 0 + + 98 * - col1 = - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT + - COUNT( * ) + + 56 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-116
SELECT + - COUNT ( * ) + + 56 FROM tab2 AS cor0
----
53

query I rowsort
SELECT + + 75 + + - col1 FROM tab1 AS cor0
----
28
61
70

query II rowsort
SELECT + + 60 + + + col0, - 46 AS col2 FROM tab2 cor0
----
106
-46
124
-46
135
-46

query II rowsort
SELECT DISTINCT col1 - - col1 * 61, - 45 AS col1 FROM tab0
----
1302
-45
5022
-45
62
-45

query II rowsort
SELECT col1 * ( - - col2 ), + col2 AS col1 FROM tab2 AS cor0
----
1173
23
3080
40
3886
58

query I rowsort
SELECT DISTINCT - 55 + + - col2 AS col0 FROM tab0 AS cor0
----
-102
-154
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT DISTINCT + SUM( - col1 ) * + - 85 AS col0 FROM tab0 AS cor0
----
8755

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT + SUM ( - col1 ) * + - 85 AS col0 FROM tab0 AS cor0
----
8755

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-123
SELECT + - 1 - CAST( + col1 AS SIGNED ) + col1 * 25 + - + col1 + col1 FROM tab0 AS cor0
----
1943
23
503

skipif mysql # not compatible
query I rowsort label-123
SELECT + - 1 - CAST ( + col1 AS INTEGER ) + col1 * 25 + - + col1 + col1 FROM tab0 AS cor0
----
1943
23
503

query I rowsort
SELECT - col0 * 19 + + + col2 - 0 AS col0 FROM tab1 AS cor0
----
-1556
-1661
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT + 40 * - + COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-125
SELECT + 40 * - + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 - + 44 AS col2 FROM tab1
----
15
24
52

query I rowsort
SELECT ALL 21 FROM tab2 WHERE col2 * 51 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + + 32 ) = + 4 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ( - + 22 ) AS col1, col0 FROM tab1
----
-22
51
-22
85
-22
91

query I rowsort
SELECT ( - col0 ) + col2 FROM tab0 AS cor0 WHERE NOT + col0 / + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT - + 55 * - - SUM( DISTINCT + 49 ) AS col0 FROM tab2 AS cor0
----
-2695

skipif mysql # not compatible
query I rowsort label-131
SELECT - + 55 * - - SUM ( DISTINCT + 49 ) AS col0 FROM tab2 AS cor0
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= + col1 AND NOT - col1 + + - col1 * + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-132
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= + col1 AND NOT - col1 + + - col1 * + col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - ( + ( + col1 ) ) FROM tab0 AS cor0 WHERE NOT - 84 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-134
SELECT CAST( NULL AS SIGNED ) / + - ( 69 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT CAST ( NULL AS INTEGER ) / + - ( 69 ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 29 * + col2 * - col2 + + col1 > + + col0 / + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-136
SELECT ALL ( + - COUNT( * ) ) DIV - - 15 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL ( + - COUNT ( * ) ) / - - 15 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col2 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 + 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ( - + COUNT( + 21 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-139
SELECT ( - + COUNT ( + 21 ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-140
SELECT 84 DIV 21 + + col0 AS col0 FROM tab0
----
101
19
91

skipif mysql # not compatible
query I rowsort label-140
SELECT 84 / 21 + + col0 AS col0 FROM tab0
----
101
19
91

query I rowsort
SELECT DISTINCT - col1 + 57 FROM tab2
----
-10
-20
6

query I rowsort
SELECT DISTINCT + ( - col1 ) * - col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL col0 * + col2 * + + col0 AS col0 FROM tab1
----
249696
426275
563108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, + col1 + + col2 col0 FROM tab1
----
14
110
47
115
5
64

onlyif mysql # aggregate syntax: 
query II rowsort label-145
SELECT ALL COUNT( * ), 45 AS col0 FROM tab0
----
3
45

skipif mysql # not compatible
query II rowsort label-145
SELECT ALL COUNT ( * ), 45 AS col0 FROM tab0
----
3
45

query III rowsort
SELECT * FROM tab2 WHERE - - col2 * - col1 / + 40 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-148
SELECT DISTINCT + col2 + ( - ( col1 ) ) + - - col2 + col0 DIV - col2 + 18 * + + 55 * + + 32 FROM tab2 AS cor0
----
31673
31682
31728

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT + col2 + ( - ( col1 ) ) + - - col2 + col0 / - col2 + 18 * + + 55 * + + 32 FROM tab2 AS cor0
----
31673
31682
31728

query I rowsort
SELECT DISTINCT col1 + - - col1 AS col0 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT + 80 FROM tab0 WHERE - col0 + + col2 IS NOT NULL
----
80
80
80

query I rowsort
SELECT 83 + + col1 AS col2 FROM tab0
----
104
164
84

query I rowsort
SELECT - - col1 + col2 AS col2 FROM tab2 cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-153
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) < + col0
----

skipif mysql # not compatible
query III rowsort label-153
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-154
SELECT + - col1 FROM tab1 AS cor0 WHERE + CAST( - + col1 AS SIGNED ) - col1 - - + ( - + col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-154
SELECT + - col1 FROM tab1 AS cor0 WHERE + CAST ( - + col1 AS INTEGER ) - col1 - - + ( - + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + col1 * + + col1 + - col1 - - col0 FROM tab2 AS cor0
----
-132656
-300755
-456546

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT DISTINCT + col2 + - ( - + ( + - 1 ) ) * 49 DIV - + col0 - col1 + - - 44 * - + 51 col2 FROM tab1 cor0
----
-2162
-2190
-2223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-156
SELECT DISTINCT + col2 + - ( - + ( + - 1 ) ) * 49 / - + col0 - col1 + - - 44 * - + 51 col2 FROM tab1 cor0
----
-2162
-2190
-2223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > col0 * col0
----

query I rowsort
SELECT ALL col1 + - 66 AS col0 FROM tab0 AS cor0
----
-45
-65
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-159
SELECT ALL - ( CAST( + col2 AS SIGNED ) ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL - ( CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT - 74 = NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL < - 20
----

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT + col2 DIV ( - col0 ) * - col1 FROM tab1
----
0
0
14

skipif mysql # not compatible
query I rowsort label-162
SELECT + col2 / ( - col0 ) * - col1 FROM tab1
----
0
0
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 53 col2, - 80 AS col1 FROM tab0
----
53
-80
53
-80
53
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, - 50 col1 FROM tab0
----
10
-50
47
-50
99
-50

query II rowsort
SELECT ALL + 95 AS col1, col0 FROM tab0
----
95
15
95
87
95
97

query I rowsort
SELECT ALL - 30 * + col2 AS col0 FROM tab2
----
-1200
-1740
-690

query II rowsort
SELECT 26 AS col0, col2 + - col2 AS col0 FROM tab2
----
26
0
26
0
26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT COUNT( * ) * + + 88 AS col2 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-168
SELECT COUNT ( * ) * + + 88 AS col2 FROM tab0
----
264

query I rowsort
SELECT ALL col0 * - + 14 FROM tab2
----
-1050
-644
-896

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-170
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - 86 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-170
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + - 86 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT 77 * + - COUNT( * ) col0 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-171
SELECT 77 * + - COUNT ( * ) col0 FROM tab2 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL - MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-173
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 / - col1 * + CAST( NULL AS SIGNED ) / - - col1 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-173
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 / - col1 * + CAST ( NULL AS INTEGER ) / - - col1 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT ALL + MAX( DISTINCT 32 ) AS col0 FROM tab1 cor0
----
32

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL + MAX ( DISTINCT 32 ) AS col0 FROM tab1 cor0
----
32

query I rowsort
SELECT ALL + 35 + - 11 AS col1 FROM tab0 WHERE NOT ( col2 / + 38 ) < ( ( - 19 ) )
----
24
24
24

query I rowsort
SELECT 15 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 45 ) IS NULL
----

query I rowsort
SELECT col1 * 60 - 46 FROM tab2
----
3014
3974
4574

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT - COUNT( * ) - - COUNT( * ) * + 78 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-179
SELECT - COUNT ( * ) - - COUNT ( * ) * + 78 FROM tab0
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT ALL + 76 DIV col2 + - col2 AS col0 FROM tab1
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL + 76 / col2 + - col2 AS col0 FROM tab1
----
-58
-67
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 33 ) NOT IN ( col1 / - 56 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-182
SELECT - AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-182
SELECT - AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( + 37 ) FROM tab0
----
37

query I rowsort
SELECT DISTINCT - col0 * - 23 + - 2 * - col1 AS col2 FROM tab0
----
2043
2233
507

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT DISTINCT 78 + 39 DIV col2 AS col0 FROM tab2
----
78
79

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT 78 + 39 / col2 AS col0 FROM tab2
----
78
79

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NULL BETWEEN NULL AND - 11
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 / + col0 IN ( + col1 + ( ( ( - col1 ) ) ) * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 * col2 col0 FROM tab0
----
-658
-860
-9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT 82 + 50 col0 FROM tab1 WHERE col2 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-189
SELECT 82 + 50 col0 FROM tab1 WHERE col2 = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT ( - col1 / - 75 + - 31 / + col1 ) NOT BETWEEN 90 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT - COUNT( * ) + - SUM( ALL 58 ) AS col0 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-191
SELECT - COUNT ( * ) + - SUM ( ALL 58 ) AS col0 FROM tab0
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 col0 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab0 WHERE NOT + 45 + col0 * col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT IN ( 12 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT ALL - col0 * ( - col1 DIV - col1 ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - col0 * ( - col1 / - col1 ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT COUNT( * ) * - 82 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-196
SELECT COUNT ( * ) * - 82 FROM tab0
----
-246

query I rowsort
SELECT ( - col0 ) * col2 AS col2 FROM tab2
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + - col1 col1 FROM tab1
----
-30
12
3

query I rowsort
SELECT ALL + col2 * + 8 + + col0 * - col2 AS col0 FROM tab1
----
-4128
-4543
-5644

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT ALL - 9 + MIN( ALL col2 ) AS col0 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - 9 + MIN ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-201
SELECT COUNT( * ) + - 96 DIV - 3 AS col1 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-201
SELECT COUNT ( * ) + - 96 / - 3 AS col1 FROM tab1 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT 99 + COUNT( * ) FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-202
SELECT 99 + COUNT ( * ) FROM tab1 AS cor0
----
102

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 47 * 56 + col2 FROM tab2 cor0
----
2655
2672
2690

query I rowsort
SELECT DISTINCT col0 + 12 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-1091
-33
-549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 WHERE + col1 * + col0 + col0 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT col2 - - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT DISTINCT + COUNT( * ) - 92 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT + COUNT ( * ) - 92 FROM tab2 AS cor0
----
-89

query I rowsort
SELECT - 15 - - 60 AS col0 FROM tab1 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-210
SELECT + MIN( - col0 ) * + CAST( NULL AS SIGNED ) - 3 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-210
SELECT + MIN ( - col0 ) * + CAST ( NULL AS INTEGER ) - 3 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT + - ( + COUNT( * ) ) - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-211
SELECT + - ( + COUNT ( * ) ) - + COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-212
SELECT + - CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-212
SELECT + - CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 95 - 53 * - 37 AS col2 FROM tab0 AS cor0 WHERE - 17 IS NOT NULL
----
1866
1866
1866

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-214
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 23 * + 79 BETWEEN - col0 + CAST( NULL AS SIGNED ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-214
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 23 * + 79 BETWEEN - col0 + CAST ( NULL AS INTEGER ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 + col1 col1 FROM tab1 AS cor0
----
30
39
72

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT ALL - - MAX( - 31 ) col2 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-217
SELECT ALL - - MAX ( - 31 ) col2 FROM tab2 AS cor0
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-218
SELECT + CAST( MAX( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-218
SELECT + CAST ( MAX ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT col0 + + 62 AS col0 FROM tab2 cor0 WHERE NOT ( col0 ) BETWEEN ( NULL ) AND col1
----
137

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-221
SELECT * FROM tab0 WHERE NOT + CAST( 43 AS DECIMAL ) NOT BETWEEN NULL AND - col0
----

skipif mysql # not compatible
query III rowsort label-221
SELECT * FROM tab0 WHERE NOT + CAST ( 43 AS REAL ) NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT ( + 79 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT ( + 79 ) IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-224
SELECT ( - CAST( - COUNT( ALL col2 ) AS SIGNED ) ) DIV 89 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-224
SELECT ( - CAST ( - COUNT ( ALL col2 ) AS INTEGER ) ) / 89 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - col0 * + - 92 FROM tab1
----
4692
7820
8372

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-228
SELECT - col2 * 43 DIV + col0 AS col0 FROM tab0 AS cor0
----
-134
-4
-43

skipif mysql # not compatible
query I rowsort label-228
SELECT - col2 * 43 / + col0 AS col0 FROM tab0 AS cor0
----
-134
-4
-43

query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT CAST( 5 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 > - col0
----
5
5

skipif mysql # not compatible
query I rowsort label-230
SELECT CAST ( 5 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 > - col0
----
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT - COUNT( * ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-231
SELECT - COUNT ( * ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab0, tab1 AS cor0 WHERE ( NULL ) IS NULL
----
27

query I rowsort
SELECT DISTINCT col0 * - - 57 AS col1 FROM tab2
----
2622
3648
4275

query I rowsort
SELECT col0 + + 71 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL 41 * + 28 FROM tab2
----
1148
1148
1148

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT - MAX( ALL + 53 ) AS col2 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-236
SELECT - MAX ( ALL + 53 ) AS col2 FROM tab0 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT - COUNT( DISTINCT - col0 ) * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-237
SELECT - COUNT ( DISTINCT - col0 ) * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - ( + 2 ) AS col0 FROM tab0 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-239
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL + MIN( DISTINCT 61 ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + MIN ( DISTINCT 61 ) FROM tab0 AS cor0
----
61

query I rowsort
SELECT DISTINCT - col0 + - + col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-242
SELECT DISTINCT + COUNT( * ) AS col0, - 46 FROM tab2 AS cor0
----
3
-46

skipif mysql # not compatible
query II rowsort label-242
SELECT DISTINCT + COUNT ( * ) AS col0, - 46 FROM tab2 AS cor0
----
3
-46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 60 + - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + 99 FROM tab2 AS cor0
----
24
35
53

query I rowsort
SELECT col1 * + col2 + - - col0 - 32 FROM tab0 AS cor0
----
164
265
3790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-246
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - - 15 * col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - - 15 * col1 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <> ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-248
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + - - 44 * - ( col1 ) col2 FROM tab0
----
-3645
-45
-945

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-248
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + - - 44 * - ( col1 ) col2 FROM tab0
----
-3645
-45
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NULL > col1 - + col1 - col2 * 43 / - col1
----
0

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NULL > col1 - + col1 - col2 * 43 / - col1
----
0

query I rowsort
SELECT DISTINCT col0 + - ( + ( - col0 ) ) AS col1 FROM tab2
----
128
150
92

query III rowsort
SELECT * FROM tab1 WHERE + col0 / - col0 * col0 - + col0 * 44 + + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-252
SELECT DISTINCT col2 + - CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT col2 + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT DISTINCT - col2 + ( col1 ) + col0 * ( - col1 ) AS col0 FROM tab1
----
-4298
-479
-796

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT 74 * COUNT( ALL - col1 ) AS col1 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-254
SELECT 74 * COUNT ( ALL - col1 ) AS col1 FROM tab0
----
222

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-255
SELECT col1 FROM tab1 WHERE ( + col1 + - - 88 + - CAST( NULL AS DECIMAL ) ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-255
SELECT col1 FROM tab1 WHERE ( + col1 + - - 88 + - CAST ( NULL AS REAL ) ) IS NULL
----
14
47
5

query I rowsort
SELECT ALL 47 * - 19 * + 73 - + 46 - 45 * col2 FROM tab0
----
-65685
-67350
-69690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) - + col1 col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT - - 45 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col0 IN ( col0 + + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL - + MIN( - - col1 ) + + MAX( - + col2 ) * - MAX( ALL col2 * ( ( 11 ) ) ) FROM tab1 AS cor0
----
62299

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL - + MIN ( - - col1 ) + + MAX ( - + col2 ) * - MAX ( ALL col2 * ( ( 11 ) ) ) FROM tab1 AS cor0
----
62299

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-261
SELECT - CAST( NULL AS SIGNED ) + + col0 / col0 * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-261
SELECT - CAST ( NULL AS INTEGER ) + + col0 / col0 * col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - ( col0 ) ) + + + col1 AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT - col2 + + col2 * + col2 FROM tab0
----
2162
90
9702

query I rowsort
SELECT + + 76 AS col2 FROM tab2 WHERE NULL IS NULL
----
76
76
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 9 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( col2 ) BETWEEN - + 27 * - col0 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT DISTINCT COUNT( * ) * + + SUM( col1 ) * MAX( ALL - - col2 ) + + 50 FROM tab0 cor0
----
30641

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT COUNT ( * ) * + + SUM ( col1 ) * MAX ( ALL - - col2 ) + + 50 FROM tab0 cor0
----
30641

query I rowsort
SELECT + col0 * col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( col0 )
----

query I rowsort
SELECT ALL + - 13 + - col2 + col0 AS col0 FROM tab2 cor0 WHERE NOT 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT - COUNT( * ) * MAX( ALL 16 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-270
SELECT - COUNT ( * ) * MAX ( ALL 16 ) FROM tab1
----
-48

query II rowsort
SELECT col0 AS col0, - col1 AS col1 FROM tab0
----
15
-81
87
-21
97
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 39 * 2 IN ( 70 )
----

query II rowsort
SELECT + col0 AS col1, col1 * 99 * - - col1 - + 10 * - 61 FROM tab1
----
51
20014
85
3085
91
219301

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT ALL ( - ( COUNT( * ) ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL ( - ( COUNT ( * ) ) ) AS col1 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT 52 DIV - + col1 AS col2 FROM tab1
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-275
SELECT 52 / - + col1 AS col2 FROM tab1
----
-1
-10
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-276
SELECT + CAST( NULL AS DECIMAL ) * COUNT( DISTINCT - col1 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-276
SELECT + CAST ( NULL AS REAL ) * COUNT ( DISTINCT - col1 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col1 * + 26 - + ( + col0 ) AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
1131
313
45

query I rowsort
SELECT DISTINCT + 26 AS col0 FROM tab2 WHERE NOT + - 44 NOT IN ( 17 )
----

query II rowsort
SELECT + 86 + + + col1 AS col1, 71 AS col0 FROM tab2
----
137
71
153
71
163
71

query II rowsort
SELECT DISTINCT - 52, 5 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-52
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-281
SELECT 48 DIV col2 * CAST( - + 80 AS SIGNED ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-281
SELECT 48 / col2 * CAST ( - + 80 AS INTEGER ) AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT + COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-283
SELECT + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-284
SELECT + col0 DIV + 28 AS col2 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-284
SELECT + col0 / + 28 AS col2 FROM tab2 AS cor0
----
1
2
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 50 NOT BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 28 * 92 + - - 21 FROM tab1 AS cor0
----
2597
2597
2597

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 29 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 + - ( - 16 ) FROM tab1
----
-31
11
2

query II rowsort
SELECT ALL ( + col0 ) + + col0, col1 FROM tab0
----
174
21
194
1
30
81

query I rowsort
SELECT col2 * - col0 + + 98 + - col2 + + 15 FROM tab0 WHERE - 57 IS NULL
----

query I rowsort
SELECT + 76 FROM tab1 WHERE NULL IS NULL
----
76
76
76

query I rowsort
SELECT ALL + 40 + ( col0 ) FROM tab2
----
104
115
86

query III rowsort
SELECT * FROM tab0 WHERE col1 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-294
SELECT DISTINCT - col0 + - + CAST( - - 88 AS SIGNED ) AS col2, - col1 FROM tab2
----
-134
-51
-152
-77
-163
-67

skipif mysql # not compatible
query II rowsort label-294
SELECT DISTINCT - col0 + - + CAST ( - - 88 AS INTEGER ) AS col2, - col1 FROM tab2
----
-134
-51
-152
-77
-163
-67

query I rowsort
SELECT DISTINCT ( - - col1 ) * ( + col0 ) - 85 / col2 FROM tab0 WHERE NOT NULL < ( col1 + - + col1 * + col2 )
----

query I rowsort
SELECT - col1 + + - col1 + + 36 * + col0 AS col1 FROM tab2 AS cor0
----
1554
2150
2566

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-297
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= - CAST( + col2 AS SIGNED ) / 0
----

skipif mysql # not compatible
query III rowsort label-297
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= - CAST ( + col2 AS INTEGER ) / 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT - SUM( + ( - ( col1 ) ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-298
SELECT - SUM ( + ( - ( col1 ) ) ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT + 66 * + + col0 + - col0 FROM tab1 AS cor0
----
3315
5525
5915

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT + MIN( ALL 87 ) AS col2 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-300
SELECT + MIN ( ALL 87 ) AS col2 FROM tab0 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - 57 AS col1 FROM tab0 AS cor0
----
1
-57
21
-57
81
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT - - ( + - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-302
SELECT - - ( + - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( - col1 ) ) col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT MAX( 55 ) * 70 AS col2 FROM tab2 AS cor0
----
3850

skipif mysql # not compatible
query I rowsort label-304
SELECT MAX ( 55 ) * 70 AS col2 FROM tab2 AS cor0
----
3850

query I rowsort
SELECT DISTINCT - 42 * - 27 AS col1 FROM tab2 AS cor0
----
1134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-306
SELECT ALL COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT + ( 57 ) * col0 * col2 AS col2 FROM tab1 cor0
----
279072
285855
352716

onlyif mysql # aggregate syntax: 
query I rowsort label-308
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT + col0 * + 52 * col1 * col0 / - 17 BETWEEN col0 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-308
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col0 * + 52 * col1 * col0 / - 17 BETWEEN col0 AND NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-309
SELECT DISTINCT col0 * + - 69 FROM tab2 WHERE NOT NULL NOT IN ( - ( + + col2 ) * 88 - - col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT col0 * + - 69 FROM tab2 WHERE NOT NULL NOT IN ( - ( + + col2 ) * 88 - - col1 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-310
SELECT ALL col0 DIV ( - col0 ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL col0 / ( - col0 ) FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-311
SELECT DISTINCT col0 * + ( - ( CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT col0 * + ( - ( CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL - ( - ( COUNT( * ) ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL - ( - ( COUNT ( * ) ) ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-313
SELECT - CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-313
SELECT - CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - 73 AS col1 FROM tab0
----
1095
6351
7081

query I rowsort
SELECT - ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT - + MAX( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-316
SELECT - + MAX ( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NULL <> - col2 * + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, + 99 AS col1 FROM tab1 AS cor0
----
59
99
68
99
96
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 57 * 68 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-320
SELECT DISTINCT - col0 + + 32 DIV col2 - CAST( - - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT - col0 + + 32 / col2 - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-321
SELECT 98 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE - - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-321
SELECT 98 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE - - col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col2 + - + 23 * - - ( - col0 ) AS col1 FROM tab0 cor0
----
12032
2101
2554

onlyif mysql # DIV for integer division: 
query II rowsort label-323
SELECT ALL + + 52, - col2 DIV - col2 AS col1 FROM tab2 AS cor0
----
52
1
52
1
52
1

skipif mysql # not compatible
query II rowsort label-323
SELECT ALL + + 52, - col2 / - col2 AS col1 FROM tab2 AS cor0
----
52
1
52
1
52
1

onlyif mysql # aggregate syntax: 
query II rowsort label-324
SELECT DISTINCT - 98 AS col1, + COUNT( * ) FROM tab2 AS cor0
----
-98
3

skipif mysql # not compatible
query II rowsort label-324
SELECT DISTINCT - 98 AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-98
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 AS cor0 WHERE NULL < col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 62
----

query I rowsort
SELECT col2 + - ( col0 ) FROM tab1 cor0 WHERE col2 * + col0 NOT BETWEEN - 22 AND col1
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-328
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE - col0 / 57 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-328
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE - col0 / 57 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-329
SELECT DISTINCT 88 + + 80, + COUNT( * ) * - 61 AS col2 FROM tab2
----
168
-183

skipif mysql # not compatible
query II rowsort label-329
SELECT DISTINCT 88 + + 80, + COUNT ( * ) * - 61 AS col2 FROM tab2
----
168
-183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-330
SELECT ALL + CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) * MAX( 27 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) * MAX ( 27 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 * col1 - + + col0 - 22 AS col1 FROM tab0
----
-20
101
3770

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-332
SELECT ALL * FROM tab1 WHERE + CAST( 65 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-332
SELECT ALL * FROM tab1 WHERE + CAST ( 65 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-333
SELECT ALL - col2 * + 74 * - 65 + + + 86 + col1 + col1 + - col1 + + + 93 DIV + col0 + - col0 col1 FROM tab0
----
226228
476180
48121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-333
SELECT ALL - col2 * + 74 * - 65 + + + 86 + col1 + col1 + - col1 + + + 93 / + col0 + - col0 col1 FROM tab0
----
226228
476180
48121

query I rowsort
SELECT + 66 - col1 + col0 AS col2 FROM tab2
----
53
61
74

query I rowsort
SELECT ALL col1 - + - col0 FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query II rowsort label-336
SELECT - 94 - - 81 AS col2, 36 DIV - col2 AS col0 FROM tab0 AS cor0
----
-13
-3
-13
0
-13
0

skipif mysql # not compatible
query II rowsort label-336
SELECT - 94 - - 81 AS col2, 36 / - col2 AS col0 FROM tab0 AS cor0
----
-13
-3
-13
0
-13
0

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL + + SUM( ALL + 58 ) * 54 AS col1 FROM tab2 AS cor0
----
9396

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + + SUM ( ALL + 58 ) * 54 AS col1 FROM tab2 AS cor0
----
9396

query I rowsort
SELECT ALL col2 * - - col0 FROM tab1 cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT + 69 * - col0 FROM tab0
----
-1035
-6003
-6693

query I rowsort
SELECT col1 * + 26 AS col2 FROM tab1
----
1222
130
364

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT COUNT( * ) * + + 69 col2 FROM tab2
----
207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-341
SELECT COUNT ( * ) * + + 69 col2 FROM tab2
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT DISTINCT + 86 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
95

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT + 86 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
95

query II rowsort
SELECT DISTINCT col0 AS col0, ( + 17 ) FROM tab0
----
15
17
87
17
97
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-344
SELECT + CAST( NULL AS SIGNED ) AS col0, + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-344
SELECT + CAST ( NULL AS INTEGER ) AS col0, + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 IS NULL )
----

query I rowsort
SELECT ALL - col1 - col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT COUNT( + ( + col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-347
SELECT COUNT ( + ( + col1 ) ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 * - - col0 col0 FROM tab1 AS cor0 WHERE ( - col1 IS NOT NULL )
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT - ( COUNT( * ) ) col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-349
SELECT - ( COUNT ( * ) ) col2 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-350
SELECT DISTINCT + - SUM( ALL - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT + - SUM ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-351
SELECT ALL + col0 DIV - - col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL + col0 / - - col0 AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-352
SELECT ALL - SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL - SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 61 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 42, + col1 AS col2 FROM tab2 AS cor0
----
42
51
42
67
42
77

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT ALL COUNT( DISTINCT 72 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL COUNT ( DISTINCT 72 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT - MIN( DISTINCT col1 ) col2 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-356
SELECT - MIN ( DISTINCT col1 ) col2 FROM tab2
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 79 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT - + 92 + - 87 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-358
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT - + 92 + - 87 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT 3 * + - COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-359
SELECT 3 * + - COUNT ( * ) AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-360
SELECT DISTINCT + MIN( DISTINCT col0 ) * - 65 * - 4 + COUNT( * ) DIV 86 AS col2 FROM tab2
----
11960

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT + MIN ( DISTINCT col0 ) * - 65 * - 4 + COUNT ( * ) / 86 AS col2 FROM tab2
----
11960

query I rowsort
SELECT ( col2 ) AS col1 FROM tab2 WHERE NOT - col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-362
SELECT - col1 DIV 52 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-362
SELECT - col1 / 52 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT DISTINCT COUNT( * ) * 18 * 3 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT COUNT ( * ) * 18 * 3 FROM tab1
----
162

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + col0 ) NOT BETWEEN 70 * - - 65 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 col1 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT + + col2 + + 76 * + col0 FROM tab0 cor0
----
1187
6622
7471

onlyif mysql # DIV for integer division: 
query I rowsort label-367
SELECT ALL - ( 21 ) DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL - ( 21 ) / - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT ALL - MAX( + 28 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-28

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL - MAX ( + 28 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ALL 25 * + COUNT( * ) * - COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL 25 * + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 72 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + + col1 < - col2 * + 99 + + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab0 cor0
----
24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-373
SELECT DISTINCT COUNT( * ) - COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) + + COUNT( * ) * + 83 AS col1 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT COUNT ( * ) - COUNT ( DISTINCT CAST ( NULL AS REAL ) ) + + COUNT ( * ) * + 83 AS col1 FROM tab1
----
252

query I rowsort
SELECT DISTINCT 18 - + 27 FROM tab0
----
-9

query II rowsort
SELECT - col1, + 69 AS col2 FROM tab2 AS cor0
----
-51
69
-67
69
-77
69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= 11
----

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT 90 DIV - col2 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-377
SELECT 90 / - col2 FROM tab2 AS cor0
----
-1
-2
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > - 88
----

query I rowsort
SELECT ALL col0 * - 16 * + + 7 FROM tab2
----
-5152
-7168
-8400

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL + COUNT( ALL 13 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL + COUNT ( ALL 13 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 58 * + 74 * - ( - 36 ) * + 58 AS col2 FROM tab1
----
8961696

query I rowsort
SELECT + col1 * col1 * + 52 AS col2 FROM tab1 AS cor0
----
10192
114868
1300

query I rowsort
SELECT col2 + 86 FROM tab1 AS cor0 WHERE NOT - 81 IS NOT NULL
----

query I rowsort
SELECT col1 * + 14 + - col1 AS col2 FROM tab0 cor0
----
1053
13
273

query I rowsort
SELECT ( + - 60 ) FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT ALL + - 63 * - 93 + + col1 FROM tab0 AS cor0
----
5860
5880
5940

query I rowsort
SELECT DISTINCT - 67 * + + col1 FROM tab2 AS cor0
----
-3417
-4489
-5159

query I rowsort
SELECT ALL - - col1 FROM tab2 cor0 WHERE col0 + - col2 * + col2 * col1 IS NULL
----

query I rowsort
SELECT ALL - + 50 FROM tab0 cor0 WHERE NOT 98 <= + + col1
----
-50
-50
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-390
SELECT - - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-390
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 <> - + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-393
SELECT ALL ( + 62 ) DIV - + col1 - + col0 + - 12 - + ( + col2 ) * - col0, col0 FROM tab2
----
2484
64
4263
75
999
46

skipif mysql # not compatible
query II rowsort label-393
SELECT ALL ( + 62 ) / - + col1 - + col0 + - 12 - + ( + col2 ) * - col0, col0 FROM tab2
----
2484
64
4263
75
999
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-394
SELECT DISTINCT COUNT( * ) DIV + 20 AS col2, - 67 FROM tab1 cor0 WHERE NOT + 86 + + - col2 NOT BETWEEN - + col2 AND - col0 DIV col1
----
0
-67

skipif mysql # not compatible
query II rowsort label-394
SELECT DISTINCT COUNT ( * ) / + 20 AS col2, - 67 FROM tab1 cor0 WHERE NOT + 86 + + - col2 NOT BETWEEN - + col2 AND - col0 / col1
----
0
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT - COUNT( * ) * - - 56 AS col2 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-395
SELECT - COUNT ( * ) * - - 56 AS col2 FROM tab2 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT - ( + 20 ) AS col1, COUNT( * ) * + 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-20
216

skipif mysql # not compatible
query II rowsort label-396
SELECT - ( + 20 ) AS col1, COUNT ( * ) * + 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-20
216

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-397
SELECT CAST( NULL AS DECIMAL ) + 93, - col2 + 25 + col0 col0 FROM tab0
----
NULL
-7
NULL
102
NULL
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-397
SELECT CAST ( NULL AS REAL ) + 93, - col2 + 25 + col0 col0 FROM tab0
----
NULL
-7
NULL
102
NULL
23

query I rowsort
SELECT ALL + ( + + col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 84 - + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-400
SELECT ALL CAST( + - col0 AS SIGNED ) AS col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-400
SELECT ALL CAST ( + - col0 AS INTEGER ) AS col2, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 AS cor0 WHERE col2 + + col2 >= col0
----
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT - 71 DIV + 95 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-402
SELECT - 71 / + 95 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab0 AS cor0 WHERE NOT 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE + + col2 + col1 NOT IN ( - 95, col2 - - + 61, + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE + + col2 + col1 NOT IN ( - 95, col2 - - + 61, + col1 )
----
3

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + + 34 + + + 56 * + 62, col2 )
----

query I rowsort
SELECT + col1 - - + col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT - COUNT( * ) - + + 78 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT - COUNT ( * ) - + + 78 FROM tab1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT DISTINCT - 96 DIV - col2 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT - 96 / - col2 AS col1 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + 54 col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - 36 + - ( + 23 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT ALL CAST( - 8 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL CAST ( - 8 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT 33 DIV - col1 col2 FROM tab0 AS cor0
----
-1
-33
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-411
SELECT 33 / - col1 col2 FROM tab0 AS cor0
----
-1
-33
0

query I rowsort
SELECT + 33 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT + 54, col0 * - col1 AS col1 FROM tab2
----
54
-2346
54
-4928
54
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL - SUM( ALL - 40 ) AS col0 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL - SUM ( ALL - 40 ) AS col0 FROM tab2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT ( + + col2 ) DIV - 21 AS col2 FROM tab0 WHERE NOT 64 IS NULL
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-415
SELECT ( + + col2 ) / - 21 AS col2 FROM tab0 WHERE NOT 64 IS NULL
----
-2
-4
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT ALL + - SUM( ALL - 80 ) FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL + - SUM ( ALL - 80 ) FROM tab0 AS cor0
----
240

query II rowsort
SELECT ALL - - 56 AS col2, 64 FROM tab0 cor0
----
56
64
56
64
56
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 84, - col1 col0 FROM tab0 AS cor0
----
84
-1
84
-21
84
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 98 col1, 30 FROM tab0 AS cor0
----
98
30
98
30
98
30

query I rowsort
SELECT ALL 66 + + - 59 AS col0 FROM tab2 AS cor0
----
7
7
7

query II rowsort
SELECT DISTINCT + + col0 AS col2, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT - MIN( + 82 ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-423
SELECT - MIN ( + 82 ) FROM tab2 AS cor0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 57 col1 FROM tab1 AS cor0
----
108
142
148

query I rowsort
SELECT DISTINCT + col1 + + col1 * + 25 FROM tab1 AS cor0
----
1222
130
364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 46 * + col1 col1, - ( col0 ) + 14 col1 FROM tab2
----
2346
-32
3082
-61
3542
-50

query I rowsort
SELECT ALL col2 + + 46 FROM tab0
----
145
56
93

query I rowsort
SELECT + - 11 AS col0 FROM tab0 WHERE + - 18 + - 87 + + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + ( col1 ) FROM tab1
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 41 col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-41
-41
-41

query I rowsort
SELECT DISTINCT + 35 + + 84 + - - col1 + col0 + - - col2 * 54 AS col1 FROM tab1 cor0
----
3395
3929
5368

query I rowsort
SELECT - 16 + - col2 AS col1 FROM tab0 AS cor0
----
-115
-26
-63

query II rowsort
SELECT col1 AS col2, + ( + - col2 ) FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT + MIN( - 76 ) * COUNT( * ) - - 45 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-434
SELECT + MIN ( - 76 ) * COUNT ( * ) - - 45 FROM tab0 AS cor0
----
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 8 * + col2 + 25 col1, col0 FROM tab0 AS cor0
----
-351
15
-55
87
-767
97

query II rowsort
SELECT DISTINCT + - 9 * + ( + col1 ) AS col2, 74 FROM tab1 AS cor0
----
-126
74
-423
74
-45
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-437
SELECT - + 79 * - col2 + + - col0 + + col1 * col2 FROM tab1 AS cor0 WHERE ( - + CAST( - col0 AS SIGNED ) ) BETWEEN ( + col0 ) AND + col0 AND NOT - 2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-437
SELECT - + 79 * - col2 + + - col0 + + col1 * col2 FROM tab1 AS cor0 WHERE ( - + CAST ( - col0 AS INTEGER ) ) BETWEEN ( + col0 ) AND + col0 AND NOT - 2 IS NOT NULL
----

query I rowsort
SELECT + 42 + + - col2 FROM tab2 AS cor0
----
-16
19
2

query I rowsort
SELECT DISTINCT col0 * - 97 FROM tab1 AS cor0
----
-4947
-8245
-8827

query I rowsort
SELECT 43 * - - 18 + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( - + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT ALL - col1 DIV - 40 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL - col1 / - 40 AS col2 FROM tab0
----
0
0
2

query I rowsort
SELECT col1 * - ( - - col1 ) AS col2 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * - 68 - 72 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT + COUNT( * ) * + 23 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-445
SELECT + COUNT ( * ) * + 23 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-446
SELECT ALL COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - + 32 * - col1 * + col0 + + 11 FROM tab0 AS cor0
----
3115
38891
58475

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * 5 = - + col0 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + 63 * - col1 * - col2 FROM tab0 AS cor0
----
13240
239888
6336

query I rowsort
SELECT ALL - col2 + - + 79 FROM tab0 AS cor0
----
-126
-178
-89

query I rowsort
SELECT ALL + + col2 / col0 AS col2 FROM tab2 AS cor0 WHERE ( 80 = NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT DISTINCT col0 DIV - + col1 - 33 FROM tab2 AS cor0 WHERE ( NOT - col2 + - 48 + - col0 IS NULL )
----
-33
-34

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT col0 / - + col1 - 33 FROM tab2 AS cor0 WHERE ( NOT - col2 + - 48 + - col0 IS NULL )
----
-33
-34

query I rowsort
SELECT - col1 + 91 FROM tab1 AS cor0
----
44
77
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col0 FROM tab1 WHERE 56 - + - col1 * 37 IS NULL
----

query I rowsort
SELECT 16 + + col0 - - + 74 AS col0 FROM tab0
----
105
177
187

onlyif mysql # aggregate syntax: 
query II rowsort label-456
SELECT + 40, - SUM( ALL + col1 ) AS col1 FROM tab1
----
40
-66

skipif mysql # not compatible
query II rowsort label-456
SELECT + 40, - SUM ( ALL + col1 ) AS col1 FROM tab1
----
40
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-457
SELECT DISTINCT + COUNT( * ) + - - 5 DIV - MIN( ALL col2 ) + 6 AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT + COUNT ( * ) + - - 5 / - MIN ( ALL col2 ) + 6 AS col1 FROM tab0
----
9

query I rowsort
SELECT - 9 * col1 * - + col2 AS col1 FROM tab0
----
1890
34263
891

query I rowsort
SELECT + col2 * - col2 + col2 + + col0 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-460
SELECT + col2 * + CAST( - - col1 AS SIGNED ) AS col0 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-460
SELECT + col2 * + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL + 61 FROM tab1 WHERE NOT + col2 + - col0 * + ( - - 33 ) NOT IN ( - col0, + ( - ( + 89 ) ), - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL ( - + ( + COUNT( * ) ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL ( - + ( + COUNT ( * ) ) ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT DISTINCT - - MAX( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-463
SELECT DISTINCT - - MAX ( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT - + col2 * - 69 AS col0 FROM tab1 AS cor0
----
4071
4692
6624

query I rowsort
SELECT + - ( ( - col1 ) ) * + 24 AS col0 FROM tab1 AS cor0
----
1128
120
336

query I rowsort
SELECT - 88 - + col2 FROM tab2 AS cor0
----
-111
-128
-146

query I rowsort
SELECT + col0 * - - col0 + - col1 AS col0 FROM tab2
----
2065
4019
5558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-74

query I rowsort
SELECT - col2 + 19 AS col1 FROM tab0
----
-28
-80
9

query II rowsort
SELECT + col2 + - col2 AS col2, + col1 FROM tab1
----
0
14
0
47
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT ALL + COUNT( * ) - - 21 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL + COUNT ( * ) - - 21 FROM tab2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-472
SELECT - col2 * - + 77 + + col0 * - CAST( NULL AS SIGNED ) * - col0 AS col0, col1 FROM tab1 AS cor0 WHERE + 94 >= - 16
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-472
SELECT - col2 * - + 77 + + col0 * - CAST ( NULL AS INTEGER ) * - col0 AS col0, col1 FROM tab1 AS cor0 WHERE + 94 >= - 16
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 19 * col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT ALL + 45 DIV 48 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL + 45 / 48 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-475
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 73, col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-475
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 73, col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-476
SELECT col2 DIV 62 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-476
SELECT col2 / 62 AS col0 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL MAX( ALL - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL MAX ( ALL - col2 ) FROM tab2
----
-23

query III rowsort
SELECT * FROM tab2 WHERE col2 = NULL AND NULL NOT BETWEEN NULL AND - 76
----

query II rowsort
SELECT DISTINCT 13 AS col0, - col2 FROM tab0
----
13
-10
13
-47
13
-99

query II rowsort
SELECT ALL + col0, 43 FROM tab2
----
46
43
64
43
75
43

onlyif mysql # aggregate syntax: 
query II rowsort label-481
SELECT - COUNT( * ), 98 AS col2 FROM tab1
----
-3
98

skipif mysql # not compatible
query II rowsort label-481
SELECT - COUNT ( * ), 98 AS col2 FROM tab1
----
-3
98

onlyif mysql # aggregate syntax: 
query II rowsort label-482
SELECT ALL 3 AS col2, + COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-482
SELECT ALL 3 AS col2, + COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-483
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + AVG ( ALL - col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-483
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + AVG ( ALL - col0 ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, ( 92 ) col0 FROM tab2 AS cor0
----
46
92
64
92
75
92

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT ALL - - COUNT( DISTINCT + 73 ) * + SUM( + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL - - COUNT ( DISTINCT + 73 ) * + SUM ( + col2 ) FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - - col1 + col1 col2 FROM tab1
----
182
611
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-487
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NOT 94 < 79 + CAST( NULL AS SIGNED ) * - - col0
----

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NOT 94 < 79 + CAST ( NULL AS INTEGER ) * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT ALL + - 80 * - - 4 + + + COUNT( * ) + 94 AS col1 FROM tab0 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL + - 80 * - - 4 + + + COUNT ( * ) + 94 AS col1 FROM tab0 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT - MAX( + ( 16 ) ) AS col1 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-489
SELECT - MAX ( + ( 16 ) ) AS col1 FROM tab2 AS cor0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-490
SELECT ALL + COUNT( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL + COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 + - - 69 FROM tab0 AS cor0
----
156
166
84

query I rowsort
SELECT + 71 AS col2 FROM tab1 cor0 WHERE + col1 IS NULL
----

query II rowsort
SELECT col0 * - col1 * + col0 AS col2, col2 AS col0 FROM tab0
----
-158949
10
-18225
47
-9409
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-494
SELECT CAST( NULL AS DECIMAL ) * - ( col1 ) + - 58 + + - col0 / + 64 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-494
SELECT CAST ( NULL AS REAL ) * - ( col1 ) + - 58 + + - col0 / + 64 * col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-495
SELECT ALL col0 + 18 DIV - col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL col0 + 18 / - col2 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-496
SELECT DISTINCT COUNT( * ), + COUNT( * ) + - 75 AS col2 FROM tab0
----
3
-72

skipif mysql # not compatible
query II rowsort label-496
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) + - 75 AS col2 FROM tab0
----
3
-72

query I rowsort
SELECT DISTINCT + ( + 55 ) * - 99 FROM tab1 AS cor0
----
-5445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 + col2 + - - 82, col1 + - - ( col1 ) col1 FROM tab1 cor0
----
226
10
229
28
241
94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 + + + 64 col2 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT + ( - 5 ) * col1 AS col0 FROM tab0
----
-105
-405
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 col0, - col0 AS col2, col2 AS col0 FROM tab1 AS cor0
----
9 values hashing to 265748ae01d2cf906c1c502014f80e5f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-503
SELECT ALL + COUNT( * ) * - COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL + COUNT ( * ) * - COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - - 83 col2 FROM tab2 AS cor0
----
-1909
-3320
-4814

query I rowsort
SELECT - 30 * - 36 AS col1 FROM tab0 AS cor0
----
1080
1080
1080

query I rowsort
SELECT - col1 * + - 45 FROM tab2 AS cor0
----
2295
3015
3465

onlyif mysql # DIV for integer division: 
query I rowsort label-507
SELECT ALL - - col1 DIV 57 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL - - col1 / 57 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + 16 FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
16
16
16

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 < - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-510
SELECT ALL SUM( DISTINCT col0 ) AS col1, - 67 FROM tab2
----
185
-67

skipif mysql # not compatible
query II rowsort label-510
SELECT ALL SUM ( DISTINCT col0 ) AS col1, - 67 FROM tab2
----
185
-67

query I rowsort
SELECT - col0 + 4 FROM tab1 WHERE NOT - col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-512
SELECT ( - col1 ) DIV 1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-512
SELECT ( - col1 ) / 1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT DISTINCT - - SUM( ALL + - 73 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-219

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT - - SUM ( ALL + - 73 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-219

query I rowsort
SELECT col2 * + 8 AS col1 FROM tab0 cor0
----
376
792
80

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT ALL - - COUNT( * ) * - COUNT( * ) + + - COUNT( * ) col2 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-515
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) + + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - col0 ) IS NULL
----

query I rowsort
SELECT + 47 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT DISTINCT COUNT( DISTINCT col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT + ( 81 ), ( + 52 ) + + - ( col0 ) FROM tab0 WHERE ( NOT + col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT ALL col0 DIV + 25 col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-520
SELECT ALL col0 / + 25 col2 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-521
SELECT + col1 + - - CAST( NULL AS SIGNED ) + - 15 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-521
SELECT + col1 + - - CAST ( NULL AS INTEGER ) + - 15 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - col0, - col0 AS col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT ALL col0 + 41 - - 17 AS col0 FROM tab0
----
145
155
73

query I rowsort
SELECT + 87 FROM tab1 WHERE NULL <= col1 * - col2 + 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT DISTINCT + COUNT( * ) - MAX( ALL + col0 ) * - 18 AS col1 FROM tab1
----
1641

skipif mysql # not compatible
query I rowsort label-526
SELECT DISTINCT + COUNT ( * ) - MAX ( ALL + col0 ) * - 18 AS col1 FROM tab1
----
1641

query I rowsort
SELECT ALL 28 FROM tab2 cor0
----
28
28
28

query I rowsort
SELECT DISTINCT + 97 * - + 15 + - - 32 AS col2 FROM tab1 AS cor0
----
-1423

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ALL 78 * COUNT( * ) * - 3 + - - COUNT( * ) FROM tab0 AS cor0
----
-699

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL 78 * COUNT ( * ) * - 3 + - - COUNT ( * ) FROM tab0 AS cor0
----
-699

query I rowsort
SELECT ALL + col2 * - + col2 + + 59 FROM tab0 AS cor0 WHERE NOT - col0 * - ( + col0 ) < + + 25 + + + 3 * + col1
----
-41
-9742

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT + 41 + - COUNT( * ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-531
SELECT + 41 + - COUNT ( * ) FROM tab1
----
38

query II rowsort
SELECT + col2 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-533
SELECT ALL CAST( 81 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL CAST ( 81 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT ALL - col2 * + - ( - col2 ) FROM tab0 AS cor0
----
-100
-2209
-9801

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 40 IS NULL
----

query I rowsort
SELECT DISTINCT + + 59 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-537
SELECT - CAST( - + 96 AS SIGNED ) FROM tab2 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-537
SELECT - CAST ( - + 96 AS INTEGER ) FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT + - col0 * + + col1 FROM tab0 cor0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 83 ) col1 FROM tab0 AS cor0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-540
SELECT 96 DIV - + 22 AS col1 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-540
SELECT 96 / - + 22 AS col1 FROM tab2
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 * - - col1 col1 FROM tab1
----
103823
125
2744

onlyif mysql # DIV for integer division: 
query II rowsort label-542
SELECT ALL - col0 * + 92, + col1 DIV + col0 AS col0 FROM tab1
----
-4692
0
-7820
0
-8372
0

skipif mysql # not compatible
query II rowsort label-542
SELECT ALL - col0 * + 92, + col1 / + col0 AS col0 FROM tab1
----
-4692
0
-7820
0
-8372
0

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT 54 * + SUM( - col0 ) FROM tab1
----
-12258

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT 54 * + SUM ( - col0 ) FROM tab1
----
-12258

query I rowsort
SELECT - col0 * 77 FROM tab2
----
-3542
-4928
-5775

onlyif mysql # DIV for integer division: 
query I rowsort label-545
SELECT + + col1 DIV 54 + - + col2 AS col0 FROM tab0 AS cor0
----
-10
-46
-99

skipif mysql # not compatible
query I rowsort label-545
SELECT + + col1 / 54 + - + col2 AS col0 FROM tab0 AS cor0
----
-10
-46
-99

query I rowsort
SELECT DISTINCT col1 + - + ( - - 77 ) FROM tab2 AS cor0
----
-10
-26
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT MIN( 34 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-548
SELECT MIN ( 34 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-549
SELECT ALL - - COUNT( 88 ) DIV - 10 col1 FROM tab1 WHERE NULL <> + ( + + 21 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-549
SELECT ALL - - COUNT ( 88 ) / - 10 col1 FROM tab1 WHERE NULL <> + ( + + 21 )
----
0

query I rowsort
SELECT col2 + - - 47 AS col0 FROM tab1 WHERE NULL IN ( 88, 75 * - col2 * - col1 * - + 28, col2, col2, - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 >= + col0 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-552
SELECT DISTINCT - - col1 * - + col1 + + + 80 DIV col0 AS col0 FROM tab1 AS cor0
----
-195
-2209
-25

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT - - col1 * - + col1 + + + 80 / col0 AS col0 FROM tab1 AS cor0
----
-195
-2209
-25

query I rowsort
SELECT DISTINCT + col2 + 6 AS col2 FROM tab2 AS cor0
----
29
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT + COUNT( * ) + - - MAX( + - col0 ) AS col1 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-554
SELECT + COUNT ( * ) + - - MAX ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-555
SELECT DISTINCT col2 + - col0 DIV + 28 col1 FROM tab2
----
22
38
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-555
SELECT DISTINCT col2 + - col0 / + 28 col1 FROM tab2
----
22
38
56

query I rowsort
SELECT 59 + + 71 FROM tab0
----
130
130
130

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT + 79 + - SUM( col1 ) * MAX( + col2 ) AS col0 FROM tab2
----
-11231

skipif mysql # not compatible
query I rowsort label-558
SELECT + 79 + - SUM ( col1 ) * MAX ( + col2 ) AS col0 FROM tab2
----
-11231

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + col1 <> - - 34
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-560
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-560
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( col2 / + 70 ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT ALL COUNT( - + 58 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL COUNT ( - + 58 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 49 * - + ( col1 ) AS col0 FROM tab0 AS cor0
----
-1029
-3969
-49

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT + 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT DISTINCT - COUNT( - - col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT - COUNT ( - - col0 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 78 * + - 93 - + 80 AS col0 FROM tab2 AS cor0
----
-7334

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT DISTINCT COUNT( * ) * - MIN( ALL + 44 ) AS col1 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT COUNT ( * ) * - MIN ( ALL + 44 ) AS col1 FROM tab1 AS cor0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT + + MAX( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-569
SELECT + + MAX ( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-570
SELECT ALL + CAST( - - 11 AS SIGNED ), col0 AS col0 FROM tab0 AS cor0
----
11
15
11
87
11
97

skipif mysql # not compatible
query II rowsort label-570
SELECT ALL + CAST ( - - 11 AS INTEGER ), col0 AS col0 FROM tab0 AS cor0
----
11
15
11
87
11
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 67 col2 FROM tab1 AS cor0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT ALL - MAX( 55 ) AS col1 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-572
SELECT ALL - MAX ( 55 ) AS col1 FROM tab0 AS cor0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT DISTINCT 37 DIV + 9 FROM tab2 AS cor0 WHERE ( + - col1 ) IS NOT NULL
----
4

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT 37 / + 9 FROM tab2 AS cor0 WHERE ( + - col1 ) IS NOT NULL
----
4

query I rowsort
SELECT ALL + 1 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + - 71 / - + col2 FROM tab2 WHERE NOT - + col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * + - col2 * - - col2 * 70 col0 FROM tab2
----
10080000
21193200
3332700

query I rowsort
SELECT ALL - 55 + - + col2 AS col2 FROM tab2 cor0
----
-113
-78
-95

query I rowsort
SELECT + 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT ALL - ( + - SUM( ALL - col2 ) ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL - ( + - SUM ( ALL - col2 ) ) AS col1 FROM tab0
----
-156

query II rowsort
SELECT DISTINCT 33 AS col0, col0 FROM tab1 AS cor0
----
33
51
33
85
33
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT DISTINCT + ( - MIN( DISTINCT - col2 ) ) AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT + ( - MIN ( DISTINCT - col2 ) ) AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT SUM( - 64 ) AS col0 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-583
SELECT SUM ( - 64 ) AS col0 FROM tab2 AS cor0
----
-192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT DISTINCT COUNT( * ) + + 54 * + - 10 AS col2 FROM tab0
----
-537

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT COUNT ( * ) + + 54 * + - 10 AS col2 FROM tab0
----
-537

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = col0 - - col2
----

query I rowsort
SELECT 16 FROM tab2, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-588
SELECT * FROM tab2 WHERE + col2 + 30 IN ( + + CAST( NULL AS SIGNED ), col1 / + 70 * + 79, + + col1 - - - col0 )
----

skipif mysql # not compatible
query III rowsort label-588
SELECT * FROM tab2 WHERE + col2 + 30 IN ( + + CAST ( NULL AS INTEGER ), col1 / + 70 * + 79, + + col1 - - - col0 )
----

query II rowsort
SELECT ALL - col2 + - col1 + 1, + col0 AS col0 FROM tab1
----
-109
51
-114
91
-63
85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 16 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + ( - + col2 ) - + ( col1 ) FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT ALL + COUNT( * ) col1 FROM tab1 AS cor0 WHERE + 18 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-592
SELECT ALL + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE + 18 <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-593
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) * + col0 BETWEEN NULL AND + 4 * - col1 + 31
----
3

skipif mysql # not compatible
query I rowsort label-593
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) * + col0 BETWEEN NULL AND + 4 * - col1 + 31
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT + MIN( DISTINCT + + col0 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-594
SELECT + MIN ( DISTINCT + + col0 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT DISTINCT + - 54 AS col0 FROM tab1 AS cor0 WHERE NOT - ( + + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + 67 NOT BETWEEN - + col2 AND NULL
----

query I rowsort
SELECT ALL - col1 * - - 61 + - col1 FROM tab2 cor0
----
-3162
-4154
-4774

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT DISTINCT - MAX( DISTINCT + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-598
SELECT DISTINCT - MAX ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 11 col2 FROM tab0 cor0
----
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - 88 + 35 AND NULL
----

query I rowsort
SELECT ALL 44 AS col2 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT col2 * 58 * - + col1 AS col2 FROM tab1
----
-17110
-185368
-77952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col2 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col0 FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT COUNT( * ) * + - ( + 61 ) col0 FROM tab1
----
-183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-605
SELECT COUNT ( * ) * + - ( + 61 ) col0 FROM tab1
----
-183

query I rowsort
SELECT + col0 * - 87 + + + col1 AS col2 FROM tab1 WHERE - + 48 * - - 0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-608
SELECT * FROM tab0 AS cor0 WHERE CAST( - + col2 AS SIGNED ) + col1 <= + - ( 1 ) * + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-608
SELECT * FROM tab0 AS cor0 WHERE CAST ( - + col2 AS INTEGER ) + col1 <= + - ( 1 ) * + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT ALL - COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL - COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
-9

query II rowsort
SELECT + col2 AS col1, col1 AS col2 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-612
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT CAST ( NULL AS REAL ) + + col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT COUNT( * ) - - 16 AS col2 FROM tab0, tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-613
SELECT COUNT ( * ) - - 16 AS col2 FROM tab0, tab2 AS cor0
----
25

query I rowsort
SELECT + 56 AS col0 FROM tab2 WHERE - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-615
SELECT ALL 28, COUNT( * ) AS col0 FROM tab2
----
28
3

skipif mysql # not compatible
query II rowsort label-615
SELECT ALL 28, COUNT ( * ) AS col0 FROM tab2
----
28
3

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT - - MAX( ALL - + col0 ) - + 48 + - + 0 + - + ( - MIN( col0 ) ) AS col1 FROM tab1 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-616
SELECT - - MAX ( ALL - + col0 ) - + 48 + - + 0 + - + ( - MIN ( col0 ) ) AS col1 FROM tab1 cor0
----
-48

query I rowsort
SELECT + col2 - - - ( - + col1 ) FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 21 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-619
SELECT col2 + + + col1 + col2 + - 84 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT col2 + + + col1 + col2 + - 84 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 * - - col1 * col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 + + col0 * - 88 col2 FROM tab0
----
-1269
-7605
-8485

query I rowsort
SELECT + col2 * - col0 FROM tab2 WHERE NOT + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * - - 85 col2 FROM tab1
----
1190
3995
425

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT 97 * + COUNT( * ) col1 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-624
SELECT 97 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
291

query II rowsort
SELECT col1, - col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ALL COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT DISTINCT COUNT( DISTINCT + col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT COUNT ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

query II rowsort
SELECT ( + col0 ) AS col1, 43 AS col2 FROM tab0 AS cor0
----
15
43
87
43
97
43

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT - COUNT( ALL + - 51 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-629
SELECT - COUNT ( ALL + - 51 ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT SUM( 98 ) AS col1 FROM tab0 cor0
----
294

skipif mysql # not compatible
query I rowsort label-630
SELECT SUM ( 98 ) AS col1 FROM tab0 cor0
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-631
SELECT ALL + col1 DIV + col2 + - 32 AS col2 FROM tab2 AS cor0
----
-30
-31
-31

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL + col1 / + col2 + - 32 AS col2 FROM tab2 AS cor0
----
-30
-31
-31

query I rowsort
SELECT col2 + col1 + + col1 * - - col0 FROM tab1 AS cor0
----
4392
489
824

query II rowsort
SELECT - 12 + col1 AS col1, col1 FROM tab1 AS cor0
----
-7
5
2
14
35
47

query I rowsort
SELECT DISTINCT ( + - 79 ) AS col0 FROM tab2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT CAST( - 28 AS SIGNED ) * - ( - + col0 ) AS col2 FROM tab2
----
-1288
-1792
-2100

skipif mysql # not compatible
query I rowsort label-635
SELECT CAST ( - 28 AS INTEGER ) * - ( - + col0 ) AS col2 FROM tab2
----
-1288
-1792
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT ALL - + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL - + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT SUM( 69 ) * - COUNT( * ) FROM tab2
----
-621

skipif mysql # not compatible
query I rowsort label-637
SELECT SUM ( 69 ) * - COUNT ( * ) FROM tab2
----
-621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + col0 * + + col2 * - ( - - col2 ) col1 FROM tab0
----
10
-8700
47
-33135
99
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT COUNT( + + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-639
SELECT COUNT ( + + col2 ) FROM tab0
----
3

query I rowsort
SELECT - col2 * + col0 + + col2 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT + ( COUNT( * ) ) FROM tab2 WHERE NOT NULL NOT BETWEEN ( 22 + 69 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-641
SELECT + ( COUNT ( * ) ) FROM tab2 WHERE NOT NULL NOT BETWEEN ( 22 + 69 ) AND NULL
----
0

query I rowsort
SELECT + col0 * 50 FROM tab0
----
4350
4850
750

query I rowsort
SELECT - AVG ( DISTINCT ( col0 ) ) FROM tab1 WHERE NOT ( - col2 * 30 ) <> + col0
----
NULL

query I rowsort
SELECT + col2 * - 43 AS col0 FROM tab0
----
-2021
-4257
-430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 WHERE NULL >= - col2 + + 49
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-646
SELECT - 96 AS col1 FROM tab0 WHERE NOT - col2 - col0 / - col1 >= ( col2 ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-646
SELECT - 96 AS col1 FROM tab0 WHERE NOT - col2 - col0 / - col1 >= ( col2 ) * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + ( + col0 ) FROM tab0 WHERE col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-649
SELECT ALL - CAST( NULL AS SIGNED ) + col0 * - 35 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 * - 35 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-650
SELECT CAST( NULL AS DECIMAL ) * SUM( DISTINCT col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-650
SELECT CAST ( NULL AS REAL ) * SUM ( DISTINCT col2 ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 18 + 53 * ( 29 ) IS NOT NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT 13 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-653
SELECT ALL + ( CAST( NULL AS SIGNED ) ) / + 3 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) / + 3 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT ALL SUM( ( - 16 ) ) AS col2 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-654
SELECT ALL SUM ( ( - 16 ) ) AS col2 FROM tab2
----
-48

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 * col1 ) <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col0 FROM tab1
----
25
25
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-657
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-657
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 97 + 14 AS col2 FROM tab2
----
-83

query I rowsort
SELECT ALL - col2 * + col1 - + col0 AS col1 FROM tab2
----
-1219
-3144
-3961

query I rowsort
SELECT + col2 FROM tab1 WHERE ( NULL ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-661
SELECT COUNT( - ( + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-661
SELECT COUNT ( - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-662
SELECT DISTINCT - ( COUNT( DISTINCT 53 ) ) - AVG ( col0 + col1 * + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT - ( COUNT ( DISTINCT 53 ) ) - AVG ( col0 + col1 * + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL AVG ( DISTINCT - col0 ) FROM tab1 WHERE NULL < ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 ) > - 37
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < ( col2 / col1 )
----

query I rowsort
SELECT DISTINCT - col0 * + col0 FROM tab2 WHERE NULL BETWEEN 93 AND NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT ALL col1 + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT DISTINCT MAX( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT col0 * col1 NOT IN ( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT DISTINCT MAX ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT col0 * col1 NOT IN ( 91 )
----
NULL

query I rowsort
SELECT - col2 * 91 AS col0 FROM tab2 AS cor0
----
-2093
-3640
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT + 56 * - COUNT( * ) AS col2 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-671
SELECT + 56 * - COUNT ( * ) AS col2 FROM tab0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-672
SELECT + CAST( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT + CAST ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT 45 + COUNT( - col2 ) * MAX( + ( - ( - col1 ) ) ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( 59 )
----
288

skipif mysql # not compatible
query I rowsort label-673
SELECT 45 + COUNT ( - col2 ) * MAX ( + ( - ( - col1 ) ) ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( 59 )
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-674
SELECT DISTINCT col1 DIV 85 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT col1 / 85 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-675
SELECT CAST( NULL AS SIGNED ) / - 84 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-675
SELECT CAST ( NULL AS INTEGER ) / - 84 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-676
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-676
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) = NULL
----

query I rowsort
SELECT + col0 + + - col2 AS col1 FROM tab1
----
-45
23
26

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE col0 NOT IN ( - col0 * col2 + - col2 )
----
46
64
75

query I rowsort
SELECT 29 AS col0 FROM tab0 WHERE NULL <> ( 94 )
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col2 - - 92 / - 24 BETWEEN ( + 16 - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT ALL - ( MAX( DISTINCT - col1 ) ) * - SUM( col0 ) col0 FROM tab1
----
-1135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-681
SELECT ALL - ( MAX ( DISTINCT - col1 ) ) * - SUM ( col0 ) col0 FROM tab1
----
-1135

query I rowsort
SELECT 38 + + col1 AS col2 FROM tab0 AS cor0 WHERE - 7 * + col2 + - col0 / - 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT 12 * COUNT( DISTINCT col1 ) FROM tab0 cor0 WHERE NULL NOT IN ( 40 )
----
0

skipif mysql # not compatible
query I rowsort label-683
SELECT 12 * COUNT ( DISTINCT col1 ) FROM tab0 cor0 WHERE NULL NOT IN ( 40 )
----
0

query I rowsort
SELECT 25 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 47 * - + col0 FROM tab2 AS cor0
----
-2162
-3008
-3525

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT DISTINCT - ( + MIN( + 82 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-82

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT - ( + MIN ( + 82 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT DISTINCT 39 + + COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT 39 + + COUNT ( * ) FROM tab2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-689
SELECT DISTINCT - - 59 * - CAST( NULL AS SIGNED ) - - 27 AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT - - 59 * - CAST ( NULL AS INTEGER ) - - 27 AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
NULL

query I rowsort
SELECT ALL + col2 * + + col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT - - 81 - - + col2 FROM tab1 AS cor0
----
140
149
177

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-692
SELECT DISTINCT CAST( NULL AS SIGNED ) - CAST( NULL AS DECIMAL ) * col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT CAST ( NULL AS INTEGER ) - CAST ( NULL AS REAL ) * col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 AND ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-693
SELECT ALL - + col2 - + 56 + - col1 + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-119
-165
-170

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL - + col2 - + 56 + - col1 + col1 / col1 AS col2 FROM tab1 AS cor0
----
-119
-165
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT - MAX( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-694
SELECT - MAX ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT DISTINCT + + SUM( DISTINCT - 25 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 82 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT + + SUM ( DISTINCT - 25 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 82 IS NOT NULL
----
NULL

query II rowsort
SELECT + + 5, col2 FROM tab1 AS cor0
----
5
59
5
68
5
96

query I rowsort
SELECT + AVG ( - 97 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-698
SELECT ALL + col0, + ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-698
SELECT ALL + col0, + ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-699
SELECT DISTINCT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-699
SELECT DISTINCT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT + AVG ( + col2 ) FROM tab0 WHERE NOT col1 + - + 91 + - CAST( NULL AS SIGNED ) < ( - 27 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-700
SELECT + AVG ( + col2 ) FROM tab0 WHERE NOT col1 + - + 91 + - CAST ( NULL AS INTEGER ) < ( - 27 * + col0 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 NOT IN ( - 98 * col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( col1 * - 53 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT ALL + 37 * - COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 > col0
----
-111

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL + 37 * - COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 > col0
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-704
SELECT DISTINCT 63 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) >= col1
----

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT 63 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT + 72 + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( - + col2 ) AND NULL
----
72

skipif mysql # not compatible
query I rowsort label-705
SELECT + 72 + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( - + col2 ) AND NULL
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-706
SELECT SUM( col2 ) AS col0, 86 FROM tab1
----
223
86

skipif mysql # not compatible
query II rowsort label-706
SELECT SUM ( col2 ) AS col0, 86 FROM tab1
----
223
86

query I rowsort
SELECT ALL 22 AS col0 FROM tab0 WHERE - ( - 49 ) IS NOT NULL
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT + MIN( ALL - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-708
SELECT + MIN ( ALL - col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT DISTINCT + SUM( + 39 ) col1 FROM tab0
----
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-709
SELECT DISTINCT + SUM ( + 39 ) col1 FROM tab0
----
117

query I rowsort
SELECT ALL + col0 * + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( - - col1 * + 94 )
----

query I rowsort
SELECT ALL - col1 * - col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-712
SELECT ALL - 95 * + ( + col0 * - 44 ) FROM tab1 AS cor0 WHERE CAST( - 57 AS SIGNED ) IS NOT NULL
----
213180
355300
380380

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL - 95 * + ( + col0 * - 44 ) FROM tab1 AS cor0 WHERE CAST ( - 57 AS INTEGER ) IS NOT NULL
----
213180
355300
380380

query I rowsort
SELECT + 69 AS col2 FROM tab1 cor0
----
69
69
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-715
SELECT - COUNT( ALL - col0 ) AS col0, + COUNT( * ) - COUNT( * ) * 77 AS col2 FROM tab0 cor0
----
-3
-228

skipif mysql # not compatible
query II rowsort label-715
SELECT - COUNT ( ALL - col0 ) AS col0, + COUNT ( * ) - COUNT ( * ) * 77 AS col2 FROM tab0 cor0
----
-3
-228

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + + col2 col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + col2 + + col0 + + col2 BETWEEN + col0 * 65 AND + 86
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * col2 * - 4 col1 FROM tab2
----
-10440
-4140
-7200

query I rowsort
SELECT 7 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT - 39 * + 4 * + + 18 + - COUNT( * ) + + - 70 col1 FROM tab0
----
-2881

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-721
SELECT - 39 * + 4 * + + 18 + - COUNT ( * ) + + - 70 col1 FROM tab0
----
-2881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-722
SELECT ALL + - CAST( NULL AS SIGNED ) * - col0 + - col1 + 3 / - col0 col0 FROM tab2 AS cor0 WHERE - 82 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-722
SELECT ALL + - CAST ( NULL AS INTEGER ) * - col0 + - col1 + 3 / - col0 col0 FROM tab2 AS cor0 WHERE - 82 IS NULL
----

query I rowsort
SELECT ALL - col2 * + + col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL 84 + col1 + ( - - col0 ) - - + col0 FROM tab2 AS cor0
----
227
289
301

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 43 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT 6 - + + col2 AS col2, 56 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 64 + - col2 AS col1 FROM tab2 AS cor0
----
-104
-122
-87

query I rowsort
SELECT DISTINCT - col1 * - - ( + col2 ) + - + col0 + + col1 FROM tab1 AS cor0
----
-1381
-3240
-375

query I rowsort
SELECT ALL - col2 * + - col2 + + + 90 AS col0 FROM tab0 AS cor0
----
190
2299
9891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-731
SELECT ALL + ( CAST( NULL AS SIGNED ) ) + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col0 = ( ( - 69 ) * + col1 )
----

query I rowsort
SELECT DISTINCT col2 + 41 AS col2 FROM tab2
----
64
81
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-734
SELECT ALL - COUNT( DISTINCT - + col2 ) + - CAST( + AVG ( ALL + col1 ) AS SIGNED ) AS col1 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL - COUNT ( DISTINCT - + col2 ) + - CAST ( + AVG ( ALL + col1 ) AS INTEGER ) AS col1 FROM tab2
----
-68

query I rowsort
SELECT - col0 * + 90 * 0 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT col2 AS col1, col2 * - + col0 FROM tab1
----
59
-5015
68
-6188
96
-4896

query I rowsort
SELECT - col2 FROM tab1 WHERE - - col0 <= + col0
----
-59
-68
-96

query I rowsort
SELECT + col2 * 63 FROM tab2
----
1449
2520
3654

onlyif mysql # aggregate syntax: 
query II rowsort label-739
SELECT COUNT( * ) AS col0, 73 - - 98 AS col1 FROM tab0
----
3
171

skipif mysql # not compatible
query II rowsort label-739
SELECT COUNT ( * ) AS col0, 73 - - 98 AS col1 FROM tab0
----
3
171

query III rowsort
SELECT * FROM tab1 WHERE ( + - col2 * + + 13 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 - + + ( + + 31 ) * - col0 - col1 FROM tab2
----
1426
1984
2325

query I rowsort
SELECT + 34 - - ( + col2 ) AS col2 FROM tab0 AS cor0
----
133
44
81

query II rowsort
SELECT ALL + - col1 AS col1, + col0 * col0 FROM tab0 AS cor0
----
-1
9409
-21
7569
-81
225

query I rowsort
SELECT 10 FROM tab0 cor0 WHERE - col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 36 * + + col0 * - col1 + col2 AS col0 FROM tab0
----
-3393
-43693
-65762

query II rowsort
SELECT ALL col0 - - 13, - col0 AS col1 FROM tab1
----
104
-91
64
-51
98
-85

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT DISTINCT ( + COUNT( ALL - col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT ( + COUNT ( ALL - col2 ) ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 IN ( + + col0 / - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-750
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 23 / CAST( 69 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-750
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 23 / CAST ( 69 AS REAL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-751
SELECT ALL + ( 86 ) col2, col1 DIV - col1 FROM tab1 cor0
----
86
-1
86
-1
86
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-751
SELECT ALL + ( 86 ) col2, col1 / - col1 FROM tab1 cor0
----
86
-1
86
-1
86
-1

query I rowsort
SELECT DISTINCT - + 21 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN 86 * 84 - col0 AND - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT + COUNT( * ) * MIN( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-754
SELECT + COUNT ( * ) * MIN ( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-755
SELECT DISTINCT col1, - col1 + + - CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-755
SELECT DISTINCT col1, - col1 + + - CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 34 col2, - col0 + + col0 FROM tab1
----
34
0
34
0
34
0

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL BETWEEN + - col2 AND + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-758
SELECT - col0, + CAST( + - 10 AS SIGNED ) AS col1 FROM tab1
----
-51
-10
-85
-10
-91
-10

skipif mysql # not compatible
query II rowsort label-758
SELECT - col0, + CAST ( + - 10 AS INTEGER ) AS col1 FROM tab1
----
-51
-10
-85
-10
-91
-10

query I rowsort
SELECT DISTINCT - ( 64 ) FROM tab2 WHERE - col2 - col2 / col0 = + col0 - - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * - 35 + col1 - col0 * - + col1 NOT BETWEEN col0 * col1 AND ( + col0 + + col0 )
----

query II rowsort
SELECT 27 AS col2, col1 FROM tab2
----
27
51
27
67
27
77

query II rowsort
SELECT ALL + col2, + ( - + col2 ) FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT ALL - - 11 FROM tab2 cor0
----
11
11
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + col1
----

query I rowsort
SELECT ALL + - 28 + 54 FROM tab0 AS cor0
----
26
26
26

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-767
SELECT + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-767
SELECT + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 48 AS col1 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-769
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab1 cor0 WHERE 54 NOT BETWEEN CAST( NULL AS DECIMAL ) / + + col0 AND 47
----
3

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE 54 NOT BETWEEN CAST ( NULL AS REAL ) / + + col0 AND 47
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 * ( - 33 ) col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT col0 + + 34 FROM tab0 AS cor0
----
121
131
49

query II rowsort
SELECT + - ( col0 ) AS col1, + col2 + col2 - + col2 FROM tab2 WHERE NULL >= - col2
----

query I rowsort
SELECT DISTINCT + col2 * + 86 * 15 + - 38 FROM tab0
----
127672
12862
60592

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT BETWEEN NULL AND - col0
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT ALL - 42 + + 50 + - + CAST( - col0 AS SIGNED ) + col1 col0 FROM tab0
----
104
106
116

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-775
SELECT ALL - 42 + + 50 + - + CAST ( - col0 AS INTEGER ) + col1 col0 FROM tab0
----
104
106
116

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-776
SELECT ALL - 98 + CAST( NULL AS DECIMAL ) - - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL - 98 + CAST ( NULL AS REAL ) - - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-777
SELECT + MAX( DISTINCT + col2 ) + + 11 AS col0, COUNT( * ) DIV + - COUNT( - col2 ) AS col2 FROM tab1
----
107
-1

skipif mysql # not compatible
query II rowsort label-777
SELECT + MAX ( DISTINCT + col2 ) + + 11 AS col0, COUNT ( * ) / + - COUNT ( - col2 ) AS col2 FROM tab1
----
107
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IS NULL AND NOT + col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 * col0 * + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT 90 + + MIN( ALL col2 ) * 62 FROM tab1
----
3748

skipif mysql # not compatible
query I rowsort label-780
SELECT 90 + + MIN ( ALL col2 ) * 62 FROM tab1
----
3748

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT - - COUNT( DISTINCT - + 25 ) * + 99 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-781
SELECT - - COUNT ( DISTINCT - + 25 ) * + 99 FROM tab1 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-782
SELECT - CAST( NULL AS SIGNED ) * - - 18 - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-782
SELECT - CAST ( NULL AS INTEGER ) * - - 18 - - col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + - + 23 * + - col2 NOT BETWEEN ( col0 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT - - SUM( ALL col0 ) * SUM( ALL - col1 ) + + + 3 FROM tab0 WHERE NOT - - col2 + - col0 IS NULL
----
-20494

skipif mysql # not compatible
query I rowsort label-784
SELECT - - SUM ( ALL col0 ) * SUM ( ALL - col1 ) + + + 3 FROM tab0 WHERE NOT - - col2 + - col0 IS NULL
----
-20494

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT + COUNT( * ) * - + MAX( ALL + col0 ) AS col1 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-785
SELECT + COUNT ( * ) * - + MAX ( ALL + col0 ) AS col1 FROM tab2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT DISTINCT ( - SUM( DISTINCT 20 ) ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT ( - SUM ( DISTINCT 20 ) ) FROM tab1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT - + CAST( 36 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
1836
3060
3276

skipif mysql # not compatible
query I rowsort label-787
SELECT - + CAST ( 36 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
1836
3060
3276

query II rowsort
SELECT DISTINCT - col2, + col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 - - col2 col1 FROM tab0 AS cor0
----
110
2256
9900

query I rowsort
SELECT ALL ( col2 ) FROM tab2 AS cor0 WHERE + col0 * col1 + - - col2 * - col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT - + col2, - col0 * - - 28 + + col1 AS col2 FROM tab1 AS cor0
----
-59
-2375
-68
-2501
-96
-1414

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT ALL + col1 DIV + col0 + - 79 AS col2 FROM tab1 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL + col1 / + col0 + - 79 AS col2 FROM tab1 AS cor0
----
-79
-79
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-793
SELECT DISTINCT - col1 AS col1, col1 DIV 6 AS col1 FROM tab1 AS cor0
----
-14
2
-47
7
-5
0

skipif mysql # not compatible
query II rowsort label-793
SELECT DISTINCT - col1 AS col1, col1 / 6 AS col1 FROM tab1 AS cor0
----
-14
2
-47
7
-5
0

query I rowsort
SELECT DISTINCT ( - + 75 ) FROM tab2
----
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT ( 2 <> - col1 )
----

query I rowsort
SELECT 89 * + ( - col0 ) * col2 AS col1 FROM tab2
----
-227840
-387150
-94162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-798
SELECT - col1 + col2 / - - CAST( NULL AS SIGNED ), col1 * col2 AS col2 FROM tab1 AS cor0
----
NULL
1344
NULL
295
NULL
3196

skipif mysql # not compatible
query II rowsort label-798
SELECT - col1 + col2 / - - CAST ( NULL AS INTEGER ), col1 * col2 AS col2 FROM tab1 AS cor0
----
NULL
1344
NULL
295
NULL
3196

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 42 AS col0 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT ALL - 25 FROM tab0 cor0
----
-25
-25
-25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( col0 * + col1 ) IS NOT NULL ) OR + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 8 FROM tab1 WHERE ( col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - - col2 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-805
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col1 - - + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-805
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col1 - - + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < col0 OR NOT NULL IS NULL
----

query I rowsort
SELECT col2 - - + col1 * - 99 * col0 AS col1 FROM tab0
----
-120238
-180863
-9504

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE - + 26 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-809
SELECT 34 * + ( - CAST( NULL AS DECIMAL ) ) - col0, 88 AS col1 FROM tab0
----
NULL
88
NULL
88
NULL
88

skipif mysql # not compatible
query II rowsort label-809
SELECT 34 * + ( - CAST ( NULL AS REAL ) ) - col0, 88 AS col1 FROM tab0
----
NULL
88
NULL
88
NULL
88

query I rowsort
SELECT 11 - - - col1 AS col2 FROM tab2
----
-40
-56
-66

query I rowsort
SELECT col2 - + ( - col0 ) AS col1 FROM tab0 cor0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * 68 col0, - 95 AS col0 FROM tab2 cor0
----
1564
-95
2720
-95
3944
-95

query I rowsort
SELECT DISTINCT col1 * - - 1 AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - + col2 * col1 + 78 + - + col0 - + ( - + 37 ) AS col2 FROM tab2 AS cor0
----
-1104
-3029
-3846

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT ALL - 98 DIV 93 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL - 98 / 93 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-816
SELECT col1 DIV 34 * - + col1 FROM tab2
----
-154
-51
-67

skipif mysql # not compatible
query I rowsort label-816
SELECT col1 / 34 * - + col1 FROM tab2
----
-154
-51
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( - + 31 ) * col2, col2 col1 FROM tab1 AS cor0
----
1829
59
2108
68
2976
96

query I rowsort
SELECT - + 1 FROM tab2 AS cor0 WHERE NOT - col2 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT ALL - + 10 DIV - COUNT( * ) + - 81 + + + 70 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL - + 10 / - COUNT ( * ) + - 81 + + + 70 FROM tab0 AS cor0
----
-8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 13 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-821
SELECT DISTINCT + col2 DIV col2 AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT + col2 / col2 AS col1 FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT ALL + COUNT( * ) * - COUNT( * ) col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-822
SELECT ALL + COUNT ( * ) * - COUNT ( * ) col1 FROM tab2 cor0
----
-9

query II rowsort
SELECT ALL col2 AS col2, 59 * + - col2 FROM tab1 AS cor0
----
59
-3481
68
-4012
96
-5664

query I rowsort
SELECT - + col1 * + - col1 AS col2 FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 <= ( col1 )
----

query I rowsort
SELECT + col2 * - 53 * 19 FROM tab0
----
-10070
-47329
-99693

onlyif mysql # DIV for integer division: 
query I rowsort label-827
SELECT ALL col1 DIV + - col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL col1 / + - col1 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-828
SELECT - CAST( NULL AS SIGNED ) * - + COUNT( col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-828
SELECT - CAST ( NULL AS INTEGER ) * - + COUNT ( col2 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT + MIN( DISTINCT + - 40 ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-829
SELECT + MIN ( DISTINCT + - 40 ) FROM tab0
----
-40

query I rowsort
SELECT DISTINCT - - col2 * - - col1 AS col1 FROM tab1 WHERE NOT 39 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + - col2 * + + ( - col2 ) AND 92
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 >= col0 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT DISTINCT SUM( DISTINCT col1 ) FROM tab2 AS cor0 WHERE ( NOT ( + col2 + + - col1 ) IS NULL )
----
195

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT SUM ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE ( NOT ( + col2 + + - col1 ) IS NULL )
----
195

query I rowsort
SELECT ALL + 33 + - col1 FROM tab0 cor0
----
-48
12
32

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT + ( - COUNT( * ) ) + - MIN( - - col0 ) AS col1 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-835
SELECT + ( - COUNT ( * ) ) + - MIN ( - - col0 ) AS col1 FROM tab2 AS cor0
----
-49

query II rowsort
SELECT ALL 30 AS col2, col1 AS col2 FROM tab1 AS cor0
----
30
14
30
47
30
5

query I rowsort
SELECT + - 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT ALL col1 * + - col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - + col1 + - col0 + col2, col2 AS col1 FROM tab0 AS cor0
----
-49
47
-98
10
1
99

query I rowsort
SELECT 50 + + col2 AS col1 FROM tab0
----
149
60
97

query I rowsort
SELECT ALL + 89 + 92 * + 66 AS col1 FROM tab2
----
6161
6161
6161

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT + 81 - - COUNT( * ) col1 FROM tab0, tab2 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-842
SELECT + 81 - - COUNT ( * ) col1 FROM tab0, tab2 AS cor0
----
90

query I rowsort
SELECT ALL col2 * col2 + col0 * - 63 FROM tab1
----
-1109
-1874
6003

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT DISTINCT + MAX( ALL - col2 ) + + 59 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT + MAX ( ALL - col2 ) + + 59 AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col2 * + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-846
SELECT ALL CAST( - + ( col2 ) AS SIGNED ) - - 33 AS col1 FROM tab0
----
-14
-66
23

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL CAST ( - + ( col2 ) AS INTEGER ) - - 33 AS col1 FROM tab0
----
-14
-66
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0 AS cor0 WHERE NOT NULL <> 22 OR NOT 64 + + + col0 - - + col0 < 0 AND - 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - ( - col0 ) + col0 * + col2 FROM tab1 AS cor0
----
-14
4947
-47
6279
-5
5100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + col0 ) col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-851
SELECT DISTINCT - CAST( MIN( ALL + col1 ) AS SIGNED ) * SUM( DISTINCT - + col0 ) col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-851
SELECT DISTINCT - CAST ( MIN ( ALL + col1 ) AS INTEGER ) * SUM ( DISTINCT - + col0 ) col0 FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT ALL - + col0 DIV + ( - 38 ) AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL - + col0 / + ( - 38 ) AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT DISTINCT 93 * COUNT( * ) col2 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-853
SELECT DISTINCT 93 * COUNT ( * ) col2 FROM tab1 AS cor0
----
279

query II rowsort
SELECT ( + 74 ) AS col2, - col2 AS col2 FROM tab0 AS cor0
----
74
-10
74
-47
74
-99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 93 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-856
SELECT ALL - CAST( - 85 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( + 98 <> NULL )
----

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL - CAST ( - 85 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( + 98 <> NULL )
----

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= ( - + col0 ) - + col1 + col2 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT - 78 + - COUNT( * ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-858
SELECT - 78 + - COUNT ( * ) FROM tab2 AS cor0
----
-81

query II rowsort
SELECT ALL - + col0 * + col1, 78 AS col0 FROM tab1 AS cor0
----
-425
78
-4277
78
-714
78

query I rowsort
SELECT DISTINCT + col2 * - col0 + col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 + + 54 col1 FROM tab1
----
67
67
67

query I rowsort
SELECT DISTINCT + col2 + 47 * col0 FROM tab1
----
2493
4054
4345

query I rowsort
SELECT DISTINCT 40 * + 20 FROM tab0
----
800

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT ALL col0 DIV + 39 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL col0 / + 39 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-865
SELECT - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col1 AND - col1 * + + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-867
SELECT ALL + + 89 DIV + MAX( - + col0 ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL + + 89 / + MAX ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-868
SELECT + - COUNT( + 37 ) DIV + COUNT( - col0 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-868
SELECT + - COUNT ( + 37 ) / + COUNT ( - col0 ) AS col2 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-869
SELECT + - MIN( CAST( + - col2 AS SIGNED ) ) * - COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-869
SELECT + - MIN ( CAST ( + - col2 AS INTEGER ) ) * - COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-870
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + 99 * - CAST( - ( col2 ) AS SIGNED ) + 51
----

skipif mysql # not compatible
query III rowsort label-870
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + 99 * - CAST ( - ( col2 ) AS INTEGER ) + 51
----

query I rowsort
SELECT ALL + - 24 * + 11 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0f37d502972884b7481e70bbf5b459e

query I rowsort
SELECT col0 + - + 15 * col2 AS col1 FROM tab0
----
-1388
-63
-690

query I rowsort
SELECT ALL + col0 + + - col0 + - col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT + 80 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-874
SELECT + 80 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-875
SELECT DISTINCT + 51 DIV - col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-875
SELECT DISTINCT + 51 / - col2 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - col0 col2 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) >= NULL
----

query I rowsort
SELECT + ( 22 ) AS col2 FROM tab2 AS cor0
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-879
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + - ( + 20 ) BETWEEN + 87 / col2 AND - col1 * - CAST( NULL AS SIGNED ) * + col1 * - col1
----

skipif mysql # not compatible
query III rowsort label-879
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + - ( + 20 ) BETWEEN + 87 / col2 AND - col1 * - CAST ( NULL AS INTEGER ) * + col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT COUNT( DISTINCT 64 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-880
SELECT COUNT ( DISTINCT 64 ) AS col1 FROM tab0
----
1

query II rowsort
SELECT ALL - ( 46 ) - - - col1 + ( - + col2 ), + 24 AS col2 FROM tab0
----
-146
24
-174
24
-77
24

query I rowsort
SELECT DISTINCT + col2 + - col2 + - col1 * - col0 AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-883
SELECT ( - + col2 ), col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-883
SELECT ( - + col2 ), col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT ALL - 54 DIV - col0 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL - 54 / - col0 AS col2 FROM tab1
----
0
0
1

query II rowsort
SELECT - - col2 * - - 39 AS col1, col0 * - - 35 FROM tab2 AS cor0
----
1560
2240
2262
2625
897
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT ALL - SUM( 74 ) AS col2 FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL - SUM ( 74 ) AS col2 FROM tab2 AS cor0
----
-222

query I rowsort
SELECT 8 * - col0 AS col0 FROM tab0
----
-120
-696
-776

query I rowsort
SELECT 56 * 71 * 35 AS col2 FROM tab1
----
139160
139160
139160

query I rowsort
SELECT ( + 64 ) * + col1 * ( + col1 ) AS col0 FROM tab1
----
12544
141376
1600

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 22 IN ( - col0 / - col0, 65 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT - MIN( + ( col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-892
SELECT - MIN ( + ( col1 ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + ( - col1 ) + - + col2 AS col1 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT col0 * + col0 + - 89 FROM tab2
----
2027
4007
5536

query II rowsort
SELECT - col1 * - col0 AS col2, col0 FROM tab0
----
1215
15
1827
87
97
97

query I rowsort
SELECT + - 79 AS col1 FROM tab1 WHERE ( NOT ( NULL ) <= NULL )
----

query I rowsort
SELECT ALL 36 * col2 * - col0 FROM tab1
----
-176256
-180540
-222768

query I rowsort
SELECT DISTINCT + 27 + + - col1 * + 37 AS col0 FROM tab2
----
-1860
-2452
-2822

onlyif mysql # aggregate syntax: 
query II rowsort label-899
SELECT ALL COUNT( + 52 ) + + + 86 * + - 90, ( - COUNT( * ) ) AS col2 FROM tab1
----
-7737
-3

skipif mysql # not compatible
query II rowsort label-899
SELECT ALL COUNT ( + 52 ) + + + 86 * + - 90, ( - COUNT ( * ) ) AS col2 FROM tab1
----
-7737
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 78 * ( col0 ) + + 59 * + col2 <> NULL
----

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT ALL + - col0 DIV - - 88 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL + - col0 / - - 88 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 60 * + col0 col1 FROM tab0 AS cor0 WHERE NOT col2 + 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT ALL + COUNT( ALL col1 ) + COUNT( ALL + 91 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL + COUNT ( ALL col1 ) + COUNT ( ALL + 91 ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 - - 31 * + + 87 IN ( 10 + 61 )
----

query I rowsort
SELECT ALL - + col1 - + - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 - 0 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - 14 + - col0 FROM tab1 AS cor0 WHERE ( NOT ( col0 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-909
SELECT ALL + - MIN( DISTINCT + 48 ) + + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-909
SELECT ALL + - MIN ( DISTINCT + 48 ) + + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-45
NULL

query I rowsort
SELECT + col0 + + 54 FROM tab1 AS cor0
----
105
139
145

query I rowsort
SELECT + 79 AS col2 FROM tab2 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4

query II rowsort
SELECT DISTINCT col0 * + col0, 9 * - + col1 * + 82 + - col2 AS col0 FROM tab2
----
2116
-37661
4096
-56866
5625
-49504

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ALL - COUNT( * ) * 27 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL - COUNT ( * ) * 27 FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT DISTINCT + 93 * + COUNT( DISTINCT + col2 ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT + 93 * + COUNT ( DISTINCT + col2 ) FROM tab1
----
279

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT + + SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-917
SELECT + + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT + - 99 * + SUM( col0 ) AS col0 FROM tab0 AS cor0
----
-19701

skipif mysql # not compatible
query I rowsort label-918
SELECT + - 99 * + SUM ( col0 ) AS col0 FROM tab0 AS cor0
----
-19701

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT + + 30 * ( COUNT( * ) ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-919
SELECT + + 30 * ( COUNT ( * ) ) FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-920
SELECT 93 AS col1, 20 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
93
60

skipif mysql # not compatible
query II rowsort label-920
SELECT 93 AS col1, 20 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
93
60

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT - 47 * COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-432

skipif mysql # not compatible
query I rowsort label-921
SELECT - 47 * COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT ALL ( - SUM( col1 ) ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL ( - SUM ( col1 ) ) AS col0 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT - MIN( - - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-923
SELECT - MIN ( - - col2 ) FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - + 19 ) + - + 75 col0 FROM tab1 AS cor0
----
-56
-56
-56

query II rowsort
SELECT col0, col2 FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 + + col0 AND - 66
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 + - 13 + col1 * - col0 * col2 * + + col0 col1 FROM tab2
----
-12615740
-21858810
-2482128

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-928
SELECT 15 DIV col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-928
SELECT 15 / col2 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL 33 + - col1 * + + col1 FROM tab2
----
-2568
-4456
-5896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 4, col2 col2 FROM tab1
----
-4
59
-4
68
-4
96

query II rowsort
SELECT 88 AS col0, col1 AS col0 FROM tab2
----
88
51
88
67
88
77

query I rowsort
SELECT col0 * - 1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + col2 * - - col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab0 AS cor0
----
-35

query II rowsort
SELECT ALL + col1, col0 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
14
102
47
182
5
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT DISTINCT - col0 / - + col1 - - col2 FROM tab2 WHERE + - 65 - - col1 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT - col0 / - + col1 - - col2 FROM tab2 WHERE + - 65 - - col1 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + 59 + - 33 * - 12 + - 46 FROM tab1
----
313
341
350

query I rowsort
SELECT - 82 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
43

query I rowsort
SELECT DISTINCT - 66 * - + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-13860
-251262
-6534

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE - col0 * 59 / col0 * col2 IN ( - + col2 * + col1 + + 65 * col2 + + col1 - - + 47, + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 94 * + - col1 * col2 * - ( - 3 ) - + col0 = - col1 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 8 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-8
-8
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-944
SELECT + col0 DIV 90 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-944
SELECT + col0 / 90 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-945
SELECT ALL col0 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL col0 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT - 25 * col2 / + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT - 25 * col2 / + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 76 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-948
SELECT DISTINCT - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT ALL MIN( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL MIN ( ALL - + col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT DISTINCT + ( + COUNT( * ) ) * - COUNT( * ) + COUNT( * ) + - MAX( + 89 ) AS col2 FROM tab1 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-950
SELECT DISTINCT + ( + COUNT ( * ) ) * - COUNT ( * ) + COUNT ( * ) + - MAX ( + 89 ) AS col2 FROM tab1 cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT COUNT( ALL - 73 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-951
SELECT COUNT ( ALL - 73 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - 40 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT - 9 * + col1 AS col2 FROM tab0
----
-189
-729
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 63 col2, + col1 + 20 * + col1 * + col0 FROM tab0
----
63
1941
63
24381
63
36561

onlyif mysql # aggregate syntax: 
query II rowsort label-955
SELECT DISTINCT - + 92, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-92
3

skipif mysql # not compatible
query II rowsort label-955
SELECT DISTINCT - + 92, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-92
3

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT DISTINCT + 49 DIV 36 + ( - col2 ) + + - 88 FROM tab1 AS cor0
----
-146
-155
-183

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT + 49 / 36 + ( - col2 ) + + - 88 FROM tab1 AS cor0
----
-146
-155
-183

query II rowsort
SELECT + - 63 * - col2, + col0 FROM tab1 AS cor0
----
3717
85
4284
91
6048
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 2 AS col2, 20 col2 FROM tab1 AS cor0
----
2
20

query I rowsort
SELECT DISTINCT - col1 + - 74 AS col1 FROM tab1 cor0
----
-121
-79
-88

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-961
SELECT CAST( NULL AS SIGNED ) AS col2, + 74 AS col1 FROM tab1 AS cor0
----
NULL
74
NULL
74
NULL
74

skipif mysql # not compatible
query II rowsort label-961
SELECT CAST ( NULL AS INTEGER ) AS col2, + 74 AS col1 FROM tab1 AS cor0
----
NULL
74
NULL
74
NULL
74

onlyif mysql # aggregate syntax: 
query II rowsort label-962
SELECT ALL 30 + + MAX( col0 ) col1, COUNT( * ) AS col1 FROM tab2
----
105
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-962
SELECT ALL 30 + + MAX ( col0 ) col1, COUNT ( * ) AS col1 FROM tab2
----
105
3

query I rowsort
SELECT - col2 * - + col1 + - col1 + - col0 FROM tab2
----
1076
2939
3744

query I rowsort
SELECT ALL 97 + - ( + 34 ) AS col2 FROM tab1
----
63
63
63

query I rowsort
SELECT col1 + + + 26 FROM tab1
----
31
40
73

query I rowsort
SELECT ALL col2 + + - 72 FROM tab0
----
-25
-62
27

onlyif mysql # DIV for integer division: 
query II rowsort label-967
SELECT DISTINCT + col0 * col2 AS col1, col0 * + ( - + col1 ) + - 26 - - col1 DIV - 40 FROM tab1
----
4896
-740
5015
-451
6188
-4304

skipif mysql # not compatible
query II rowsort label-967
SELECT DISTINCT + col0 * col2 AS col1, col0 * + ( - + col1 ) + - 26 - - col1 / - 40 FROM tab1
----
4896
-740
5015
-451
6188
-4304

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-968
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - 91 + - ( col2 ) / + + col0 * - - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT CAST ( NULL AS REAL ) - - 91 + - ( col2 ) / + + col0 * - - col1 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + 68 + + col2 AS col1 FROM tab2 cor0
----
108
126
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-970
SELECT DISTINCT - - CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT - - CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * col2 col0, + ( 55 ) AS col2 FROM tab1 AS cor0
----
4896
55
5015
55
6188
55

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 76 IS NULL
----

query II rowsort
SELECT DISTINCT + - 29 * col0 AS col2, + col0 AS col2 FROM tab1 cor0
----
-1479
51
-2465
85
-2639
91

query I rowsort
SELECT ALL + 15 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT 63 * 48 FROM tab0
----
3024

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 9 * 52 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT ALL + + COUNT( * ) * 46 AS col1 FROM tab2 cor0
----
138

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL + + COUNT ( * ) * 46 AS col1 FROM tab2 cor0
----
138

query I rowsort
SELECT ALL + col0 * 89 AS col1 FROM tab1 AS cor0
----
4539
7565
8099

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-980
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + col2 / - col2 * + + col1 > NULL
----

skipif mysql # not compatible
query III rowsort label-980
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + col2 / - col2 * + + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT - 93 * COUNT( * ) FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-981
SELECT - 93 * COUNT ( * ) FROM tab1 AS cor0
----
-279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 37 <> - CAST( NULL AS SIGNED ) / 46 - - col0 / col1 * col0 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 37 <> - CAST ( NULL AS INTEGER ) / 46 - - col0 / col1 * col0 * - col1
----
0

query I rowsort
SELECT DISTINCT - col1 * + - 58 AS col0 FROM tab2 AS cor0
----
2958
3886
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT COUNT( * ) * + 14 AS col0 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-984
SELECT COUNT ( * ) * + 14 AS col0 FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT DISTINCT + ( SUM( 48 ) ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT + ( SUM ( 48 ) ) FROM tab1
----
144

query I rowsort
SELECT DISTINCT - ( + 34 ) AS col2 FROM tab0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-987
SELECT DISTINCT - 31 * 60 * - - CAST( NULL AS SIGNED ) / - - col1 * - col0 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT - 31 * 60 * - - CAST ( NULL AS INTEGER ) / - - col1 * - col0 FROM tab2 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL 22 * - + COUNT( * ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL 22 * - + COUNT ( * ) AS col0 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT DISTINCT + 45 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT + 45 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT ALL + COUNT( ALL - 28 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL + COUNT ( ALL - 28 ) FROM tab1
----
3

query I rowsort
SELECT ALL - col1 * + - col1 AS col0 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT DISTINCT - SUM( DISTINCT 48 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT - SUM ( DISTINCT 48 ) FROM tab1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT - ( - col1 ) DIV + col0 AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-994
SELECT - ( - col1 ) / + col0 AS col2 FROM tab0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-995
SELECT - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 92 + - col2 AS col1 FROM tab1 cor0
----
-4
24
33

onlyif mysql # DIV for integer division: 
query II rowsort label-997
SELECT - - col2 + + + 93 DIV - 38, col2 FROM tab0 cor0
----
45
47
8
10
97
99

skipif mysql # not compatible
query II rowsort label-997
SELECT - - col2 + + + 93 / - 38, col2 FROM tab0 cor0
----
45
47
8
10
97
99

query I rowsort
SELECT + 89 + 37 FROM tab1 AS cor0
----
126
126
126

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT DISTINCT col0 DIV - + col2 - + 19 FROM tab2 AS cor0
----
-20
-21

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT col0 / - + col2 - + 19 FROM tab2 AS cor0
----
-20
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT ALL + - COUNT( ALL - col0 ) FROM tab0 AS cor0 WHERE NOT - col0 * col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL + - COUNT ( ALL - col0 ) FROM tab0 AS cor0 WHERE NOT - col0 * col1 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL - + 38 + MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
-113

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL - + 38 + MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT 43 + - COUNT( * ) col0 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1002
SELECT 43 + - COUNT ( * ) col0 FROM tab2 AS cor0
----
40

query I rowsort
SELECT ALL + 22 + + + col1 * + 58 - - - col0 FROM tab0 AS cor0
----
-17
1153
4705

query III rowsort
SELECT * FROM tab2 WHERE 4 > + + col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 10 NOT IN ( col2 + 24, - ( + + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL COUNT( * ) - + 52 FROM tab2, tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL COUNT ( * ) - + 52 FROM tab2, tab1 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 + + + col2 * + 57 col1 FROM tab2
----
1334
2303
3329

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1008
SELECT + ( + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT + ( + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 6 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT COUNT( * ) - - ( - 9 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-1010
SELECT COUNT ( * ) - - ( - 9 ) FROM tab1
----
-6

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - - 80 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1013
SELECT ALL + col1 DIV + - 18 + + - col1 col0 FROM tab2 cor0
----
-53
-70
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1013
SELECT ALL + col1 / + - 18 + + - col1 col0 FROM tab2 cor0
----
-53
-70
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * - col0 + 12 + - - col2 <> ( - - col1 ) * - + col0
----

query I rowsort
SELECT + 14 * col0 AS col2 FROM tab1 WHERE NOT - - col0 + - col0 * 73 * - 75 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT - col1 DIV + - col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1016
SELECT - col1 / + - col1 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT DISTINCT + MAX( - + ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT + MAX ( - + ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1019
SELECT ALL + col1 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL + col1 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + 72 * - 45 FROM tab1 AS cor0
----
-3240
-3240
-3240

query II rowsort
SELECT DISTINCT - col0, col0 * - 56 + - - col1 AS col0 FROM tab0
----
-15
-759
-87
-4851
-97
-5431

query I rowsort
SELECT ALL col1 * - 35 FROM tab1
----
-1645
-175
-490

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1023
SELECT - 85 DIV - ( - - 5 ) AS col0, + 20 - COUNT( * ) AS col0 FROM tab1
----
17
17

skipif mysql # not compatible
query II rowsort label-1023
SELECT - 85 / - ( - - 5 ) AS col0, + 20 - COUNT ( * ) AS col0 FROM tab1
----
17
17

query I rowsort
SELECT col2 * 11 AS col1 FROM tab1
----
1056
649
748

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT DISTINCT - - MAX( ALL - + 96 ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT - - MAX ( ALL - + 96 ) AS col0 FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT ALL - SUM( DISTINCT 15 ) AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL - SUM ( DISTINCT 15 ) AS col0 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT - 77 FROM tab1, tab2 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # DIV for integer division: 
query I rowsort label-1028
SELECT + + 49 DIV - 75 * + col2 + col1 * col0 + - + 60 FROM tab0 cor0
----
1155
1767
37

skipif mysql # not compatible
query I rowsort label-1028
SELECT + + 49 / - 75 * + col2 + col1 * col0 + - + 60 FROM tab0 cor0
----
1155
1767
37

query I rowsort
SELECT + 17 * col0 + + col1 + - - ( - col2 ) AS col1 FROM tab0 AS cor0
----
1490
1551
289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT - CAST( - 45 AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
-1
-19
-30

skipif mysql # not compatible
query I rowsort label-1030
SELECT - CAST ( - 45 AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
-1
-19
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT - + ( COUNT( * ) ) + + + 71 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-1031
SELECT - + ( COUNT ( * ) ) + + + 71 FROM tab1 AS cor0
----
68

query I rowsort
SELECT ( col2 ) + col2 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1033
SELECT ALL - 64 * - + col1 + + + col0 + + 16 + - + CAST( NULL AS DECIMAL ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-1033
SELECT ALL - 64 * - + col1 + + + col0 + + 16 + - + CAST ( NULL AS REAL ), col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT col2 + - 47 AS col2 FROM tab2
----
-24
-7
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT DISTINCT COUNT( * ) - - 52 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT COUNT ( * ) - - 52 FROM tab2
----
55

query II rowsort
SELECT + col2 * + - col0, col1 FROM tab1
----
-4896
14
-5015
5
-6188
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT 70 DIV + col1 FROM tab0
----
0
3
70

skipif mysql # not compatible
query I rowsort label-1037
SELECT 70 / + col1 FROM tab0
----
0
3
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1038
SELECT + + COUNT( * ) AS col0, + CAST( + 28 AS SIGNED ) + + CAST( + 71 AS SIGNED ) + + - 18 AS col2 FROM tab2 AS cor0
----
3
81

skipif mysql # not compatible
query II rowsort label-1038
SELECT + + COUNT ( * ) AS col0, + CAST ( + 28 AS INTEGER ) + + CAST ( + 71 AS INTEGER ) + + - 18 AS col2 FROM tab2 AS cor0
----
3
81

query II rowsort
SELECT ALL 72 AS col0, col1 FROM tab1 AS cor0
----
72
14
72
47
72
5

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 47 * - col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT + + MAX( ALL - + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1041
SELECT + + MAX ( ALL - + col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - 38 * + col0 FROM tab0 AS cor0
----
-3306
-3686
-570

query II rowsort
SELECT ALL - col1, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ALL - MAX( ALL - col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - MAX ( ALL - col1 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT ( NOT + CAST( + ( + 9 ) AS SIGNED ) IN ( 60 + - ( + col0 ) + - + 5 + + - col2 ) )
----

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT ( NOT + CAST ( + ( + 9 ) AS INTEGER ) IN ( 60 + - ( + col0 ) + - + 5 + + - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1046
SELECT ALL * FROM tab2 WHERE NOT ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1046
SELECT ALL * FROM tab2 WHERE NOT ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1047
SELECT CAST( - + col1 AS SIGNED ) * - - col0 * + + col1 FROM tab1
----
-201019
-2125
-9996

skipif mysql # not compatible
query I rowsort label-1047
SELECT CAST ( - + col1 AS INTEGER ) * - - col0 * + + col1 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( - 11 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 <> NULL
----

query II rowsort
SELECT ALL col2, - col0 / 7 * - + 0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT + - ( - COUNT( * ) ) + 99 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT + - ( - COUNT ( * ) ) + 99 FROM tab0 AS cor0
----
102

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1053
SELECT ALL - 57 + - - 11 DIV + 62 AS col1, - col2 FROM tab0
----
-57
-10
-57
-47
-57
-99

skipif mysql # not compatible
query II rowsort label-1053
SELECT ALL - 57 + - - 11 / + 62 AS col1, - col2 FROM tab0
----
-57
-10
-57
-47
-57
-99

query II rowsort
SELECT DISTINCT + 85, col1 FROM tab0 AS cor0
----
85
1
85
21
85
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1055
SELECT ALL + MIN( + - CAST( - ( col1 ) AS SIGNED ) ) col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0 + col0 + - - CAST( NULL AS DECIMAL ) + + 36
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1055
SELECT ALL + MIN ( + - CAST ( - ( col1 ) AS INTEGER ) ) col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0 + col0 + - - CAST ( NULL AS REAL ) + + 36
----
NULL

query II rowsort
SELECT col1 AS col2, - col2 * - 63 * - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT ALL + + 17 AS col2 FROM tab0 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT DISTINCT - COUNT( * ) + 82 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT - COUNT ( * ) + 82 FROM tab2
----
79

query III rowsort
SELECT ALL * FROM tab2 WHERE 9 + - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT SUM( ALL - + ( + col2 ) ) col0 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1060
SELECT SUM ( ALL - + ( + col2 ) ) col0 FROM tab0
----
-156

query I rowsort
SELECT + col1 FROM tab0 WHERE - - col0 / col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1062
SELECT + CAST( col0 AS SIGNED ) - + col1 * + - 8 + col1 AS col1 FROM tab1
----
130
177
514

skipif mysql # not compatible
query I rowsort label-1062
SELECT + CAST ( col0 AS INTEGER ) - + col1 * + - 8 + col1 AS col1 FROM tab1
----
130
177
514

query I rowsort
SELECT ALL 47 + - col2 AS col1 FROM tab1
----
-12
-21
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT ALL + 46 DIV + col1 - 3 AS col1 FROM tab0
----
-1
-3
43

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + 46 / + col1 - 3 AS col1 FROM tab0
----
-1
-3
43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 < NULL
----

query I rowsort
SELECT + 66 - - + col0 * - - col1 FROM tab0
----
1281
163
1893

query I rowsort
SELECT col1 * col1 - - - col0 AS col0 FROM tab2
----
2555
4414
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT - MIN( ALL - ( + col1 ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1068
SELECT - MIN ( ALL - ( + col1 ) ) AS col0 FROM tab0
----
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 93 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col0 ) col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT DISTINCT - ( + COUNT( * ) ) * - 16 AS col2 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT - ( + COUNT ( * ) ) * - 16 AS col2 FROM tab2 cor0
----
48

query II rowsort
SELECT + col1 * 22 * + col2 AS col2, + col1 * - col0 FROM tab2
----
25806
-2346
67760
-4928
85492
-5025

query I rowsort
SELECT + - 83 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT ALL - 81 AS col2 FROM tab1 AS cor0 WHERE 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT - MAX( ALL + + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1075
SELECT - MAX ( ALL + + col1 ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - col2 * col1
----

query I rowsort
SELECT - 7 * 40 FROM tab1 AS cor0
----
-280
-280
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----
0

query II rowsort
SELECT DISTINCT + ( + col2 ) - - col0 AS col0, + col2 * + col0 FROM tab1 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 * + 75 col1 FROM tab2
----
-231000
-291450
-87975

query I rowsort
SELECT 65 + + - col2 AS col1 FROM tab0 WHERE NOT - 59 * + col2 * + - col0 + + col0 + col1 + col0 + + - col0 * - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 + col2 <= - col0 + + col0 * + 54
----

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT - 39 * - + col1 AS col2 FROM tab0
----
3159
39
819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1085
SELECT - CAST( - - 19 AS SIGNED ) + + col0 * + col0 * col0 AS col0 FROM tab1
----
132632
614106
753552

skipif mysql # not compatible
query I rowsort label-1085
SELECT - CAST ( - - 19 AS INTEGER ) + + col0 * + col0 * col0 AS col0 FROM tab1
----
132632
614106
753552

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1086
SELECT * FROM tab2 AS cor0 WHERE + CAST( + col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1086
SELECT * FROM tab2 AS cor0 WHERE + CAST ( + col2 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1087
SELECT - 73 + + - col1 + 80 * col1 * ( - + CAST( 14 AS SIGNED ) ) + - - col0 + ( - - col0 ) FROM tab1 cor0
----
-15665
-52578
-5508

skipif mysql # not compatible
query I rowsort label-1087
SELECT - 73 + + - col1 + 80 * col1 * ( - + CAST ( 14 AS INTEGER ) ) + - - col0 + ( - - col0 ) FROM tab1 cor0
----
-15665
-52578
-5508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1088
SELECT COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND CAST( NULL AS SIGNED ) / - col1
----
0

skipif mysql # not compatible
query I rowsort label-1088
SELECT COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 ) AND CAST ( NULL AS INTEGER ) / - col1
----
0

query II rowsort
SELECT - 35, - 29 AS col2 FROM tab0 AS cor0
----
-35
-29
-35
-29
-35
-29

query I rowsort
SELECT ( + 47 ) AS col2 FROM tab2 cor0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1091
SELECT ( + 85 ), - MAX( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-1091
SELECT ( + 85 ), - MAX ( CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
85
NULL

query I rowsort
SELECT - + 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1093
SELECT CAST( - AVG ( + + col2 ) AS SIGNED ) AS col1 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-1093
SELECT CAST ( - AVG ( + + col2 ) AS INTEGER ) AS col1 FROM tab0
----
-52

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE 46 IS NULL
----

query I rowsort
SELECT DISTINCT 59 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 10 ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT DISTINCT 22 - - COUNT( * ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT 22 - - COUNT ( * ) FROM tab1 AS cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 * - col2 col0 FROM tab0 AS cor0
----
-4183
-8811
-890

query I rowsort
SELECT ALL - 40 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
-2026
-3395
-3593

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 57 > NULL
----

query I rowsort
SELECT - - ( + 33 ) + - col1 AS col0 FROM tab0 cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + + ( + col1 ) ) * + col0 AS col1 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1103
SELECT + 76 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT + 76 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + col2 * + ( + - 89 ) AS col2 FROM tab0
----
-4102
-869
-8810

query I rowsort
SELECT DISTINCT col2 * + 36 AS col0 FROM tab0
----
1692
3564
360

query II rowsort
SELECT ALL 63 AS col1, col1 FROM tab2 AS cor0
----
63
51
63
67
63
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 55 * + - col1 * - + col2 col1, col1 * - col2 FROM tab1 AS cor0
----
16225
-295
175780
-3196
73920
-1344

query I rowsort
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT 19 * - - 85 * - - 6 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1109
SELECT ALL col0 FROM tab1 WHERE NULL <= CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL col0 FROM tab1 WHERE NULL <= CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT col2 * col2 + 91 FROM tab1
----
3572
4715
9307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col1 FROM tab1
----
-19
-19
-19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 IN ( col2 * 39 + + 28 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT + COUNT( - 32 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1113
SELECT + COUNT ( - 32 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT 90 IS NULL
----
51
85
91

query I rowsort
SELECT + 78 * col1 FROM tab1 WHERE NOT col1 * + col0 = col1 / col1
----
1092
3666
390

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 61 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * - 73 FROM tab0 WHERE NULL < 16
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1118
SELECT MIN( - CAST( - col0 AS SIGNED ) ) * - 63 FROM tab0 WHERE - col2 > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT MIN ( - CAST ( - col0 AS INTEGER ) ) * - 63 FROM tab0 WHERE - col2 > col0
----
NULL

query I rowsort
SELECT ALL 57 AS col2 FROM tab0 WHERE NOT + col1 >= ( 98 )
----
57
57
57

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 46 ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1121
SELECT col1 * + CAST( + 58 * col1 AS SIGNED ) FROM tab2
----
150858
260362
343882

skipif mysql # not compatible
query I rowsort label-1121
SELECT col1 * + CAST ( + 58 * col1 AS INTEGER ) FROM tab2
----
150858
260362
343882

query I rowsort
SELECT 93 * - col1 AS col1 FROM tab0
----
-1953
-7533
-93

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT DISTINCT MIN( 58 ) * - 2 FROM tab1
----
-116

skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT MIN ( 58 ) * - 2 FROM tab1
----
-116

query I rowsort
SELECT + col2 + 19 AS col0 FROM tab1
----
115
78
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 88 col1 FROM tab0
----
4136
8712
880

query I rowsort
SELECT DISTINCT + 23 + 63 FROM tab1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1128
SELECT DISTINCT CAST( + AVG ( col1 ) AS SIGNED ) + COUNT( + 27 ) AS col0 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT CAST ( + AVG ( col1 ) AS INTEGER ) + COUNT ( + 27 ) AS col0 FROM tab1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1129
SELECT DISTINCT 1 + AVG ( + 50 + + CAST( NULL AS SIGNED ) * col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT 1 + AVG ( + 50 + + CAST ( NULL AS INTEGER ) * col0 ) FROM tab1
----
NULL

query I rowsort
SELECT col0 * 22 AS col2 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
1012
1408
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL MAX( DISTINCT - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL MAX ( DISTINCT - col2 ) FROM tab0
----
-10

query I rowsort
SELECT DISTINCT - 48 FROM tab0 WHERE NOT - 13 >= ( + col0 / - col2 )
----
-48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 61 ) = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - - col1 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 51 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + 36 * - 6 + - 61 AS col0 FROM tab2
----
-277
-277
-277

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
3

query I rowsort
SELECT - col1 + - 58 FROM tab1
----
-105
-63
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT col1 DIV - col2 + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1140
SELECT col1 / - col2 + col1 FROM tab1
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE - 17 * + 75 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - ( + 30 ) * - col0 FROM tab2 AS cor0
----
-1380
-1920
-2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1143
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( 26 ) NOT IN ( CAST( col1 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-1143
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( 26 ) NOT IN ( CAST ( col1 AS INTEGER ) )
----
3

query I rowsort
SELECT + col2 * 30 AS col1 FROM tab1 AS cor0
----
1770
2040
2880

query I rowsort
SELECT DISTINCT + col1 * 71 AS col2 FROM tab2 AS cor0
----
3621
4757
5467

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 50 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT - SUM( ALL col0 ) AS col0 FROM tab2 AS cor0 WHERE - 52 NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1147
SELECT - SUM ( ALL col0 ) AS col0 FROM tab2 AS cor0 WHERE - 52 NOT BETWEEN NULL AND ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE 84 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL + MAX( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE ( col0 / - col1 + 24 ) <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL + MAX ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE ( col0 / - col1 + 24 ) <> ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1150
SELECT col0 / + CAST( + 92 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-1150
SELECT col0 / + CAST ( + 92 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1151
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 99 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND 42
----

query I rowsort
SELECT DISTINCT + 24 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND + 35
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col0 / 21 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT - COUNT( ALL - ( 24 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1156
SELECT - COUNT ( ALL - ( 24 ) ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT 44 * + col1 IS NULL OR col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1158
SELECT COUNT( * ) DIV + 28 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1158
SELECT COUNT ( * ) / + 28 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT + COUNT( DISTINCT + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1159
SELECT + COUNT ( DISTINCT + col1 ) FROM tab1
----
3

query I rowsort
SELECT col0 * col1 FROM tab0 WHERE NOT NULL BETWEEN - 59 AND + col0 * 5
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col2 FROM tab0 cor0
----
60
60
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 * col0 )
----

query I rowsort
SELECT DISTINCT - - ( - 65 ) * - col2 AS col0 FROM tab1 AS cor0
----
3835
4420
6240

query I rowsort
SELECT ALL + col1 * - ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT - col1 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT DISTINCT - 63 + + 87 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
720

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT - 63 + + 87 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT DISTINCT + COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT + COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT DISTINCT - - COUNT( * ) * - COUNT( * ) col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1169
SELECT DISTINCT - - COUNT ( * ) * - COUNT ( * ) col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL - + 44 + + + col2 + + ( 45 ) FROM tab0 cor0
----
100
11
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1171
SELECT DISTINCT col1 DIV - col0 + + col2 col2 FROM tab0 AS cor0
----
10
42
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1171
SELECT DISTINCT col1 / - col0 + + col2 col2 FROM tab0 AS cor0
----
10
42
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1172
SELECT - COUNT( * ) DIV - - 17 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1172
SELECT - COUNT ( * ) / - - 17 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 5 BETWEEN - col2 AND ( col1 / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 ) = 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1175
SELECT ALL - col1 DIV - 18 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL - col1 / - 18 FROM tab2 AS cor0
----
2
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT + - SUM( DISTINCT - 24 ) + COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT + - SUM ( DISTINCT - 24 ) + COUNT ( * ) FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT - MIN( + 8 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-1177
SELECT - MIN ( + 8 ) FROM tab2 AS cor0
----
-8

query I rowsort
SELECT ALL + ( - col0 ) * col0 FROM tab0 AS cor0 WHERE NOT - 17 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - ( - - col0 ) / - col1 IS NULL
----

query II rowsort
SELECT ALL + 19 + + col2, col2 FROM tab0
----
118
99
29
10
66
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1181
SELECT col2 + col2 + - CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
141
33
45

skipif mysql # not compatible
query I rowsort label-1181
SELECT col2 + col2 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
141
33
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT DISTINCT 16 * SUM( + 59 ) + - 58 FROM tab2
----
2774

skipif mysql # not compatible
query I rowsort label-1182
SELECT DISTINCT 16 * SUM ( + 59 ) + - 58 FROM tab2
----
2774

query I rowsort
SELECT ALL + col0 * + - ( - col2 ) AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT 85 * - 9 FROM tab1
----
-765

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 58 * - - 51 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 64 - col1 FROM tab0 AS cor0
----
-17
43
63

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + + col1 ) - - ( - col2 ) / + 76 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 61 NOT IN ( - 70 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 - - - 0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - ( 28 ) FROM tab0 AS cor0
----
-28

query II rowsort
SELECT col2, - col0 FROM tab2 cor0
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT - MAX( DISTINCT + - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1192
SELECT - MAX ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1193
SELECT * FROM tab2 AS cor0 WHERE NOT 74 * - col1 + 24 + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) IN ( 2 * col2 )
----

skipif mysql # not compatible
query III rowsort label-1193
SELECT * FROM tab2 AS cor0 WHERE NOT 74 * - col1 + 24 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) IN ( 2 * col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1194
SELECT - + col2 * + + ( + 11 ) / - - CAST( NULL AS DECIMAL ) + + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT - + col2 * + + ( + 11 ) / - - CAST ( NULL AS REAL ) + + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT ALL + SUM( col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL + SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
121

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 - 5 <> ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col0 FROM tab1 AS cor0
----
10
10
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - 18 FROM tab2 cor0
----
-18
-18
-18

query I rowsort
SELECT - 3 * + + col0 * - + col2 AS col2 FROM tab1
----
14688
15045
18564

onlyif mysql # aggregate syntax: 
query II rowsort label-1202
SELECT DISTINCT - 30 col0, - COUNT( * ) col2 FROM tab2, tab2 AS cor0
----
-30
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1202
SELECT DISTINCT - 30 col0, - COUNT ( * ) col2 FROM tab2, tab2 AS cor0
----
-30
-9

query I rowsort
SELECT DISTINCT + 61 FROM tab0 WHERE ( + - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + - col1 * - 64 BETWEEN col2 AND 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1205
SELECT ALL - col0 DIV 39 * + 73 FROM tab1 AS cor0
----
-146
-146
-73

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL - col0 / 39 * + 73 FROM tab1 AS cor0
----
-146
-146
-73

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT BETWEEN ( - 78 ) AND ( - col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + 19 * - 22 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL - SUM( + - 98 ) * + COUNT( * ) FROM tab0 AS cor0
----
882

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL - SUM ( + - 98 ) * + COUNT ( * ) FROM tab0 AS cor0
----
882

query I rowsort
SELECT + col1 * + 53 + - + 65 FROM tab1 AS cor0
----
200
2426
677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1211
SELECT DISTINCT + - CAST( - 60 AS SIGNED ) col2 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1211
SELECT DISTINCT + - CAST ( - 60 AS INTEGER ) col2 FROM tab2 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 37 + + col0 AS col0, + col0 col0 FROM tab1 AS cor0
----
14
51
48
85
54
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL - 7 + + + ( + 89 ) * - SUM( DISTINCT - 39 ) + - - 67 col0 FROM tab0 AS cor0
----
3531

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1213
SELECT ALL - 7 + + + ( + 89 ) * - SUM ( DISTINCT - 39 ) + - - 67 col0 FROM tab0 AS cor0
----
3531

query I rowsort
SELECT + col2 * + + 23 + ( - 65 ) - + 32 AS col0 FROM tab2 AS cor0
----
1237
432
823

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT DISTINCT 37 + - COUNT( * ) * SUM( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-272

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT 37 + - COUNT ( * ) * SUM ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1216
SELECT DISTINCT - - 78 DIV - COUNT( ALL + col0 ) FROM tab0 cor0 WHERE 45 NOT IN ( - col2 + - col0, - col1 )
----
-26

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT - - 78 / - COUNT ( ALL + col0 ) FROM tab0 cor0 WHERE 45 NOT IN ( - col2 + - col0, - col1 )
----
-26

query III rowsort
SELECT * FROM tab1 WHERE - 59 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1218
SELECT - CAST( ( + + col2 ) AS SIGNED ) + - + col2 FROM tab1 WHERE col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-1218
SELECT - CAST ( ( + + col2 ) AS INTEGER ) + - + col2 FROM tab1 WHERE col2 >= NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE - 56 IN ( + col1, + 6 )
----

query II rowsort
SELECT col0 AS col1, col0 * - col2 AS col0 FROM tab2
----
46
-1058
64
-2560
75
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1221
SELECT + MIN( + 43 ) DIV + + 5, + SUM( ALL - 67 ) * - 76 AS col0 FROM tab1
----
8
15276

skipif mysql # not compatible
query II rowsort label-1221
SELECT + MIN ( + 43 ) / + + 5, + SUM ( ALL - 67 ) * - 76 AS col0 FROM tab1
----
8
15276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 - - 81 col0 FROM tab0
----
127
127
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1223
SELECT ALL - ( - col0 ) + - - CAST( - - 74 AS SIGNED ) FROM tab2 AS cor0
----
120
138
149

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL - ( - col0 ) + - - CAST ( - - 74 AS INTEGER ) FROM tab2 AS cor0
----
120
138
149

query I rowsort
SELECT - 85 + - + 45 * + 55 * 78 AS col2 FROM tab0 AS cor0
----
-193135
-193135
-193135

onlyif mysql # DIV for integer division: 
query I rowsort label-1225
SELECT DISTINCT - 15 DIV - col1 + - col1 + + col2 * + - col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT - 15 / - col1 + - col1 + + col2 * + - col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT - 6 * + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT - 6 * + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1227
SELECT DISTINCT 13 DIV - ( - + col0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT 13 / - ( - + col0 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 33 FROM tab0 cor0 WHERE + col1 NOT IN ( + - 14 * + 44 * + col0 * - col0 + col0 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT DISTINCT - MIN( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL <> - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT - MIN ( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL <> - 32
----
NULL

query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1231
SELECT DISTINCT CAST( - ( - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT CAST ( - ( - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1232
SELECT DISTINCT + + col2 * + + 40 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT + + col2 * + + 40 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL ( + - MIN( - col0 ) ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL ( + - MIN ( - col0 ) ) AS col0 FROM tab0
----
97

query I rowsort
SELECT ALL ( - 81 ) FROM tab2
----
-81
-81
-81

query I rowsort
SELECT col1 * + - col1 AS col0 FROM tab2 WHERE NOT ( 12 * - col2 + + + col0 ) IN ( - col1 * + 5 )
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT + - COUNT( ALL + col0 ) col1 FROM tab2 WHERE NOT + - 52 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1236
SELECT + - COUNT ( ALL + col0 ) col1 FROM tab2 WHERE NOT + - 52 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT ALL - COUNT( ALL - + 92 ) * - 18 * + COUNT( * ) col2 FROM tab1
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1237
SELECT ALL - COUNT ( ALL - + 92 ) * - 18 * + COUNT ( * ) col2 FROM tab1
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1238
SELECT ALL - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 37 IS NULL
----

query I rowsort
SELECT ALL - - ( + col1 ) AS col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT col1 + - col2 + - - col1 FROM tab2 AS cor0
----
114
76
79

query I rowsort
SELECT DISTINCT ( 73 ) * col1 AS col2 FROM tab1
----
1022
3431
365

query II rowsort
SELECT col2, col2 AS col1 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1244
SELECT ALL - 29, COUNT( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
-29
3

skipif mysql # not compatible
query II rowsort label-1244
SELECT ALL - 29, COUNT ( DISTINCT - col2 ) AS col1 FROM tab1 cor0
----
-29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT DISTINCT + COUNT( * ) - - 36 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
39

skipif mysql # not compatible
query I rowsort label-1245
SELECT DISTINCT + COUNT ( * ) - - 36 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
39

query I rowsort
SELECT + col1 + + col0 + - + col1 + + - col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1247
SELECT - CAST( - + col1 AS SIGNED ) * - col2 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
-1293
-210
-3105

skipif mysql # not compatible
query I rowsort label-1247
SELECT - CAST ( - + col1 AS INTEGER ) * - col2 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1248
SELECT CAST( NULL AS SIGNED ) + + 14 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1248
SELECT CAST ( NULL AS INTEGER ) + + 14 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT - COUNT( * ) + 65 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-1249
SELECT - COUNT ( * ) + 65 FROM tab2
----
62

query I rowsort
SELECT - 19 + + 14 AS col1 FROM tab2
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT + + 48 * 47 FROM tab0 AS cor0
----
2256

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1253
SELECT - col1 * - 56 FROM tab2 cor0 WHERE NULL = - CAST( - - 85 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1253
SELECT - col1 * - 56 FROM tab2 cor0 WHERE NULL = - CAST ( - - 85 AS REAL )
----

query II rowsort
SELECT - 59 - - col0 AS col1, 13 AS col0 FROM tab1 AS cor0
----
-8
13
26
13
32
13

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * 89 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( - 23, - 59, - col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1257
SELECT DISTINCT - 91 AS col0, COUNT( * ) FROM tab0 AS cor0
----
-91
3

skipif mysql # not compatible
query II rowsort label-1257
SELECT DISTINCT - 91 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-91
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1258
SELECT DISTINCT + 61 AS col1, 17 * + SUM( ALL - + col0 ) AS col2 FROM tab2 AS cor0
----
61
-3145

skipif mysql # not compatible
query II rowsort label-1258
SELECT DISTINCT + 61 AS col1, 17 * + SUM ( ALL - + col0 ) AS col2 FROM tab2 AS cor0
----
61
-3145

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT - - MAX( DISTINCT + col1 ) col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1259
SELECT - - MAX ( DISTINCT + col1 ) col2 FROM tab1 AS cor0
----
47

query II rowsort
SELECT + 82 AS col0, col1 AS col1 FROM tab0 cor0
----
82
1
82
21
82
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 2 NOT IN ( - 52, - col0 * - - 96 * 11 + - col1 * 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND - - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 29 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1264
SELECT DISTINCT CAST( 97 AS SIGNED ) AS col2 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT CAST ( 97 AS INTEGER ) AS col2 FROM tab1
----
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - 15 AND + ( - - col2 ) - col2
----

query I rowsort
SELECT DISTINCT col1 + - 64 + + + col2 + + col2 + + + 76 FROM tab2 cor0
----
109
169
195

query I rowsort
SELECT 79 * col0 AS col2 FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query II rowsort label-1269
SELECT + 2 AS col1, - ( + COUNT( * ) ) + - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
2
-18

skipif mysql # not compatible
query II rowsort label-1269
SELECT + 2 AS col1, - ( + COUNT ( * ) ) + - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
2
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT DISTINCT - + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT - + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1271
SELECT col1 + - + CAST( NULL AS SIGNED ) + col1 + + col2 + - 67 / col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1271
SELECT col1 + - + CAST ( NULL AS INTEGER ) + col1 + + col2 + - 67 / col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 39 ) FROM tab0 AS cor0 WHERE col2 * + col0 + 91 <= - - 58
----

query I rowsort
SELECT ALL + 33 * + 2 + - col2 FROM tab1 AS cor0
----
-2
-30
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col1 FROM tab1 cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * + col2 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1276
SELECT ALL + SUM( + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL + SUM ( + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - 91 AS col1, - col2 FROM tab2 AS cor0
----
-91
-23
-91
-40
-91
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1278
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + + col1 + + 28 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT - CAST ( NULL AS REAL ) * + + col1 + + 28 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT - SUM( DISTINCT - + 41 ) * - MIN( ALL + 12 ) FROM tab1
----
-492

skipif mysql # not compatible
query I rowsort label-1279
SELECT - SUM ( DISTINCT - + 41 ) * - MIN ( ALL + 12 ) FROM tab1
----
-492

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col2, 54, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1281
SELECT ALL 47 * + + col1 * CAST( NULL AS SIGNED ) + - 13 + col1 * - ( col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL 47 * + + col1 * CAST ( NULL AS INTEGER ) + - 13 + col1 * - ( col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 13 + col0 FROM tab1
----
104
64
98

query III rowsort
SELECT * FROM tab2 WHERE + 2 IS NULL
----

query I rowsort
SELECT ALL - 74 - - col0 FROM tab2
----
-10
-28
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1285
SELECT COUNT( * ) DIV - - 65 - - ( + COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1285
SELECT COUNT ( * ) / - - 65 - - ( + COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT ALL 49 DIV - + col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL 49 / - + col0 FROM tab0
----
-3
0
0

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1288
SELECT + 69 * col2 DIV col2 FROM tab0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-1288
SELECT + 69 * col2 / col2 FROM tab0
----
69
69
69

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * 34 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1290
SELECT + CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1290
SELECT + CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 = - + col1 / - - col1 + + 62
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT DISTINCT + 55 DIV - 88 * + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT + 55 / - 88 * + COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - + col1 * + ( col1 ) FROM tab2 cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query II rowsort label-1294
SELECT DISTINCT + 45 AS col0, COUNT( * ) AS col0 FROM tab0
----
45
3

skipif mysql # not compatible
query II rowsort label-1294
SELECT DISTINCT + 45 AS col0, COUNT ( * ) AS col0 FROM tab0
----
45
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1295
SELECT + CAST( NULL AS DECIMAL ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1295
SELECT + CAST ( NULL AS REAL ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * col0 col1 FROM tab2
----
414
576
675

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT ALL + COUNT( * ) * + 54 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL + COUNT ( * ) * + 54 FROM tab0
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * - col2 col0 FROM tab2
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT DISTINCT COUNT( DISTINCT + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT COUNT ( DISTINCT + col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL 26 * + 86 * - col0 * col1 * + col1 AS col0 FROM tab0
----
-216892
-220055940
-85788612

query II rowsort
SELECT 17 + - 64 + - col1 AS col0, - 4 FROM tab1 AS cor0
----
-52
-4
-61
-4
-94
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1303
SELECT - + 86 AS col2, CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
-86
NULL
-86
NULL
-86
NULL

skipif mysql # not compatible
query II rowsort label-1303
SELECT - + 86 AS col2, CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
-86
NULL
-86
NULL
-86
NULL

query I rowsort
SELECT DISTINCT - + col0 + 97 AS col1 FROM tab1 AS cor0
----
12
46
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 37 < 94 + + ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT ALL + ( COUNT( * ) ) * COUNT( DISTINCT + 72 ) + - - COUNT( - 19 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
18

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL + ( COUNT ( * ) ) * COUNT ( DISTINCT + 72 ) + - - COUNT ( - 19 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
18

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 54 * 52 AND 70
----

query I rowsort
SELECT - ( + col2 ) - + - 12 AS col2 FROM tab0 AS cor0
----
-35
-87
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT + + 46 - - COUNT( * ) + - 70 + COUNT( * ) + - + MIN( DISTINCT col1 ) * - 16 AS col1 FROM tab2 AS cor0
----
798

skipif mysql # not compatible
query I rowsort label-1309
SELECT + + 46 - - COUNT ( * ) + - 70 + COUNT ( * ) + - + MIN ( DISTINCT col1 ) * - 16 AS col1 FROM tab2 AS cor0
----
798

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 14 < - 94
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col2 * + col1 + - - 16 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT DISTINCT + MIN( ALL + - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT + MIN ( ALL + - col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + col2 + - 5 AS col0 FROM tab1 cor0
----
54
63
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1314
SELECT 52 DIV ( SUM( DISTINCT col2 ) ) + + 74 AS col0 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-1314
SELECT 52 / ( SUM ( DISTINCT col2 ) ) + + 74 AS col0 FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT - COUNT( * ) + - 76 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-1315
SELECT - COUNT ( * ) + - 76 FROM tab1
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 72 col0 FROM tab2
----
123
139
149

query I rowsort
SELECT DISTINCT col2 - + - 68 FROM tab2
----
108
126
91

query I rowsort
SELECT ALL - + col2 FROM tab2 WHERE + 83 + + col0 IS NULL
----

query I rowsort
SELECT - col0 * - 89 + - col0 AS col2 FROM tab0 WHERE NOT 7 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 col1 FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT - - 62 * MAX( + 84 ) AS col0 FROM tab0 AS cor0
----
5208

skipif mysql # not compatible
query I rowsort label-1322
SELECT - - 62 * MAX ( + 84 ) AS col0 FROM tab0 AS cor0
----
5208

query I rowsort
SELECT DISTINCT + 5 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
5

query I rowsort
SELECT DISTINCT - ( - ( + 56 ) ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1325
SELECT - + 73 AS col2 FROM tab0 WHERE NOT + - ( + 64 ) + - - col0 * + - CAST( + - 27 AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1325
SELECT - + 73 AS col2 FROM tab0 WHERE NOT + - ( + 64 ) + - - col0 * + - CAST ( + - 27 AS REAL ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT DISTINCT + col1 DIV - 65 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT + col1 / - 65 AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT + - COUNT( * ) + + MAX( ALL + col1 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-1327
SELECT + - COUNT ( * ) + + MAX ( ALL + col1 ) FROM tab1 AS cor0
----
44

query I rowsort
SELECT DISTINCT + - col2 + 54 FROM tab2 cor0
----
-4
14
31

query I rowsort
SELECT DISTINCT + col2 * + 39 AS col0 FROM tab1
----
2301
2652
3744

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1330
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - + col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT CAST ( NULL AS REAL ) + - + col0 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1331
SELECT ALL col2 * - CAST( NULL AS DECIMAL ) AS col1, - 42 FROM tab2
----
NULL
-42
NULL
-42
NULL
-42

skipif mysql # not compatible
query II rowsort label-1331
SELECT ALL col2 * - CAST ( NULL AS REAL ) AS col1, - 42 FROM tab2
----
NULL
-42
NULL
-42
NULL
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1332
SELECT - CAST( NULL AS DECIMAL ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT - CAST ( NULL AS REAL ) / + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + 6 * COUNT( * ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1333
SELECT + 6 * COUNT ( * ) FROM tab1 AS cor0
----
18

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 * col2 * - + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * 73 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1336
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NULL <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NULL <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT 93 + MAX( DISTINCT + col2 ) col2 FROM tab2
----
151

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1337
SELECT 93 + MAX ( DISTINCT + col2 ) col2 FROM tab2
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT - - 8 * COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
72

skipif mysql # not compatible
query I rowsort label-1338
SELECT - - 8 * COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT ALL + col2 * + 7 - col0 * 73 DIV - - col0 + col2 FROM tab1
----
399
471
695

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL + col2 * + 7 - col0 * 73 / - - col0 + col2 FROM tab1
----
399
471
695

query I rowsort
SELECT ALL 67 * + + col0 * col2 - col2 FROM tab0
----
47188
58280
643302

onlyif mysql # aggregate syntax: 
query II rowsort label-1341
SELECT DISTINCT - - COUNT( * ) AS col1, 62 AS col2 FROM tab0 AS cor0
----
3
62

skipif mysql # not compatible
query II rowsort label-1341
SELECT DISTINCT - - COUNT ( * ) AS col1, 62 AS col2 FROM tab0 AS cor0
----
3
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL - 64 + - - COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL - 64 + - - COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1343
SELECT ALL - + CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL - + CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + 30 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = + col1
----

query I rowsort
SELECT DISTINCT ( 62 ) + + + col0 FROM tab1 AS cor0
----
113
147
153

query I rowsort
SELECT ALL - ( - 18 ) FROM tab2 AS cor0
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT ALL - + col1 * - 33 + CAST( + + col1 AS SIGNED ) + + 85 * + col2 * + ( - 76 ) AS col0 FROM tab1 AS cor0
----
-380970
-437682
-619684

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL - + col1 * - 33 + CAST ( + + col1 AS INTEGER ) + + 85 * + col2 * + ( - 76 ) AS col0 FROM tab1 AS cor0
----
-380970
-437682
-619684

query I rowsort
SELECT - 51 - 7 FROM tab1 AS cor0
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1349
SELECT CAST( - + col1 AS SIGNED ) - + - col2 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-1349
SELECT CAST ( - + col1 AS INTEGER ) - + - col2 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT DISTINCT SUM( DISTINCT + - col1 ) col0 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1350
SELECT DISTINCT SUM ( DISTINCT + - col1 ) col0 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab1 WHERE NOT + 44 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1352
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 14 * col2 FROM tab2
----
322
560
812

query I rowsort
SELECT + ( + 68 ) AS col1 FROM tab0
----
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 43 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - + col1 ) AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT - 8 * 23 + + - 58 AS col0 FROM tab2
----
-242

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT ALL 28 * - - COUNT( * ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL 28 * - - COUNT ( * ) FROM tab1
----
84

query I rowsort
SELECT - col0 + - 62 * - 22 AS col0 FROM tab2
----
1289
1300
1318

query III rowsort
SELECT * FROM tab0 WHERE - 48 / col2 / - + 88 + + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT ALL - COUNT( * ) * - + 24 AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL - COUNT ( * ) * - + 24 AS col2 FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1363
SELECT ALL COUNT( * ) AS col1, - COUNT( * ) AS col2 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-1363
SELECT ALL COUNT ( * ) AS col1, - COUNT ( * ) AS col2 FROM tab1
----
3
-3

query III rowsort
SELECT * FROM tab1 WHERE + - col0 + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE NOT - col2 * - 19 + + col2 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1367
SELECT ALL COUNT( * ), + 98 col2 FROM tab2 AS cor0
----
3
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1367
SELECT ALL COUNT ( * ), + 98 col2 FROM tab2 AS cor0
----
3
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT + - COUNT( * ) - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-1368
SELECT + - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1369
SELECT + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT DISTINCT COUNT( * ) - + - COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT COUNT ( * ) - + - COUNT ( * ) AS col2 FROM tab1
----
6

query II rowsort
SELECT + col2 - col0 AS col0, - col1 AS col0 FROM tab0
----
-77
-21
2
-1
32
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT DISTINCT - + ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT - + ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL + - MAX( - - 11 ) col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 26
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1373
SELECT ALL + - MAX ( - - 11 ) col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 26
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 76 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1375
SELECT - + 11 DIV + - 49 - - col2 + - col2 + + + col0, - col0 AS col2 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-1375
SELECT - + 11 / + - 49 - - col2 + - col2 + + + col0, - col0 AS col2 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT + 96 * - COUNT( * ) + 91 AS col2 FROM tab2 AS cor0
----
-197

skipif mysql # not compatible
query I rowsort label-1376
SELECT + 96 * - COUNT ( * ) + 91 AS col2 FROM tab2 AS cor0
----
-197

query I rowsort
SELECT - col2 * col1 * ( - - col0 ) AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT COUNT( ALL + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1378
SELECT COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT 0 * - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1379
SELECT 0 * - + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + - col2 * + ( + 57 ) * - col2 + - 43 + - col0 AS col2 FROM tab2 AS cor0
----
191630
30064
91093

query II rowsort
SELECT + col2, - 23 FROM tab1 AS cor0
----
59
-23
68
-23
96
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT DISTINCT + MAX( ALL - col0 ) col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1382
SELECT DISTINCT + MAX ( ALL - col0 ) col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + + - col2 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT + SUM( ALL + 12 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
108

skipif mysql # not compatible
query I rowsort label-1385
SELECT + SUM ( ALL + 12 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
108

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 54 < - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + + col0 IS NULL AND NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > 31
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 30 + ( - col2 ) AND + - 59 / - - col1 + col1 + - + 74 * + + col1
----

query III rowsort
SELECT * FROM tab0 WHERE col2 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT + col2 * - col1 * col0 DIV + + col0 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-1392
SELECT + col2 * - col1 * col0 / + + col0 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT DISTINCT 31 + - + col0 * - - 68 + - 79 + 13 + + ( 40 ) * col0 * - col1 * col0, col2 * + 77 AS col1 FROM tab2 AS cor0
----
-12620067
3080
-15080135
4466
-4319803
1771

query I rowsort
SELECT ALL col0 + + + col2 * - - 15 FROM tab0
----
1582
237
720

query I rowsort
SELECT - ( + - col0 ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1396
SELECT DISTINCT 43 - - + 48, + CAST( NULL AS SIGNED ) / + col1 col0 FROM tab2
----
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1396
SELECT DISTINCT 43 - - + 48, + CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab2
----
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 54, - col2 + - col0 col1 FROM tab1 AS cor0
----
54
-144
54
-147
54
-159

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + col2 IS NOT NULL )
----

query I rowsort
SELECT ALL - ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL IN ( ( - col2 ) - - col1, col2, col2 )
----

query I rowsort
SELECT ALL + ( - - col0 ) * col0 AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1401
SELECT DISTINCT - COUNT( * ) DIV - + 7 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1401
SELECT DISTINCT - COUNT ( * ) / - + 7 col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT DISTINCT - SUM( - ( + col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT - SUM ( - ( + col2 ) ) FROM tab1
----
223

onlyif mysql # DIV for integer division: 
query II rowsort label-1403
SELECT ( 20 ), + col2 + + 47 DIV - col1 AS col0 FROM tab1
----
20
50
20
67
20
93

skipif mysql # not compatible
query II rowsort label-1403
SELECT ( 20 ), + col2 + + 47 / - col1 AS col0 FROM tab1
----
20
50
20
67
20
93

query I rowsort
SELECT ALL 1 * + 41 * - + col2 FROM tab2
----
-1640
-2378
-943

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1405
SELECT MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 21 BETWEEN - - col1 * - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1407
SELECT ALL CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, COUNT( * ) * + 32 AS col0 FROM tab1 cor0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-1407
SELECT ALL CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, COUNT ( * ) * + 32 AS col0 FROM tab1 cor0
----
NULL
96

query I rowsort
SELECT - 99 * - 23 + 7 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 75bc8a46bb0f16a044da419c2e5fa0be

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT ( MAX( + - 54 ) ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-1409
SELECT ( MAX ( + - 54 ) ) FROM tab2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1410
SELECT CAST( NULL AS SIGNED ) + + + 0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1410
SELECT CAST ( NULL AS INTEGER ) + + + 0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + - col0 * - col1 + + 88 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT DISTINCT + + COUNT( - 28 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT + + COUNT ( - 28 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1413
SELECT CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1413
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT DISTINCT + COUNT( DISTINCT - col2 ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1414
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT col0 * - + col0 + - + col0 AS col1 FROM tab0
----
-240
-7656
-9506

query I rowsort
SELECT 93 + + col1 - + - 99 * ( + 14 ) FROM tab0
----
1480
1500
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT - 67 + + 78 * + 78 * 1 + - COUNT( * ) AS col2 FROM tab1
----
6014

skipif mysql # not compatible
query I rowsort label-1417
SELECT - 67 + + 78 * + 78 * 1 + - COUNT ( * ) AS col2 FROM tab1
----
6014

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT + MIN( + col1 ) + + + 57 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-1418
SELECT + MIN ( + col1 ) + + + 57 FROM tab0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT COUNT( * ) + - 32 + - - 7 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-1419
SELECT COUNT ( * ) + - 32 + - - 7 FROM tab2
----
-22

query I rowsort
SELECT col0 * - 93 + + - col0 AS col2 FROM tab0
----
-1410
-8178
-9118

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL COUNT( * ) + COUNT( * ) + - + 2 AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL COUNT ( * ) + COUNT ( * ) + - + 2 AS col2 FROM tab0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1422
SELECT - 53 + - 50 + + 79 + + 85 * + + col0 * - CAST( + - 81 AS SIGNED ) * + col1 AS col1 FROM tab1
----
2926101
29447121
4915866

skipif mysql # not compatible
query I rowsort label-1422
SELECT - 53 + - 50 + + 79 + + 85 * + + col0 * - CAST ( + - 81 AS INTEGER ) * + col1 AS col1 FROM tab1
----
2926101
29447121
4915866

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1423
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT NULL BETWEEN + 63 * + - 13 + + - col2 + - + 54 - CAST( - col1 AS SIGNED ) AND - + col0 - + col1
----

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT NULL BETWEEN + 63 * + - 13 + + - col2 + - + 54 - CAST ( - col1 AS INTEGER ) AND - + col0 - + col1
----

query I rowsort
SELECT + 1 + - - col2 FROM tab2
----
24
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT - - ( + 46 ) / - + 79 * - AVG ( ALL col0 ) * - - 17 * + + COUNT( - + col2 ) - + 73 FROM tab0 WHERE NULL <= - - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT - - ( + 46 ) / - + 79 * - AVG ( ALL col0 ) * - - 17 * + + COUNT ( - + col2 ) - + 73 FROM tab0 WHERE NULL <= - - 22
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - ( + col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1427
SELECT + CAST( + + 56 AS SIGNED ) DIV col0 * + col2 AS col0 FROM tab0 AS cor0
----
0
0
141

skipif mysql # not compatible
query I rowsort label-1427
SELECT + CAST ( + + 56 AS INTEGER ) / col0 * + col2 AS col0 FROM tab0 AS cor0
----
0
0
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT - COUNT( * ) * + - COUNT( DISTINCT + col0 ) * - - 41 FROM tab0 AS cor0
----
369

skipif mysql # not compatible
query I rowsort label-1428
SELECT - COUNT ( * ) * + - COUNT ( DISTINCT + col0 ) * - - 41 FROM tab0 AS cor0
----
369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 + 41 * - - col1 + col2 col0, 15 FROM tab1 AS cor0
----
1927
15
205
15
574
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT COUNT( * ) - - + 18 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1430
SELECT COUNT ( * ) - - + 18 FROM tab1
----
21

query I rowsort
SELECT + col1 * - + col1 - + - col0 * col0 FROM tab2
----
-1833
-485
1136

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT col2 < ( - col1 )
----
23
40
58

query I rowsort
SELECT DISTINCT + 37 * + 90 FROM tab2
----
3330

query I rowsort
SELECT ALL + col0 * + + col0 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - - col2
----

query I rowsort
SELECT DISTINCT col0 * + + 89 + - 77 FROM tab2 cor0
----
4017
5619
6598

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL + MIN( DISTINCT - - col2 ) * + - 20 FROM tab1 AS cor0
----
-1180

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL + MIN ( DISTINCT - - col2 ) * + - 20 FROM tab1 AS cor0
----
-1180

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT ALL + + COUNT( * ) * 19 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL + + COUNT ( * ) * 19 FROM tab2 AS cor0
----
57

query I rowsort
SELECT DISTINCT 70 * + 47 AS col1 FROM tab0 AS cor0
----
3290

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL + COUNT( * ) * - - COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1442
SELECT ALL - CAST( NULL AS SIGNED ) col0, CAST( NULL AS SIGNED ) + col1 FROM tab1 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1442
SELECT ALL - CAST ( NULL AS INTEGER ) col0, CAST ( NULL AS INTEGER ) + col1 FROM tab1 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT DISTINCT + 25 AS col0, COUNT( + - 29 ) AS col0 FROM tab0
----
25
3

skipif mysql # not compatible
query II rowsort label-1443
SELECT DISTINCT + 25 AS col0, COUNT ( + - 29 ) AS col0 FROM tab0
----
25
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT ALL - 14 DIV - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL - 14 / - col2 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL - col0 AS col1, + ( col1 ) AS col1 FROM tab2
----
-46
51
-64
77
-75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, 54 + 84 AS col0 FROM tab1
----
14
138
47
138
5
138

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 IS NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 = - 67 * - 85 + - ( - col0 ) + + 27 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col1, 21 AS col2 FROM tab2
----
46
21
64
21
75
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 12 col1 FROM tab1 AS cor0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, col0 col1 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1452
SELECT - col1 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-1452
SELECT - col1 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query II rowsort
SELECT ALL - + ( col2 ) AS col1, col2 + - 89 + + 60 * + col0 FROM tab1 AS cor0
----
-59
5070
-68
5439
-96
3067

query I rowsort
SELECT col2 * - 35 - - col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1630
-263
-3368

query I rowsort
SELECT + col0 + + 70 * col0 AS col1 FROM tab2 AS cor0
----
3266
4544
5325

onlyif mysql # DIV for integer division: 
query I rowsort label-1456
SELECT ALL + col2 DIV + - 26 + 75 + col2 FROM tab0 AS cor0
----
121
171
85

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL + col2 / + - 26 + 75 + col2 FROM tab0 AS cor0
----
121
171
85

query I rowsort
SELECT DISTINCT + + col0 * + - col2 + - + col0 + col1 * - col0 FROM tab0 AS cor0
----
-1935
-2784
-9797

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1459
SELECT - MIN( DISTINCT - col0 ) AS col2, + 83 * 18 FROM tab2 AS cor0
----
75
1494

skipif mysql # not compatible
query II rowsort label-1459
SELECT - MIN ( DISTINCT - col0 ) AS col2, + 83 * 18 FROM tab2 AS cor0
----
75
1494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1460
SELECT - col2 / - col0 FROM tab1 AS cor0 WHERE ( col2 + 43 + + CAST( NULL AS SIGNED ) / col1 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-1460
SELECT - col2 / - col0 FROM tab1 AS cor0 WHERE ( col2 + 43 + + CAST ( NULL AS INTEGER ) / col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1461
SELECT ALL - + col0 DIV + col2 + ( - col1 ) + - col2 * + + col1 FROM tab0 cor0
----
-100
-239
-3888

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL - + col0 / + col2 + ( - col1 ) + - col2 * + + col1 FROM tab0 cor0
----
-100
-239
-3888

query I rowsort
SELECT DISTINCT + col2 + - 2 + 23 * + 61 FROM tab1
----
1460
1469
1497

query II rowsort
SELECT DISTINCT - 80, - col2 AS col2 FROM tab2
----
-80
-23
-80
-40
-80
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-1464
SELECT ALL + 4 * + + COUNT( * ) - 83 + COUNT( * ) * 26 * + COUNT( * ) AS col1, COUNT( * ) * + + SUM( DISTINCT - col0 ) * + ( 30 ) AS col0 FROM tab0
----
163
-17910

skipif mysql # not compatible
query II rowsort label-1464
SELECT ALL + 4 * + + COUNT ( * ) - 83 + COUNT ( * ) * 26 * + COUNT ( * ) AS col1, COUNT ( * ) * + + SUM ( DISTINCT - col0 ) * + ( 30 ) AS col0 FROM tab0
----
163
-17910

query I rowsort
SELECT - ( + 30 ) - - 11 - + + ( - col0 ) AS col2 FROM tab1
----
32
66
72

query III rowsort
SELECT * FROM tab2 WHERE col2 IN ( - + ( - col0 ), - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - 7 < + + col2 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT SUM( DISTINCT + + col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1468
SELECT SUM ( DISTINCT + + col0 ) AS col1 FROM tab1
----
227

query II rowsort
SELECT DISTINCT + + col1, col0 FROM tab0 AS cor0 WHERE - col0 - + col2 IS NOT NULL
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= col2
----
0

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1471
SELECT CAST( NULL AS DECIMAL ) * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( col0 * - CAST( + 0 AS SIGNED ) ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT CAST ( NULL AS REAL ) * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( col0 * - CAST ( + 0 AS INTEGER ) ) IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + - 51 * + col2 + col1 + + ( + col1 ) = + + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 47 ) = NULL
----

query I rowsort
SELECT ALL + col2 * + col0 * col2 FROM tab2 AS cor0
----
102400
24334
252300

query I rowsort
SELECT + col1 * - - col2 AS col1 FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1476
SELECT + col1 DIV + + col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1476
SELECT + col1 / + + col1 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL - ( + - 10 ) * col1 FROM tab1
----
140
470
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1478
SELECT ALL - ( 34 ) * + CAST( NULL AS SIGNED ) / + ( 82 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL - ( 34 ) * + CAST ( NULL AS INTEGER ) / + ( 82 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - - col1 * + col2 + - 80 + col1 FROM tab0 AS cor0
----
172
21
3889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1480
SELECT DISTINCT - - col2 * col2 + + - CAST( NULL AS SIGNED ) - col2 + + - 64 + 48 / - + col0 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT - - col2 * col2 + + - CAST ( NULL AS INTEGER ) - col2 + + - 64 + 48 / - + col0 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1481
SELECT ALL CAST( NULL AS SIGNED ) + - + COUNT( * ) + - AVG ( DISTINCT + col1 ) * + COUNT( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - AVG ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1482
SELECT 12 * - 74 + + ( col1 ) DIV + col1 - + col0 AS col0, + ( - - ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-902
-47
-974
-10
-984
-99

skipif mysql # not compatible
query II rowsort label-1482
SELECT 12 * - 74 + + ( col1 ) / + col1 - + col0 AS col0, + ( - - ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-902
-47
-974
-10
-984
-99

query I rowsort
SELECT DISTINCT + ( - col1 ) + - col2 * - + 58 FROM tab0
----
2645
559
5741

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT - 41 * - COUNT( * ) FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-1484
SELECT - 41 * - COUNT ( * ) FROM tab1
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1485
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + 96 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1485
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + 96 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col1 + + 17 FROM tab2 AS cor0
----
68
84
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1487
SELECT + 42 DIV COUNT( * ) + 53 AS col0 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-1487
SELECT + 42 / COUNT ( * ) + 53 AS col0 FROM tab0 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT DISTINCT + SUM( + + 74 ) FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT + SUM ( + + 74 ) FROM tab2
----
222

query II rowsort
SELECT ALL 81 + + + ( - 10 ), - 39 AS col1 FROM tab1
----
71
-39
71
-39
71
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT DISTINCT + 91 - + COUNT( * ) AS col0 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT + 91 - + COUNT ( * ) AS col0 FROM tab2
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 62 ) + - col0 col0 FROM tab1
----
-113
-147
-153

query I rowsort
SELECT DISTINCT col2 + - col2 * col2 * col1 AS col1 FROM tab0
----
-178882
-2090
-9702

query I rowsort
SELECT ALL - col1 + + - col2 AS col1 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT + COUNT( * ) * + COUNT( * ) + + - 90 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-1494
SELECT + COUNT ( * ) * + COUNT ( * ) + + - 90 FROM tab2
----
-81

query I rowsort
SELECT + col1 + + ( - col0 ) AS col1 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT MAX( DISTINCT - + 29 ) col2 FROM tab2, tab1 AS cor0
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1496
SELECT MAX ( DISTINCT - + 29 ) col2 FROM tab2, tab1 AS cor0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT + CAST( NULL AS SIGNED ) * + - CAST( + ( - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT + CAST ( NULL AS INTEGER ) * + - CAST ( + ( - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1498
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE NOT - ( + - col1 ) * - CAST( NULL AS SIGNED ) BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE NOT - ( + - col1 ) * - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - - col1
----

query I rowsort
SELECT ( - 8 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + + 96
----

query II rowsort
SELECT col0, - ( + col2 ) FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT + MIN( ALL col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-1503
SELECT + MIN ( ALL col2 ) FROM tab1 cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT - + MAX( - - 99 ) * 89 FROM tab2 AS cor0 WHERE NOT 84 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1504
SELECT - + MAX ( - - 99 ) * 89 FROM tab2 AS cor0 WHERE NOT 84 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + col0, - col1 AS col2 FROM tab0 cor0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT - + COUNT( + - 86 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1506
SELECT - + COUNT ( + - 86 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - - ( 48 ) AS col2 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 * - - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1508
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 * - - col2 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 col1 FROM tab2 AS cor0
----
20

query II rowsort
SELECT - + col1, + ( + col0 ) AS col0 FROM tab1 cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT DISTINCT - COUNT( 97 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT - COUNT ( 97 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1512
SELECT ( + CAST( NULL AS SIGNED ) ) * - CAST( NULL AS DECIMAL ) + + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1512
SELECT ( + CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS REAL ) + + 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1513
SELECT ALL - CAST( NULL AS SIGNED ) * ( - - col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL - CAST ( NULL AS INTEGER ) * ( - - col0 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + + 27 FROM tab0
----
2349
2619
405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col2 FROM tab1 AS cor0
----
60
60
60

query III rowsort
SELECT * FROM tab1 WHERE + - 63 * 6 + - col1 <> NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE col2 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1518
SELECT * FROM tab2 WHERE - CAST( + ( + 93 ) AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1518
SELECT * FROM tab2 WHERE - CAST ( + ( + 93 ) AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT ALL - + MIN( + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL - + MIN ( + col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + col2 * + 27 + - - col0 + - col0 FROM tab1 AS cor0
----
1593
1836
2592

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT col0 DIV + + 21 AS col1 FROM tab2 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-1521
SELECT col0 / + + 21 AS col1 FROM tab2 AS cor0
----
2
3
3

query I rowsort
SELECT + col1 * + 85 FROM tab1 AS cor0
----
1190
3995
425

query I rowsort
SELECT DISTINCT + 16 + col0 FROM tab0 AS cor0
----
103
113
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1524
SELECT COUNT( * ) - 50 DIV - SUM( DISTINCT - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1524
SELECT COUNT ( * ) - 50 / - SUM ( DISTINCT - col2 ) FROM tab1
----
3

query I rowsort
SELECT - - col2 + + 45 AS col2 FROM tab1 WHERE NULL IS NULL
----
104
113
141

query I rowsort
SELECT DISTINCT ( - col0 ) - - - col1 * - 42 AS col0 FROM tab0
----
-55
3387
795

query I rowsort
SELECT + 72 - 19 AS col0 FROM tab0
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col1, - col0 col1 FROM tab2
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab2 WHERE - + 8 + + col1 = + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1530
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + - 90, + col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-1530
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + - 90, + col0 AS col2 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT ALL col0 * - - 13 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
1131
1261
195

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL col0 * - - 13 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
1131
1261
195

query I rowsort
SELECT - 29 * + col1 AS col2 FROM tab1 AS cor0
----
-1363
-145
-406

query I rowsort
SELECT + col0 AS col1 FROM tab2 cor0 WHERE NOT - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT + ( - col1 ) DIV + 10 + col2 AS col2 FROM tab2 AS cor0
----
18
33
52

skipif mysql # not compatible
query I rowsort label-1534
SELECT + ( - col1 ) / + 10 + col2 AS col2 FROM tab2 AS cor0
----
18
33
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 84 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1537
SELECT CAST( NULL AS SIGNED ) / - col2 * + 76 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-1537
SELECT CAST ( NULL AS INTEGER ) / - col2 * + 76 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT - CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1538
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - + col1
----

query I rowsort
SELECT col2 * + 9 AS col2 FROM tab1
----
531
612
864

query I rowsort
SELECT 43 + - col1 FROM tab2 WHERE ( NOT NULL >= + 27 / - col0 * + + col1 * + + 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL + COUNT( + + 73 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL + COUNT ( + + 73 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT DISTINCT SUM( col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT SUM ( col1 ) AS col0 FROM tab1
----
66

query I rowsort
SELECT ALL col2 + - - col2 * 66 AS col0 FROM tab1 cor0
----
3953
4556
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT + SUM( ALL + - col1 ) col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1546
SELECT + SUM ( ALL + - col1 ) col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT ALL + 12 * + 17 FROM tab1
----
204
204
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1548
SELECT 68 AS col2 FROM tab1 WHERE NOT col1 NOT IN ( + ( - CAST( NULL AS SIGNED ) ) * + col0 )
----

skipif mysql # not compatible
query I rowsort label-1548
SELECT 68 AS col2 FROM tab1 WHERE NOT col1 NOT IN ( + ( - CAST ( NULL AS INTEGER ) ) * + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 = 58 * col0 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( col0 ) FROM tab1 WHERE NOT col1 - + col1 NOT BETWEEN + 89 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1551
SELECT - 76 DIV - 27 AS col0 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1551
SELECT - 76 / - 27 AS col0 FROM tab1
----
2
2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1552
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab2 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT ALL + SUM( col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + SUM ( col1 ) AS col2 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT col0 - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT col0 - col2 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL MAX( ALL col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL MAX ( ALL col0 ) AS col0 FROM tab1
----
91

query I rowsort
SELECT 47 * + col1 FROM tab0
----
3807
47
987

query I rowsort
SELECT ALL 64 * col2 AS col2 FROM tab0
----
3008
6336
640

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 * - col2 AND ( NULL )
----

query I rowsort
SELECT ALL - ( ( col0 ) ) AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( + 25 + + col1 ) IN ( - col2 * 20 )
----
3

skipif mysql # not compatible
query I rowsort label-1562
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( + 25 + + col1 ) IN ( - col2 * 20 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 56 col1 FROM tab0
----
143
153
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT - SUM( DISTINCT + ( - 74 ) ) + - 25 AS col0 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-1564
SELECT - SUM ( DISTINCT + ( - 74 ) ) + - 25 AS col0 FROM tab0
----
49

query I rowsort
SELECT ALL - 92 * col2 AS col1 FROM tab1 AS cor0
----
-5428
-6256
-8832

query I rowsort
SELECT + col2 + 64 FROM tab1 AS cor0 WHERE NOT col2 <= - 14
----
123
132
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 91 col0 FROM tab2 AS cor0
----
-4186
-5824
-6825

query I rowsort
SELECT ALL ( 80 ) FROM tab2 AS cor0
----
80
80
80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 28 + - col1 / col2 IS NOT NULL
----

query I rowsort
SELECT col2 * col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-1571
SELECT ALL col0 DIV - 36 AS col1 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL col0 / - 36 AS col1 FROM tab1 AS cor0
----
-1
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT ALL ( + col0 ) DIV col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL ( + col0 ) / col2 AS col0 FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-1574
SELECT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT - col0 * col2 + col2 FROM tab0 cor0
----
-658
-860
-9504

query I rowsort
SELECT col2 + - col2 * - col0 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT - 87 + col0 * 30 AS col2 FROM tab1 AS cor0
----
1443
2463
2643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1579
SELECT ALL CAST( NULL AS SIGNED ) + - SUM( + col2 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 90 * - 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL CAST ( NULL AS INTEGER ) + - SUM ( + col2 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 90 * - 13 )
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE ( + 43 ) NOT IN ( + col1 * col1 )
----
-59
-68
-96

query I rowsort
SELECT - ( col0 ) + col1 * col0 FROM tab1 AS cor0
----
340
4186
663

query I rowsort
SELECT DISTINCT col2 * ( + 29 * col2 ) AS col1 FROM tab2 AS cor0
----
15341
46400
97556

query I rowsort
SELECT + - col1 + - col2 * col2 FROM tab2 AS cor0
----
-1677
-3431
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT - COUNT( * ) + + 33 AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-1584
SELECT - COUNT ( * ) + + 33 AS col1 FROM tab2 AS cor0
----
30

query I rowsort
SELECT - 99 * col1 + - col2 FROM tab1 AS cor0
----
-1482
-4721
-554

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT DISTINCT col0 DIV - 1 + col0 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT col0 / - 1 + col0 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT + SUM( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-156

skipif mysql # not compatible
query I rowsort label-1587
SELECT + SUM ( ALL - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-156

query I rowsort
SELECT ALL 26 + + col2 AS col2 FROM tab0 AS cor0 WHERE col2 <> ( - col0 + + col2 * col0 )
----
125
36
73

query I rowsort
SELECT DISTINCT - + col0 * col2 + - 12 FROM tab0 AS cor0
----
-717
-882
-9615

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE - col1 * + col0 + + col0 * 84 IS NULL
----

query I rowsort
SELECT - 4 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( 48 ) * - 44 FROM tab2
----
-2112
-2112
-2112

query I rowsort
SELECT DISTINCT - + ( + 29 ) AS col1 FROM tab1 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT COUNT( * ) * 95 FROM tab2 cor0 WHERE ( NULL ) < col0
----
0

skipif mysql # not compatible
query I rowsort label-1594
SELECT COUNT ( * ) * 95 FROM tab2 cor0 WHERE ( NULL ) < col0
----
0

query I rowsort
SELECT + 12 + + - 48 + - col1 FROM tab2 AS cor0
----
-103
-113
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col0 FROM tab2 AS cor0 WHERE col1 * - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 + 44 ) NOT IN ( + 26 / + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT ALL col2 * - - CAST( + 93 AS SIGNED ) * + col1 + + 29 FROM tab1
----
125021
27464
297257

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL col2 * - - CAST ( + 93 AS INTEGER ) * + col1 + + 29 FROM tab1
----
125021
27464
297257

query I rowsort
SELECT DISTINCT - 64 + 75 FROM tab0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1600
SELECT ALL + CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 37 + + + col1 FROM tab1
----
42
51
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT + MIN( DISTINCT 99 ) AS col0 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-1602
SELECT + MIN ( DISTINCT 99 ) AS col0 FROM tab2
----
99

query I rowsort
SELECT ALL - + col1 - + + 11 + col1 FROM tab0 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT ALL SUM( - - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL SUM ( - - col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL - - 28 FROM tab2 cor0 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, 60 col1 FROM tab2 AS cor0
----
51
60
67
60
77
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1608
SELECT DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 56 * col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2632
280
784

query I rowsort
SELECT - 66 AS col1 FROM tab0 WHERE NOT + 0 IS NOT NULL
----

query II rowsort
SELECT + 64 * - col0 AS col0, col0 AS col2 FROM tab2
----
-2944
46
-4096
64
-4800
75

query I rowsort
SELECT DISTINCT - col0 * + 10 AS col1 FROM tab1
----
-510
-850
-910

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > ( ( + + col1 ) )
----

query I rowsort
SELECT DISTINCT 31 * - 79 * - 18 AS col0 FROM tab0
----
44082

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT + col1 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1616
SELECT DISTINCT COUNT( * ) + - MIN( + col1 ) FROM tab2 AS cor0 WHERE NOT col0 - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT COUNT ( * ) + - MIN ( + col1 ) FROM tab2 AS cor0 WHERE NOT col0 - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL 97 * - 78 * + col0 FROM tab0 AS cor0
----
-113490
-658242
-733902

onlyif mysql # DIV for integer division: 
query I rowsort label-1618
SELECT + - col2 * 45 DIV 1 * + col2 FROM tab0 AS cor0
----
-441045
-4500
-99405

skipif mysql # not compatible
query I rowsort label-1618
SELECT + - col2 * 45 / 1 * + col2 FROM tab0 AS cor0
----
-441045
-4500
-99405

query I rowsort
SELECT DISTINCT + 36 * + col0 AS col2 FROM tab2
----
1656
2304
2700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1620
SELECT ALL COUNT( * ) DIV ( - - COUNT( * ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL COUNT ( * ) / ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT ALL col2 DIV - ( + col0 ) FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL col2 / - ( + col0 ) FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT + col0 * - - col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE - col1 * - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1623
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 * - - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT ALL + COUNT( * ) + - 15 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL + COUNT ( * ) + - 15 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT 58 * + col1 + 87 AS col0 FROM tab2 cor0
----
3045
3973
4553

onlyif mysql # DIV for integer division: 
query I rowsort label-1626
SELECT ALL ( + 47 ) DIV - 9 + col1 + - + col2 + 8 * 15 AS col0 FROM tab0 AS cor0
----
126
149
17

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL ( + 47 ) / - 9 + col1 + - + col2 + 8 * 15 AS col0 FROM tab0 AS cor0
----
126
149
17

query I rowsort
SELECT - 9 * 66 FROM tab0, tab0 AS cor0
----
9 values hashing to 22666e132673523aadd4903c94ef6930

query I rowsort
SELECT 94 + - 96 * + + col2 AS col1 FROM tab1
----
-5570
-6434
-9122

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT ALL - ( + + col2 ) + - 22 DIV + - ( col1 ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - ( + + col2 ) + - 22 / + - ( col1 ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col0 + 76 AS col2 FROM tab0
----
163
173
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col2 + + 82 + - col0, + col2 col2 FROM tab2
----
1618
40
3371
58
565
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT col2 + - 71 DIV + + col2 AS col1 FROM tab0
----
3
46
99

skipif mysql # not compatible
query I rowsort label-1632
SELECT col2 + - 71 / + + col2 AS col1 FROM tab0
----
3
46
99

query I rowsort
SELECT DISTINCT - 75 + - col0 FROM tab2
----
-121
-139
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1634
SELECT - CAST( NULL AS SIGNED ) + 44 - - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1634
SELECT - CAST ( NULL AS INTEGER ) + 44 - - COUNT ( * ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 36 col1 FROM tab1
----
15
49
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT ALL + SUM( - 60 ) AS col1 FROM tab1, tab0 AS cor0
----
-540

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL + SUM ( - 60 ) AS col1 FROM tab1, tab0 AS cor0
----
-540

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT MAX( + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1638
SELECT MAX ( + + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1639
SELECT 70 col0 FROM tab2 AS cor0 WHERE CAST( + + col2 AS SIGNED ) IS NOT NULL
----
70
70
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1639
SELECT 70 col0 FROM tab2 AS cor0 WHERE CAST ( + + col2 AS INTEGER ) IS NOT NULL
----
70
70
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1640
SELECT - 85 DIV + col1 + - + 51 FROM tab0 cor0
----
-136
-52
-55

skipif mysql # not compatible
query I rowsort label-1640
SELECT - 85 / + col1 + - + 51 FROM tab0 cor0
----
-136
-52
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT - ( COUNT( * ) ) * + - COUNT( * ) * 23 AS col1 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-1641
SELECT - ( COUNT ( * ) ) * + - COUNT ( * ) * 23 AS col1 FROM tab2 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT COUNT( * ) * - COUNT( * ) - + 36 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-1642
SELECT COUNT ( * ) * - COUNT ( * ) - + 36 FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL + MAX( DISTINCT + - col1 ) - - 86 col1 FROM tab2
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1643
SELECT ALL + MAX ( DISTINCT + - col1 ) - - 86 col1 FROM tab2
----
35

query I rowsort
SELECT DISTINCT col2 - - ( + col1 ) FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1645
SELECT DISTINCT col0 + + - CAST( NULL AS SIGNED ) + col2 * - col2 * + - 47 * col1 * col0 + + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT col0 + + - CAST ( NULL AS INTEGER ) + col2 * - col2 * + - 47 * col1 * col0 + + col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 40 * - col1 + - - ( col1 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1647
SELECT COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT DISTINCT - COUNT( * ) * + 98 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT - COUNT ( * ) * + 98 FROM tab2 AS cor0
----
-294

query I rowsort
SELECT col1 * + col1 - + 65 AS col2 FROM tab2 AS cor0
----
2536
4424
5864

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + col2 - 93
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1652
SELECT + ( - COUNT( * ) ) * COUNT( * ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-1652
SELECT + ( - COUNT ( * ) ) * COUNT ( * ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9
3

query I rowsort
SELECT - - ( + 4 ) AS col2 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1654
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1654
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1655
SELECT DISTINCT + col2 + - 7 AS col0 FROM tab2 cor0 WHERE NOT NULL > - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT + col2 + - 7 AS col0 FROM tab2 cor0 WHERE NOT NULL > - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT - CAST( + + 53 AS SIGNED ) AS col0 FROM tab1
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-1656
SELECT - CAST ( + + 53 AS INTEGER ) AS col0 FROM tab1
----
-53
-53
-53

onlyif mysql # DIV for integer division: 
query III rowsort label-1657
SELECT DISTINCT 82 AS col2, - 43 + + col1 DIV + col0 * col2 * - 55 AS col1, + ( + col2 ) * - col1 FROM tab1
----
9 values hashing to d6b302ef0ff70a6fbd81d2534398983f

skipif mysql # not compatible
query III rowsort label-1657
SELECT DISTINCT 82 AS col2, - 43 + + col1 / + col0 * col2 * - 55 AS col1, + ( + col2 ) * - col1 FROM tab1
----
9 values hashing to d6b302ef0ff70a6fbd81d2534398983f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1658
SELECT CAST( + 70 AS SIGNED ) AS col2 FROM tab2
----
70
70
70

skipif mysql # not compatible
query I rowsort label-1658
SELECT CAST ( + 70 AS INTEGER ) AS col2 FROM tab2
----
70
70
70

query I rowsort
SELECT - ( ( col2 ) ) + col2 * 92 AS col2 FROM tab2 WHERE NOT - ( + 67 ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT + 5 * - + COUNT( * ) col0 FROM tab2 WHERE NOT + col2 NOT IN ( - - col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1661
SELECT + 5 * - + COUNT ( * ) col0 FROM tab2 WHERE NOT + col2 NOT IN ( - - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT - COUNT( + 92 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1662
SELECT - COUNT ( + 92 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT - - MIN( ALL col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1663
SELECT - - MIN ( ALL col0 ) col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ( 35 ) * + + col1 * - col1 * + col0 + + ( - + col1 ) FROM tab1 AS cor0
----
-349874
-7035712
-74380

query I rowsort
SELECT DISTINCT 45 FROM tab2 cor0 WHERE 80 * - - col1 BETWEEN + col0 + + - 15 / - col0 * - - col0 * col0 * - col1 AND col1
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * 37 / + col0 > ( + + 39 )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1667
SELECT DISTINCT + col1 * - + CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT + col1 * - + CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
-2601
-4489
-5929

query II rowsort
SELECT - col0 + + col1, - col2 AS col1 FROM tab0 AS cor0
----
-66
-10
-96
-99
66
-47

query I rowsort
SELECT ALL col2 * + col0 * - + 58 AS col2 FROM tab0 AS cor0
----
-40890
-50460
-556974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1670
SELECT - CAST( + COUNT( * ) AS SIGNED ) + - - 33 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-1670
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + - - 33 FROM tab0 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1671
SELECT - col1 * + 75 - ( - - col1 ) DIV + - col1 + - col2 + + col2 FROM tab1 cor0
----
-1049
-3524
-374

skipif mysql # not compatible
query I rowsort label-1671
SELECT - col1 * + 75 - ( - - col1 ) / + - col1 + - col2 + + col2 FROM tab1 cor0
----
-1049
-3524
-374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1672
SELECT ALL + + 88 DIV - SUM( - - col0 ) + MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL + + 88 / - SUM ( - - col0 ) + MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + ( + + 77 ) AS col0 FROM tab0 AS cor0
----
-10
-20
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT - + SUM( + - 87 ) AS col0 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-1676
SELECT - + SUM ( + - 87 ) AS col0 FROM tab0 AS cor0
----
261

query I rowsort
SELECT - ( - col2 ) AS col2 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT - 20 * + - 48 * + col1 FROM tab2
----
48960
64320
73920

query III rowsort
SELECT * FROM tab0 WHERE - 43 * col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1680
SELECT ALL - col1 + - + CAST( col2 AS SIGNED ) AS col0, col0 col2 FROM tab0
----
-100
97
-128
15
-31
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1680
SELECT ALL - col1 + - + CAST ( col2 AS INTEGER ) AS col0, col0 col2 FROM tab0
----
-100
97
-128
15
-31
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1681
SELECT + + col1 + 33 * + + 10 FROM tab1 WHERE - col0 + + - CAST( - 41 AS SIGNED ) < + col2
----
335
344
377

skipif mysql # not compatible
query I rowsort label-1681
SELECT + + col1 + 33 * + + 10 FROM tab1 WHERE - col0 + + - CAST ( - 41 AS INTEGER ) < + col2
----
335
344
377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 17 ) col1 FROM tab2
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT - MAX( DISTINCT - col0 ) + 96 FROM tab2
----
142

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - MAX ( DISTINCT - col0 ) + 96 FROM tab2
----
142

query I rowsort
SELECT + col0 - col1 + - + 78 * - col0 AS col0 FROM tab1
----
4015
6710
7142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col0 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - + 52 + - ( col0 ) + + - 83 AS col0 FROM tab0 AS cor0
----
4354
4864
682

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL - 55 + - MAX( DISTINCT col2 ) FROM tab2
----
-113

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL - 55 + - MAX ( DISTINCT col2 ) FROM tab2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL - MIN( + 8 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL - MIN ( + 8 ) FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 <> 12
----
0

skipif mysql # not compatible
query I rowsort label-1689
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 <> 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT - COUNT( * ) + - ( - 56 ) * + MAX( DISTINCT + 69 ) + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3846

skipif mysql # not compatible
query I rowsort label-1690
SELECT - COUNT ( * ) + - ( - 56 ) * + MAX ( DISTINCT + 69 ) + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1691
SELECT ALL CAST( - 84 AS SIGNED ) col1 FROM tab1
----
-84
-84
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1691
SELECT ALL CAST ( - 84 AS INTEGER ) col1 FROM tab1
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT MIN( ALL + + ( col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1692
SELECT MIN ( ALL + + ( col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT + + COUNT( * ) * COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1693
SELECT + + COUNT ( * ) * COUNT ( * ) FROM tab0 cor0
----
9

query II rowsort
SELECT DISTINCT + 51 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
51
10
51
47
51
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col1, col1 + + col1 - + 16 * - + col1 FROM tab1 cor0
----
59
90
68
846
96
252

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1696
SELECT DISTINCT 51 / col2 / - 57 + - ( col2 ) AS col1, - col0 * - 85 * + col0 col1 FROM tab0 AS cor0 WHERE NOT NULL >= CAST( NULL AS SIGNED ) + 39 + 60
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1696
SELECT DISTINCT 51 / col2 / - 57 + - ( col2 ) AS col1, - col0 * - 85 * + col0 col1 FROM tab0 AS cor0 WHERE NOT NULL >= CAST ( NULL AS INTEGER ) + 39 + 60
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - col1 * + 29 * - + col0 ) IN ( + col2, col2, + 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1698
SELECT 26 DIV + 36 AS col1, + 82 * COUNT( * ) AS col2 FROM tab0
----
0
246

skipif mysql # not compatible
query II rowsort label-1698
SELECT 26 / + 36 AS col1, + 82 * COUNT ( * ) AS col2 FROM tab0
----
0
246

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ( SUM( - + col1 ) ) col2 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1699
SELECT ( SUM ( - + col1 ) ) col2 FROM tab2
----
-195

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1701
SELECT col2 * + + CAST( NULL AS DECIMAL ) / - 13 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1701
SELECT col2 * + + CAST ( NULL AS REAL ) / - 13 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col1 * - 41 * - col0 AS col1 FROM tab1 AS cor0
----
1028075
11924276
2810304

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT DISTINCT MAX( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT MAX ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + ( - - col2 ) AS col1, col1 col1 FROM tab1 AS cor0
----
21
47
54
5
82
14

query I rowsort
SELECT - col0 + + - ( + - col2 ) FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - - col2 * - + 90 + - col0 IS NULL OR NULL BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 + + 8 * - + ( col0 ) / + - 68, + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= ( 17 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1708
SELECT DISTINCT MAX( ALL col2 ) DIV + 87 + - 8 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT MAX ( ALL col2 ) / + 87 + - 8 FROM tab1
----
-7

query II rowsort
SELECT DISTINCT col0, col2 * - col2 AS col2 FROM tab1
----
51
-9216
85
-3481
91
-4624

query I rowsort
SELECT DISTINCT - + 60 + - col1 AS col2 FROM tab2 cor0
----
-111
-127
-137

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 - - 80 BETWEEN ( - col1 / + + col2 * col2 ) AND NULL
----

query I rowsort
SELECT + 0 + col2 AS col0 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT ALL + ( ( - + col2 ) ) + 51 AS col1, - col0 FROM tab1 AS cor0
----
-17
-91
-45
-51
-8
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1714
SELECT + ( + CAST( - MAX( ALL col1 ) AS SIGNED ) ) + - 78 FROM tab2 AS cor0
----
-155

skipif mysql # not compatible
query I rowsort label-1714
SELECT + ( + CAST ( - MAX ( ALL col1 ) AS INTEGER ) ) + - 78 FROM tab2 AS cor0
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT + - 69 + MAX( + col1 ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1715
SELECT + - 69 + MAX ( + col1 ) FROM tab1 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 + - 70 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 + - 70 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT + MIN( + col1 ) + - ( + COUNT( * ) ) * 63 AS col1 FROM tab0 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-1717
SELECT + MIN ( + col1 ) + - ( + COUNT ( * ) ) * 63 AS col1 FROM tab0 AS cor0
----
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-1718
SELECT - col1 DIV col1 + + - 71 AS col2 FROM tab1
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-1718
SELECT - col1 / col1 + + - 71 AS col2 FROM tab1
----
-72
-72
-72

query I rowsort
SELECT 25 + + + col2 * - 3 FROM tab1
----
-152
-179
-263

onlyif mysql # DIV for integer division: 
query I rowsort label-1720
SELECT ALL + col2 DIV - + col2 + col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL + col2 / - + col2 + col0 FROM tab2
----
45
63
74

query I rowsort
SELECT DISTINCT - 99 - - 58 * - - col1 FROM tab1
----
191
2627
713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1722
SELECT ALL 38 * - + col1 + + CAST( - 83 AS SIGNED ) FROM tab2
----
-2021
-2629
-3009

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL 38 * - + col1 + + CAST ( - 83 AS INTEGER ) FROM tab2
----
-2021
-2629
-3009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 WHERE NULL IN ( - ( + - 82 ) )
----

query I rowsort
SELECT + col1 * + + col1 * - col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-308367
-4410
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1725
SELECT ALL + COUNT( * ) - + 20 + COUNT( 3 ) AS col1, + COUNT( * ) + ( + - CAST( NULL AS SIGNED ) ) + + COUNT( * ) FROM tab0
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-1725
SELECT ALL + COUNT ( * ) - + 20 + COUNT ( 3 ) AS col1, + COUNT ( * ) + ( + - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) FROM tab0
----
-14
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1726
SELECT DISTINCT + col1 DIV + 18 - col2 FROM tab2 AS cor0
----
-21
-36
-55

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + col1 / + 18 - col2 FROM tab2 AS cor0
----
-21
-36
-55

query I rowsort
SELECT ALL - + col0 - ( + col2 ) - + + ( - col1 ) AS col1 FROM tab1 cor0
----
-112
-133
-139

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> - col1
----

query I rowsort
SELECT - 26 * - col2 - - col0 AS col2 FROM tab1 AS cor0
----
1619
1859
2547

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 62 + + col1 + - 85 / 8 + - col1 IS NULL
----

query I rowsort
SELECT - 30 * + - col0 * + + 20 FROM tab2
----
27600
38400
45000

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-1733
SELECT - MIN( DISTINCT + + col1 ) * + COUNT( * ) AS col0, - ( - 64 ) AS col0 FROM tab1 AS cor0
----
-15
64

skipif mysql # not compatible
query II rowsort label-1733
SELECT - MIN ( DISTINCT + + col1 ) * + COUNT ( * ) AS col0, - ( - 64 ) AS col0 FROM tab1 AS cor0
----
-15
64

query I rowsort
SELECT col2 AS col1 FROM tab0 cor0 WHERE NOT + col1 <> + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - - 70 col2 FROM tab0 AS cor0
----
-1470
-5670
-70

query I rowsort
SELECT + col1 * + ( - col1 ) - - + col1 + 71 * - + col0 FROM tab2 AS cor0 WHERE NOT NULL >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT ALL + - ( - - COUNT( * ) ) * + 79 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL + - ( - - COUNT ( * ) ) * + 79 FROM tab1 AS cor0
----
-237

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 * - 59 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 76 AS col0 FROM tab0 AS cor0
----
-76

query I rowsort
SELECT + + ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 * - col1 * - 59, + col1 * - 92 col1 FROM tab2 AS cor0
----
-138414
-4692
-290752
-7084
-296475
-6164

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT + 76 - COUNT( * ) + COUNT( ALL + col1 ) + - 17 col0 FROM tab0 WHERE NOT + - 24 IN ( + col1 + - - 7 )
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1742
SELECT + 76 - COUNT ( * ) + COUNT ( ALL + col1 ) + - 17 col0 FROM tab0 WHERE NOT + - 24 IN ( + col1 + - - 7 )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1743
SELECT ALL 88 AS col1, COUNT( * ) FROM tab2
----
88
3

skipif mysql # not compatible
query II rowsort label-1743
SELECT ALL 88 AS col1, COUNT ( * ) FROM tab2
----
88
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col2 FROM tab2
----
31
31
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1745
SELECT MAX( ALL - col0 ) DIV + + 6 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-1745
SELECT MAX ( ALL - col0 ) / + + 6 FROM tab1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT SUM( ALL + col2 ) * + - 16 + + 56 + - - COUNT( * ) AS col0 FROM tab2
----
-1877

skipif mysql # not compatible
query I rowsort label-1746
SELECT SUM ( ALL + col2 ) * + - 16 + + 56 + - - COUNT ( * ) AS col0 FROM tab2
----
-1877

query I rowsort
SELECT ALL + col2 + - - 46 FROM tab2
----
104
69
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1748
SELECT - 55 FROM tab1 AS cor0 WHERE CAST( col1 AS SIGNED ) - + ( col0 ) > - + col1
----
-55

skipif mysql # not compatible
query I rowsort label-1748
SELECT - 55 FROM tab1 AS cor0 WHERE CAST ( col1 AS INTEGER ) - + ( col0 ) > - + col1
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1749
SELECT + col0 + - - 58 AS col0, - col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
104
NULL
122
NULL
133
NULL

skipif mysql # not compatible
query II rowsort label-1749
SELECT + col0 + - - 58 AS col0, - col0 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
104
NULL
122
NULL
133
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT - CAST( NULL AS SIGNED ) + + col2 + - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT - CAST ( NULL AS INTEGER ) + + col2 + - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + 78 ) AS col0 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT col2 * 62 FROM tab1 AS cor0
----
3658
4216
5952

query I rowsort
SELECT DISTINCT - ( - + col0 ) * + col2 FROM tab2 cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab2 WHERE - + ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1755
SELECT DISTINCT COUNT( * ) + + 97 - + SUM( DISTINCT - CAST( + 35 AS SIGNED ) ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT COUNT ( * ) + + 97 - + SUM ( DISTINCT - CAST ( + 35 AS INTEGER ) ) FROM tab0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1756
SELECT ALL ( + 24 ) + + AVG ( ( + + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL ( + 24 ) + + AVG ( ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL + - MIN( + col1 ) AS col0 FROM tab1 WHERE ( + 35 ) <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + - MIN ( + col1 ) AS col0 FROM tab1 WHERE ( + 35 ) <= ( NULL )
----
NULL

query I rowsort
SELECT col1 + + + col0 * + col1 + + - col2 FROM tab0
----
-1
1249
1838

query I rowsort
SELECT col2 * - col2 FROM tab1 WHERE 5 * - col0 + - + col1 > 82
----

query II rowsort
SELECT col0, col1 * - - 8 FROM tab1 AS cor0
----
51
112
85
40
91
376

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1761
SELECT 10 col1, + MAX( DISTINCT - col0 ) - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
10
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1761
SELECT 10 col1, + MAX ( DISTINCT - col0 ) - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
10
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1762
SELECT DISTINCT - - 51 / + 98 - 75 * + - col2 + + CAST( NULL AS SIGNED ) / - - col1 col0, + col2 + + col2 FROM tab0 AS cor0
----
NULL
198
NULL
20
NULL
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1762
SELECT DISTINCT - - 51 / + 98 - 75 * + - col2 + + CAST ( NULL AS INTEGER ) / - - col1 col0, + col2 + + col2 FROM tab0 AS cor0
----
NULL
198
NULL
20
NULL
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col1 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 16 * 17 NOT BETWEEN - 85 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL + SUM( ALL - col0 ) * + COUNT( * ) FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL + SUM ( ALL - col0 ) * + COUNT ( * ) FROM tab2
----
-555

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + ( - col2 ) ) * ( + - col2 ) + col2 + + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1767
SELECT DISTINCT + 28 * 46, COUNT( * ) + + 96 col1 FROM tab2 cor0
----
1288
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1767
SELECT DISTINCT + 28 * 46, COUNT ( * ) + + 96 col1 FROM tab2 cor0
----
1288
99

query I rowsort
SELECT 18 * - + 67 AS col0 FROM tab0
----
-1206
-1206
-1206

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 11 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + 85 ) + - + col2 col0 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1771
SELECT 34 DIV col0 col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1771
SELECT 34 / col0 col0 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT - 44 + - 88 FROM tab1
----
-132
-132
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT DISTINCT 18 * + - COUNT( * ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT 18 * + - COUNT ( * ) FROM tab0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT ALL SUM( ALL - col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL SUM ( ALL - col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT - - SUM( + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1776
SELECT - - SUM ( + col1 ) AS col0 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT + - SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-1777
SELECT + - SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 < + - 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1779
SELECT ALL 19 + - col1 + + + 84 * + - col1 * - 59 - col0 * ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL 19 + - col1 + + + 84 * + - col1 * - 59 - col0 * ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL - - SUM( DISTINCT + 86 ) AS col2 FROM tab2 cor0
----
86

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL - - SUM ( DISTINCT + 86 ) AS col2 FROM tab2 cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT 40 - - COUNT( * ) + + 2 * - + ( - - 44 ) - - + 92 FROM tab1 AS cor0 WHERE NOT + col2 * - col2 / + 61 * + - 86 + col0 < col1
----
47

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT 40 - - COUNT ( * ) + + 2 * - + ( - - 44 ) - - + 92 FROM tab1 AS cor0 WHERE NOT + col2 * - col2 / + 61 * + - 86 + col0 < col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT DISTINCT - COUNT( - col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT - COUNT ( - col1 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT col0 + + + col2 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT 26 - - ( - col0 ) * + col2 * col0 FROM tab0 AS cor0 WHERE - 76 IS NOT NULL
----
-10549
-75664
-931465

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT - - SUM( ALL - 76 ) + 29 FROM tab2 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1785
SELECT - - SUM ( ALL - 76 ) + 29 FROM tab2 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT COUNT( * ) + + - 85 col1 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1786
SELECT COUNT ( * ) + + - 85 col1 FROM tab1 AS cor0
----
-82

query I rowsort
SELECT ALL col2 * 78 + 90 + + col0 + - col2 FROM tab2 AS cor0
----
1907
3234
4631

query I rowsort
SELECT DISTINCT - ( col0 ) + col0 + + 98 * - 65 * + - col2 AS col1 FROM tab1
----
375830
433160
611520

query I rowsort
SELECT 17 + - 45 FROM tab1
----
-28
-28
-28

query I rowsort
SELECT DISTINCT col1 + + + col1 * ( + col1 ) FROM tab2
----
2652
4556
6006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1791
SELECT DISTINCT - COUNT( * ) DIV MIN( col1 ) - 3 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT - COUNT ( * ) / MIN ( col1 ) - 3 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - + 64 + - col0 AS col0 FROM tab0 WHERE + ( + col1 ) IS NOT NULL
----
-151
-161
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT ALL - COUNT( * ) + + 28 AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL - COUNT ( * ) + + 28 AS col1 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT + SUM( + col0 ) * SUM( col1 ) FROM tab2 WHERE NULL IS NULL
----
36075

skipif mysql # not compatible
query I rowsort label-1794
SELECT + SUM ( + col0 ) * SUM ( col1 ) FROM tab2 WHERE NULL IS NULL
----
36075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + + col0 + - 78 * - - col0 col0 FROM tab1 WHERE - 98 * col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1796
SELECT DISTINCT + 35 / + CAST( NULL AS SIGNED ) - + CAST( - ( ( + + col1 ) ) AS SIGNED ) * - + 89 / - 48 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT + 35 / + CAST ( NULL AS INTEGER ) - + CAST ( - ( ( + + col1 ) ) AS INTEGER ) * - + 89 / - 48 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * + col2 * - 36 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1798
SELECT CAST( + 21 AS SIGNED ) AS col1, col0 DIV + CAST( + - 69 AS SIGNED ) FROM tab1 AS cor0
----
21
-1
21
-1
21
0

skipif mysql # not compatible
query II rowsort label-1798
SELECT CAST ( + 21 AS INTEGER ) AS col1, col0 / + CAST ( + - 69 AS INTEGER ) FROM tab1 AS cor0
----
21
-1
21
-1
21
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1799
SELECT ALL + + CAST( - - 1 AS SIGNED ) * - col2 DIV - col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL + + CAST ( - - 1 AS INTEGER ) * - col2 / - col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT - MAX( - - 24 ) col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1800
SELECT - MAX ( - - 24 ) col2 FROM tab2 AS cor0
----
-24

query III rowsort
SELECT * FROM tab1 WHERE NOT + 24 < + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, 9 * - - col1 col2 FROM tab2
----
23
459
40
693
58
603

query I rowsort
SELECT DISTINCT col0 * - 3 AS col1 FROM tab2
----
-138
-192
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1804
SELECT CAST( - - col1 AS SIGNED ) * col2 AS col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-1804
SELECT CAST ( - - col1 AS INTEGER ) * col2 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1805
SELECT DISTINCT + AVG ( ALL 38 ) * + + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - MAX( ALL + col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT + AVG ( ALL 38 ) * + + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - MAX ( ALL + col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 * 95 * - + col1 FROM tab1 AS cor0
----
-40375
-406315
-67830

query I rowsort
SELECT - - 50 + + col0 - col2 FROM tab2 cor0
----
67
73
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT ALL - - COUNT( * ) * ( + 77 ) AS col2 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL - - COUNT ( * ) * ( + 77 ) AS col2 FROM tab1 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT ALL COUNT( * ) + + 6 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL COUNT ( * ) + + 6 FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + + + 32 col1 FROM tab0 AS cor0
----
129
129
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1811
SELECT ALL - COUNT( * ) / + AVG ( ALL CAST( NULL AS SIGNED ) ) + - + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - COUNT ( * ) / + AVG ( ALL CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + col0 ) + + - 53 AS col0 FROM tab2 AS cor0
----
-7
11
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT ALL + col2 DIV - ( + col2 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL + col2 / - ( + col2 ) FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT 17 + - COUNT( * ) * COUNT( * ) + 50 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT 17 + - COUNT ( * ) * COUNT ( * ) + 50 FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT + - SUM( ALL - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT + - SUM ( ALL - col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - 5 * + 1 + 45 AS col2 FROM tab0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1817
SELECT + COUNT( DISTINCT + col0 ) DIV + ( + 26 ) AS col2, MIN( - col0 ) AS col2 FROM tab1
----
0
-91

skipif mysql # not compatible
query II rowsort label-1817
SELECT + COUNT ( DISTINCT + col0 ) / + ( + 26 ) AS col2, MIN ( - col0 ) AS col2 FROM tab1
----
0
-91

query I rowsort
SELECT ALL - - 81 FROM tab1 WHERE NOT ( NOT ( NULL ) = - - col2 )
----

query II rowsort
SELECT - col0 * - + 71 AS col1, col2 AS col0 FROM tab2
----
3266
23
4544
40
5325
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col2 FROM tab1
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT DISTINCT - + 80 DIV col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT - + 80 / col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + + 31 + - col2 AS col2 FROM tab1 cor0
----
-28
-37
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1823
SELECT ALL + CAST( NULL AS DECIMAL ) / 77 / - col1 * - 54 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL + CAST ( NULL AS REAL ) / 77 / - col1 * - 54 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1824
SELECT * FROM tab1 AS cor0 WHERE CAST( + col2 AS DECIMAL ) + 84 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1824
SELECT * FROM tab1 AS cor0 WHERE CAST ( + col2 AS REAL ) + 84 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1825
SELECT DISTINCT col2 + + CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT col2 + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab1 WHERE - - col1 * + 57 < + ( + 31 )
----

query I rowsort
SELECT 82 + - + 79 * - - 90 AS col0 FROM tab2
----
-7028
-7028
-7028

query I rowsort
SELECT + col1 * + + col0 AS col1 FROM tab1
----
425
4277
714

query II rowsort
SELECT - col0, - col2 + 48 AS col0 FROM tab2 AS cor0
----
-46
25
-64
8
-75
-10

query I rowsort
SELECT DISTINCT - col2 + + + 44 * + col2 AS col0 FROM tab1 AS cor0
----
2537
2924
4128

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT ALL 94, MAX( + + col1 ) AS col0 FROM tab0
----
94
81

skipif mysql # not compatible
query II rowsort label-1831
SELECT ALL 94, MAX ( + + col1 ) AS col0 FROM tab0
----
94
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT DISTINCT - SUM( + 54 ) FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT - SUM ( + 54 ) FROM tab1
----
-162

query II rowsort
SELECT col2, + 93 AS col2 FROM tab0
----
10
93
47
93
99
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1834
SELECT CAST( - 38 AS SIGNED ), COUNT( * ) AS col1 FROM tab2
----
-38
3

skipif mysql # not compatible
query II rowsort label-1834
SELECT CAST ( - 38 AS INTEGER ), COUNT ( * ) AS col1 FROM tab2
----
-38
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1835
SELECT 50 AS col1, + MAX( + - col2 ) FROM tab2
----
50
-23

skipif mysql # not compatible
query II rowsort label-1835
SELECT 50 AS col1, + MAX ( + - col2 ) FROM tab2
----
50
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT DISTINCT - COUNT( * ) col2, MAX( DISTINCT col0 ) AS col1 FROM tab1
----
-3
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1836
SELECT DISTINCT - COUNT ( * ) col2, MAX ( DISTINCT col0 ) AS col1 FROM tab1
----
-3
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 73 BETWEEN - 30 - + 75 - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT - MAX( ALL 94 ) AS col2 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1838
SELECT - MAX ( ALL 94 ) AS col2 FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT + + MAX( ALL + - 20 ) AS col0 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-1839
SELECT + + MAX ( ALL + - 20 ) AS col0 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT 88 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT - ( col2 ) + - + 71 + + 14 FROM tab1 AS cor0 WHERE 54 * - 29 / - 41 - - col2 IS NOT NULL
----
-116
-125
-153

query I rowsort
SELECT ALL - 18 FROM tab1 cor0
----
-18
-18
-18

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 50 + + + 84 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 / col2 * - col2 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 2 = NULL
----

query I rowsort
SELECT + - ( - 34 ) FROM tab1 AS cor0
----
34
34
34

query I rowsort
SELECT ALL 37 * col2 FROM tab1
----
2183
2516
3552

query I rowsort
SELECT col2 * - col1 + 17 * + col0 FROM tab1
----
-1649
-477
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT COUNT( * ) + + + 53 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-1848
SELECT COUNT ( * ) + + + 53 FROM tab2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1849
SELECT DISTINCT - 94 DIV COUNT( * ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT - 94 / COUNT ( * ) FROM tab0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1850
SELECT DISTINCT col0 DIV col1 * - col0 AS col2 FROM tab2
----
-75
0

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT col0 / col1 * - col0 AS col2 FROM tab2
----
-75
0

query II rowsort
SELECT - + col0 * + col1 - + col1 + - ( - col2 ) + - col2 AS col2, col1 AS col2 FROM tab0 WHERE + col2 IS NOT NULL
----
-1296
81
-1848
21
-98
1

query I rowsort
SELECT DISTINCT + - col2 * + 38 * + 5 FROM tab1 AS cor0
----
-11210
-12920
-18240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1853
SELECT + COUNT( * ) * - - 81 * CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
729

skipif mysql # not compatible
query I rowsort label-1853
SELECT + COUNT ( * ) * - - 81 * CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 + - - col0 col2 FROM tab2 cor0
----
103
74
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + - col2, col2 col2 FROM tab0
----
-98
99
11
10
34
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT + col0 * col2 * + - ( - CAST( NULL AS SIGNED ) ) + - col2 FROM tab0 WHERE + - 32 NOT IN ( - - col1 - + 27, - col0, - 71, + ( + col2 ) + col2 + + + col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT + col0 * col2 * + - ( - CAST ( NULL AS INTEGER ) ) + - col2 FROM tab0 WHERE + - 32 NOT IN ( - - col1 - + 27, - col0, - 71, + ( + col2 ) + col2 + + + col0 )
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 WHERE + 51 * + - 96 * col1 * + col1 * - col0 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1859
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) - - - ( col0 ) * + ( - - col2 ) / - 62 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT - + CAST ( NULL AS REAL ) - - - ( col0 ) * + ( - - col2 ) / - 62 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - MIN( DISTINCT + 89 ) FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-1860
SELECT - MIN ( DISTINCT + 89 ) FROM tab2 AS cor0
----
-89

query I rowsort
SELECT col1 * - col1 * - col1 AS col2 FROM tab2 AS cor0
----
132651
300763
456533

onlyif mysql # DIV for integer division: 
query I rowsort label-1862
SELECT + 77 DIV - ( + col0 ) + col1 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
121
2285
9802

skipif mysql # not compatible
query I rowsort label-1862
SELECT + 77 / - ( + col0 ) + col1 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
121
2285
9802

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1863
SELECT * FROM tab0 WHERE NOT + 60 * - col0 <= + - ( CAST( NULL AS SIGNED ) ) * + ( - + col1 ) * - col2 + + 54 / - CAST( - 19 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1863
SELECT * FROM tab0 WHERE NOT + 60 * - col0 <= + - ( CAST ( NULL AS INTEGER ) ) * + ( - + col1 ) * - col2 + + 54 / - CAST ( - 19 AS REAL )
----

query II rowsort
SELECT ALL col1 AS col0, - ( col1 ) FROM tab0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT - + col0 AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 97 * + 24 FROM tab1
----
2328

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 AS col2, - 96 FROM tab0 AS cor0
----
-15
-96
-87
-96
-97
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT + + COUNT( DISTINCT - - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1869
SELECT + + COUNT ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1870
SELECT 55 + + col1 - - col0 / + CAST( NULL AS SIGNED ) AS col0, + col0 + - col0 AS col2 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-1870
SELECT 55 + + col1 - - col0 / + CAST ( NULL AS INTEGER ) AS col0, + col0 + - col0 AS col2 FROM tab2 AS cor0
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT - col0 * + + col1 + + col2 FROM tab0 AS cor0
----
-1168
-1817
2

query I rowsort
SELECT col0 + - - col0 AS col2 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1873
SELECT col0 DIV col1 DIV 78 + col2 AS col1 FROM tab0 AS cor0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-1873
SELECT col0 / col1 / 78 + col2 AS col1 FROM tab0 AS cor0
----
10
100
47

query II rowsort
SELECT DISTINCT - - 98 AS col1, col1 FROM tab0 AS cor0
----
98
1
98
21
98
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1875
SELECT - MIN( ALL + 65 ) DIV - - COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1875
SELECT - MIN ( ALL + 65 ) / - - COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT - - ( + + 20 ) FROM tab2 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1877
SELECT ( + - 39 ), COUNT( * ) AS col1 FROM tab0
----
-39
3

skipif mysql # not compatible
query II rowsort label-1877
SELECT ( + - 39 ), COUNT ( * ) AS col1 FROM tab0
----
-39
3

query I rowsort
SELECT DISTINCT 71 * 56 + - 51 AS col0 FROM tab0
----
3925

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT DISTINCT COUNT( DISTINCT - col1 ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT COUNT ( DISTINCT - col1 ) * - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL ( COUNT( * ) ) FROM tab2 WHERE + - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL ( COUNT ( * ) ) FROM tab2 WHERE + - col0 IS NOT NULL
----
3

query I rowsort
SELECT - - 70 FROM tab0 WHERE ( 85 ) BETWEEN NULL AND - 45 / - col0 + col1 + col1
----

query I rowsort
SELECT DISTINCT col0 + 9 * + + 79 * - 78 AS col2 FROM tab2
----
-55383
-55394
-55412

query I rowsort
SELECT DISTINCT + 80 * + - col1 AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
-1120
-3760
-400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT col0 - - CAST( - 65 AS SIGNED ) FROM tab2
----
-1
-19
10

skipif mysql # not compatible
query I rowsort label-1884
SELECT col0 - - CAST ( - 65 AS INTEGER ) FROM tab2
----
-1
-19
10

query I rowsort
SELECT - col0 - - col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - + ( col0 ) * ( col2 ) * - ( - - col1 ) - - ( - - col2 ) * - col0 FROM tab0 AS cor0
----
0
17400
56400

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL ( - - MAX( DISTINCT - - 1 ) ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL ( - - MAX ( DISTINCT - - 1 ) ) AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 39 * + col1 + col1 + - col2 FROM tab0 AS cor0
----
-137
-3125
-808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT CAST( - col1 AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-1889
SELECT CAST ( - col1 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL col0 * 74 * - col2 AS col2 FROM tab0 cor0
----
-52170
-64380
-710622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1891
SELECT ALL + col1 + + + CAST( col0 AS SIGNED ) + 75 FROM tab1 AS cor0
----
140
165
213

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL + col1 + + + CAST ( col0 AS INTEGER ) + 75 FROM tab1 AS cor0
----
140
165
213

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1892
SELECT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1893
SELECT + - 36 DIV COUNT( * ) + + + 13 - + 70 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-61

skipif mysql # not compatible
query I rowsort label-1893
SELECT + - 36 / COUNT ( * ) + + + 13 - + 70 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + - 72 ) >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT - + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1895
SELECT - + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 96 <> ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1897
SELECT ALL - col0 * - 93 + + CAST( NULL AS SIGNED ) AS col0, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-1897
SELECT ALL - col0 * - 93 + + CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT SUM( DISTINCT 23 ) * - COUNT( DISTINCT + - col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT SUM ( DISTINCT 23 ) * - COUNT ( DISTINCT + - col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT DISTINCT + col1 AS col0, + 44 AS col0 FROM tab2 AS cor0
----
51
44
67
44
77
44

query I rowsort
SELECT + 60 * + - col1 AS col2 FROM tab2
----
-3060
-4020
-4620

query III rowsort
SELECT * FROM tab2 WHERE NOT - 69 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1902
SELECT - CAST( - - col2 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1902
SELECT - CAST ( - - col2 AS INTEGER ) FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 NOT IN ( + + 70 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1904
SELECT - col0 DIV 43 AS col0 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-1904
SELECT - col0 / 43 AS col0 FROM tab0
----
-2
-2
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1905
SELECT ALL ( col0 ) AS col0, CAST( NULL AS DECIMAL ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1905
SELECT ALL ( col0 ) AS col0, CAST ( NULL AS REAL ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 60 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL - - COUNT( + - 46 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL - - COUNT ( + - 46 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + MAX( 77 ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-1908
SELECT + MAX ( 77 ) FROM tab1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT + COUNT( - - col0 ) + - 25 AS col2 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT + COUNT ( - - col0 ) + - 25 AS col2 FROM tab0
----
-22

query I rowsort
SELECT + 91 * - col0 AS col1 FROM tab1
----
-4641
-7735
-8281

query II rowsort
SELECT + col2 * col1 * 75, - 33 * - - 19 AS col1 FROM tab1
----
100800
-627
22125
-627
239700
-627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1912
SELECT - CAST( NULL AS DECIMAL ) * ( - 75 ) / + ( CAST( + + ( + COUNT( * ) ) AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT - CAST ( NULL AS REAL ) * ( - 75 ) / + ( CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + + col0 * + - col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL ( - 4 ) FROM tab1 cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT + + col2 + + + col0 FROM tab1 cor0
----
144
147
159

query I rowsort
SELECT + 51 + + col0 - + 69 FROM tab0 AS cor0
----
-3
69
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT + MAX( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0 WHERE 16 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1918
SELECT + MAX ( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0 WHERE 16 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 WHERE NULL > - col2 + ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT COUNT( * ) * - 21 + + 0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-1920
SELECT COUNT ( * ) * - 21 + + 0 FROM tab0
----
-63

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + + 69 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT COUNT( * ) + + 77 + - + 26 * - COUNT( * ) + + 21 AS col2 FROM tab2
----
179

skipif mysql # not compatible
query I rowsort label-1922
SELECT COUNT ( * ) + + 77 + - + 26 * - COUNT ( * ) + + 21 AS col2 FROM tab2
----
179

query II rowsort
SELECT DISTINCT - col1 AS col2, + col1 AS col1 FROM tab1
----
-14
14
-47
47
-5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - - 83 col1, - 97 AS col2 FROM tab0 AS cor0
----
-14
-97
-4
-97
68
-97

query I rowsort
SELECT DISTINCT + 2 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
2

query I rowsort
SELECT + 37 AS col1 FROM tab2 cor0 WHERE NOT col1 * col1 BETWEEN NULL AND - col0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT - ( + SUM( ALL col0 ) ) col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1927
SELECT - ( + SUM ( ALL col0 ) ) col2 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1928
SELECT MAX( DISTINCT + 48 ) AS col2, + 75 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-1928
SELECT MAX ( DISTINCT + 48 ) AS col2, + 75 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT - 70 * - ( COUNT( * ) ) col0 FROM tab0 AS cor0
----
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1929
SELECT - 70 * - ( COUNT ( * ) ) col0 FROM tab0 AS cor0
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1930
SELECT ALL + COUNT( * ) DIV 23 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL + COUNT ( * ) / 23 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1931
SELECT ALL - + 26 DIV 52 - + - SUM( DISTINCT col2 ) col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1931
SELECT ALL - + 26 / 52 - + - SUM ( DISTINCT col2 ) col1 FROM tab1 cor0
----
223

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - col0 * + ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 16 * 70 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1120
1120
1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1934
SELECT 48 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT 48 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT - 30 - - - MIN( + col1 ) + - 95 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT - 30 - - - MIN ( + col1 ) + - 95 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 + - col2 <= col0 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 37 AS col2, - 56 * - col0 FROM tab1
----
-37
2856
-37
4760
-37
5096

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) = NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-1939
SELECT col2 AS col1, - 94 DIV + + col2 AS col1 FROM tab2
----
23
-4
40
-2
58
-1

skipif mysql # not compatible
query II rowsort label-1939
SELECT col2 AS col1, - 94 / + + col2 AS col1 FROM tab2
----
23
-4
40
-2
58
-1

query I rowsort
SELECT DISTINCT + ( + col2 ) + - - 36 - - col1 FROM tab1 AS cor0
----
100
146
151

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + col1 * + col0 + - 2 * - - 4
----

query II rowsort
SELECT col2, - 97 + - col1 * + + 26 * + col1 - - - col1 + + + col2 + + col0 + + 22 + - col0 AS col2 FROM tab0 AS cor0
----
10
-11552
47
-170695
99
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col2 FROM tab2 cor0 WHERE + col2 + + + col0 = col2 * + 36
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1944
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col0 * col2 + + - col1 AS col1 FROM tab2 AS cor0
----
1007
2483
4283

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - + ( 32 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT ALL + 72 DIV - + 95 * + + col1 + - 11 col2 FROM tab2 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1947
SELECT ALL + 72 / - + 95 * + + col1 + - 11 col2 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT ALL col0 + + + col0 AS col1 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab1 WHERE + col0 * 74 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE + col0 * 74 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1950
SELECT * FROM tab0 WHERE NOT NULL IS NULL AND NOT + - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1950
SELECT * FROM tab0 WHERE NOT NULL IS NULL AND NOT + - CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT ALL - 88 - - col2 FROM tab0
----
-41
-78
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT 83 * - - COUNT( * ) * + 70 - - + COUNT( col1 ) AS col2 FROM tab1
----
17433

skipif mysql # not compatible
query I rowsort label-1952
SELECT 83 * - - COUNT ( * ) * + 70 - - + COUNT ( col1 ) AS col2 FROM tab1
----
17433

query I rowsort
SELECT col0 - + 69 AS col1 FROM tab2
----
-23
-5
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT col2 - - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1954
SELECT col2 - - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT SUM( - 47 ) - + + MIN( DISTINCT 72 ) FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-1955
SELECT SUM ( - 47 ) - + + MIN ( DISTINCT 72 ) FROM tab0
----
-213

query I rowsort
SELECT DISTINCT col0 * + - 33 FROM tab1
----
-1683
-2805
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT + ( + COUNT( * ) ) + - COUNT( + col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1957
SELECT + ( + COUNT ( * ) ) + - COUNT ( + col2 ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT 81, + col2 FROM tab2
----
81
23
81
40
81
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1959
SELECT - 28 DIV + - col2 col2, + CAST( + col2 AS SIGNED ) FROM tab2
----
0
40
0
58
1
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1959
SELECT - 28 / + - col2 col2, + CAST ( + col2 AS INTEGER ) FROM tab2
----
0
40
0
58
1
23

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col2 = NULL
----

query I rowsort
SELECT ALL - + 33 * 90 FROM tab2 AS cor0
----
-2970
-2970
-2970

query I rowsort
SELECT DISTINCT - + col1 * + - col1 * 30 AS col1 FROM tab1 cor0
----
5880
66270
750

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 88 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1964
SELECT ALL - col2 DIV - 41 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL - col2 / - 41 FROM tab1 AS cor0
----
1
1
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ( + + col1 ) * - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT ALL - col2, col0 AS col2 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < - + col0
----
0

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < - + col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1969
SELECT - COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT - COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT + MIN( ALL - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-1970
SELECT + MIN ( ALL - col0 ) AS col0 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1972
SELECT 60 DIV + - 66 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1972
SELECT 60 / + - 66 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + 51 AS col1 FROM tab1
----
2397
255
714

onlyif mysql # DIV for integer division: 
query II rowsort label-1974
SELECT ALL + 28 DIV col1, + col2 DIV - ( + - col0 ) AS col0 FROM tab1
----
0
0
2
1
5
0

skipif mysql # not compatible
query II rowsort label-1974
SELECT ALL + 28 / col1, + col2 / - ( + - col0 ) AS col0 FROM tab1
----
0
0
2
1
5
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1975
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1975
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 21 * + + 48 IS NULL
----

query II rowsort
SELECT ALL - - col1 * + col2 + + col1, + col2 FROM tab0 AS cor0
----
100
99
231
10
3888
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT DISTINCT col2 DIV + - 87 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT col2 / + - 87 FROM tab1
----
-1
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 83 <= - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 4 AS col0 FROM tab2 cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT MAX( ALL ( - col1 ) ) + 49 AS col1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1983
SELECT MAX ( ALL ( - col1 ) ) + 49 AS col1 FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1984
SELECT ALL 6 DIV + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL 6 / + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1985
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1, 8 AS col0 FROM tab2 AS cor0
----
NULL
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1985
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, 8 AS col0 FROM tab2 AS cor0
----
NULL
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + ( col1 ) col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT CAST( - - col2 AS SIGNED ) AS col1 FROM tab1 WHERE - + 54 + + col0 * - 25 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1 WHERE - + 54 + + col0 * - 25 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT 51 + - COUNT( * ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-1988
SELECT 51 + - COUNT ( * ) FROM tab1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT CAST( + 16 AS SIGNED ) + - MAX( DISTINCT + col2 ) AS col1 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-1989
SELECT CAST ( + 16 AS INTEGER ) + - MAX ( DISTINCT + col2 ) AS col1 FROM tab0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1990
SELECT ALL - col1, col2 + col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + 79 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-1990
SELECT ALL - col1, col2 + col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + 79 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-1991
SELECT SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
185

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * 4 + col0 > + col1 + - - 62 / col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT + 61 * - SUM( - ( + + col2 ) ) + - 64 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 >= ( - col1 )
----
3474

skipif mysql # not compatible
query I rowsort label-1993
SELECT + 61 * - SUM ( - ( + + col2 ) ) + - 64 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 >= ( - col1 )
----
3474

query I rowsort
SELECT ALL + 38 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query II rowsort label-1995
SELECT + COUNT( * ), + MIN( - 78 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-78

skipif mysql # not compatible
query II rowsort label-1995
SELECT + COUNT ( * ), + MIN ( - 78 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT COUNT( DISTINCT - ( 15 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-1996
SELECT COUNT ( DISTINCT - ( 15 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT DISTINCT 57 * + 26 AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT - COUNT( * ) * + SUM( + col2 ) FROM tab0 AS cor0 WHERE NOT 7 + col2 IS NULL
----
-468

skipif mysql # not compatible
query I rowsort label-1998
SELECT - COUNT ( * ) * + SUM ( + col2 ) FROM tab0 AS cor0 WHERE NOT 7 + col2 IS NULL
----
-468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1999
SELECT - + CAST( - 68 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-1999
SELECT - + CAST ( - 68 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT + - 27 AS col2 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT + - ( - ( + - 19 ) ) FROM tab2 AS cor0
----
-19
-19
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT + + col2 * - - 0 DIV - 45 * - 93 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2002
SELECT + + col2 * - - 0 / - 45 * - 93 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 10 * + col1 + col2 + - + 71 AS col2 FROM tab1 cor0
----
165
38
467

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT - SUM( ALL - + 72 ) AS col0 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-2005
SELECT - SUM ( ALL - + 72 ) AS col0 FROM tab1
----
216

query I rowsort
SELECT ALL col0 * 87 * + - col1 FROM tab1
----
-36975
-372099
-62118

query I rowsort
SELECT DISTINCT + 95 * col0 FROM tab2
----
4370
6080
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL SUM( ALL - 79 ) * - 51 * + COUNT( * ) FROM tab1
----
36261

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL SUM ( ALL - 79 ) * - 51 * + COUNT ( * ) FROM tab1
----
36261

query I rowsort
SELECT DISTINCT col0 * 1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2010
SELECT + - col1 col2 FROM tab2 WHERE NOT NULL BETWEEN + + CAST( NULL AS SIGNED ) * + + col2 + + 30 AND 66
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2010
SELECT + - col1 col2 FROM tab2 WHERE NOT NULL BETWEEN + + CAST ( NULL AS INTEGER ) * + + col2 + + 30 AND 66
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2011
SELECT ALL + col2 DIV - 55 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL + col2 / - 55 AS col1 FROM tab0
----
-1
0
0

query II rowsort
SELECT col0 AS col0, + 59 FROM tab2
----
46
59
64
59
75
59

query I rowsort
SELECT DISTINCT - ( - + ( - 3 ) ) * + + 92 FROM tab2
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2014
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - 12 FROM tab1
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-2014
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - 12 FROM tab1
----
NULL
-12

query I rowsort
SELECT - col1 + - - 60 + col1 FROM tab2 WHERE 71 / 79 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 + 2 FROM tab2 AS cor0
----
48
66
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2017
SELECT DISTINCT - col2 DIV + col1 AS col2 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT - col2 / + col1 AS col2 FROM tab1
----
-1
-11
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col0 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT col0 * - 40 - - - col0 * col0 FROM tab2 AS cor0
----
-3956
-6656
-8625

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 + - 33 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 55 col0, - col2 AS col2 FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN + - col1 AND + col1
----

query I rowsort
SELECT ALL - col1 + - 28 + col2 FROM tab0 AS cor0
----
-39
-62
70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 5 BETWEEN NULL AND 12 * + 28 * - - col0
----

query II rowsort
SELECT ALL ( - col1 ), col2 + col2 + - - col0 * + 23 AS col1 FROM tab0 AS cor0
----
-1
2429
-21
2021
-81
439

query I rowsort
SELECT DISTINCT + + col2 + 67 - + col2 - - ( - col1 ) + 7 FROM tab2 cor0
----
-3
23
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2027
SELECT DISTINCT 87 + - - COUNT( * ) * - COUNT( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT 87 + - - COUNT ( * ) * - COUNT ( CAST ( NULL AS REAL ) ) AS col1 FROM tab2 cor0
----
87

query II rowsort
SELECT DISTINCT + 36 * - 56 * col1 - + col2, col0 FROM tab0
----
-163343
15
-2115
97
-42346
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT ALL col1 DIV + col2 + - - ( + - ( ( col1 ) ) ) * 36 FROM tab0
----
-2915
-36
-754

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL col1 / + col2 + - - ( + - ( ( col1 ) ) ) * 36 FROM tab0
----
-2915
-36
-754

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 74 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT - - COUNT( * ) * - - 55 AS col2 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-2031
SELECT - - COUNT ( * ) * - - 55 AS col2 FROM tab1 AS cor0
----
165

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - - col0 ) - + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT DISTINCT ( - + 56 ) * - ( + + COUNT( * ) ) AS col0 FROM tab0 cor0
----
168

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT ( - + 56 ) * - ( + + COUNT ( * ) ) AS col0 FROM tab0 cor0
----
168

query III rowsort
SELECT * FROM tab2 WHERE 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 40 FROM tab2 WHERE NULL IS NULL
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT DISTINCT + COUNT( * ) + 59 FROM tab1 WHERE ( + col1 - ( + col1 ) ) IS NOT NULL
----
62

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT + COUNT ( * ) + 59 FROM tab1 WHERE ( + col1 - ( + col1 ) ) IS NOT NULL
----
62

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) + col0 / - 27 NOT BETWEEN 30 * col2 AND - 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 47 - - col0 * col2 AS col2 FROM tab2
----
1105
2607
4397

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT DISTINCT - COUNT( ALL 48 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT - COUNT ( ALL 48 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2040
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> ( CAST( NULL AS SIGNED ) + col2 * - 64 )
----

skipif mysql # not compatible
query III rowsort label-2040
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> ( CAST ( NULL AS INTEGER ) + col2 * - 64 )
----

query I rowsort
SELECT DISTINCT - 79 * col1 FROM tab0 WHERE NOT ( NULL ) > + col0
----

query I rowsort
SELECT ALL + ( - col0 ) * - col1 AS col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL 50 * 54 AS col0 FROM tab1
----
2700
2700
2700

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - 85 )
----

query I rowsort
SELECT DISTINCT + 86 * col1 AS col1 FROM tab0
----
1806
6966
86

query I rowsort
SELECT - 7 FROM tab0 WHERE NOT + 36 NOT IN ( 31 )
----

query I rowsort
SELECT ALL col2 * 49 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
2303
4851
490

query I rowsort
SELECT 19 FROM tab1 WHERE NOT NULL IS NOT NULL
----
19
19
19

query I rowsort
SELECT DISTINCT col2 - 59 FROM tab0
----
-12
-49
40

query I rowsort
SELECT ALL 88 FROM tab1 WHERE - col2 - + col1 IS NOT NULL
----
88
88
88

query I rowsort
SELECT + col1 FROM tab1 WHERE 73 IN ( + col2 - - ( col1 + col1 * - 52 ) )
----

query I rowsort
SELECT - col2 * + 6 FROM tab1
----
-354
-408
-576

query I rowsort
SELECT DISTINCT + 34 + col0 * + col2 FROM tab1
----
4930
5049
6222

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT COUNT( * ) * 54 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-2054
SELECT COUNT ( * ) * 54 FROM tab1
----
162

query I rowsort
SELECT DISTINCT - ( col2 ) + + 59 FROM tab1
----
-37
-9
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2056
SELECT ALL - 57 DIV - COUNT( * ) + 0 * + 62 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL - 57 / - COUNT ( * ) + 0 * + 62 FROM tab1
----
19

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 15 NOT IN ( 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2058
SELECT + 96 AS col0 FROM tab2 AS cor0 WHERE ( - 6 / + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2058
SELECT + 96 AS col0 FROM tab2 AS cor0 WHERE ( - 6 / + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2059
SELECT ALL + CAST( 84 AS SIGNED ) FROM tab1 cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + CAST ( 84 AS INTEGER ) FROM tab1 cor0
----
84
84
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2060
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 92 + 30 FROM tab0 AS cor0
----
122
122
122

onlyif mysql # DIV for integer division: 
query I rowsort label-2062
SELECT col1 DIV - col1 AS col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2062
SELECT col1 / - col1 AS col2 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 / + 6 FROM tab1 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT col2 FROM tab0 WHERE col0 + 27 / - col0 IS NULL
----

query I rowsort
SELECT + 5 - col0 AS col1 FROM tab0
----
-10
-82
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ( - 90 ) - - SUM( DISTINCT - 16 + - col1 ) AS col1 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-2066
SELECT ( - 90 ) - - SUM ( DISTINCT - 16 + - col1 ) AS col1 FROM tab1
----
-204

query I rowsort
SELECT + col2 - + col0 AS col1 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2068
SELECT + COUNT( * ) + - 52 AS col2 FROM tab1 AS cor0 WHERE CAST( - col1 AS SIGNED ) < ( 29 )
----
-49

skipif mysql # not compatible
query I rowsort label-2068
SELECT + COUNT ( * ) + - 52 AS col2 FROM tab1 AS cor0 WHERE CAST ( - col1 AS INTEGER ) < ( 29 )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT - col2 + + col1 DIV - col0 FROM tab2 AS cor0
----
-24
-41
-58

skipif mysql # not compatible
query I rowsort label-2069
SELECT - col2 + + col1 / - col0 FROM tab2 AS cor0
----
-24
-41
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2070
SELECT DISTINCT - ( MIN( + CAST( NULL AS SIGNED ) ) ) * 13 + + 64 FROM tab0 AS cor0 WHERE NOT + col0 / col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT - ( MIN ( + CAST ( NULL AS INTEGER ) ) ) * 13 + + 64 FROM tab0 AS cor0 WHERE NOT + col0 / col2 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT + - COUNT( * ) + - 66 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-2071
SELECT + - COUNT ( * ) + - 66 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-201

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 <= ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 70 + - 65 AS col1 FROM tab0 AS cor0
----
-135
-135
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT - + 41 * + CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT - + 41 * + CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 7 NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 60 * - col2 + 65 FROM tab0 AS cor0
----
2885
6005
665

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT 13 DIV - col1 AS col1 FROM tab0 AS cor0
----
-13
0
0

skipif mysql # not compatible
query I rowsort label-2077
SELECT 13 / - col1 AS col1 FROM tab0 AS cor0
----
-13
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2078
SELECT ALL - 62 DIV col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - 62 / col0 FROM tab0 AS cor0
----
-4
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 BETWEEN col2 AND + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2080
SELECT ALL + 1 DIV + SUM( ALL - 30 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + 1 / + SUM ( ALL - 30 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab2 WHERE NULL < ( col0 * + ( 69 ) )
----

query I rowsort
SELECT DISTINCT - 87 FROM tab0 WHERE NOT ( col1 + col2 ) <> ( 57 + - col0 )
----

query I rowsort
SELECT DISTINCT 11 * - col1 * 84 AS col1 FROM tab2
----
-47124
-61908
-71148

query I rowsort
SELECT ( - + col0 ) * - 55 AS col2 FROM tab2
----
2530
3520
4125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2085
SELECT ALL COUNT( ALL - ( ( - col1 ) ) ) DIV - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL COUNT ( ALL - ( ( - col1 ) ) ) / - COUNT ( * ) FROM tab1
----
-1

query I rowsort
SELECT ALL 20 + 31 AS col1 FROM tab0 cor0 WHERE + 85 NOT IN ( col0 )
----
51
51
51

query I rowsort
SELECT - col0 * + - col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col1 * + 46 AND 49
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 89 * - col0 < ( - col2 )
----

query IIIIII rowsort
SELECT * FROM ( tab0 cor0 CROSS JOIN tab2 cor1 ) WHERE NOT 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ALL - MIN( ALL 66 ) AS col0 FROM tab0 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - MIN ( ALL 66 ) AS col0 FROM tab0 cor0
----
-66

query I rowsort
SELECT DISTINCT + col2 * + 65 * col0 FROM tab2 AS cor0
----
166400
282750
68770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2094
SELECT + CAST( - MIN( - col0 ) AS SIGNED ) + CAST( ( 38 ) + COUNT( * ) * 41 AS SIGNED ) FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-2094
SELECT + CAST ( - MIN ( - col0 ) AS INTEGER ) + CAST ( ( 38 ) + COUNT ( * ) * 41 AS INTEGER ) FROM tab1 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT - COUNT( * ) + + 57 + COUNT( - 86 ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2095
SELECT - COUNT ( * ) + + 57 + COUNT ( - 86 ) FROM tab2 AS cor0
----
57

query II rowsort
SELECT col2, + 61 * + - 67 FROM tab1 cor0
----
59
-4087
68
-4087
96
-4087

query II rowsort
SELECT DISTINCT 61 AS col2, + col1 AS col1 FROM tab0 cor0
----
61
1
61
21
61
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT DISTINCT - COUNT( * ) + + 58 - COUNT( * ) * 89 AS col0 FROM tab2 AS cor0
----
-212

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT - COUNT ( * ) + + 58 - COUNT ( * ) * 89 AS col0 FROM tab2 AS cor0
----
-212

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - ( - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2100
SELECT DISTINCT + + col2 + - + col2 DIV - - col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT + + col2 + - + col2 / - - col1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL col2 - - col0 FROM tab1 WHERE ( 30 ) NOT BETWEEN + ( + ( col0 ) ) AND ( col2 )
----
144
147
159

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 76 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE ( + col2 * - 41 + + col2 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT BETWEEN - + col2 AND col1 + - 67
----

query I rowsort
SELECT DISTINCT ( - - col0 ) + + col1 * - - col0 * + ( 17 ) + - 45 AS col1 FROM tab0
----
1701
20625
31101

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) NOT IN ( - 34 ) )
----

query II rowsort
SELECT DISTINCT - - col1 + + 85 AS col1, col0 * - col2 FROM tab2 AS cor0
----
136
-1058
152
-4350
162
-2560

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 8 + col1 FROM tab2 cor0
----
59
75
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + - 15 col1 FROM tab2 cor0
----
35
35
35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + col0 * + + ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2112
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-2112
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL - ( + COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL - ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT DISTINCT 46 * - + ( - 85 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
3910

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT DISTINCT + ( + MIN( ALL - col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT + ( + MIN ( ALL - col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 IS NULL AND ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2117
SELECT 2 - - col2 DIV + + col2 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-2117
SELECT 2 - - col2 / + + col2 FROM tab0 AS cor0
----
3
3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 70 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * + 60 + + 64 + + + ( + col1 ) col0 FROM tab0 AS cor0
----
1045
5305
5885

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - col2 * - col2 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2121
SELECT DISTINCT ( - 13 ) DIV 8 * - COUNT( * ) * 40 AS col1 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT ( - 13 ) / 8 * - COUNT ( * ) * 40 AS col1 FROM tab2 AS cor0
----
120

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT - col2 + - col0 + - 49 IS NULL
----
14
47
5

query II rowsort
SELECT ALL - col1 AS col0, 85 AS col1 FROM tab0
----
-1
85
-21
85
-81
85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2124
SELECT - col1, CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-2124
SELECT - col1, CAST ( NULL AS REAL ) AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 98 ) <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2126
SELECT DISTINCT + CAST( - MIN( ALL + col2 ) AS SIGNED ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT + CAST ( - MIN ( ALL + col2 ) AS INTEGER ) FROM tab2
----
-23

query I rowsort
SELECT ALL 40 * - 65 FROM tab1 WHERE ( col1 / + ( - + 15 ) ) IS NULL
----

query I rowsort
SELECT ALL 23 * + col2 FROM tab1
----
1357
1564
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT DISTINCT 99 * - ( - COUNT( * ) ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT 99 * - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
297

query I rowsort
SELECT + col1 * - + col0 FROM tab1 AS cor0 WHERE NOT + 34 = + 26
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 col2, + col2 + - 26 AS col2, col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + + col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT ( - ( - - 5 ) * + ( - 3 ) ) IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - 11 <= - col0
----
85
5
59

query I rowsort
SELECT DISTINCT col0 * 59 FROM tab2
----
2714
3776
4425

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + - col0 ) IS NOT NULL
----

query I rowsort
SELECT - 35 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - + col2 ) + - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT DISTINCT CAST( col1 AS SIGNED ) * + col0 AS col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + col0 AS col1 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2140
SELECT + col1 DIV + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT + col1 / + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL - ( + - ( + MAX( - + 86 ) ) ) AS col0 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - ( + - ( + MAX ( - + 86 ) ) ) AS col0 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT DISTINCT - 60 FROM tab2 AS cor0 WHERE col0 * - col0 <> + - ( - - 36 ) * col0 + - 42
----
-60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( + - 35 ) + - 64 >= NULL
----

query I rowsort
SELECT col1 + 15 * - col0 FROM tab0 AS cor0
----
-1284
-144
-1454

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT MAX( + 50 ) FROM tab2 cor0 WHERE 99 IS NOT NULL
----
50

skipif mysql # not compatible
query I rowsort label-2145
SELECT MAX ( + 50 ) FROM tab2 cor0 WHERE 99 IS NOT NULL
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT 42 + - MAX( - col0 ) + COUNT( * ) + + + 16 + + 41 - - 69 * - COUNT( * ) * 61 AS col1 FROM tab2
----
-12479

skipif mysql # not compatible
query I rowsort label-2146
SELECT 42 + - MAX ( - col0 ) + COUNT ( * ) + + + 16 + + 41 - - 69 * - COUNT ( * ) * 61 AS col1 FROM tab2
----
-12479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT + 4 FROM tab1 WHERE + - CAST( - col2 AS SIGNED ) IS NOT NULL
----
4
4
4

skipif mysql # not compatible
query I rowsort label-2147
SELECT + 4 FROM tab1 WHERE + - CAST ( - col2 AS INTEGER ) IS NOT NULL
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ALL MAX( DISTINCT - + col1 ) col2 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2148
SELECT ALL MAX ( DISTINCT - + col1 ) col2 FROM tab1
----
-5

query I rowsort
SELECT col2 + + - col1 + col1 + - col1 * + col0 * - col1 * - 31 * + col1 + + 65 FROM tab2
----
-189160238
-699273852
-905761367

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 + - - col2 - - + col0 ) NOT BETWEEN + col2 * + col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2151
SELECT CAST( + 20 AS DECIMAL ) / + 98 + - col2 + - col0 - col2 FROM tab0 WHERE ( 2 * - col1 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-2151
SELECT CAST ( + 20 AS REAL ) / + 98 + - col2 + - col0 - col2 FROM tab0 WHERE ( 2 * - col1 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2152
SELECT - + col0 col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + CAST( CAST( + - col0 AS DECIMAL ) AS SIGNED ) AND - - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2152
SELECT - + col0 col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + CAST ( CAST ( + - col0 AS REAL ) AS INTEGER ) AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 * - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2153
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + col2 * - col0 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 44 + - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 = NULL AND NULL IS NULL
----

query I rowsort
SELECT - 0 - col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT + 19 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2158
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS DECIMAL ) + + + CAST( - 32 AS SIGNED ) + + ( + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2158
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS REAL ) + + + CAST ( - 32 AS INTEGER ) + + ( + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 19 AS col0 FROM tab0 AS cor0
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2161
SELECT + col0 * - - CAST( NULL AS DECIMAL ) * 14 + - col2 - + ( - - col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT + col0 * - - CAST ( NULL AS REAL ) * 14 + - col2 - + ( - - col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col1 * + + col0 + + col1 * col2 / - col2 * - + col2 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT + 32 * + col2 AS col0 FROM tab2 AS cor0
----
1280
1856
736

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 ) <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 38 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT SUM( DISTINCT + + 37 ) * - CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2166
SELECT SUM ( DISTINCT + + 37 ) * - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-111

query I rowsort
SELECT - 55 FROM tab2 AS cor0 WHERE NOT col2 * col2 NOT IN ( - col0, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT - MIN( DISTINCT - 22 ) AS col1 FROM tab1 WHERE NOT + - col0 * + + 32 * - + ( + col1 ) = - 57
----
22

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT - MIN ( DISTINCT - 22 ) AS col1 FROM tab1 WHERE NOT + - col0 * + + 32 * - + ( + col1 ) = - 57
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2169
SELECT - 10 / col1 FROM tab0 WHERE NOT ( + 1 ) * + col2 + + col1 + + col1 * - - ( + CAST( NULL AS DECIMAL ) ) < ( + ( 18 ) + + col2 )
----

skipif mysql # not compatible
query I rowsort label-2169
SELECT - 10 / col1 FROM tab0 WHERE NOT ( + 1 ) * + col2 + + col1 + + col1 * - - ( + CAST ( NULL AS REAL ) ) < ( + ( 18 ) + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT - 76 <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT - 76 <> + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT 22 >= - col1 / - col0 + - - col2 - col0
----
1

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT 22 >= - col1 / - col0 + - - col2 - col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT + - SUM( ALL + - col1 ) AS col1 FROM tab1 WHERE NOT + + col1 BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT + - SUM ( ALL + - col1 ) AS col1 FROM tab1 WHERE NOT + + col1 BETWEEN NULL AND + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT - SUM( + + col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2173
SELECT - SUM ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT SUM( ALL 66 ) FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2174
SELECT SUM ( ALL 66 ) FROM tab0 AS cor0
----
198

query I rowsort
SELECT DISTINCT + + col0 * + 90 AS col1 FROM tab2 AS cor0
----
4140
5760
6750

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT - MAX( DISTINCT 27 ) AS col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2176
SELECT - MAX ( DISTINCT 27 ) AS col2 FROM tab1 AS cor0
----
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + col2 ) * + col0 BETWEEN NULL AND ( - col0 - + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2179
SELECT CAST( NULL AS SIGNED ) / col0 * - col0 + + ( ( + + 78 ) ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT CAST ( NULL AS INTEGER ) / col0 * - col0 + + ( ( + + 78 ) ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 26 * + - col0 * + col0 + 22 * - col0 FROM tab2 cor0
----
-107904
-147900
-56028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2181
SELECT DISTINCT CAST( MAX( col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT CAST ( MAX ( col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT DISTINCT SUM( ALL 85 ) + + MIN( ALL - 88 ) AS col2 FROM tab2 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT SUM ( ALL 85 ) + + MIN ( ALL - 88 ) AS col2 FROM tab2 AS cor0
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-2184
SELECT DISTINCT 12 * + col0 DIV - col0 - + - col0 FROM tab2
----
34
52
63

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT 12 * + col0 / - col0 - + - col0 FROM tab2
----
34
52
63

query II rowsort
SELECT DISTINCT + ( + col1 ) AS col2, col2 + + + col0 FROM tab1
----
14
147
47
159
5
144

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT DISTINCT + 8 + + + COUNT( - 40 ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT + 8 + + + COUNT ( - 40 ) FROM tab1 AS cor0
----
11

query I rowsort
SELECT DISTINCT 28 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * - col2 NOT BETWEEN + + col1 + col2 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT DISTINCT + SUM( - col2 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT + SUM ( - col2 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
669

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT 75 * + COUNT( * ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2191
SELECT 75 * + COUNT ( * ) FROM tab2 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT + SUM( - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT + SUM ( - col0 ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL + - 94 FROM tab2 AS cor0 WHERE 36 IS NOT NULL
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL ( - - SUM( DISTINCT col0 ) ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL ( - - SUM ( DISTINCT col0 ) ) AS col1 FROM tab2
----
185

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT + 96 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT + 96 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 14 * - + col2 AS col2 FROM tab2
----
322
560
812

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 83 * 30 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2200
SELECT DISTINCT - 21 AS col1 FROM tab1 AS cor0 WHERE + 58 + col2 BETWEEN - col2 * 66 - + col0 AND + + col1 * + + CAST( NULL AS SIGNED ) + - ( + 60 ) + + col2
----

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT - 21 AS col1 FROM tab1 AS cor0 WHERE + 58 + col2 BETWEEN - col2 * 66 - + col0 AND + + col1 * + + CAST ( NULL AS INTEGER ) + - ( + 60 ) + + col2
----

query II rowsort
SELECT + col1 AS col2, - col1 * - col2 AS col1 FROM tab2
----
51
1173
67
3886
77
3080

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 79 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT + 33 + 94 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 55400066049fe9a655ffc1f4b4055564

query I rowsort
SELECT 13 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query III rowsort
SELECT * FROM tab0 WHERE - 96 <= - 37 + + - col1 - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2, 87 FROM tab0
----
10
87
47
87
99
87

query I rowsort
SELECT ALL + 28 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query II rowsort
SELECT ALL - + ( - 1 ) + col2, ( - col0 ) AS col2 FROM tab2 AS cor0
----
24
-46
41
-64
59
-75

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 40 * - col1 + + col0 IS NULL
----

query I rowsort
SELECT ALL col1 * + col1 + + 14 FROM tab0
----
15
455
6575

query I rowsort
SELECT - col1 + + 77 * - 89 FROM tab0
----
-6854
-6874
-6934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 + 56 col1 FROM tab2
----
77

query I rowsort
SELECT + ( - ( - - 34 ) ) + ( col0 ) AS col0 FROM tab2
----
12
30
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2215
SELECT * FROM tab2 WHERE + - col1 * CAST( NULL AS SIGNED ) < + col0 * col2
----

skipif mysql # not compatible
query III rowsort label-2215
SELECT * FROM tab2 WHERE + - col1 * CAST ( NULL AS INTEGER ) < + col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT + 87 + - + 49 * - + COUNT( * ) AS col1 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-2216
SELECT + 87 + - + 49 * - + COUNT ( * ) AS col1 FROM tab1
----
234

query II rowsort
SELECT ALL + col0, col0 + + col0 * - col2 + + + col0 FROM tab1
----
51
-4794
85
-4845
91
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL - COUNT( col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - COUNT ( col0 ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2219
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( - 82 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2219
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( - 82 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT MAX( DISTINCT + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2220
SELECT MAX ( DISTINCT + col1 ) FROM tab2 cor0
----
77

query I rowsort
SELECT - + 25 FROM tab1 WHERE NOT + + ( + col0 ) IS NULL
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2223
SELECT ALL SUM( DISTINCT - - col0 ) AS col0, - 75 FROM tab2
----
185
-75

skipif mysql # not compatible
query II rowsort label-2223
SELECT ALL SUM ( DISTINCT - - col0 ) AS col0, - 75 FROM tab2
----
185
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT DISTINCT + 66 * - 72 - + COUNT( * ) AS col2 FROM tab1 cor0
----
-4755

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT + 66 * - 72 - + COUNT ( * ) AS col2 FROM tab1 cor0
----
-4755

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL - MAX( - ( col1 ) ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL - MAX ( - ( col1 ) ) FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL 91 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL 91 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
273

query I rowsort
SELECT ALL ( 83 ) AS col1 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT ALL - 47 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT + 72 * col1 * + 72 + + - col1 + col0 + + col2 * + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col1 FROM tab2 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL MIN( - 21 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL MIN ( - 21 ) FROM tab1 AS cor0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2232
SELECT ALL + MAX( ALL 34 ) - + CAST( NULL AS SIGNED ), 65 - - COUNT( * ) * - - COUNT( 0 ) - - CAST( NULL AS SIGNED ) * - + COUNT( * ) * + AVG ( - - col2 ) + 0 FROM tab2 cor0 WHERE + 91 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2232
SELECT ALL + MAX ( ALL 34 ) - + CAST ( NULL AS INTEGER ), 65 - - COUNT ( * ) * - - COUNT ( 0 ) - - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * + AVG ( - - col2 ) + 0 FROM tab2 cor0 WHERE + 91 IS NOT NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT DISTINCT - COUNT( DISTINCT - 46 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT - COUNT ( DISTINCT - 46 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT DISTINCT + ( + - 84 ) * - SUM( col2 ) FROM tab0
----
13104

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT + ( + - 84 ) * - SUM ( col2 ) FROM tab0
----
13104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 80 col0 FROM tab0
----
1680
6480
80

query I rowsort
SELECT ( - 60 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2237
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-2237
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 <= - col1
----

query II rowsort
SELECT - 17 AS col2, col1 AS col0 FROM tab1
----
-17
14
-17
47
-17
5

query I rowsort
SELECT - 32 * - - col0 AS col0 FROM tab2 AS cor0
----
-1472
-2048
-2400

onlyif mysql # aggregate syntax: 
query II rowsort label-2241
SELECT DISTINCT + COUNT( * ), + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2241
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 26 < - + col0
----

query I rowsort
SELECT DISTINCT + col1 + + - 60 AS col0 FROM tab1 AS cor0
----
-13
-46
-55

query II rowsort
SELECT - col0, col2 * + col0 AS col1 FROM tab1 AS cor0
----
-51
4896
-85
5015
-91
6188

query I rowsort
SELECT ALL - 94 + - col0 AS col0 FROM tab2 AS cor0
----
-140
-158
-169

query I rowsort
SELECT col1 * - col0 + + + col0 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT - 45 * - 61 AS col1 FROM tab1
----
2745
2745
2745

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT 28 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT 28 / - col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2249
SELECT + CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2249
SELECT + CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

query II rowsort
SELECT - col2 * - col1 AS col2, col1 AS col2 FROM tab2 AS cor0
----
1173
51
3080
77
3886
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 10 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 - + col1 - + 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 * 63 + col1 AS col0 FROM tab2 AS cor0
----
3264
4288
4928

query I rowsort
SELECT DISTINCT - col1 + - 37 * - 59 FROM tab0
----
2102
2162
2182

query I rowsort
SELECT - ( 52 ) - 38 FROM tab2
----
-90
-90
-90

query I rowsort
SELECT DISTINCT col1 - + 51 * - col0 FROM tab2
----
2397
3341
3892

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL + 27 + - COUNT( * ) AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + 27 + - COUNT ( * ) AS col0 FROM tab0
----
24

query I rowsort
SELECT - 59 FROM tab1 WHERE col2 IS NOT NULL
----
-59
-59
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2259
SELECT * FROM tab2 WHERE + + col0 NOT IN ( + ( + - CAST( NULL AS SIGNED ) ), 75 * + col2, + col1 / - col0 )
----

skipif mysql # not compatible
query III rowsort label-2259
SELECT * FROM tab2 WHERE + + col0 NOT IN ( + ( + - CAST ( NULL AS INTEGER ) ), 75 * + col2, + col1 / - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 53 IS NULL
----

query I rowsort
SELECT ALL col0 * 23 + + - col1 FROM tab1
----
1159
1950
2046

query I rowsort
SELECT DISTINCT col0 - + - col1 - 73 * - col2 AS col1 FROM tab0
----
3527
7325
838

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT col2 + - 11 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT col2 + - 11 >= NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <= col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT SUM( DISTINCT + - col1 ) * - COUNT( ALL - - 14 ) AS col2 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT SUM ( DISTINCT + - col1 ) * - COUNT ( ALL - - 14 ) AS col2 FROM tab2 AS cor0
----
585

query I rowsort
SELECT DISTINCT + - col2 * - 45 AS col1 FROM tab0 AS cor0
----
2115
4455
450

query I rowsort
SELECT ALL + 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL - ( - - col0 ) FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-2269
SELECT ALL 85 AS col0, + col0 * col0 + + col0 DIV - - 4 AS col0 FROM tab1
----
85
2613
85
7246
85
8303

skipif mysql # not compatible
query II rowsort label-2269
SELECT ALL 85 AS col0, + col0 * col0 + + col0 / - - 4 AS col0 FROM tab1
----
85
2613
85
7246
85
8303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2270
SELECT + col0 * - - ( + CAST( NULL AS SIGNED ) ) + col1 FROM tab0 AS cor0 WHERE NOT col0 + + - col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-2270
SELECT + col0 * - - ( + CAST ( NULL AS INTEGER ) ) + col1 FROM tab0 AS cor0 WHERE NOT col0 + + - col1 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + - 2 + - col0 - + - col0 * - col1 + 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 * + 53 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2273
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 * + 53 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT MIN( - 63 ) AS col2 FROM tab1 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2274
SELECT MIN ( - 63 ) AS col2 FROM tab1 cor0
----
-63

query I rowsort
SELECT + col2 * - + col2 + + 69 * col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT - 22 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2276
SELECT - 22 / + col2 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + 37 * + col0, + 35 FROM tab0 WHERE NOT - - 51 >= col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT + 89 + - ( - COUNT( * ) ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-2278
SELECT + 89 + - ( - COUNT ( * ) ) FROM tab1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL SUM( ALL - col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL SUM ( ALL - col1 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT col2 * - col1 + + col2 FROM tab1
----
-1248
-236
-3128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + col1 col1, - col1 AS col1 FROM tab2
----
0
-51
0
-67
0
-77

query I rowsort
SELECT DISTINCT + + 24 + 97 FROM tab0 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-2283
SELECT ALL - col1 * + 80 + + - col0 DIV - 27 FROM tab1 AS cor0
----
-1119
-3757
-397

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL - col1 * + 80 + + - col0 / - 27 FROM tab1 AS cor0
----
-1119
-3757
-397

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT DISTINCT COUNT( * ) * - 23 + - ( + + COUNT( * ) ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT COUNT ( * ) * - 23 + - ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
-72

query I rowsort
SELECT ALL col0 + + 7 AS col0 FROM tab0 AS cor0
----
104
22
94

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT DISTINCT + + COUNT( * ), + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-2286
SELECT DISTINCT + + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
65

query I rowsort
SELECT ALL + ( - col2 ) AS col1 FROM tab2 cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - 95 + - - col1 + + - col1 + - + col1 col2 FROM tab1 AS cor0
----
14
-109
47
-142
5
-100

query I rowsort
SELECT - - 77 + + col0 AS col1 FROM tab0 AS cor0
----
164
174
92

query I rowsort
SELECT ALL + col0 * - col1 * 80 AS col1 FROM tab0 AS cor0
----
-146160
-7760
-97200

query I rowsort
SELECT ALL - 22 + + col2 + col1 + - col1 * + - col0 - - col2 + + + 90 * - col0 * + col0 * - 72 FROM tab2 AS cor0
----
13714101
26547143
36455186

query II rowsort
SELECT DISTINCT + col2, 40 FROM tab2 AS cor0
----
23
40
40
40
58
40

query I rowsort
SELECT col0 * + col0 + 93 * + - col1 + + col0 + ( + col0 ) - - 26 AS col2 FROM tab1 AS cor0
----
1427
4118
6956

onlyif mysql # DIV for integer division: 
query I rowsort label-2295
SELECT - ( + + 63 ) DIV - - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2295
SELECT - ( + + 63 ) / - - col1 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2296
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL NOT IN ( col2, 25, - ( - 28 ), - CAST( NULL AS SIGNED ) - + CAST( 37 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2296
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL NOT IN ( col2, 25, - ( - 28 ), - CAST ( NULL AS INTEGER ) - + CAST ( 37 AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT + ( - COUNT( - 35 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2297
SELECT + ( - COUNT ( - 35 ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL + ( + - col1 ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col1 / + col0 FROM tab2 WHERE NOT - ( - 68 ) < ( - col0 ) * - col0 + - 55 * - 92 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2300
SELECT * FROM tab2 WHERE NOT - 44 + - 30 / + - CAST( NULL AS SIGNED ) + 99 / + + col1 > + 8
----

skipif mysql # not compatible
query III rowsort label-2300
SELECT * FROM tab2 WHERE NOT - 44 + - 30 / + - CAST ( NULL AS INTEGER ) + 99 / + + col1 > + 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT DISTINCT + 24 * + COUNT( * ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT + 24 * + COUNT ( * ) AS col0 FROM tab1
----
72

query I rowsort
SELECT DISTINCT + 72 * - - col1 - - col1 FROM tab2 AS cor0
----
3723
4891
5621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT - CAST( NULL AS SIGNED ) * - col2 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2303
SELECT - CAST ( NULL AS INTEGER ) * - col2 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 19 * + - col0 FROM tab1
----
-1615
-1729
-969

query I rowsort
SELECT DISTINCT - + col2 * - 50 FROM tab2 AS cor0
----
1150
2000
2900

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT + 87 * + MIN( - + col2 ) + - 97 + - 65 * MIN( 23 ) + + 97 + - 90 FROM tab2 cor0
----
-6631

skipif mysql # not compatible
query I rowsort label-2306
SELECT + 87 * + MIN ( - + col2 ) + - 97 + - 65 * MIN ( 23 ) + + 97 + - 90 FROM tab2 cor0
----
-6631

query I rowsort
SELECT - col1 + + 66 + + - 24 FROM tab2 AS cor0
----
-25
-35
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2308
SELECT col1 AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2308
SELECT col1 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, + 34 AS col0 FROM tab0 AS cor0
----
-15
34
-87
34
-97
34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = - col2 * - col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT - MAX( + + col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2311
SELECT - MAX ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2312
SELECT DISTINCT COUNT( * ) col1, - 67 + - MAX( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
3
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2312
SELECT DISTINCT COUNT ( * ) col1, - 67 + - MAX ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
3
-57

query III rowsort
SELECT * FROM tab0 WHERE NOT 69 * - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 86 + col2 FROM tab1
----
145
154
182

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT ALL - ( + - col0 ) * col2 DIV - col1 FROM tab0
----
-41
-8
-9603

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL - ( + - col0 ) * col2 / - col1 FROM tab0
----
-41
-8
-9603

query I rowsort
SELECT ALL 4 + - + 44 FROM tab0
----
-40
-40
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2317
SELECT ALL COUNT( * ) DIV 22 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL COUNT ( * ) / 22 AS col0 FROM tab2
----
0

query I rowsort
SELECT - 69 * - col0 AS col0 FROM tab0 AS cor0
----
1035
6003
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL ( 88 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL ( 88 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + ( + 19 ) col2 FROM tab0 AS cor0
----
118
29
66

query II rowsort
SELECT ALL - ( - col0 ) + 0 + col0 AS col0, 69 FROM tab1 AS cor0
----
102
69
170
69
182
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT 96 * - CAST( ( + col2 ) AS SIGNED ) FROM tab0
----
-4512
-9504
-960

skipif mysql # not compatible
query I rowsort label-2322
SELECT 96 * - CAST ( ( + col2 ) AS INTEGER ) FROM tab0
----
-4512
-9504
-960

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2323
SELECT + ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2323
SELECT + ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2325
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + col0, 78 + + + 82 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + + col1 ) + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2328
SELECT col1 * - CAST( - 35 AS SIGNED ) + col2 - + 48 * - + col1 AS col2 FROM tab1 AS cor0
----
1258
3969
474

skipif mysql # not compatible
query I rowsort label-2328
SELECT col1 * - CAST ( - 35 AS INTEGER ) + col2 - + 48 * - + col1 AS col2 FROM tab1 AS cor0
----
1258
3969
474

query II rowsort
SELECT DISTINCT ( - col0 ), 43 + + col1 AS col2 FROM tab1 AS cor0
----
-51
57
-85
48
-91
90

query I rowsort
SELECT col2 * + 95 AS col0 FROM tab2
----
2185
3800
5510

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT DISTINCT + COUNT( ALL + + 48 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT + COUNT ( ALL + + 48 ) FROM tab1
----
3

query II rowsort
SELECT col2 AS col1, + col0 AS col2 FROM tab2
----
23
46
40
64
58
75

query II rowsort
SELECT ALL - col2 AS col2, col2 + - col2 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

query I rowsort
SELECT - + ( + - 23 ) AS col0 FROM tab0 AS cor0
----
23
23
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 93 * + + 53 * + col0 * - - col2 < col0 + - - 8 + + 50 + col1 - - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 26 * col2 AS col2 FROM tab0 AS cor0
----
-1222
-2574
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT SUM( DISTINCT + 98 ) * 21 FROM tab0
----
2058

skipif mysql # not compatible
query I rowsort label-2337
SELECT SUM ( DISTINCT + 98 ) * 21 FROM tab0
----
2058

query I rowsort
SELECT + 44 * + - col2 FROM tab2
----
-1012
-1760
-2552

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2339
SELECT DISTINCT col1 + ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT col1 + ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ALL COUNT( * ) * + MAX( DISTINCT col0 ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT DISTINCT + col2 * - CAST( 54 AS SIGNED ) - - col1 AS col1 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-2457
-519
-5345

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT + col2 * - CAST ( 54 AS INTEGER ) - - col1 AS col1 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-2457
-519
-5345

query I rowsort
SELECT col0 + ( + 70 ) AS col1 FROM tab2
----
116
134
145

query I rowsort
SELECT ALL + 57 + + 40 - + - 89 AS col0 FROM tab1
----
186
186
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) / AVG ( 9 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) / AVG ( 9 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 11 ) + col0 - - + col1 FROM tab0
----
85
87
97

query III rowsort
SELECT * FROM tab1 WHERE + 10 < NULL
----

query I rowsort
SELECT + col2 + + col0 * col2 FROM tab2
----
1081
2600
4408

query III rowsort
SELECT * FROM tab0 WHERE + 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL + MAX( ALL - + col2 ) + - + 38 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL + MAX ( ALL - + col2 ) + - + 38 FROM tab2
----
-61

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 84 * - ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT DISTINCT + COUNT( * ) * - COUNT( DISTINCT - col2 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT + COUNT ( * ) * - COUNT ( DISTINCT - col2 ) FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2353
SELECT ALL col1 DIV - 21 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL col1 / - 21 FROM tab1 AS cor0
----
-2
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT DISTINCT - col0 DIV + ( + - 54 ) FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT - col0 / + ( + - 54 ) FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 > + col0
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT ALL CAST( NULL AS SIGNED ) - COUNT( * ) / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL CAST ( NULL AS INTEGER ) - COUNT ( * ) / - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL - MIN( DISTINCT col0 ) + + 18 AS col1 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL - MIN ( DISTINCT col0 ) + + 18 AS col1 FROM tab2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT 14 - COUNT( 49 ) AS col0 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT 14 - COUNT ( 49 ) AS col0 FROM tab0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2359
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + col1 col2 FROM tab1 cor0
----
45
54
87

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 26 / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2362
SELECT ALL - ( COUNT( * ) ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - ( COUNT ( * ) ) / - + COUNT ( * ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT 20 * 58 FROM tab2 AS cor0
----
1160
1160
1160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, + col2 + col2 col2 FROM tab0 AS cor0
----
15
94
87
20
97
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2365
SELECT - - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2365
SELECT - - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT ALL col2, - 60 FROM tab1 AS cor0
----
59
-60
68
-60
96
-60

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 NOT IN ( + + col0, - 9, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 79 col1 FROM tab2 AS cor0
----
-12
-2
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT 59 + COUNT( * ) AS col2 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-2369
SELECT 59 + COUNT ( * ) AS col2 FROM tab1
----
62

query I rowsort
SELECT - 83 + - col1 * - ( - col0 ) + - 26 FROM tab1 AS cor0
----
-4386
-534
-823

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL + MIN( DISTINCT + + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + MIN ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 * - 28 IS NULL
----
51

query II rowsort
SELECT + 45, 33 AS col0 FROM tab2 AS cor0
----
45
33
45
33
45
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT MAX( + + 85 ) AS col0 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2374
SELECT MAX ( + + 85 ) AS col0 FROM tab1 AS cor0
----
85

query I rowsort
SELECT ALL + 14 + - - 53 AS col0 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT ALL - col0 * + 64 + + + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-5568
-6208
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT MIN( ALL col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2377
SELECT MIN ( ALL col2 ) AS col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT DISTINCT + 91 + - COUNT( * ) AS col2 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT + 91 + - COUNT ( * ) AS col2 FROM tab2
----
88

query I rowsort
SELECT ALL - col1 + - + col1 * - + 47 * - 72 * + + col2 FROM tab2
----
-10422797
-13150291
-3969483

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 14 + + - col2 - - col1 * - col0 + - col2 NOT BETWEEN + ( - col1 ) + - col1 AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2381
SELECT DISTINCT COUNT( * ) + + 77 AS col1, 39 + + 24 FROM tab2
----
80
63

skipif mysql # not compatible
query II rowsort label-2381
SELECT DISTINCT COUNT ( * ) + + 77 AS col1, 39 + + 24 FROM tab2
----
80
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col1 FROM tab0
----
61
61
61

query I rowsort
SELECT DISTINCT - col2 * + col2 + col1 * col2 FROM tab0
----
-9702
110
1598

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT + 18 + + MIN( DISTINCT - col0 ) FROM tab2 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2384
SELECT + 18 + + MIN ( DISTINCT - col0 ) FROM tab2 cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT DISTINCT - + MAX( ALL 30 ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT - + MAX ( ALL 30 ) FROM tab0 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2386
SELECT + 39, SUM( DISTINCT 38 ) AS col1 FROM tab1
----
39
38

skipif mysql # not compatible
query II rowsort label-2386
SELECT + 39, SUM ( DISTINCT 38 ) AS col1 FROM tab1
----
39
38

query I rowsort
SELECT ALL + 32 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT - ( + COUNT( * ) ) * - MIN( + col2 ) + COUNT( * ) AS col2 FROM tab1 cor0
----
180

skipif mysql # not compatible
query I rowsort label-2388
SELECT - ( + COUNT ( * ) ) * - MIN ( + col2 ) + COUNT ( * ) AS col2 FROM tab1 cor0
----
180

query II rowsort
SELECT - - col2, + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + 81 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + 81 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT - - MAX( - 13 ) * 7 + - COUNT( * ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2391
SELECT - - MAX ( - 13 ) * 7 + - COUNT ( * ) FROM tab1 AS cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2392
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2392
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + 25 FROM tab0
----
2025
25
525

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( 37 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT - SUM( DISTINCT col1 ) col1 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2395
SELECT - SUM ( DISTINCT col1 ) col1 FROM tab0
----
-103

query II rowsort
SELECT DISTINCT - ( + col0 ), col2 + col0 AS col0 FROM tab1
----
-51
147
-85
144
-91
159

query II rowsort
SELECT ALL 63 AS col0, + 95 + col2 FROM tab1
----
63
154
63
163
63
191

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT - ( + COUNT( * ) ) + - + 91 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-2399
SELECT - ( + COUNT ( * ) ) + - + 91 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
-91

query II rowsort
SELECT ALL - col1, - 78 AS col0 FROM tab2 AS cor0
----
-51
-78
-67
-78
-77
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2401
SELECT CAST( NULL AS SIGNED ) col2, - col2 col0 FROM tab0 AS cor0 WHERE NOT ( 72 ) <> col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2401
SELECT CAST ( NULL AS INTEGER ) col2, - col2 col0 FROM tab0 AS cor0 WHERE NOT ( 72 ) <> col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( + col2 )
----

query I rowsort
SELECT DISTINCT ( + 51 ) AS col1 FROM tab0
----
51

query I rowsort
SELECT DISTINCT + 99 AS col2 FROM tab1 WHERE NOT - - 24 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2405
SELECT DISTINCT - 20, + 31 FROM tab2 WHERE NOT + 17 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-2405
SELECT DISTINCT - 20, + 31 FROM tab2 WHERE NOT + 17 >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 36 FROM tab2 AS cor0 WHERE col2 - 72 < col1
----
-36
-36
-36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0 * + col0, + 46, - + 9, - col2, + col2, + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT DISTINCT + + CAST( + + 54 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT + + CAST ( + + 54 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2409
SELECT DISTINCT CAST( + 1 AS SIGNED ) AS col0, COUNT( - col2 ) FROM tab1 cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-2409
SELECT DISTINCT CAST ( + 1 AS INTEGER ) AS col0, COUNT ( - col2 ) FROM tab1 cor0
----
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2410
SELECT col2 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col0 - + CAST( NULL AS SIGNED ) - col0 + + 41 * + col2 + - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2410
SELECT col2 col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col0 - + CAST ( NULL AS INTEGER ) - col0 + + 41 * + col2 + - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > + col0
----

query II rowsort
SELECT ALL 42 + 47 AS col0, col0 AS col2 FROM tab2 AS cor0
----
89
46
89
64
89
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2413
SELECT ALL - col2 DIV + + 40 + - - 15 + - col1 col1 FROM tab2 AS cor0 WHERE NOT + col0 < - + col0
----
-36
-53
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2413
SELECT ALL - col2 / + + 40 + - - 15 + - col1 col1 FROM tab2 AS cor0 WHERE NOT + col0 < - + col0
----
-36
-53
-63

query I rowsort
SELECT ALL + 94 AS col0 FROM tab2 WHERE + col0 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - + - col2 AS col2 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT ALL + ( - CAST( - col0 AS SIGNED ) ) + - + 15 * - - 82 FROM tab0
----
-1133
-1143
-1215

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL + ( - CAST ( - col0 AS INTEGER ) ) + - + 15 * - - 82 FROM tab0
----
-1133
-1143
-1215

query I rowsort
SELECT DISTINCT col2 + 51 FROM tab2
----
109
74
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT - MIN( + 96 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2418
SELECT - MIN ( + 96 ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2419
SELECT ALL 92 AS col2, - COUNT( * ) AS col0 FROM tab0
----
92
-3

skipif mysql # not compatible
query II rowsort label-2419
SELECT ALL 92 AS col2, - COUNT ( * ) AS col0 FROM tab0
----
92
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 96 AND ( + col0 ) + col0
----

query I rowsort
SELECT col2 - + col2 * + ( + 35 ) + + 67 FROM tab0 AS cor0
----
-1531
-273
-3299

query I rowsort
SELECT - col2 - + - col2 + col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2423
SELECT ALL COUNT( * ) + - 23 + - COUNT( * ) + - - 25 + 37 * AVG ( + - CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2423
SELECT ALL COUNT ( * ) + - 23 + - COUNT ( * ) + - - 25 + 37 * AVG ( + - CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT ( NULL ) IS NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT ( + + SUM( DISTINCT - + col0 ) ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT ( + + SUM ( DISTINCT - + col0 ) ) AS col0 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT + COUNT( * ) * 49 + - 96 + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
336

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT + COUNT ( * ) * 49 + - 96 + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
336

query I rowsort
SELECT ( col0 ) AS col0 FROM tab2 cor0 WHERE NOT col0 <= col0 * + col1
----

query I rowsort
SELECT + + col0 * - col0 * + + col2 AS col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT ALL + col0 * + + ( + 65 ) AS col1 FROM tab2 AS cor0
----
2990
4160
4875

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 + - 98 IS NOT NULL
----

query I rowsort
SELECT - 22 * col1 + col1 FROM tab1 cor0
----
-105
-294
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT DISTINCT - SUM( ALL - 89 ) AS col2 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT - SUM ( ALL - 89 ) AS col2 FROM tab0
----
267

query I rowsort
SELECT + col1 * + + 50 FROM tab0
----
1050
4050
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2435
SELECT DISTINCT + 29 DIV + 53 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT + 29 / + 53 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2436
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN + + CAST( + + col0 AS SIGNED ) + 87 AND - col0 / col0 * + 99 + + col0 + - col0 - + + col2 * + col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2436
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN + + CAST ( + + col0 AS INTEGER ) + 87 AND - col0 / col0 * + 99 + + col0 + - col0 - + + col2 * + col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT ALL COUNT( ALL + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL COUNT ( ALL + col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL MAX( - col0 ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL MAX ( - col0 ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT DISTINCT + ( + + MIN( DISTINCT - col1 ) ) + + MAX( + + 59 ) AS col0, 28 AS col0 FROM tab0 AS cor0
----
-22
28

skipif mysql # not compatible
query II rowsort label-2439
SELECT DISTINCT + ( + + MIN ( DISTINCT - col1 ) ) + + MAX ( + + 59 ) AS col0, 28 AS col0 FROM tab0 AS cor0
----
-22
28

query I rowsort
SELECT DISTINCT - col2 - col0 / + col0 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - col0 + - - col2 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2442
SELECT ALL - col1 DIV + col1 + - + col1 AS col1 FROM tab0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL - col1 / + col1 + - + col1 AS col1 FROM tab0
----
-2
-22
-82

query I rowsort
SELECT ALL + + col2 * col2 AS col1 FROM tab0 WHERE + col1 / - + col0 + - + col2 IS NOT NULL
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL MAX( DISTINCT - ( + col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL MAX ( DISTINCT - ( + col1 ) ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT SUM( DISTINCT col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT SUM ( DISTINCT col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT - SUM( DISTINCT 42 ) AS col0 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2446
SELECT - SUM ( DISTINCT 42 ) AS col0 FROM tab1 AS cor0
----
-42

query II rowsort
SELECT ALL col2 AS col1, + col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 47 <= - + col0
----

query II rowsort
SELECT ALL + col1 AS col2, + col1 + - - col0 FROM tab0 AS cor0
----
1
98
21
108
81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT SUM( - col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2450
SELECT SUM ( - col1 ) FROM tab0 cor0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2452
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col2 + - CAST( NULL AS DECIMAL ) * - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2452
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col2 + - CAST ( NULL AS REAL ) * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + ( - ( + col1 ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 * - + 55 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2455
SELECT col2 DIV col0 - + 71 + - col1 AS col2 FROM tab1
----
-118
-76
-84

skipif mysql # not compatible
query I rowsort label-2455
SELECT col2 / col0 - + 71 + - col1 AS col2 FROM tab1
----
-118
-76
-84

query I rowsort
SELECT ALL ( + col2 ) - - - 30 FROM tab0
----
-20
17
69

query I rowsort
SELECT DISTINCT 18 * - col0 AS col2 FROM tab1
----
-1530
-1638
-918

query I rowsort
SELECT + col1 * - 41 + - col1 AS col0 FROM tab1
----
-1974
-210
-588

query II rowsort
SELECT - col0 + col2, col2 FROM tab1
----
-23
68
-26
59
45
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2461
SELECT DISTINCT - CAST( - MIN( ALL - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT - CAST ( - MIN ( ALL - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT 75 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col2 AS col1 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT - col1 * - - 32 AS col2 FROM tab2
----
-1632
-2144
-2464

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE + 97 - - col1 > - col2
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2466
SELECT DISTINCT - 55 DIV + COUNT( ALL + - 61 ) + - COUNT( col2 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT - 55 / + COUNT ( ALL + - 61 ) + - COUNT ( col2 ) FROM tab1 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-2467
SELECT col2 col2, col2 DIV - - col0 AS col2 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2467
SELECT col2 col2, col2 / - - col0 AS col2 FROM tab2 AS cor0
----
23
0
40
0
58
0

query I rowsort
SELECT ALL - col0 * + 50 FROM tab0 AS cor0
----
-4350
-4850
-750

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - col1 * - - col2 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2471
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 < - CAST( - - 90 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2471
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 < - CAST ( - - 90 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT ALL + COUNT( + - 66 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL + COUNT ( + - 66 ) AS col1 FROM tab1 cor0
----
3

query II rowsort
SELECT ALL + 37, col0 AS col2 FROM tab2 AS cor0
----
37
46
37
64
37
75

query II rowsort
SELECT DISTINCT - 47, col0 / + - col1 + col0 FROM tab1 AS cor0 WHERE NOT + col2 - - - col1 > NULL
----

query I rowsort
SELECT + 58 * - + col0 AS col1 FROM tab0
----
-5046
-5626
-870

query II rowsort
SELECT ALL 71 * + col0 * + + 5 + + + col2, col2 FROM tab1
----
18201
96
30234
59
32373
68

query I rowsort
SELECT ALL col0 * + + ( col1 ) FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL + col0 * - - 30 - - col1 FROM tab0 AS cor0
----
2631
2911
531

query I rowsort
SELECT + 74 + + col1 + + 14 * 75 AS col0 FROM tab1 AS cor0
----
1129
1138
1171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT ALL + CAST( NULL AS SIGNED ) / - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL + CAST ( NULL AS INTEGER ) / - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2481
SELECT DISTINCT - 82 DIV - - col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT - 82 / - - col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT + COUNT( DISTINCT - col0 ) * 97 + + 84 FROM tab0 WHERE NULL IS NOT NULL
----
84

skipif mysql # not compatible
query I rowsort label-2482
SELECT + COUNT ( DISTINCT - col0 ) * 97 + + 84 FROM tab0 WHERE NULL IS NOT NULL
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2483
SELECT COUNT( ALL + 35 ) + + - COUNT( * ) FROM tab1 WHERE - CAST( 82 AS SIGNED ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2483
SELECT COUNT ( ALL + 35 ) + + - COUNT ( * ) FROM tab1 WHERE - CAST ( 82 AS INTEGER ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT - 22 * - COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-2484
SELECT - 22 * - COUNT ( * ) FROM tab2
----
66

query I rowsort
SELECT DISTINCT 10 + col0 FROM tab1
----
101
61
95

query II rowsort
SELECT ALL col1 AS col1, + col2 AS col0 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT DISTINCT + + ( - + COUNT( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT + + ( - + COUNT ( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT col1 + - 63 FROM tab1 AS cor0
----
-16
-49
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2489
SELECT col2 * CAST( - - col2 AS SIGNED ) + + - 42 AS col0 FROM tab0 AS cor0
----
2167
58
9759

skipif mysql # not compatible
query I rowsort label-2489
SELECT col2 * CAST ( - - col2 AS INTEGER ) + + - 42 AS col0 FROM tab0 AS cor0
----
2167
58
9759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2490
SELECT + + 29 + + - 36 + + col0 + + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2490
SELECT + + 29 + + - 36 + + col0 + + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT COUNT( * ) * 93 + + 25 AS col2 FROM tab0
----
304

skipif mysql # not compatible
query I rowsort label-2491
SELECT COUNT ( * ) * 93 + + 25 AS col2 FROM tab0
----
304

query I rowsort
SELECT ALL + 86 + 31 AS col0 FROM tab0
----
117
117
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2493
SELECT 17 DIV - COUNT( * ) AS col1 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-2493
SELECT 17 / - COUNT ( * ) AS col1 FROM tab0
----
-5

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - - 96 + - 32 + - 0 * - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2495
SELECT col0 AS col0, - col1 DIV 42 FROM tab0
----
15
-1
87
0
97
0

skipif mysql # not compatible
query II rowsort label-2495
SELECT col0 AS col0, - col1 / 42 FROM tab0
----
15
-1
87
0
97
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 48 + - + col0 BETWEEN NULL AND + + col1
----

query II rowsort
SELECT col1, + col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2498
SELECT - COUNT( * ) * + - CAST( - 11 AS SIGNED ) col0 FROM tab1 cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2498
SELECT - COUNT ( * ) * + - CAST ( - 11 AS INTEGER ) col0 FROM tab1 cor0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT - ( 57 ) * + 39 * + - 47 * - SUM( col2 ) AS col2, + COUNT( * ) col0 FROM tab2 AS cor0
----
-12642201
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2499
SELECT - ( 57 ) * + 39 * + - 47 * - SUM ( col2 ) AS col2, + COUNT ( * ) col0 FROM tab2 AS cor0
----
-12642201
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT MIN( ALL + 58 ) AS col0 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT MIN ( ALL + 58 ) AS col0 FROM tab0 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT 51 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2501
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT 51 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 92 col0 FROM tab1 cor0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2503
SELECT + COUNT( ( CAST( NULL AS SIGNED ) ) ) AS col1, MAX( DISTINCT - col2 ) * - COUNT( ( + - col1 ) ) * 87 AS col2 FROM tab0 AS cor0
----
0
2610

skipif mysql # not compatible
query II rowsort label-2503
SELECT + COUNT ( ( CAST ( NULL AS INTEGER ) ) ) AS col1, MAX ( DISTINCT - col2 ) * - COUNT ( ( + - col1 ) ) * 87 AS col2 FROM tab0 AS cor0
----
0
2610

query II rowsort
SELECT ALL col2 + + col0, + col0 FROM tab0 AS cor0
----
196
97
62
15
97
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col1 col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL 1 * COUNT( * ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL 1 * COUNT ( * ) AS col2 FROM tab2
----
3

query I rowsort
SELECT 95 * - + col2 FROM tab0
----
-4465
-9405
-950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT DISTINCT col0 * - - CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT col0 * - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT col1 * + + 7 FROM tab0
----
147
567
7

query I rowsort
SELECT 64 + - 30 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT ALL - + 87 + - col2 AS col2 FROM tab2 AS cor0
----
-110
-127
-145

query II rowsort
SELECT - + col2 * + 90 * col2, - 69 * + col2 AS col1 FROM tab0 AS cor0 WHERE col1 = - + 34
----

query I rowsort
SELECT col0 FROM tab1 WHERE - col0 NOT IN ( col2 )
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT - 25 FROM tab1 WHERE NOT ( NULL ) <> CAST( NULL AS SIGNED ) * 90
----

skipif mysql # not compatible
query I rowsort label-2514
SELECT - 25 FROM tab1 WHERE NOT ( NULL ) <> CAST ( NULL AS INTEGER ) * 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT 55 AS col1 FROM tab0 WHERE NOT NULL BETWEEN + 25 * ( + 32 / col2 ) AND - CAST( NULL AS SIGNED ) / - col0
----

skipif mysql # not compatible
query I rowsort label-2515
SELECT 55 AS col1 FROM tab0 WHERE NOT NULL BETWEEN + 25 * ( + 32 / col2 ) AND - CAST ( NULL AS INTEGER ) / - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2516
SELECT ALL 65 DIV MIN( DISTINCT 21 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL 65 / MIN ( DISTINCT 21 ) FROM tab2
----
3

query I rowsort
SELECT col2 * 35 AS col1 FROM tab0
----
1645
3465
350

query I rowsort
SELECT DISTINCT ( - 62 ) * col1 FROM tab2
----
-3162
-4154
-4774

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE col2 + + 89 IN ( - col1 )
----

query I rowsort
SELECT col2 - - 37 * col2 FROM tab2
----
1520
2204
874

query III rowsort
SELECT * FROM tab2 WHERE col0 + col0 * + col2 IS NULL
----

query I rowsort
SELECT + col1 + + col0 AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT ( MAX( 31 ) ) AS col2 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT ( MAX ( 31 ) ) AS col2 FROM tab0
----
31

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 <= ( col2 - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + - 61 AS col0 FROM tab2 WHERE NOT 10 IS NULL
----
-15
14
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2526
SELECT ALL + SUM( ALL col2 ) DIV - 21 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL + SUM ( ALL col2 ) / - 21 FROM tab0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2527
SELECT DISTINCT MAX( DISTINCT 60 ) FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) * + col1 BETWEEN ( + col0 * - col2 ) AND ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT MAX ( DISTINCT 60 ) FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * + col1 BETWEEN ( + col0 * - col2 ) AND ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT DISTINCT COUNT( * ) - 14 FROM tab0 WHERE NULL IN ( col0 )
----
-14

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT COUNT ( * ) - 14 FROM tab0 WHERE NULL IN ( col0 )
----
-14

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE col1 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL 3 - MIN( ALL col2 ) AS col0 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL 3 - MIN ( ALL col2 ) AS col0 FROM tab0
----
-7

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 / + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT NULL < + col0
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NULL <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT SUM( DISTINCT - 93 ) AS col1 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-2534
SELECT SUM ( DISTINCT - 93 ) AS col1 FROM tab1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2535
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( + 6 + - CAST( NULL AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-2535
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( + 6 + - CAST ( NULL AS INTEGER ) * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT ALL - 10 DIV 49 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL - 10 / 49 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - 68 FROM tab1 WHERE NOT 79 <> 83 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2540
SELECT - col0 * - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) / 68 NOT BETWEEN + col2 AND + CAST( NULL AS DECIMAL ) * col0
----

skipif mysql # not compatible
query I rowsort label-2540
SELECT - col0 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) / 68 NOT BETWEEN + col2 AND + CAST ( NULL AS REAL ) * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT + 45 FROM tab1 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2541
SELECT + 45 FROM tab1 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2542
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE col2 > col2 / col0
----
46
64
75

query I rowsort
SELECT DISTINCT - ( col1 ) * 69 FROM tab0 AS cor0
----
-1449
-5589
-69

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + col2 BETWEEN ( + col2 ) AND ( col1 * - 77 + + col1 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT + col1 NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col1 NOT IN ( - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE - 91 + col0 * col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE - 91 + col0 * col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 64 * 36 - - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE + ( - 16 ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT + + MIN( ALL - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT + + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL + + ( 88 ) FROM tab2 AS cor0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT - - CAST( + 72 AS SIGNED ) FROM tab2 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-2553
SELECT - - CAST ( + 72 AS INTEGER ) FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT + ( ( 56 ) ) AS col0 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT - - 51 AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-2556
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> - col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2557
SELECT DISTINCT col2 + - CAST( NULL AS DECIMAL ) * col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT col2 + - CAST ( NULL AS REAL ) * col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 45 ) <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2559
SELECT ALL col2 * - col2 * - col2 + - col1 DIV - 53 FROM tab0
----
1000
103824
970299

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL col2 * - col2 * - col2 + - col1 / - 53 FROM tab0
----
1000
103824
970299

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT DISTINCT - COUNT( DISTINCT + 3 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT - COUNT ( DISTINCT + 3 ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT + col1 FROM tab1 WHERE + col0 + col2 > NULL
----

query I rowsort
SELECT DISTINCT 29 + ( col2 ) + 64 AS col2 FROM tab2
----
116
133
151

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( + col0 * + 3 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE col2 + - 28 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2565
SELECT CAST( + - col1 AS SIGNED ) * 54 + + 69 AS col2 FROM tab2
----
-2685
-3549
-4089

skipif mysql # not compatible
query I rowsort label-2565
SELECT CAST ( + - col1 AS INTEGER ) * 54 + + 69 AS col2 FROM tab2
----
-2685
-3549
-4089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2566
SELECT ALL CAST( NULL AS SIGNED ) * MAX( ALL ( + 67 ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL CAST ( NULL AS INTEGER ) * MAX ( ALL ( + 67 ) ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 + + col2 ) >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT - COUNT( * ) + - 11 - - COUNT( * ) AS col0 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-2568
SELECT - COUNT ( * ) + - 11 - - COUNT ( * ) AS col0 FROM tab0
----
-11

query I rowsort
SELECT ALL ( 88 ) FROM tab2
----
88
88
88

query III rowsort
SELECT * FROM tab2 WHERE - col1 / ( + 81 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL + - COUNT( - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL + - COUNT ( - col0 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT COUNT( DISTINCT 29 ) + + 37 AS col2 FROM tab1 AS cor0 WHERE ( + col2 ) BETWEEN ( - col0 ) AND ( ( col2 ) )
----
38

skipif mysql # not compatible
query I rowsort label-2573
SELECT COUNT ( DISTINCT 29 ) + + 37 AS col2 FROM tab1 AS cor0 WHERE ( + col2 ) BETWEEN ( - col0 ) AND ( ( col2 ) )
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 - + col1 * col0 col1 FROM tab0 AS cor0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 WHERE - + ( col0 ) * - col2 IN ( col2 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2575
SELECT - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 WHERE - + ( col0 ) * - col2 IN ( col2 * - col2 )
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT - COUNT( * ) col2 FROM tab0 WHERE NULL NOT IN ( + col2 - + ( col0 ) * + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2577
SELECT - COUNT ( * ) col2 FROM tab0 WHERE NULL NOT IN ( + col2 - + ( col0 ) * + col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <= ( - 19 )
----

query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) * - col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
0

query I rowsort
SELECT - + 89 * + ( + col1 ) * + col0 FROM tab2 AS cor0
----
-208794
-438592
-447225

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 + + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 + + col0 AND NULL
----
0

query II rowsort
SELECT - 43, + col2 AS col0 FROM tab0 AS cor0
----
-43
10
-43
47
-43
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 82 * - col2 * - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( + 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2586
SELECT 63 - + col1 AS col0 FROM tab0 WHERE NOT CAST( + - col1 AS SIGNED ) IS NULL
----
-18
42
62

skipif mysql # not compatible
query I rowsort label-2586
SELECT 63 - + col1 AS col0 FROM tab0 WHERE NOT CAST ( + - col1 AS INTEGER ) IS NULL
----
-18
42
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2587
SELECT + COUNT( ALL - - col1 ) DIV 93 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT + COUNT ( ALL - - col1 ) / 93 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2588
SELECT ALL - CAST( 35 AS SIGNED ) * - COUNT( * ) col1 FROM tab1
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2588
SELECT ALL - CAST ( 35 AS INTEGER ) * - COUNT ( * ) col1 FROM tab1
----
105

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IS NULL AND ( NULL ) <= ( 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT + + SUM( + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2590
SELECT + + SUM ( + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - - 29 * + - ( + ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-1334
-1856
-2175

query I rowsort
SELECT - - col1 * - - col1 AS col0 FROM tab2 AS cor0
----
2601
4489
5929

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN - - col0 AND - 36 + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT + 88 * + + MAX( - col2 ) * + + ( - COUNT( * ) ) * 11 AS col1 FROM tab0
----
29040

skipif mysql # not compatible
query I rowsort label-2594
SELECT + 88 * + + MAX ( - col2 ) * + + ( - COUNT ( * ) ) * 11 AS col1 FROM tab0
----
29040

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT DISTINCT MIN( + col2 ) FROM tab2 WHERE ( + col2 ) IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT MIN ( + col2 ) FROM tab2 WHERE ( + col2 ) IN ( col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + col2 * - + col0 col1 FROM tab2 AS cor0
----
-1009
-2511
-4301

query I rowsort
SELECT col2 + + ( + col0 ) * - col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT - col1 + + 55 AS col0 FROM tab0 cor0
----
-26
34
54

query I rowsort
SELECT DISTINCT - 51 * col1 + + col0 AS col0 FROM tab0 AS cor0
----
-4116
-984
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT ( - col1 * - ( - + col1 ) ) >= - col2 * ( col0 )
----
-1

skipif mysql # not compatible
query I rowsort label-2602
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( - col1 * - ( - + col1 ) ) >= - col2 * ( col0 )
----
-1

query I rowsort
SELECT ALL - 34 * 59 * - col2 + + col2 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
198790
21897
95544

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + MIN( + + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2604
SELECT + MIN ( + + col1 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 + - col2 ) BETWEEN NULL AND + 1
----

query I rowsort
SELECT DISTINCT + col2 * col2 - - col2 FROM tab1 AS cor0 WHERE - col0 <= + 23 * 38
----
3540
4692
9312

query I rowsort
SELECT DISTINCT - - 34 + - col0 AS col0 FROM tab2 AS cor0
----
-12
-30
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT MIN( ALL + - ( + + col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2608
SELECT MIN ( ALL + - ( + + col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2609
SELECT DISTINCT COUNT( ALL - - CAST( - col2 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT COUNT ( ALL - - CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col1 * - col2 FROM tab2 AS cor0 WHERE ( 52 + - + ( + col2 ) ) NOT BETWEEN - col2 AND ( col2 * col1 + - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 70 + 93 NOT BETWEEN 39 AND + + 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 >= + ( + 84 )
----

query I rowsort
SELECT ALL + col1 + - 55 + + col1 + - col1 * ( col0 ) * - 23 AS col0 FROM tab2 AS cor0
----
113443
115654
54005

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT - - 23 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT MAX( DISTINCT - col1 ) FROM tab2 WHERE ( NOT 87 NOT BETWEEN ( NULL ) AND 89 * - ( - col0 ) * 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT MAX ( DISTINCT - col1 ) FROM tab2 WHERE ( NOT 87 NOT BETWEEN ( NULL ) AND 89 * - ( - col0 ) * 75 )
----
NULL

query II rowsort
SELECT DISTINCT 27, 47 - ( + col2 ) AS col0 FROM tab2
----
27
-11
27
24
27
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2619
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 16 FROM tab0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-2619
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 16 FROM tab0
----
NULL
16

query II rowsort
SELECT ALL col0 AS col2, - col2 FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT + col1 + - 87 AS col0 FROM tab0 AS cor0
----
-6
-66
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2622
SELECT - - ( - + col1 ) + - 23 + - + CAST( - col2 AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
36
45
73

skipif mysql # not compatible
query I rowsort label-2622
SELECT - - ( - + col1 ) + - 23 + - + CAST ( - col2 AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
36
45
73

query I rowsort
SELECT - col0 + + 84 FROM tab1 AS cor0
----
-1
-7
33

query I rowsort
SELECT ALL col0 * - + col0 + + + 44 FROM tab0 AS cor0
----
-181
-7525
-9365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2625
SELECT ALL COUNT( * ) * COUNT( * ) - + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL COUNT ( * ) * COUNT ( * ) - + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2626
SELECT - - col2 * - col1 - + ( + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT - - col2 * - col1 - + ( + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - 58 + - 8 + - - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT - MAX( + - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * - col1 NOT BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT - MAX ( + - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * - col1 NOT BETWEEN - col0 AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 73 + - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 33 * + + 74 * - col1 AS col2 FROM tab0 AS cor0
----
-197802
-2442
-51282

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > col2 * - col0 * - col2 * - + col0
----

query I rowsort
SELECT - AVG ( ALL + - 75 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL + COUNT( * ) * + 81 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL + COUNT ( * ) * + 81 FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query II rowsort label-2634
SELECT + 21 col1, - 81 + COUNT( * ) + COUNT( * ) FROM tab0
----
21
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2634
SELECT + 21 col1, - 81 + COUNT ( * ) + COUNT ( * ) FROM tab0
----
21
-75

query I rowsort
SELECT DISTINCT 12 + + 18 FROM tab0 WHERE NOT + col1 + - + col0 * - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, 24 * + - col1 * ( + - col2 ) FROM tab2
----
51
28152
67
93264
77
73920

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT DISTINCT COUNT( + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT COUNT ( + col2 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NOT + + col2 * - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 32 * + - col1 FROM tab0
----
-2592
-32
-672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2640
SELECT CAST( NULL AS SIGNED ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2640
SELECT CAST ( NULL AS INTEGER ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query II rowsort
SELECT col1 AS col1, - 43 AS col2 FROM tab0 AS cor0
----
1
-43
21
-43
81
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - col0 * 76 AS col2 FROM tab1
----
-3876
-6460
-6916

query I rowsort
SELECT DISTINCT col1 * - col2 * - 84 * 50 + + + col0 + col2 * - col0 * ( + 90 ) + col0 FROM tab0 AS cor0
----
-448276
15925980
803874

query I rowsort
SELECT DISTINCT + 3 AS col2 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND + col1 * - col0 * + 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT DISTINCT - 48 DIV + col0 + + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - 48 / + col0 + + - col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - - col0 + - - col0 AS col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2649
SELECT + MIN( - 93 ) + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT + MIN ( - 93 ) + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( - col1 ) FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2651
SELECT ( - col2 ) DIV + + col2 + col1 * 39 AS col2 FROM tab1
----
1832
194
545

skipif mysql # not compatible
query I rowsort label-2651
SELECT ( - col2 ) / + + col2 + col1 * 39 AS col2 FROM tab1
----
1832
194
545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 * + col2 + col2 col1 FROM tab0
----
-1316
-2772
-280

query I rowsort
SELECT 61 * + col0 + col2 * + 63 * - + col0 * + 46 FROM tab1
----
-14185497
-14528285
-17927273

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT MIN( - ( - 23 ) ) + - + 90 AS col1 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-2654
SELECT MIN ( - ( - 23 ) ) + - + 90 AS col1 FROM tab2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2655
SELECT - CAST( NULL AS SIGNED ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT - CAST ( NULL AS INTEGER ) + - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 75 + + col2 AS col1 FROM tab1 WHERE ( + 28 ) IS NOT NULL
----
134
143
171

query II rowsort
SELECT DISTINCT 95 * + col1 - col1 * + - col2 + 68 AS col2, col2 FROM tab0
----
11570
47
2273
10
262
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 col0 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2659
SELECT - ( ( - ( SUM( DISTINCT - col1 ) ) ) ), - CAST( NULL AS SIGNED ) - - 84 AS col1 FROM tab0 AS cor0
----
-103
NULL

skipif mysql # not compatible
query II rowsort label-2659
SELECT - ( ( - ( SUM ( DISTINCT - col1 ) ) ) ), - CAST ( NULL AS INTEGER ) - - 84 AS col1 FROM tab0 AS cor0
----
-103
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 19 * + col1 + + - col1 * ( + 16 ) * - + col2 + - col1
----

query I rowsort
SELECT ALL - 88 + - col0 FROM tab2 AS cor0
----
-134
-152
-163

query I rowsort
SELECT + - 66 FROM tab1 AS cor0 WHERE + col0 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL - 79 + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - 79 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-82

query II rowsort
SELECT col2 AS col0, + col2 FROM tab0 cor0
----
10
10
47
47
99
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 3 NOT IN ( - - col2 + - 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL + SUM( - + col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + SUM ( - + col0 ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT - 84 FROM tab1 WHERE NOT ( NULL < ( + col0 * + - ( + + 83 ) * + - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT MAX( DISTINCT + + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2668
SELECT MAX ( DISTINCT + + col0 ) AS col1 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT ALL 14 DIV + col1 + - col2 + - + col1 AS col2 FROM tab2 WHERE - 28 IS NOT NULL
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL 14 / + col1 + - col2 + - + col1 AS col2 FROM tab2 WHERE - 28 IS NOT NULL
----
-117
-125
-74

query II rowsort
SELECT + col2 + - col1 * 91 * ( + - 0 ), col2 + + + col2 AS col2 FROM tab2 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT ALL SUM( ALL - col0 ) AS col0, + 48 AS col1 FROM tab1 WHERE - col1 + + col1 = + col2
----
NULL
48

skipif mysql # not compatible
query II rowsort label-2671
SELECT ALL SUM ( ALL - col0 ) AS col0, + 48 AS col1 FROM tab1 WHERE - col1 + + col1 = + col2
----
NULL
48

query I rowsort
SELECT DISTINCT - 84 * + 73 * + 10 FROM tab0 AS cor0
----
-61320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col2 FROM tab1 AS cor0
----
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL MAX( 6 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL MAX ( 6 ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
9

query I rowsort
SELECT - 15 + + col0 AS col2 FROM tab2
----
31
49
60

query I rowsort
SELECT + + 70 * col2 AS col1 FROM tab0 AS cor0
----
3290
6930
700

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - + 4 + + + col1 - + - col1 / col0 NOT IN ( + col1 / - - col0 - - - col1 + + 46, col0, + - 34 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT - col0 * 38 * col2 DIV col0 FROM tab1 AS cor0
----
-2242
-2584
-3648

skipif mysql # not compatible
query I rowsort label-2680
SELECT - col0 * 38 * col2 / col0 FROM tab1 AS cor0
----
-2242
-2584
-3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 0 AS col0, col0 col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT + col1 DIV - + 11 + + 23 FROM tab2 AS cor0
----
16
17
19

skipif mysql # not compatible
query I rowsort label-2682
SELECT + col1 / - + 11 + + 23 FROM tab2 AS cor0
----
16
17
19

query I rowsort
SELECT ALL + col2 * + 11 + + 75 + + - col1 + - 44 AS col2 FROM tab2 AS cor0
----
233
394
602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 AS cor0 WHERE - ( + + 10 ) BETWEEN - - col0 AND NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( NULL ) <> ( - 7 )
----

query I rowsort
SELECT + ( 94 ) - col1 FROM tab1
----
47
80
89

query I rowsort
SELECT ALL - 91 * + - col2 * + col2 - col2 FROM tab1
----
316712
420716
838560

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 80 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL COUNT( 4 ) * - 12 AS col1 FROM tab1 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL COUNT ( 4 ) * - 12 AS col1 FROM tab1 cor0
----
-36

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT NULL <= - - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT COUNT( * ) FROM tab1 WHERE NOT + 97 - - + col0 + 31 + - col0 <= ( - 53 )
----
3

skipif mysql # not compatible
query I rowsort label-2691
SELECT COUNT ( * ) FROM tab1 WHERE NOT + 97 - - + col0 + 31 + - col0 <= ( - 53 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 * + - 16 col2 FROM tab2
----
-848
-848
-848

query II rowsort
SELECT col1, col0 * + - col0 AS col1 FROM tab1
----
14
-2601
47
-8281
5
-7225

query I rowsort
SELECT col2 * + - 84 AS col2 FROM tab1
----
-4956
-5712
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL - MAX( ALL col1 ) FROM tab0 WHERE NOT col0 + - col2 + + + 92 + + col0 * 70 + + - ( + - col2 ) IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - MAX ( ALL col1 ) FROM tab0 WHERE NOT col0 + - col2 + + + 92 + + col0 * 70 + + - ( + - col2 ) IS NULL
----
-81

query I rowsort
SELECT col0 + - + 34 FROM tab2
----
12
30
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT + MIN( + - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT + MIN ( + - col1 ) AS col2 FROM tab2
----
-77

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - ( - col2 ) IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT SUM( DISTINCT + col0 ) + - + ( 62 ) AS col0 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-2699
SELECT SUM ( DISTINCT + col0 ) + - + ( 62 ) AS col0 FROM tab2
----
123

query I rowsort
SELECT DISTINCT - col1 + col2 * + col1 FROM tab1
----
1330
290
3149

query I rowsort
SELECT DISTINCT - ( + col0 ) * + ( - 75 ) AS col2 FROM tab2
----
3450
4800
5625

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL IN ( - + 25 )
----

query I rowsort
SELECT ALL + col2 + + - 94 - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL AND NOT col0 IS NULL
----
-111
-117
-118

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - + col1 + + 6 * + - 72 + col0 col1, - 91 AS col1 FROM tab1 AS cor0
----
-1095
-91
-4618
-91
-772
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT + col0 DIV - col0 + + 80 AS col1 FROM tab2 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-2706
SELECT + col0 / - col0 + + 80 AS col1 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT ( - + col0 ) + 91 FROM tab2 AS cor0
----
16
27
45

query III rowsort
SELECT * FROM tab0 WHERE + col0 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT DISTINCT + COUNT( * ) + 89 + - - 20 FROM tab1
----
112

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT + COUNT ( * ) + 89 + - - 20 FROM tab1
----
112

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE ( - col1 BETWEEN NULL AND - + ( - 51 ) * col2 * - - 94 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - - 28 col2 FROM tab0
----
109
29
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2712
SELECT ALL CAST( NULL AS SIGNED ) * - - 91 - + col2 AS col0, - col2 - + ( - col0 ) col1 FROM tab1
----
NULL
-45
NULL
23
NULL
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2712
SELECT ALL CAST ( NULL AS INTEGER ) * - - 91 - + col2 AS col0, - col2 - + ( - col0 ) col1 FROM tab1
----
NULL
-45
NULL
23
NULL
26

query I rowsort
SELECT + 32 AS col2 FROM tab1 WHERE NULL IN ( + col1, - col0, + col0 + + col2 - 55 * + + ( 39 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 27 * + col2 / + col1 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT - CAST( NULL AS SIGNED ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2715
SELECT - CAST ( NULL AS INTEGER ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + + col2 * 29 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 13 AS col0 FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + ( + - col1 ) * 83 FROM tab0 AS cor0
----
-1743
-6723
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT MIN( - 57 ) FROM tab2 WHERE NOT NULL NOT IN ( 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT MIN ( - 57 ) FROM tab2 WHERE NOT NULL NOT IN ( 82 )
----
NULL

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab2 WHERE NULL NOT IN ( - 89, 42 * + col1 )
----

query I rowsort
SELECT ALL ( - + 49 ) AS col2 FROM tab2
----
-49
-49
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT ALL col0 DIV + 54 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL col0 / + 54 FROM tab0
----
0
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + 18 ) + 15 col1, 9 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 35 * - - col0 + col2 FROM tab1 AS cor0
----
-1689
-2916
-3117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 27 col0 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT - - SUM( DISTINCT + 2 ) * - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2727
SELECT - - SUM ( DISTINCT + 2 ) * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT - COUNT( ALL - 25 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2728
SELECT - COUNT ( ALL - 25 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - - col0 + 93
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2730
SELECT ALL CAST( NULL AS SIGNED ) * 0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2730
SELECT ALL CAST ( NULL AS INTEGER ) * 0 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT ALL MAX( - 30 ) FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL MAX ( - 30 ) FROM tab2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col0 * - col2 = - col2
----

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col0 * - col2 = - col2
----

query II rowsort
SELECT col1 AS col0, col1 + col0 FROM tab0 AS cor0
----
1
98
21
108
81
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2734
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2734
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT + MIN( DISTINCT - + col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2736
SELECT + MIN ( DISTINCT - + col1 ) AS col2 FROM tab2
----
-77

query II rowsort
SELECT - 59 AS col0, col1 AS col0 FROM tab2 AS cor0
----
-59
51
-59
67
-59
77

query I rowsort
SELECT ALL 60 + + col2 AS col1 FROM tab2 AS cor0
----
100
118
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT col0 * - 51 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-4427
-4848
-718

skipif mysql # not compatible
query I rowsort label-2739
SELECT col0 * - 51 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-4427
-4848
-718

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, 12 AS col1 FROM tab0 AS cor0
----
10
12
47
12
99
12

query I rowsort
SELECT ALL - col1 * - - col0 * + col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 72 IS NULL
----

query I rowsort
SELECT ALL - col0 + + + 2 + - 93 AS col0 FROM tab0 AS cor0
----
-106
-178
-188

onlyif mysql # DIV for integer division: 
query II rowsort label-2744
SELECT DISTINCT - col0 - 23 col2, - col1 DIV - col2 FROM tab0
----
-110
2
-120
0
-38
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2744
SELECT DISTINCT - col0 - 23 col2, - col1 / - col2 FROM tab0
----
-110
2
-120
0
-38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT - MAX( DISTINCT + 42 ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-2745
SELECT - MAX ( DISTINCT + 42 ) FROM tab0
----
-42

query I rowsort
SELECT + + col0 AS col0 FROM tab2 WHERE NOT + - 26 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2747
SELECT ALL - 38 AS col1, + COUNT( * ) AS col0 FROM tab0
----
-38
3

skipif mysql # not compatible
query II rowsort label-2747
SELECT ALL - 38 AS col1, + COUNT ( * ) AS col0 FROM tab0
----
-38
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( 52 ) IS NOT NULL
----

query I rowsort
SELECT col2 * + + col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT MAX( 20 ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-2750
SELECT MAX ( 20 ) FROM tab0
----
20

query I rowsort
SELECT DISTINCT + - 51 AS col1 FROM tab0 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < - 87
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * col2 BETWEEN NULL AND - 33 * + + col2
----

query II rowsort
SELECT DISTINCT 7 * ( - + col0 ) AS col1, col2 + - 17 + col2 FROM tab1 cor0
----
-357
175
-595
101
-637
119

query II rowsort
SELECT + 63, col2 AS col2 FROM tab0 AS cor0
----
63
10
63
47
63
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2756
SELECT CAST( - COUNT( * ) AS SIGNED ) + + - 84 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-2756
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + - 84 FROM tab2
----
-87

query III rowsort
SELECT * FROM tab0 WHERE NULL = + 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2758
SELECT col1 / + col1 * - + col2 * + - col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2758
SELECT col1 / + col1 * - + col2 * + - col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 56 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 + + + col1 * - col0 - - - 4 AND + col1 + col2 + + + 36
----

query I rowsort
SELECT ALL 45 * + 40 FROM tab1
----
1800
1800
1800

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 48 / + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2762
SELECT - col1 col1, - CAST( NULL AS SIGNED ) FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2762
SELECT - col1 col1, - CAST ( NULL AS INTEGER ) FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, - col0 + - 88 * 66 AS col1 FROM tab2
----
46
-5854
64
-5872
75
-5883

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL ( - - col1 ) FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL - + 0 - 53 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT - col2 + - + col2 AS col1 FROM tab1 cor0
----
-118
-136
-192

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT ALL CAST( - + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + col0 + + - col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2771
SELECT DISTINCT - COUNT( * ) * - COUNT( ALL - 9 ) * - CAST( NULL AS SIGNED ) + + 1 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2771
SELECT DISTINCT - COUNT ( * ) * - COUNT ( ALL - 9 ) * - CAST ( NULL AS INTEGER ) + + 1 col0 FROM tab1
----
NULL

query I rowsort
SELECT 90 * ( - col2 ) AS col0 FROM tab2
----
-2070
-3600
-5220

query I rowsort
SELECT - ( 28 ) AS col1 FROM tab2
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 64 AS col0, - 93 * col1 col0 FROM tab1
----
64
-1302
64
-4371
64
-465

onlyif mysql # aggregate syntax: 
query II rowsort label-2775
SELECT COUNT( * ) AS col1, COUNT( * ) * - 52 FROM tab1
----
3
-156

skipif mysql # not compatible
query II rowsort label-2775
SELECT COUNT ( * ) AS col1, COUNT ( * ) * - 52 FROM tab1
----
3
-156

query I rowsort
SELECT ALL 53 * + col0 AS col0 FROM tab1 AS cor0
----
2703
4505
4823

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT + COUNT( * ) * + + 76 FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-2777
SELECT + COUNT ( * ) * + + 76 FROM tab2 AS cor0
----
228

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 87 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT ALL + + col2 DIV - - 50 + + + col1 FROM tab0 AS cor0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + + col2 / - - 50 + + + col1 FROM tab0 AS cor0
----
2
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE + 91 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE + 91 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 + - col1 / + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2782
SELECT ALL col1 * - - col1 DIV col1 + col0 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL col1 * - - col1 / col1 + col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT - 41 + 25 FROM tab2 AS cor0
----
-16

query II rowsort
SELECT col0 * + - col1 AS col0, + 7 FROM tab0 cor0
----
-1215
7
-1827
7
-97
7

query I rowsort
SELECT ALL + + ( - 39 ) * + col0 * + col0 FROM tab2 AS cor0 WHERE col2 * 83 IS NOT NULL
----
-159744
-219375
-82524

query I rowsort
SELECT ALL + col1 FROM tab1 cor0 WHERE + 27 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2787
SELECT ALL + 70 / + ( - 5 ) AS col0 FROM tab0 cor0 WHERE NOT 60 * - col0 NOT BETWEEN col0 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL + 70 / + ( - 5 ) AS col0 FROM tab0 cor0 WHERE NOT 60 * - col0 NOT BETWEEN col0 AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2788
SELECT + ( + 37 ) AS col1, MAX( DISTINCT + ( - 11 ) ) FROM tab0 AS cor0
----
37
-11

skipif mysql # not compatible
query II rowsort label-2788
SELECT + ( + 37 ) AS col1, MAX ( DISTINCT + ( - 11 ) ) FROM tab0 AS cor0
----
37
-11

query I rowsort
SELECT ALL - col0 * + col0 + + + 93 FROM tab0
----
-132
-7476
-9316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2790
SELECT ALL - ( - - col2 ) + - - 2 + - - CAST( NULL AS SIGNED ) / - - 66 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - ( - - col2 ) + - - 2 + - - CAST ( NULL AS INTEGER ) / - - 66 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT DISTINCT COUNT( * ) + + - MIN( + ( - col0 ) ) AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT COUNT ( * ) + + - MIN ( + ( - col0 ) ) AS col0 FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT - ( - COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL - COUNT( * ) * - 62 AS col1 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL - COUNT ( * ) * - 62 AS col1 FROM tab2
----
186

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2794
SELECT + col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT + col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT ALL + - COUNT( * ) col0 FROM tab2 WHERE NOT + 17 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2795
SELECT ALL + - COUNT ( * ) col0 FROM tab2 WHERE NOT + 17 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT DISTINCT CAST( NULL AS SIGNED ) * 7 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 7 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2797
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 62 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL 96 + - COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL 96 + - COUNT ( * ) FROM tab0
----
93

query I rowsort
SELECT - col1 - + col2 * + + col1 FROM tab0 AS cor0
----
-100
-231
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT - + SUM( col1 ) - 92 col2 FROM tab2 AS cor0
----
-287

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2801
SELECT - + SUM ( col1 ) - 92 col2 FROM tab2 AS cor0
----
-287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2802
SELECT ALL + COUNT( * ) - MIN( ALL + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - CAST( NULL AS SIGNED ) / + - col0 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + COUNT ( * ) - MIN ( ALL + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - CAST ( NULL AS INTEGER ) / + - col0 * + col1
----
NULL

query I rowsort
SELECT + + 3 * - col1 * + col0 * + col2 FROM tab0 cor0
----
-171315
-28809
-54810

query I rowsort
SELECT - col0 * + 34 FROM tab0
----
-2958
-3298
-510

query I rowsort
SELECT ALL - 10 * + 64 FROM tab1
----
-640
-640
-640

query II rowsort
SELECT + col1 * + + col2, col0 * - 59 AS col0 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
1344
-3009
295
-5015
3196
-5369

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT ( ( - - col2 * 1 IS NULL ) )
----
51
85
91

query I rowsort
SELECT DISTINCT col2 * + + 86 AS col0 FROM tab1
----
5074
5848
8256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT - - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 56, - 45, + col0, - + col0 * - 37 + + CAST( NULL AS SIGNED ) / col2 )
----

skipif mysql # not compatible
query I rowsort label-2809
SELECT - - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 56, - 45, + col0, - + col0 * - 37 + + CAST ( NULL AS INTEGER ) / col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2812
SELECT ALL + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT ALL + 55 + + col2 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 90 + - + ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT ALL - MIN( ALL + + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL - MIN ( ALL + + col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0 WHERE + CAST( + col2 AS SIGNED ) / - 20 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2816
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0 WHERE + CAST ( + col2 AS INTEGER ) / - 20 IS NULL
----

query I rowsort
SELECT + 45 * - 77 + + col2 AS col2 FROM tab2 AS cor0
----
-3407
-3425
-3442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + - col2 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 82 + 76 * - - 97 AS col2 FROM tab0 AS cor0
----
7454
7454
7454

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 50 * + col0 BETWEEN NULL AND - + col1
----

query I rowsort
SELECT DISTINCT - col2 + + - col0 + - col0 FROM tab1
----
-198
-229
-250

query I rowsort
SELECT 50 + + col0 AS col0 FROM tab0
----
137
147
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2823
SELECT col2 + - CAST( NULL AS SIGNED ) AS col0, + col1 col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2823
SELECT col2 + - CAST ( NULL AS INTEGER ) AS col0, + col1 col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT ALL 52 + + CAST( + - 65 AS SIGNED ) FROM tab0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL 52 + + CAST ( + - 65 AS INTEGER ) FROM tab0
----
-13
-13
-13

query I rowsort
SELECT ALL + 8 * + col2 AS col0 FROM tab1
----
472
544
768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2826
SELECT DISTINCT - ( - + 83 ) DIV - COUNT( * ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT - ( - + 83 ) / - COUNT ( * ) AS col0 FROM tab1
----
-27

query II rowsort
SELECT 73 * + col1, 34 AS col2 FROM tab0
----
1533
34
5913
34
73
34

query I rowsort
SELECT ALL 6 * col2 FROM tab1
----
354
408
576

query I rowsort
SELECT 91 * - 79 AS col0 FROM tab1
----
-7189
-7189
-7189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2830
SELECT DISTINCT COUNT( * ) DIV 27 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT COUNT ( * ) / 27 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 59 / + - col1 + 78 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * col0 - col2 + + col0 + - col0 - + - 14 * - col1 AS col2 FROM tab1
----
-2893
-7354
-9007

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT COUNT( * ) - 46 * + COUNT( * ) FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-2833
SELECT COUNT ( * ) - 46 * + COUNT ( * ) FROM tab0
----
-135

query I rowsort
SELECT + 4 - - - col1 FROM tab2
----
-47
-63
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2835
SELECT CAST( NULL AS DECIMAL ) - MIN( col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT CAST ( NULL AS REAL ) - MIN ( col2 ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col2, - col0 AS col0 FROM tab2
----
23
-46
40
-64
58
-75

query II rowsort
SELECT ALL 7 AS col2, + col1 * - col1 FROM tab1 AS cor0
----
7
-196
7
-2209
7
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL - + COUNT( DISTINCT + - ( col2 ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - + COUNT ( DISTINCT + - ( col2 ) ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2839
SELECT + 64, COUNT( * ) AS col1 FROM tab2 AS cor0
----
64
3

skipif mysql # not compatible
query II rowsort label-2839
SELECT + 64, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
64
3

query I rowsort
SELECT + 34 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
34
34
34

query I rowsort
SELECT + - col0 * - - 61 FROM tab0 AS cor0
----
-5307
-5917
-915

query I rowsort
SELECT 0 * + col2 + col0 * + col2 * col2 * - 38 AS col0 FROM tab1 AS cor0
----
-11243630
-15989792
-17860608

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL COUNT( - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL COUNT ( - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - 36 FROM tab0 cor0
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE NOT + 20 - - col1 / + 7 NOT BETWEEN + - col2 AND + - 71
----

query I rowsort
SELECT col2 * - 59 AS col2 FROM tab0
----
-2773
-5841
-590

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 < col0 + col2
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT - 90 IN ( + col0, - 10, 24, - col0 )
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2849
SELECT - CAST( NULL AS SIGNED ) * - - COUNT( + col2 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT - CAST ( NULL AS INTEGER ) * - - COUNT ( + col2 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 97 * + 38 AS col0 FROM tab0
----
3686

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + 91 > NULL
----

query II rowsort
SELECT + col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL + col1 + + col1 + - - 33 AS col0 FROM tab1 AS cor0
----
127
43
61

query I rowsort
SELECT - ( 28 ) FROM tab0 AS cor0 WHERE - ( - col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT col2 + 6 FROM tab0 cor0
----
105
16
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2856
SELECT DISTINCT - + CAST( - + 84 AS SIGNED ) + 25, col2 AS col1 FROM tab0 AS cor0
----
109
10
109
47
109
99

skipif mysql # not compatible
query II rowsort label-2856
SELECT DISTINCT - + CAST ( - + 84 AS INTEGER ) + 25, col2 AS col1 FROM tab0 AS cor0
----
109
10
109
47
109
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT ALL + + CAST( NULL AS SIGNED ) + 27 / col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + + CAST ( NULL AS INTEGER ) + 27 / col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 61 + + - col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT 62 FROM tab1 WHERE NULL IS NULL
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2860
SELECT DISTINCT - col0 / + 97 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT - col0 / + 97 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col2, 6 AS col1 FROM tab2
----
51
6
67
6
77
6

query II rowsort
SELECT 37 + 62, col1 FROM tab0 AS cor0
----
99
1
99
21
99
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT ALL + + MAX( - + col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL + + MAX ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT DISTINCT - - COUNT( * ) + 74 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - - COUNT ( * ) + 74 FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT - - MIN( + 18 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2865
SELECT - - MIN ( + 18 ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT - + 37 AS col0 FROM tab0 AS cor0
----
-37

query I rowsort
SELECT DISTINCT + + col2 * - - 71 * col1 FROM tab2 AS cor0
----
218680
275906
83283

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT DISTINCT + + 89 DIV - 31 + - col1 FROM tab1 cor0
----
-16
-49
-7

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT + + 89 / - 31 + - col1 FROM tab1 cor0
----
-16
-49
-7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL - COUNT( 39 ) * ( - + 79 ) FROM tab2 cor0
----
237

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL - COUNT ( 39 ) * ( - + 79 ) FROM tab2 cor0
----
237

query I rowsort
SELECT 23 * - - col1 - col1 FROM tab2 AS cor0
----
1122
1474
1694

query III rowsort
SELECT * FROM tab1 WHERE NOT + 84 * col2 + + col2 <= + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT COUNT( * ) * - 71 * - COUNT( * ) AS col2 FROM tab1
----
639

skipif mysql # not compatible
query I rowsort label-2873
SELECT COUNT ( * ) * - 71 * - COUNT ( * ) AS col2 FROM tab1
----
639

query I rowsort
SELECT col1 * - ( - + col0 ) * col2 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT ( - + ( + + col1 ) ) FROM tab2
----
-51
-67
-77

query II rowsort
SELECT - col0, 80 AS col1 FROM tab0
----
-15
80
-87
80
-97
80

query I rowsort
SELECT - col2 * - - col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT - SUM( DISTINCT + + col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2878
SELECT - SUM ( DISTINCT + + col1 ) AS col0 FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2879
SELECT ALL * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-2879
SELECT ALL * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL + ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL + ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-3

query II rowsort
SELECT DISTINCT + col1, 69 FROM tab2 AS cor0
----
51
69
67
69
77
69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= - col0 * - col2
----

query I rowsort
SELECT ALL + 49 + + col0 + + - col1 AS col1 FROM tab0 cor0
----
-17
115
145

query I rowsort
SELECT + - 10 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( ( col1 ) ) IN ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT ALL - COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL - COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2887
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2888
SELECT ALL - - SUM( ALL + - 31 ) AS col1, - COUNT( DISTINCT - 59 ) AS col2 FROM tab0 AS cor0
----
-93
-1

skipif mysql # not compatible
query II rowsort label-2888
SELECT ALL - - SUM ( ALL + - 31 ) AS col1, - COUNT ( DISTINCT - 59 ) AS col2 FROM tab0 AS cor0
----
-93
-1

query I rowsort
SELECT DISTINCT - + 33 FROM tab0 AS cor0
----
-33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * - + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 45 + - 89 FROM tab1 AS cor0
----
-134
-134
-134

query III rowsort
SELECT * FROM tab2 WHERE + - 32 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - + col1 * 24 + col2 AS col2 FROM tab1
----
32352
7139
76772

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND + - ( + col2 ) * - 76 * + + col0 + - ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE + ( + col0 ) * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT - MIN( ALL - col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2896
SELECT - MIN ( ALL - col0 ) AS col1 FROM tab0
----
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 87 + + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < - col2 * + ( + 8 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT + MAX( + 55 ) - 66 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2901
SELECT + MAX ( + 55 ) - 66 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT DISTINCT - col1 * - 62 + col1 FROM tab0 AS cor0
----
1323
5103
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT - ( - col2 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2903
SELECT - ( - col2 ) / - col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-6

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col2 ) + + 43 IS NOT NULL OR + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL COUNT( DISTINCT col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL COUNT ( DISTINCT col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL - - 67 AS col0 FROM tab1 WHERE NULL IS NULL
----
67
67
67

query II rowsort
SELECT ALL + col1 AS col1, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT 8 + - col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + - col0 * + 65 FROM tab1 AS cor0
----
-3315
-5525
-5915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT + 36 FROM tab1 AS cor0 WHERE NOT NULL > CAST( NULL AS SIGNED ) * + 98 + - 63
----

skipif mysql # not compatible
query I rowsort label-2910
SELECT + 36 FROM tab1 AS cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER ) * + 98 + - 63
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2911
SELECT DISTINCT + - 13 DIV + col0 * col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT + - 13 / + col0 * col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 * - col1 * + 18 FROM tab1 cor0
----
-12852
-7650
-76986

query I rowsort
SELECT ALL col1 * - ( col1 ) FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT DISTINCT + 32 DIV 85 + - + col2 + + col1 * + col0 + - col2 - - col1 AS col2 FROM tab0 AS cor0
----
-100
1202
1828

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + 32 / 85 + - + col2 + + col1 * + col0 + - col2 - - col1 AS col2 FROM tab0 AS cor0
----
-100
1202
1828

query I rowsort
SELECT - col1 * + + 77 AS col1 FROM tab0
----
-1617
-6237
-77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * + - col2 NOT BETWEEN NULL AND - - col2
----

query I rowsort
SELECT DISTINCT - ( + + 77 ) FROM tab0 WHERE NOT 89 * + - 77 + - col0 + - ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT - MIN( - ( + col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2918
SELECT - MIN ( - ( + col2 ) ) FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - + col1 col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL col0 * + - 16 * + - col0 + 53 * + col1 FROM tab0
----
122217
150597
7893

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab0 WHERE NOT - 54 * - col2 NOT BETWEEN NULL AND - + 41
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2922
SELECT ( - + col1 ) * - col1, + col1 + + + 26 DIV - + col0 AS col2 FROM tab2 AS cor0
----
2601
51
4489
67
5929
77

skipif mysql # not compatible
query II rowsort label-2922
SELECT ( - + col1 ) * - col1, + col1 + + + 26 / - + col0 AS col2 FROM tab2 AS cor0
----
2601
51
4489
67
5929
77

query II rowsort
SELECT DISTINCT - 36 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
-36
46
-36
64
-36
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2924
SELECT ALL + 3 AS col1, MAX( col2 ) col1 FROM tab2 cor0
----
3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2924
SELECT ALL + 3 AS col1, MAX ( col2 ) col1 FROM tab2 cor0
----
3
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT COUNT( - col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2925
SELECT COUNT ( - col2 ) FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 46 BETWEEN + 20 AND - col0 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + - - 20 AS col2 FROM tab2 AS cor0
----
-20
-3
-38

query I rowsort
SELECT DISTINCT + AVG ( + 91 ) AS col0 FROM tab2 AS cor0 WHERE + 27 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT - COUNT( - - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2929
SELECT - COUNT ( - - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2930
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 17 + - + 67 * - AVG ( ALL - col1 ) + - COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT CAST ( NULL AS REAL ) + 17 + - + 67 * - AVG ( ALL - col1 ) + - COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + 57 * - - 38 + + col1 * - - col1 AS col0 FROM tab2 AS cor0
----
4744
6597
8055

query I rowsort
SELECT ALL - 71 - - col1 + col2 + + + col2 * - + col2 AS col0 FROM tab0
----
-140
-2152
-9772

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT + COUNT( * ) FROM tab2 WHERE - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT + COUNT ( * ) FROM tab2 WHERE - - col0 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * col0 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT - 95 * - ( 26 ) - - + CAST( - - col2 AS SIGNED ) AS col1 FROM tab2
----
2493
2510
2528

skipif mysql # not compatible
query I rowsort label-2935
SELECT - 95 * - ( 26 ) - - + CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2
----
2493
2510
2528

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT ALL col1 DIV col1 * ( + + col1 ) + + - 84 col0 FROM tab0
----
-3
-63
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2936
SELECT ALL col1 / col1 * ( + + col1 ) + + - 84 col0 FROM tab0
----
-3
-63
-83

query I rowsort
SELECT ALL 10 * col2 AS col0 FROM tab2
----
230
400
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + col0 + - ( - 26 ) AS col2, 96 col2 FROM tab2
----
118
96
154
96
176
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL - ( 91 ) - COUNT( * ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - ( 91 ) - COUNT ( * ) FROM tab1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT ALL - 59 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - 59 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 97 * - - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 97 * - - col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT ALL + col0 DIV - ( - col1 ) - col1 + 10 * - col2 FROM tab1
----
-578
-726
-971

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL + col0 / - ( - col1 ) - col1 + 10 * - col2 FROM tab1
----
-578
-726
-971

query I rowsort
SELECT + col2 + + 28 FROM tab2 AS cor0
----
51
68
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2944
SELECT DISTINCT - MIN( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT - MIN ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 / - col0 * col2 * col2 * + 89 * - - col2 - - 29 + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT + MAX( DISTINCT + - 72 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT + MAX ( DISTINCT + - 72 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2948
SELECT COUNT( col0 ) DIV COUNT( ALL + 16 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2948
SELECT COUNT ( col0 ) / COUNT ( ALL + 16 ) AS col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 * + ( - - col2 ) + - col2 * col0 * + + 20 col1 FROM tab1 AS cor0
----
-122196
-95712
-98943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT ( - CAST( + 87 AS SIGNED ) ) * - - col2 + + CAST( - 14 AS SIGNED ) * + - 64 FROM tab2 AS cor0 WHERE NOT - 28 / col2 * + + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2950
SELECT ( - CAST ( + 87 AS INTEGER ) ) * - - col2 + + CAST ( - 14 AS INTEGER ) * + - 64 FROM tab2 AS cor0 WHERE NOT - 28 / col2 * + + col2 IS NOT NULL
----

query II rowsort
SELECT - col2, col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT CAST( + col1 AS SIGNED ) * - - col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-2952
SELECT CAST ( + col1 AS INTEGER ) * - - col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT DISTINCT - + 42 DIV - col2 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT - + 42 / - col2 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT + 48 * + + col1 FROM tab0
----
1008
3888
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT + 61 + + COUNT( DISTINCT + col2 ) + 39 + MIN( ALL - + col1 ) * - 48 + 36 AS col2 FROM tab2
----
3835

skipif mysql # not compatible
query I rowsort label-2956
SELECT + 61 + + COUNT ( DISTINCT + col2 ) + 39 + MIN ( ALL - + col1 ) * - 48 + 36 AS col2 FROM tab2
----
3835

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT + MIN( - 90 ) + - 53 FROM tab1
----
-143

skipif mysql # not compatible
query I rowsort label-2957
SELECT + MIN ( - 90 ) + - 53 FROM tab1
----
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-2958
SELECT col1 + + - col2 DIV 50 AS col2 FROM tab2
----
51
66
77

skipif mysql # not compatible
query I rowsort label-2958
SELECT col1 + + - col2 / 50 AS col2 FROM tab2
----
51
66
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2959
SELECT + 23 DIV col1 + - 30 AS col1 FROM tab0
----
-29
-30
-7

skipif mysql # not compatible
query I rowsort label-2959
SELECT + 23 / col1 + - 30 AS col1 FROM tab0
----
-29
-30
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT ALL - CAST( NULL AS SIGNED ) * + ( + col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( + col1 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 83 / + ( - + 25 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col2, col1 + + - 28 AS col2 FROM tab1 AS cor0
----
-59
-23
-68
19
-96
-14

query I rowsort
SELECT DISTINCT + col0 + - 21 AS col1 FROM tab0 AS cor0
----
-6
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT DISTINCT - MAX( - 46 ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
55

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT - MAX ( - 46 ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2965
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) AS col0, + 34 AS col1 FROM tab2
----
0
34

skipif mysql # not compatible
query II rowsort label-2965
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) AS col0, + 34 AS col1 FROM tab2
----
0
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2966
SELECT ALL + - SUM( - 82 ) DIV - + 55 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL + - SUM ( - 82 ) / - + 55 FROM tab0 AS cor0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 35 + - ( + 16 ) >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 25 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - + col0 + + 19 * + col2 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col1 FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT DISTINCT + 91 + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT + 91 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col0 FROM tab0 cor0 WHERE - ( + + col0 ) * - + col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT + SUM( - - 95 ) AS col1 FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-2973
SELECT + SUM ( - - 95 ) AS col1 FROM tab2
----
285

query I rowsort
SELECT - - 45 - 77 FROM tab2 WHERE NULL > col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col0 FROM tab0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 - 69 col2 FROM tab0
----
-106
-106
-106

query II rowsort
SELECT DISTINCT - col0 * - + col1 * - - col0 + + 45 AS col2, 76 - + col1 FROM tab0
----
158994
55
18270
-5
9454
75

query I rowsort
SELECT ALL + col2 * - 34 + 81 + - col0 AS col0 FROM tab1 cor0
----
-2010
-2322
-3234

query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab1 WHERE NOT NULL <> + 60 - + 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 87 col2 FROM tab2 WHERE NOT ( - 74 ) IS NULL
----
138
154
164

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT ALL + CAST( 40 AS SIGNED ) AS col0 FROM tab0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL + CAST ( 40 AS INTEGER ) AS col0 FROM tab0
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2983
SELECT * FROM tab1 WHERE NOT NULL <= ( ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2983
SELECT * FROM tab1 WHERE NOT NULL <= ( ( CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2984
SELECT ALL col2 col1 FROM tab2 WHERE col0 * + 83 + - CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) IN ( + col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2984
SELECT ALL col2 col1 FROM tab2 WHERE col0 * + 83 + - CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) IN ( + col2 )
----

query I rowsort
SELECT ALL ( - 90 ) FROM tab2
----
-90
-90
-90

query III rowsort
SELECT * FROM tab2 WHERE col0 + 89 NOT BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 55 FROM tab1 WHERE col2 * + col1 >= 73
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2988
SELECT * FROM tab0 WHERE NOT ( CAST( + col1 AS DECIMAL ) * col2 ) IN ( 49 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2988
SELECT * FROM tab0 WHERE NOT ( CAST ( + col1 AS REAL ) * col2 ) IN ( 49 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * 85 FROM tab0
----
1785
6885
85

query I rowsort
SELECT - col2 * + col0 FROM tab0 WHERE NOT NULL BETWEEN - col2 + + col2 * col0 AND 10
----

query I rowsort
SELECT col1 FROM tab1 WHERE ( col0 ) BETWEEN ( col2 ) AND ( + col1 )
----

query I rowsort
SELECT DISTINCT 80 * - col2 AS col2 FROM tab2
----
-1840
-3200
-4640

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + + col2 AS col0 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT CAST( col1 AS SIGNED ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2995
SELECT CAST ( col1 AS INTEGER ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2996
SELECT - CAST( NULL AS SIGNED ) / + col2 FROM tab0 WHERE NOT + 91 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2996
SELECT - CAST ( NULL AS INTEGER ) / + col2 FROM tab0 WHERE NOT + 91 * CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT 67 + ( + 87 + + COUNT( * ) ) * - COUNT( * ) AS col1 FROM tab0
----
-203

skipif mysql # not compatible
query I rowsort label-2997
SELECT 67 + ( + 87 + + COUNT ( * ) ) * - COUNT ( * ) AS col1 FROM tab0
----
-203

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 0 NOT BETWEEN ( + 28 ) AND 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 col1 FROM tab1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT - 97 + COUNT( * ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3000
SELECT - 97 + COUNT ( * ) FROM tab2 AS cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3001
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( col0 ) + - CAST( col2 - + col0 AS SIGNED ) * col2 ) IN ( - col0 + ( col0 ) * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3001
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( col0 ) + - CAST ( col2 - + col0 AS INTEGER ) * col2 ) IN ( - col0 + ( col0 ) * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col1 FROM tab2 cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT DISTINCT + ( + SUM( DISTINCT + 35 ) ) FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT + ( + SUM ( DISTINCT + 35 ) ) FROM tab1 AS cor0
----
35

query I rowsort
SELECT - - col2 * + ( - col0 ) FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT - COUNT( * ) - 38 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3005
SELECT - COUNT ( * ) - 38 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT + + col0 - ( - 77 ) AS col0 FROM tab0 AS cor0
----
164
174
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - 44 - 43 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= ( + col2 * - col0 )
----

query I rowsort
SELECT DISTINCT - ( col2 ) * 54 FROM tab2 AS cor0 WHERE NOT col0 * 45 + - 67 BETWEEN ( + col2 + + 39 * - 71 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) <> ( - col1 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT MAX( ALL + + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3011
SELECT MAX ( ALL + + col0 ) AS col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL + COUNT( - - ( - 53 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + COUNT ( - - ( - 53 ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL + 53 FROM tab0 WHERE ( + 59 * 79 ) IS NULL
----

query I rowsort
SELECT 93 * - col0 * - col0 FROM tab2
----
196788
380928
523125

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT + SUM( DISTINCT + 98 ) AS col1 FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + SUM ( DISTINCT + 98 ) AS col1 FROM tab2 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 39 + + col2 ) IS NULL AND NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 39 + + col2 ) IS NULL AND NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * 6 NOT IN ( col1 * 8 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 13 col1, - col1 FROM tab1
----
13
-14
13
-47
13
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT - + 5 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3021
SELECT DISTINCT - 20 + - col1 col0 FROM tab2 WHERE NOT ( NOT + 78 * 72 - + col2 * col2 <= CAST( col2 AS DECIMAL ) + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3021
SELECT DISTINCT - 20 + - col1 col0 FROM tab2 WHERE NOT ( NOT + 78 * 72 - + col2 * col2 <= CAST ( col2 AS REAL ) + col1 )
----

query I rowsort
SELECT ALL 52 * - 1 AS col0 FROM tab1 AS cor0
----
-52
-52
-52

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 5 * - - col0 / ( + col2 ) ) BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ALL - - col0, col2 AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab1 AS cor0 WHERE ( - ( + + col2 ) ) IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + + 25 + - ( - MIN( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3026
SELECT + + 25 + - ( - MIN ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT ALL 18 + - 88 + + col0 AS col2 FROM tab1 AS cor0
----
-19
15
21

query I rowsort
SELECT + ( - - 39 ) * + 73 + col1 * 56 + 66 FROM tab1 cor0
----
3193
3697
5545

query I rowsort
SELECT DISTINCT + col0 + + + col2 + - + col1 FROM tab0 AS cor0
----
-19
195
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3030
SELECT ALL CAST( - col0 AS SIGNED ) col1, col2 AS col1 FROM tab2
----
-46
23
-64
40
-75
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3030
SELECT ALL CAST ( - col0 AS INTEGER ) col1, col2 AS col1 FROM tab2
----
-46
23
-64
40
-75
58

query I rowsort
SELECT DISTINCT - 43 * - col2 * - col2 FROM tab2
----
-144652
-22747
-68800

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN - 19 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2 * + col0 AS col0, 66 FROM tab1
----
4896
66
5015
66
6188
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col2 FROM tab0
----
-33

query I rowsort
SELECT DISTINCT col0 + - col1 * - col1 * - 34 AS col0 FROM tab1
----
-6613
-75015
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3036
SELECT DISTINCT + MAX( - 21 ) AS col0 FROM tab0 WHERE NOT NULL >= ( 88 * + CAST( NULL AS SIGNED ) * - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT + MAX ( - 21 ) AS col0 FROM tab0 WHERE NOT NULL >= ( 88 * + CAST ( NULL AS INTEGER ) * - 54 )
----
NULL

query I rowsort
SELECT ALL col1 * col1 + + ( col0 ) FROM tab1 WHERE NOT NULL BETWEEN ( + + col2 ) AND + col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( - - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT 56 + - CAST( - + col2 AS SIGNED ) AS col2 FROM tab1
----
115
124
152

skipif mysql # not compatible
query I rowsort label-3039
SELECT 56 + - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab1
----
115
124
152

query I rowsort
SELECT ALL 8 + col2 * - col0 AS col2 FROM tab0
----
-697
-862
-9595

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3041
SELECT ALL * FROM tab2 WHERE NOT - col1 * CAST( NULL AS SIGNED ) <> col2
----

skipif mysql # not compatible
query III rowsort label-3041
SELECT ALL * FROM tab2 WHERE NOT - col1 * CAST ( NULL AS INTEGER ) <> col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 0 + + 61 ) IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT ALL 35 DIV + col2 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL 35 / + col2 AS col1 FROM tab2
----
0
0
1

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NULL <= + col0
----

query I rowsort
SELECT - ( 15 ) FROM tab1 cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT DISTINCT COUNT( * ) * + - MIN( DISTINCT + 97 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-291

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT COUNT ( * ) * + - MIN ( DISTINCT + 97 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-291

query II rowsort
SELECT ALL + - col2 AS col0, - 26 AS col1 FROM tab1 AS cor0
----
-59
-26
-68
-26
-96
-26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3048
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 2 * - CAST( - 90 AS SIGNED ) * - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3048
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 2 * - CAST ( - 90 AS INTEGER ) * - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 AS col0, + 46 FROM tab1 AS cor0 WHERE NOT NULL < ( + col0 )
----

query I rowsort
SELECT ALL - 32 * col0 AS col0 FROM tab2 AS cor0
----
-1472
-2048
-2400

query I rowsort
SELECT DISTINCT - col0 * + + col0 AS col0 FROM tab2
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, + col2 AS col1 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3053
SELECT 47 DIV + col1 col0, col2 FROM tab1
----
1
68
3
96
9
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3053
SELECT 47 / + col1 col0, col2 FROM tab1
----
1
68
3
96
9
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT - SUM( + 70 ) FROM tab0, tab1 AS cor0
----
-630

skipif mysql # not compatible
query I rowsort label-3054
SELECT - SUM ( + 70 ) FROM tab0, tab1 AS cor0
----
-630

query I rowsort
SELECT DISTINCT - 50 FROM tab0 WHERE NOT + + col0 >= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 * 34 >= + 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 NOT BETWEEN ( NULL ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * + - 6 + + col2 AS col2 FROM tab2 AS cor0
----
329
460
502

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT ( COUNT( DISTINCT + + col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT ( COUNT ( DISTINCT + + col0 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3060
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT 31 + + 15 AS col2 FROM tab2
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT - 72 + - COUNT( * ) AS col2 FROM tab0 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT - 72 + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 1 AS col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT - MAX( - 60 ) AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3064
SELECT - MAX ( - 60 ) AS col1 FROM tab1 AS cor0
----
60

query II rowsort
SELECT ALL + col0 * + col1 + + 33, col0 FROM tab2 AS cor0
----
2379
46
4961
64
5058
75

query III rowsort
SELECT * FROM tab0 WHERE 4 BETWEEN - col1 * - + 97 - - + 70 AND + 99 - - + col1 OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 33 + col1 + - + 16 AS col0 FROM tab0
----
-28
-48
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT DISTINCT SUM( - col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT SUM ( - col1 ) AS col0 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3069
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( + col0 + + 7 ) BETWEEN - col2 AND ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( + col0 + + 7 ) BETWEEN - col2 AND ( + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE + + col1 IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3071
SELECT col0 DIV + - col0 - col2 AS col0 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-3071
SELECT col0 / + - col0 - col2 AS col0 FROM tab1
----
-60
-69
-97

query I rowsort
SELECT 53 + col2 FROM tab2
----
111
76
93

query II rowsort
SELECT ALL - - 77, col0 * + + col1 * + col0 + + col0 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + + 23 + col1 + col1 FROM tab2 AS cor0
----
125
157
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3075
SELECT + CAST( + - 89 AS SIGNED ) + + - col0 + - col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3075
SELECT + CAST ( + - 89 AS INTEGER ) + + - col0 + - col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT ALL - SUM( ALL 38 ) * 46 AS col1 FROM tab1 AS cor0
----
-5244

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL - SUM ( ALL 38 ) * 46 AS col1 FROM tab1 AS cor0
----
-5244

query II rowsort
SELECT - 25 + + - 58 AS col0, 52 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 9af6f26bfa974c56e880763034b4bf30

query I rowsort
SELECT DISTINCT ( col0 ) * - + col1 - - col1 FROM tab0
----
-1134
-1806
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE col2 + CAST( - 94 AS SIGNED ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE col2 + CAST ( - 94 AS INTEGER ) IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT + + col1 * + + col1, col2 * + 26 AS col0 FROM tab1 AS cor0
----
196
2496
2209
1768
25
1534

query I rowsort
SELECT + - 23 * - 82 FROM tab2 AS cor0
----
1886
1886
1886

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 84 * - col2 * - col1 FROM tab2 AS cor0
----
-258720
-326424
-98532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT col0 + col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + CAST( - col0 AS SIGNED ) * - col1 - + col0 + col2 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3085
SELECT col0 + col1 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + CAST ( - col0 AS INTEGER ) * - col1 - + col0 + col2 * - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 95
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT col2 DIV + 35 col0 FROM tab1
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3087
SELECT col2 / + 35 col0 FROM tab1
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3088
SELECT DISTINCT 36 DIV + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT 36 / + COUNT ( * ) FROM tab2
----
12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 93 / 93 * - col0 * + ( - col1 ) * col0 - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - + 55 ) AS col0 FROM tab1
----
-55

query I rowsort
SELECT ALL + col2 * - - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 * 9 FROM tab1 AS cor0
----
531
612
864

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 26 + + col2 + + 44 IN ( - + col2, col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - + col1 + + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT ALL + COUNT( * ) * + 39 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
351

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL + COUNT ( * ) * + 39 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
351

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + - col2 IS NOT NULL AND NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 ) BETWEEN 98 * col1 * + col1 * - 42 AND - ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT DISTINCT - - ( col2 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT - - ( col2 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3099
SELECT ALL - 53, - MAX( DISTINCT 72 ) AS col1 FROM tab1 AS cor0
----
-53
-72

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL - 53, - MAX ( DISTINCT 72 ) AS col1 FROM tab1 AS cor0
----
-53
-72

query I rowsort
SELECT DISTINCT + col1 * + col0 * - col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 50 * - ( + col1 ) - + col0 * + 64 + 82 AND - col2
----

query I rowsort
SELECT - ( + + col0 ) + - 58 FROM tab0
----
-145
-155
-73

query I rowsort
SELECT 7 + + col2 FROM tab1
----
103
66
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT ALL 90 * CAST( + + col0 AS SIGNED ) + - CAST( - 73 AS SIGNED ) + - 10 + + - 40 * ( - col2 ) * col2 * CAST( + 12 AS SIGNED ) AS col2 FROM tab0
----
1061733
4713273
55893

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL 90 * CAST ( + + col0 AS INTEGER ) + - CAST ( - 73 AS INTEGER ) + - 10 + + - 40 * ( - col2 ) * col2 * CAST ( + 12 AS INTEGER ) AS col2 FROM tab0
----
1061733
4713273
55893

query II rowsort
SELECT DISTINCT col1 - + col2, + col1 FROM tab2
----
28
51
37
77
9
67

query II rowsort
SELECT - 29 AS col0, - col2 FROM tab0 WHERE ( NOT - col0 IS NULL )
----
-29
-10
-29
-47
-29
-99

query I rowsort
SELECT col1 - + - 6 * + ( + col2 ) * + - 30 FROM tab2 AS cor0
----
-10373
-4089
-7123

query I rowsort
SELECT ALL 38 + + 61 - + col2 * col1 FROM tab1 AS cor0
----
-1245
-196
-3097

query I rowsort
SELECT + col0 - + 18 FROM tab2 AS cor0
----
28
46
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT DISTINCT col2 * col2 * - 83 + + 0 DIV 8 AS col0 FROM tab0
----
-183347
-813483
-8300

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT col2 * col2 * - 83 + + 0 / 8 AS col0 FROM tab0
----
-183347
-813483
-8300

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT 12 + - col2 FROM tab0
----
-35
-87
2

query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT - COUNT( * ) + 97 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - 62 + col1 AND - 46
----
94

skipif mysql # not compatible
query I rowsort label-3113
SELECT - COUNT ( * ) + 97 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - 62 + col1 AND - 46
----
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + 52 BETWEEN NULL AND + + 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col2 col0 FROM tab1 cor0
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3116
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL + SUM( ALL 25 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL + SUM ( ALL 25 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3118
SELECT - + CAST( SUM( DISTINCT - 55 ) AS SIGNED ) col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3118
SELECT - + CAST ( SUM ( DISTINCT - 55 ) AS INTEGER ) col2 FROM tab2 AS cor0
----
55

query I rowsort
SELECT col2 * - - col0 + 58 AS col1 FROM tab1 AS cor0
----
4954
5073
6246

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT - 73 * + SUM( ALL - + col0 ) AS col0 FROM tab0
----
14527

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT - 73 * + SUM ( ALL - + col0 ) AS col0 FROM tab0
----
14527

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT - col0 DIV - + 5 FROM tab1
----
10
17
18

skipif mysql # not compatible
query I rowsort label-3121
SELECT - col0 / - + 5 FROM tab1
----
10
17
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3122
SELECT col2 DIV 45 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3122
SELECT col2 / 45 FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT DISTINCT COUNT( * ) * 66 AS col0 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT COUNT ( * ) * 66 AS col0 FROM tab1
----
198

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3124
SELECT DISTINCT col2 DIV CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) DIV - col2 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT col2 / CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) / - col2 AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col1 - - - col0 FROM tab2 WHERE + + 9 IS NOT NULL
----
-8
13
5

query II rowsort
SELECT DISTINCT 56 * + 71 * + 10 AS col2, - col1 * col0 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
39760
-1215
39760
-1827
39760
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) IN ( + col1, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3129
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - col2 * 71 AS col1 FROM tab1
----
-4189
-4828
-6816

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT ALL + COUNT( DISTINCT + 60 ) * - 66 AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL + COUNT ( DISTINCT + 60 ) * - 66 AS col2 FROM tab1
----
-66

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE + 57 <= - col2
----

query II rowsort
SELECT col0, - 72 FROM tab2 AS cor0
----
46
-72
64
-72
75
-72

query I rowsort
SELECT - 90 * col0 FROM tab1 cor0
----
-4590
-7650
-8190

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 IN ( 57 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - col1 * - col0 AS col2 FROM tab2 AS cor0
----
46
2346
64
4928
75
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col2 col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT ( + 85 ) * + col1 FROM tab2
----
4335
5695
6545

query I rowsort
SELECT ALL - 37 + 80 FROM tab2
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT DISTINCT 30 DIV col0 DIV + 35 - - col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT 30 / col0 / + 35 - - col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT - SUM( + - 34 ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT - SUM ( + - 34 ) FROM tab2
----
102

query I rowsort
SELECT + 34 + - 30 + + col0 * col1 FROM tab1 AS cor0
----
4281
429
718

query I rowsort
SELECT DISTINCT - - col1 * - col0 / - 44 FROM tab2 AS cor0 WHERE col0 / - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL COUNT( ALL - - 55 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL COUNT ( ALL - - 55 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE + 84 * - col2 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, 48 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 43 + - - 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 18 AS col0 FROM tab0 AS cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3151
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + - col2 + CAST( - col1 AS SIGNED ) * col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3151
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + - col2 + CAST ( - col1 AS INTEGER ) * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3152
SELECT 53 * - + col1 * - CAST( NULL AS SIGNED ) + + col2 * col1 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT 53 * - + col1 * - CAST ( NULL AS INTEGER ) + + col2 * col1 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3153
SELECT ALL ( COUNT( * ) ) AS col1, + 10 DIV - 64 AS col0 FROM tab1 cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-3153
SELECT ALL ( COUNT ( * ) ) AS col1, + 10 / - 64 AS col0 FROM tab1 cor0
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL + ( - - MIN( ALL - col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL + ( - - MIN ( ALL - col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL + COUNT( DISTINCT - 40 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL + COUNT ( DISTINCT - 40 ) FROM tab1
----
1

query I rowsort
SELECT col0 + 84 * col0 FROM tab0
----
1275
7395
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT ALL COUNT( * ) * - MIN( ALL - 96 ) AS col2 FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL COUNT ( * ) * - MIN ( ALL - 96 ) AS col2 FROM tab2
----
288

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + - col1 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT CAST( NULL AS SIGNED ) + col2 * - 42 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT CAST ( NULL AS INTEGER ) + col2 * - 42 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT - 98 DIV - + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3160
SELECT - 98 / - + col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - + col0 + + + col0 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3162
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 28 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3162
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 28 <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col1 + - ( + col2 ) FROM tab0 WHERE + 93 < + col2 + - - col0
----
-98
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3164
SELECT * FROM tab0 WHERE col1 <> ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3164
SELECT * FROM tab0 WHERE col1 <> ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3165
SELECT DISTINCT - COUNT( * ) DIV 15 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT - COUNT ( * ) / 15 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL - MAX( ALL + col2 ) col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3166
SELECT ALL - MAX ( ALL + col2 ) col1 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL - 26 * 50 + + col0 FROM tab0 AS cor0
----
-1203
-1213
-1285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3168
SELECT - col2 * - col0 + - + CAST( - - 54 AS SIGNED ) FROM tab0 AS cor0
----
651
816
9549

skipif mysql # not compatible
query I rowsort label-3168
SELECT - col2 * - col0 + - + CAST ( - - 54 AS INTEGER ) FROM tab0 AS cor0
----
651
816
9549

query I rowsort
SELECT ALL + + 10 AS col0 FROM tab0 AS cor0 WHERE NOT 23 IS NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL MAX( + - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL MAX ( + - col0 ) FROM tab0 AS cor0
----
-15

query II rowsort
SELECT - + col0 + - 33 + + 70 + - + col2 AS col1, + col0 + + 84 * - col1 * col0 * col2 FROM tab0 AS cor0
----
-159
-806555
-25
-4796805
-60
-1534593

query I rowsort
SELECT DISTINCT col0 + - col1 * - col0 FROM tab1
----
4368
510
765

query I rowsort
SELECT 14 * - + col2 - - 45 AS col1 FROM tab0
----
-1341
-613
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT COUNT( * ) * - + 27 col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3174
SELECT COUNT ( * ) * - + 27 col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab0, tab0 AS cor0 WHERE NOT NULL <> 19
----

query II rowsort
SELECT ALL + 65 AS col1, 55 * - 91 FROM tab1
----
65
-5005
65
-5005
65
-5005

query II rowsort
SELECT + 77 AS col2, - col0 FROM tab2 AS cor0
----
77
-46
77
-64
77
-75

query II rowsort
SELECT ALL col0, col0 * + + col0 AS col0 FROM tab1 cor0
----
51
2601
85
7225
91
8281

query II rowsort
SELECT ALL col1, - col1 AS col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT 47 * 56 - + col1 + + col2 AS col1 FROM tab1 AS cor0 WHERE ( - col1 IS NULL ) OR NOT - - col2 IS NULL
----
2653
2686
2714

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3181
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + - 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ALL - MIN( - + 13 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - MIN ( - + 13 ) FROM tab2 AS cor0
----
13

query I rowsort
SELECT ALL + + col1 * + 89 - + col2 AS col1 FROM tab2 cor0 WHERE col1 * - col2 + + col1 * - - col0 * - + col2 / + col1 - + 94 + col1 * col0 / - col0 * - col1 + - col2 IS NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
10
47
99

query II rowsort
SELECT col0 AS col1, - 48 AS col0 FROM tab0 AS cor0
----
15
-48
87
-48
97
-48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 46 IS NOT NULL OR NULL <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 93 + + - col0 + col2 AS col2 FROM tab1
----
138
67
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT + 73 DIV - 93 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT + 73 / - 93 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
1
1

query I rowsort
SELECT DISTINCT ( + 88 ) FROM tab2
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 col0 FROM tab2 WHERE ( + - 23 ) IS NOT NULL
----
-1058
-2560
-4350

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT ALL - MIN( DISTINCT + col2 ) + - - MAX( ALL - col0 ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL - MIN ( DISTINCT + col2 ) + - - MAX ( ALL - col0 ) FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT - MAX( - + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3195
SELECT - MAX ( - + col1 ) FROM tab1
----
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - col2 + - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT + col2 DIV col1 * 90 AS col2 FROM tab0 AS cor0
----
0
0
8910

skipif mysql # not compatible
query I rowsort label-3197
SELECT + col2 / col1 * 90 AS col2 FROM tab0 AS cor0
----
0
0
8910

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - col1 - + ( - 15 ) = ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT - MIN( + 84 ) AS col1 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3199
SELECT - MIN ( + 84 ) AS col1 FROM tab2 AS cor0
----
-84

query II rowsort
SELECT ALL - 34 + + ( + - col1 ) + + + 49 AS col1, 10 * + 55 FROM tab1 AS cor0
----
-32
550
1
550
10
550

query I rowsort
SELECT ALL - col2 + - 10 AS col1 FROM tab0 AS cor0
----
-109
-20
-57

query I rowsort
SELECT DISTINCT - - col0 + + + 93 FROM tab0 cor0
----
108
180
190

query I rowsort
SELECT ALL - 25 + - ( - 0 ) FROM tab0 AS cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3204
SELECT DISTINCT + col1 / + 19 + - + CAST( NULL AS SIGNED ) - ( - + col1 ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3204
SELECT DISTINCT + col1 / + 19 + - + CAST ( NULL AS INTEGER ) - ( - + col1 ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT - col2 * - - 4 * - col2 AS col2 FROM tab2 WHERE + - col0 * + + col2 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3206
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + col1 - + - ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3206
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col1 - + - ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - 55 ) AS col0 FROM tab0 AS cor0
----
55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - col1 <= ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + ( ( 39 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 * - col2 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3210
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= 5 + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-3210
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= 5 + - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + - ( + - 29 ) * col0 + 24 FROM tab2 AS cor0
----
1358
1880
2199

query I rowsort
SELECT ALL 22 + - - col1 AS col2 FROM tab2 AS cor0
----
73
89
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ( + + COUNT( * ) ) + + 55 * + 73 AS col2 FROM tab0
----
4018

skipif mysql # not compatible
query I rowsort label-3213
SELECT ( + + COUNT ( * ) ) + + 55 * + 73 AS col2 FROM tab0
----
4018

query I rowsort
SELECT DISTINCT + col0 * + 94 + - 83 AS col0 FROM tab1
----
4711
7907
8471

query II rowsort
SELECT DISTINCT - 98, col1 * - 45 AS col2 FROM tab0
----
-98
-3645
-98
-45
-98
-945

query I rowsort
SELECT - col0 + - col0 * - + col0 * - col0 FROM tab2
----
-262208
-421950
-97382

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT - 7 DIV + col2 + ( + 79 ) FROM tab1
----
79
79
79

skipif mysql # not compatible
query I rowsort label-3217
SELECT - 7 / + col2 + ( + 79 ) FROM tab1
----
79
79
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * 52 = 67
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT - COUNT( * ) - - 66 col1 FROM tab0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3219
SELECT - COUNT ( * ) - - 66 col1 FROM tab0
----
63

query I rowsort
SELECT ALL - - col0 - + ( + - col2 ) FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + col1 + - 18 * - - col2 AS col2 FROM tab2 cor0
----
-363
-643
-977

onlyif mysql # DIV for integer division: 
query I rowsort label-3222
SELECT DISTINCT - 77 * 95 DIV + 98 AS col0 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - 77 * 95 / + 98 AS col0 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT DISTINCT 31 * - - col2 * - col1 + + + col1 FROM tab1 cor0
----
-41650
-9140
-99029

query I rowsort
SELECT 16 AS col0 FROM tab2 AS cor0 WHERE col2 IN ( col0 + col0, + col1, - col0 )
----

query I rowsort
SELECT DISTINCT 88 + - 54 + ( - + col0 ) FROM tab1 AS cor0
----
-17
-51
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3226
SELECT - col0 * + ( - - CAST( NULL AS SIGNED ) ) * + col2 * - + 53 * - 33, col1 * + - ( col1 ) AS col1 FROM tab0
----
NULL
-1
NULL
-441
NULL
-6561

skipif mysql # not compatible
query II rowsort label-3226
SELECT - col0 * + ( - - CAST ( NULL AS INTEGER ) ) * + col2 * - + 53 * - 33, col1 * + - ( col1 ) AS col1 FROM tab0
----
NULL
-1
NULL
-441
NULL
-6561

onlyif mysql # aggregate syntax: 
query II rowsort label-3227
SELECT + COUNT( * ), - ( + MIN( DISTINCT - ( + col1 ) ) ) AS col1 FROM tab0
----
3
81

skipif mysql # not compatible
query II rowsort label-3227
SELECT + COUNT ( * ), - ( + MIN ( DISTINCT - ( + col1 ) ) ) AS col1 FROM tab0
----
3
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3228
SELECT - CAST( NULL AS DECIMAL ), col2 * col1 col1 FROM tab1
----
NULL
1344
NULL
295
NULL
3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3228
SELECT - CAST ( NULL AS REAL ), col2 * col1 col1 FROM tab1
----
NULL
1344
NULL
295
NULL
3196

query I rowsort
SELECT DISTINCT + - col1 * - col0 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col0, 0 FROM tab0
----
15
0
87
0
97
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3231
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN 11 AND - - CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-3231
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN 11 AND - - CAST ( NULL AS INTEGER ) + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + col2 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3233
SELECT DISTINCT COUNT( * ) DIV - + 41 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT COUNT ( * ) / - + 41 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3234
SELECT ALL + 48 DIV - 74 + - COUNT( * ) AS col0, + ( + + ( 57 ) ) AS col2 FROM tab0 AS cor0
----
-3
57

skipif mysql # not compatible
query II rowsort label-3234
SELECT ALL + 48 / - 74 + - COUNT ( * ) AS col0, + ( + + ( 57 ) ) AS col2 FROM tab0 AS cor0
----
-3
57

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3236
SELECT ALL + + COUNT( * ) * COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-3236
SELECT ALL + + COUNT ( * ) * COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT - COUNT( * ) * - 14 AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-3237
SELECT - COUNT ( * ) * - 14 AS col1 FROM tab0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3238
SELECT ALL * FROM tab1 WHERE NOT ( 43 * col1 ) BETWEEN NULL AND col0 + + + CAST( NULL AS SIGNED ) - + col1 * + col2
----

skipif mysql # not compatible
query III rowsort label-3238
SELECT ALL * FROM tab1 WHERE NOT ( 43 * col1 ) BETWEEN NULL AND col0 + + + CAST ( NULL AS INTEGER ) - + col1 * + col2
----

query I rowsort
SELECT ALL col2 / ( ( col1 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT + MAX( ALL - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3240
SELECT + MAX ( ALL - col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE + 23 >= - 38
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3242
SELECT DISTINCT - + COUNT( - - 45 ) DIV + - 62 - - - SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - + COUNT ( - - 45 ) / + - 62 - - - SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
223

query II rowsort
SELECT + col0, col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ( - + col1 ) AS col2, + ( - col1 ) * + col1 - - + col0 + 76 * col1 FROM tab0 AS cor0
----
-1
172
-21
1242
-81
-390

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE ( - 37 / - col1 IS NULL )
----

query II rowsort
SELECT DISTINCT ( - + col0 ), + col0 FROM tab2 WHERE NOT ( + + col0 + - col2 * + + col0 + + + col1 ) IS NULL
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2, tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL MAX( ALL + 80 ) col1 FROM tab2
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3249
SELECT ALL MAX ( ALL + 80 ) col1 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT - COUNT( * ) + 18 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3250
SELECT - COUNT ( * ) + 18 FROM tab2 AS cor0
----
15

query I rowsort
SELECT + 50 + - - col1 * + col0 * + col0 * col1 AS col0 FROM tab2 AS cor0
----
24285234
25250675
5503766

query I rowsort
SELECT + 53 + - col0 FROM tab1 AS cor0
----
-32
-38
2

query I rowsort
SELECT + 6 + - 21 - - - col0 FROM tab0 cor0
----
-102
-112
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT DISTINCT - COUNT( * ) * - 35 + - 71 + + MAX( - col0 ) * - 16 * - 62 * COUNT( * ) FROM tab0 AS cor0
----
-44606

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT - COUNT ( * ) * - 35 + - 71 + + MAX ( - col0 ) * - 16 * - 62 * COUNT ( * ) FROM tab0 AS cor0
----
-44606

query I rowsort
SELECT DISTINCT col0 + - 50 FROM tab0
----
-35
37
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> - - 98
----

query II rowsort
SELECT - col0 AS col2, - 45 FROM tab0
----
-15
-45
-87
-45
-97
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3258
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) * 99 )
----

skipif mysql # not compatible
query III rowsort label-3258
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) * 99 )
----

query I rowsort
SELECT + 86 - + col0 FROM tab1 AS cor0
----
-5
1
35

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT - - 39 * - - col1 - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3261
SELECT - - 39 * - - col1 - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT - SUM( - col0 ) AS col1 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
227

skipif mysql # not compatible
query I rowsort label-3262
SELECT - SUM ( - col0 ) AS col1 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
227

query I rowsort
SELECT + 71 * - - col2 FROM tab2 AS cor0
----
1633
2840
4118

query I rowsort
SELECT col2 * - ( - 69 ) FROM tab1 cor0
----
4071
4692
6624

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT col1 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ( ( - COUNT( * ) ) ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3266
SELECT ( ( - COUNT ( * ) ) ) col2 FROM tab1
----
-3

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - col1 * + 57 * 9 FROM tab0 AS cor0
----
-226233
-3365793
-513

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT ALL - COUNT( ALL ( + - 78 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - COUNT ( ALL ( + - 78 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + 26 * col2 FROM tab1 cor0
----
1534
1768
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + MIN( ALL - - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3271
SELECT + MIN ( ALL - - col2 ) FROM tab0
----
10

query I rowsort
SELECT 96 * + - col0 FROM tab2
----
-4416
-6144
-7200

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT + 46 DIV + ( col0 ) FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3273
SELECT + 46 / + ( col0 ) FROM tab0
----
0
0
3

query I rowsort
SELECT ALL + 94 * + col0 AS col0 FROM tab1
----
4794
7990
8554

query II rowsort
SELECT col1 AS col0, - 8 AS col2 FROM tab1 AS cor0
----
14
-8
47
-8
5
-8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - + 78 AND - col1 + + 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT CAST( + 45 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-3277
SELECT CAST ( + 45 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT DISTINCT col0 DIV 6 AS col0 FROM tab0 cor0
----
14
16
2

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT col0 / 6 AS col0 FROM tab0 cor0
----
14
16
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3279
SELECT ALL + col0 DIV + 90 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3279
SELECT ALL + col0 / + 90 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + - - col0 FROM tab1 cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT DISTINCT - + CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT - + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT + CAST( + - 22 AS SIGNED ) FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col1 + - + 1 OR NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-3282
SELECT + CAST ( + - 22 AS INTEGER ) FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col1 + - + 1 OR NULL >= NULL
----

query I rowsort
SELECT + col1 + - 51 FROM tab1 AS cor0
----
-37
-4
-46

query I rowsort
SELECT - ( + + 77 ) AS col2 FROM tab1 AS cor0 WHERE col2 / + - ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT DISTINCT 31 * - - COUNT( * ) col1 FROM tab2
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3285
SELECT DISTINCT 31 * - - COUNT ( * ) col1 FROM tab2
----
93

query I rowsort
SELECT + 10 + 23 * + col1 AS col2 FROM tab2
----
1183
1551
1781

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3287
SELECT ALL + 65 * + + 30 + + COUNT( * ) + - + 46 + - - COUNT( * ) DIV - COUNT( * ) FROM tab2
----
1906

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL + 65 * + + 30 + + COUNT ( * ) + - + 46 + - - COUNT ( * ) / - COUNT ( * ) FROM tab2
----
1906

query II rowsort
SELECT DISTINCT 97 * col1 AS col0, + col2 * + col0 + - + col2 FROM tab1
----
1358
4800
4559
6120
485
4956

query I rowsort
SELECT + col2 * + - 77 AS col0 FROM tab2
----
-1771
-3080
-4466

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3290
SELECT DISTINCT + CAST( + col2 AS SIGNED ), col1 AS col2 FROM tab0
----
10
21
47
81
99
1

skipif mysql # not compatible
query II rowsort label-3290
SELECT DISTINCT + CAST ( + col2 AS INTEGER ), col1 AS col2 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3291
SELECT ALL + col2 DIV - + col0 * + - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL + col2 / - + col0 * + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3292
SELECT ALL - CAST( NULL AS SIGNED ) / + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT + - 67 - + - SUM( ALL + 93 ) FROM tab2 AS cor0
----
212

skipif mysql # not compatible
query I rowsort label-3294
SELECT + - 67 - + - SUM ( ALL + 93 ) FROM tab2 AS cor0
----
212

query I rowsort
SELECT - col1 - 8 FROM tab0 AS cor0
----
-29
-89
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL <= NULL )
----

query I rowsort
SELECT DISTINCT - col0 + - 18 AS col1 FROM tab2
----
-64
-82
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT COUNT( * ) + - - 37 * - + 11 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT COUNT ( * ) + - - 37 * - + 11 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT - 30 AS col1, 23 + - ( - col2 ) FROM tab0 AS cor0
----
-30
122
-30
33
-30
70

query II rowsort
SELECT col2, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3301
SELECT ALL + 22 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - 55 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + 22 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - 55 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ALL COUNT( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL COUNT ( DISTINCT - - col2 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 45 * - col2 FROM tab2 AS cor0
----
-1035
-1800
-2610

query I rowsort
SELECT - col1 * + 13 AS col2 FROM tab1 AS cor0
----
-182
-611
-65

query I rowsort
SELECT + col1 * - 53 + + 40 AS col2 FROM tab0 AS cor0
----
-1073
-13
-4253

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3306
SELECT ALL col1 AS col2, 0 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-3306
SELECT ALL col1 AS col2, 0 + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT ( NOT + col2 BETWEEN + - col1 + - col0 AND ( + + 44 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT ( NOT + col2 BETWEEN + - col1 + - col0 AND ( + + 44 ) )
----
0

query II rowsort
SELECT col0, + 53 AS col2 FROM tab2
----
46
53
64
53
75
53

query I rowsort
SELECT DISTINCT 16 * + col0 AS col0 FROM tab0
----
1392
1552
240

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL + 12 * + COUNT( * ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + 12 * + COUNT ( * ) AS col2 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT ALL + MIN( ALL col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + MIN ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3312
SELECT + MIN( ALL col2 ), + 27 * + - 81 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
59
-2190

skipif mysql # not compatible
query II rowsort label-3312
SELECT + MIN ( ALL col2 ), + 27 * + - 81 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
59
-2190

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - + ( col1 ) ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + MAX( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3315
SELECT + MAX ( DISTINCT - - col0 ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL + col0 * + + col1 / - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + col1 + col2
----

query I rowsort
SELECT DISTINCT col0 + - - 42 + col2 FROM tab1 AS cor0
----
186
189
201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13 * + - col0 col1, - col1 FROM tab1
----
-1105
-5
-1183
-47
-663
-14

query II rowsort
SELECT ALL - 88 * 0 AS col1, + col1 AS col0 FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT DISTINCT - 99 + - col1 FROM tab1 AS cor0
----
-104
-113
-146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 col0 FROM tab2 AS cor0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 65 - - + ( 65 ) col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + 95 + - col0 * + 28 AS col0 FROM tab0 AS cor0
----
-2341
-2621
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT - COUNT( - - col0 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT - COUNT ( - - col0 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - ( - + 0 ) * - col0 + 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT - MAX( - 61 ) FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3326
SELECT - MAX ( - 61 ) FROM tab1 AS cor0
----
61

query II rowsort
SELECT - 64, 51 + - col1 FROM tab2 AS cor0 WHERE ( NULL ) = col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT - MIN( + 99 ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-3328
SELECT - MIN ( + 99 ) FROM tab2
----
-99

query I rowsort
SELECT ALL col1 * 13 + - 46 + + ( 14 ) FROM tab1
----
150
33
579

onlyif mysql # DIV for integer division: 
query I rowsort label-3330
SELECT col1 DIV col1 * + 49 AS col2 FROM tab1 WHERE - 58 < ( - - col2 - + + col2 )
----
49
49
49

skipif mysql # not compatible
query I rowsort label-3330
SELECT col1 / col1 * + 49 AS col2 FROM tab1 WHERE - 58 < ( - - col2 - + + col2 )
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT DISTINCT COUNT( + col0 ) * - 47 + COUNT( * ) - + 39 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT COUNT ( + col0 ) * - 47 + COUNT ( * ) - + 39 FROM tab0
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-3332
SELECT ALL - 56 DIV - + col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL - 56 / - + col2 FROM tab0
----
0
1
5

query I rowsort
SELECT DISTINCT + 12 + - 41 + - col1 * 4 FROM tab0
----
-113
-33
-353

query I rowsort
SELECT - 12 + - + 67 AS col1 FROM tab1
----
-79
-79
-79

query III rowsort
SELECT * FROM tab2 WHERE 16 IN ( 9, 90, - col0 )
----

query II rowsort
SELECT ALL 49, + col2 FROM tab1
----
49
59
49
68
49
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT DISTINCT MIN( - col1 ) col0 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3337
SELECT DISTINCT MIN ( - col1 ) col0 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT - ( + col0 ) * + 6 + + 19 FROM tab0 AS cor0
----
-503
-563
-71

query I rowsort
SELECT DISTINCT - col1 * - - col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT - COUNT( * ) AS col1 FROM tab1, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3340
SELECT - COUNT ( * ) AS col1 FROM tab1, tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT - + 35 * + 40 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1400

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE ( NOT NULL < - 4 )
----

query I rowsort
SELECT + 12 AS col2 FROM tab2 cor0
----
12
12
12

query I rowsort
SELECT - col0 * - - ( + - col2 ) FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3345
SELECT col2, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - - ( + + col2 ) <= NULL
----

skipif mysql # not compatible
query II rowsort label-3345
SELECT col2, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - - ( + + col2 ) <= NULL
----

query I rowsort
SELECT DISTINCT + - 53 FROM tab2 AS cor0 WHERE NOT col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3347
SELECT - CAST( NULL AS SIGNED ) * - COUNT( col0 ) AS col1, 68 FROM tab1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-3347
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( col0 ) AS col1, 68 FROM tab1
----
NULL
68

query I rowsort
SELECT - 84 * 92 * col0 AS col2 FROM tab1
----
-394128
-656880
-703248

query I rowsort
SELECT - ( + 88 ) FROM tab0
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT 81 DIV - 24 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-3350
SELECT 81 / - 24 FROM tab1
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT DISTINCT 99 DIV 56 * + + 81 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT 99 / 56 * + + 81 FROM tab1
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, 73 AS col2 FROM tab2
----
23
73
40
73
58
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL - + MAX( col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL - + MAX ( col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3354
SELECT + + COUNT( * ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3354
SELECT + + COUNT ( * ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = - ( - col0 ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + col2 FROM tab0 AS cor0 WHERE NOT col2 <= + col0 + - col0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT + COUNT( - - 6 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3357
SELECT + COUNT ( - - 6 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3358
SELECT col0 AS col2, col1 DIV col2 AS col1 FROM tab2
----
46
2
64
1
75
1

skipif mysql # not compatible
query II rowsort label-3358
SELECT col0 AS col2, col1 / col2 AS col1 FROM tab2
----
46
2
64
1
75
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 col0 FROM tab2
----
-37
-37
-37

query I rowsort
SELECT - 18 + + ( + + col1 ) FROM tab0 AS cor0
----
-17
3
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 28 AS col0, + 7 col2 FROM tab0 AS cor0
----
-28
7
-28
7
-28
7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > - 66
----

query I rowsort
SELECT ALL + - col0 + - 38 AS col0 FROM tab1 AS cor0
----
-123
-129
-89

query I rowsort
SELECT + col2 + 26 * col1 AS col0 FROM tab1 AS cor0
----
1290
189
460

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3365
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + + - col1 <= - CAST( NULL AS SIGNED ) * + + col2
----

skipif mysql # not compatible
query III rowsort label-3365
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + + - col1 <= - CAST ( NULL AS INTEGER ) * + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL - + 83 * + COUNT( * ) + + + COUNT( ALL - 63 ) col2 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3366
SELECT ALL - + 83 * + COUNT ( * ) + + + COUNT ( ALL - 63 ) col2 FROM tab1 AS cor0
----
-246

query I rowsort
SELECT ALL - 48 - + + col0 FROM tab1 cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL + 95 + COUNT( * ) AS col2 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + 95 + COUNT ( * ) AS col2 FROM tab2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) FROM tab2 WHERE ( ( NOT NULL BETWEEN NULL AND NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) FROM tab2 WHERE ( ( NOT NULL BETWEEN NULL AND NULL ) )
----
0

query I rowsort
SELECT ALL + col1 + + - col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 + + col2 * - - 13 AS col1 FROM tab2
----
350
597
821

query I rowsort
SELECT DISTINCT col2 * col2 - col1 FROM tab1
----
3476
4577
9202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3373
SELECT ALL - CAST( + 91 AS SIGNED ) + + 37 - COUNT( - ( 54 ) ), COUNT( * ) col2 FROM tab1, tab2 AS cor0
----
-63
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3373
SELECT ALL - CAST ( + 91 AS INTEGER ) + + 37 - COUNT ( - ( 54 ) ), COUNT ( * ) col2 FROM tab1, tab2 AS cor0
----
-63
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT ALL + COUNT( * ) + - 46 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL + COUNT ( * ) + - 46 FROM tab1
----
-43

query I rowsort
SELECT ALL 90 - - - col0 AS col1 FROM tab1
----
-1
39
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( 88 ) * 13 FROM tab2 AS cor0
----
1144
1144
1144

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 = 95 * 76
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL <> - 65
----

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT 99 * + + col2 >= - + 87 + + 17 * + - col1 + + - 92
----

query II rowsort
SELECT DISTINCT col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3382
SELECT DISTINCT - ( + 87 ) / - COUNT( * ) + + CAST( NULL AS SIGNED ) col0, 7 AS col2 FROM tab0 AS cor0
----
NULL
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3382
SELECT DISTINCT - ( + 87 ) / - COUNT ( * ) + + CAST ( NULL AS INTEGER ) col0, 7 AS col2 FROM tab0 AS cor0
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT + + MAX( ALL + - col0 ) * - + 36 + + + 13 AS col0 FROM tab0 AS cor0
----
553

skipif mysql # not compatible
query I rowsort label-3383
SELECT + + MAX ( ALL + - col0 ) * - + 36 + + + 13 AS col0 FROM tab0 AS cor0
----
553

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + - 45 / - col1 - + - 95 IS NOT NULL
----

query II rowsort
SELECT + col1 * + 89, col1 FROM tab0
----
1869
21
7209
81
89
1

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT + - col1 IS NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - + col1 AND ( col0 ) * + + col0
----

query II rowsort
SELECT ALL + ( col0 ), - 84 AS col1 FROM tab1
----
51
-84
85
-84
91
-84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 52 * - 47 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT COUNT( * ) + - + 88 AS col2 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-3390
SELECT COUNT ( * ) + - + 88 AS col2 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT col0 + 85 FROM tab2 AS cor0
----
131
149
160

query I rowsort
SELECT - ( 39 ) AS col0 FROM tab2 AS cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3393
SELECT ( - 58 ) DIV - + COUNT( * ) AS col1 FROM tab1 cor0
----
19

skipif mysql # not compatible
query I rowsort label-3393
SELECT ( - 58 ) / - + COUNT ( * ) AS col1 FROM tab1 cor0
----
19

query II rowsort
SELECT DISTINCT + 50 AS col0, col1 * + 87 AS col2 FROM tab1 AS cor0
----
50
1218
50
4089
50
435

query I rowsort
SELECT DISTINCT - col1 + + 93 + - 85 FROM tab2 AS cor0
----
-43
-59
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT - COUNT( ( - - col0 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3396
SELECT - COUNT ( ( - - col0 ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + + col1 + - - 67 AS col1 FROM tab0 AS cor0
----
148
68
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT ALL - 61 - COUNT( ALL + 21 ) * - 21 col2 FROM tab2
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3398
SELECT ALL - 61 - COUNT ( ALL + 21 ) * - 21 col2 FROM tab2
----
2

query I rowsort
SELECT col1 * - col2 + + col0 - + 62 FROM tab1
----
-1355
-272
-3167

query I rowsort
SELECT - col0 * col0 + - col0 AS col0 FROM tab2
----
-2162
-4160
-5700

query I rowsort
SELECT ALL col0 + - col1 + - 83 FROM tab2
----
-75
-88
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 54 col2, + 94 FROM tab1
----
54
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 - - 5 + + 2 + + col2 col0 FROM tab1
----
100
109
137

query I rowsort
SELECT + col2 * - col0 + + col1 AS col0 FROM tab1
----
-4882
-5010
-6141

query III rowsort
SELECT * FROM tab0 WHERE 21 BETWEEN 67 AND NULL
----

query I rowsort
SELECT ALL - col0 - + 97 AS col1 FROM tab0
----
-112
-184
-194

query I rowsort
SELECT + 53 + 89 FROM tab1
----
142
142
142

query II rowsort
SELECT ALL + col2 * 48 AS col2, 98 FROM tab2 AS cor0
----
1104
98
1920
98
2784
98

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab1 AS cor1 ON NOT NULL < - ( - 61 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3410
SELECT ALL - SUM( DISTINCT 35 ), + COUNT( * ) AS col2 FROM tab0
----
-35
3

skipif mysql # not compatible
query II rowsort label-3410
SELECT ALL - SUM ( DISTINCT 35 ), + COUNT ( * ) AS col2 FROM tab0
----
-35
3

query I rowsort
SELECT DISTINCT - col2 * - + col2 + - - col1 AS col1 FROM tab2 WHERE - 9 BETWEEN - col0 + + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT 81 * 11 FROM tab0 cor0 WHERE ( + 7 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3413
SELECT DISTINCT - - ( + CAST( NULL AS SIGNED ) ) * + + CAST( + 24 AS SIGNED ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT - - ( + CAST ( NULL AS INTEGER ) ) * + + CAST ( + 24 AS INTEGER ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 92 * + 9 * - - col1 FROM tab0 AS cor0
----
17388
67068
828

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT - COUNT( ALL + + 40 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3415
SELECT - COUNT ( ALL + + 40 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / + + 93 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT - - col1 * - col1 + col1 FROM tab0 cor0
----
-420
-6480
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT col1 * CAST( NULL AS SIGNED ) / - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3419
SELECT col1 * CAST ( NULL AS INTEGER ) / - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + + - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3421
SELECT col2 / - - CAST( NULL AS SIGNED ) + + - 69 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT col2 / - - CAST ( NULL AS INTEGER ) + + - 69 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT 32 + + COUNT( * ) AS col1 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-3422
SELECT 32 + + COUNT ( * ) AS col1 FROM tab1
----
35

query I rowsort
SELECT ALL + col2 * - 43 AS col1 FROM tab1
----
-2537
-2924
-4128

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3425
SELECT ALL + - COUNT( ALL + - 7 ) DIV + 17 AS col1, 18 AS col2 FROM tab0 AS cor0
----
0
18

skipif mysql # not compatible
query II rowsort label-3425
SELECT ALL + - COUNT ( ALL + - 7 ) / + 17 AS col1, 18 AS col2 FROM tab0 AS cor0
----
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( - 13 - - col0 * + 22 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3426
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( - 13 - - col0 * + 22 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT + COUNT( ALL col2 ) + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3427
SELECT + COUNT ( ALL col2 ) + COUNT ( * ) AS col0 FROM tab0
----
6

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT col2 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT 94 * COUNT( * ) AS col1 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT 94 * COUNT ( * ) AS col1 FROM tab1
----
282

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE ( - ( - 38 ) ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3432
SELECT + 84 DIV - col1 FROM tab1
----
-1
-16
-6

skipif mysql # not compatible
query I rowsort label-3432
SELECT + 84 / - col1 FROM tab1
----
-1
-16
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT col1 * col2 AS col1 FROM tab1 WHERE NOT ( + col1 ) BETWEEN CAST( NULL AS SIGNED ) AND 52
----

skipif mysql # not compatible
query I rowsort label-3433
SELECT col1 * col2 AS col1 FROM tab1 WHERE NOT ( + col1 ) BETWEEN CAST ( NULL AS INTEGER ) AND 52
----

query I rowsort
SELECT + col1 * 2 - 44 * col0 FROM tab0
----
-3786
-4266
-498

query I rowsort
SELECT 88 FROM tab0 WHERE NOT NULL IS NOT NULL
----
88
88
88

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 42 ) = NULL
----

query I rowsort
SELECT col1 - + col0 * col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 + 15 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT - COUNT( * ) * ( COUNT( * ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3439
SELECT - COUNT ( * ) * ( COUNT ( * ) ) FROM tab2
----
-9

query I rowsort
SELECT + 58 * + col1 AS col1 FROM tab2
----
2958
3886
4466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 * - col2 col2 FROM tab1
----
1358
300
3243

query I rowsort
SELECT ALL - col0 * 11 FROM tab0
----
-1067
-165
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT MIN( + col0 ) AS col1 FROM tab2 WHERE col2 / 1 <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT MIN ( + col0 ) AS col1 FROM tab2 WHERE col2 / 1 <> col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3444
SELECT * FROM tab0 WHERE ( col2 + CAST( NULL AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3444
SELECT * FROM tab0 WHERE ( col2 + CAST ( NULL AS INTEGER ) ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * + 71 col2 FROM tab1
----
3621
6035
6461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3446
SELECT - MIN( 81 ) + + COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT - MIN ( 81 ) + + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) BETWEEN 53 AND ( + 47 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT COUNT( * ) + - 18 AS col0 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT COUNT ( * ) + - 18 AS col0 FROM tab2
----
-15

query I rowsort
SELECT ALL ( + 23 ) FROM tab2
----
23
23
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 IN ( + col1 * - 92 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( col1 * col1 ) col2 FROM tab2 AS cor0
----
-132651
-300763
-456533

query I rowsort
SELECT + ( 9 ) FROM tab0 AS cor0
----
9
9
9

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 * 41 + - 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 * col2 col0 FROM tab0 WHERE col2 IS NOT NULL
----
3384
7128
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3455
SELECT + MAX( ALL col2 ) DIV - 49 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3455
SELECT + MAX ( ALL col2 ) / - 49 AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL 51 * col0 FROM tab2 AS cor0
----
2346
3264
3825

query I rowsort
SELECT ALL + + ( 2 ) * + 19 AS col1 FROM tab2 AS cor0
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT ALL + col1 DIV 36 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL + col1 / 36 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + 28 * + 82 + - col2 * - col1 AS col1 FROM tab0 AS cor0
----
2395
2506
6103

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 <= ( col1 * - col0 - + 80 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT + 40 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3461
SELECT + 40 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-120

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT COUNT( * ) * 4 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3463
SELECT COUNT ( * ) * 4 FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE 87 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE 87 IS NULL
----
0

query I rowsort
SELECT ALL 54 + 92 AS col0 FROM tab2 AS cor0
----
146
146
146

query I rowsort
SELECT ALL - ( + 99 ) AS col1 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT 49 + + + ( - col2 ) FROM tab1
----
-10
-19
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE + CAST( - col2 AS SIGNED ) > - col1 + + col1
----

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE + CAST ( - col2 AS INTEGER ) > - col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT - COUNT( - 22 ) FROM tab1 WHERE NOT ( + 7 ) = + col0
----
-3

skipif mysql # not compatible
query I rowsort label-3469
SELECT - COUNT ( - 22 ) FROM tab1 WHERE NOT ( + 7 ) = + col0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * + col0 + + 11 IN ( 72 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT 53 * + MAX( col0 ) * - COUNT( * ) AS col2 FROM tab0
----
-15423

skipif mysql # not compatible
query I rowsort label-3471
SELECT 53 * + MAX ( col0 ) * - COUNT ( * ) AS col2 FROM tab0
----
-15423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3472
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( - col1 ) * 0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( - col1 ) * 0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT col2 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT col2 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 47 - - col0 ) = NULL
----

query I rowsort
SELECT DISTINCT 21 * + ( + 24 ) AS col1 FROM tab2
----
504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3476
SELECT ALL 30 DIV - COUNT( * ) AS col0 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL 30 / - COUNT ( * ) AS col0 FROM tab1
----
-10

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + 40 * col2 FROM tab2
----
1600
2320
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 * - 91 col2 FROM tab1
----
-7917

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT MIN( col0 ) + COUNT( * ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-3480
SELECT MIN ( col0 ) + COUNT ( * ) AS col1 FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT + ( + + MIN( DISTINCT + 37 ) ) * + 84 AS col1 FROM tab1 cor0
----
3108

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT + ( + + MIN ( DISTINCT + 37 ) ) * + 84 AS col1 FROM tab1 cor0
----
3108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3482
SELECT DISTINCT + - CAST( + 8 AS SIGNED ) + + MIN( ALL col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT + - CAST ( + 8 AS INTEGER ) + + MIN ( ALL col1 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE - ( 26 ) - 97 < ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT 12 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT - COUNT( * ) * + - 38 col0 FROM tab2
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3485
SELECT - COUNT ( * ) * + - 38 col0 FROM tab2
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT ALL col2 - + col0 DIV + col0 FROM tab0 WHERE ( ( - 25 * col2 ) IS NOT NULL )
----
46
9
98

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL col2 - + col0 / + col0 FROM tab0 WHERE ( ( - 25 * col2 ) IS NOT NULL )
----
46
9
98

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 13 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col0 FROM tab1 WHERE + + 29 NOT BETWEEN + col2 AND col2
----
90
90
90

query I rowsort
SELECT + col2 * col1 * - col1 AS col0 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL - + 72 - + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL - + 72 - + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 + - col2 IS NOT NULL
----
0

query I rowsort
SELECT - + 83 * col0 * + col0 - col0 FROM tab0 AS cor0
----
-18690
-628314
-781044

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 1 * col0 > ( + col0 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - 65 BETWEEN ( NULL ) AND ( col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT COUNT( * ) col0 FROM tab1 cor0 WHERE NULL = ( col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3495
SELECT COUNT ( * ) col0 FROM tab1 cor0 WHERE NULL = ( col1 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3496
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( - - CAST( NULL AS DECIMAL ) ) AND - ( col0 )
----

skipif mysql # not compatible
query III rowsort label-3496
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( - - CAST ( NULL AS REAL ) ) AND - ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) > col2 * 4 * 61
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT col2 DIV col1 col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3499
SELECT col2 / col1 col0 FROM tab1
----
1
11
6

query I rowsort
SELECT ALL + col2 + col0 FROM tab1 WHERE NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL - MIN( - - col0 ) * 77 col1 FROM tab0
----
-1155

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3501
SELECT ALL - MIN ( - - col0 ) * 77 col1 FROM tab0
----
-1155

query I rowsort
SELECT ALL + col0 + - col2 FROM tab2 WHERE ( + - col0 ) IS NOT NULL
----
17
23
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3503
SELECT DISTINCT MAX( ALL + 82 ) AS col2, 19 FROM tab0
----
82
19

skipif mysql # not compatible
query II rowsort label-3503
SELECT DISTINCT MAX ( ALL + 82 ) AS col2, 19 FROM tab0
----
82
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 * + 15 ) <> ( - 93 )
----

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( 92 * col2 ) IN ( + col2 * - col0 ) )
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3506
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - CAST( + COUNT( * ) AS SIGNED ) + 99 FROM tab1 WHERE NOT ( NULL ) BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - CAST ( + COUNT ( * ) AS INTEGER ) + 99 FROM tab1 WHERE NOT ( NULL ) BETWEEN + col0 AND NULL
----
NULL

query I rowsort
SELECT - col2 * - - 4 AS col1 FROM tab1
----
-236
-272
-384

query I rowsort
SELECT - col0 / - 75 * - col0 AS col2 FROM tab2 WHERE NOT NULL <> + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 98 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT MAX( ALL 69 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-3510
SELECT MAX ( ALL 69 ) FROM tab2
----
69

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + 67 - + ( - col1 ) OR ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT + - COUNT( ALL 33 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3512
SELECT + - COUNT ( ALL 33 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL - 42 + - MIN( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL - 42 + - MIN ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
35

query I rowsort
SELECT ALL 32 + - - col1 FROM tab1 AS cor0
----
37
46
79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 60 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 * + + 29 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 * + + 29 * - col0 )
----
0

query I rowsort
SELECT ALL 7 * + col2 + 77 FROM tab0 AS cor0
----
147
406
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3518
SELECT DISTINCT + 69 + + CAST( - - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
156
166
84

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT + 69 + + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
156
166
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3519
SELECT DISTINCT 58 * + col2 DIV + + col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3519
SELECT DISTINCT 58 * + col2 / + + col2 FROM tab2
----
58

query I rowsort
SELECT - col1 + col2 * - 70 FROM tab2 WHERE + col0 * col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL + MIN( DISTINCT - 81 ) * - - ( 47 ) FROM tab1
----
-3807

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL + MIN ( DISTINCT - 81 ) * - - ( 47 ) FROM tab1
----
-3807

query I rowsort
SELECT + col2 + - 98 AS col2 FROM tab2
----
-40
-58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT SUM( - col2 ) + - - 46 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-3523
SELECT SUM ( - col2 ) + - - 46 FROM tab1
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3524
SELECT ALL col0 + - - col0 * + ( - 3 ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-102
NULL
-170
NULL
-182
NULL

skipif mysql # not compatible
query II rowsort label-3524
SELECT ALL col0 + - - col0 * + ( - 3 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-102
NULL
-170
NULL
-182
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL + SUM( 98 ) AS col1 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + SUM ( 98 ) AS col1 FROM tab2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT COUNT( * ) * - + MIN( + col0 ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-3526
SELECT COUNT ( * ) * - + MIN ( + col0 ) FROM tab2
----
-138

query II rowsort
SELECT DISTINCT + 14 AS col0, col2 * + col0 FROM tab1
----
14
4896
14
5015
14
6188

query II rowsort
SELECT ALL - col2 AS col0, + col0 AS col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT 77 + + - COUNT( col1 ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-3529
SELECT 77 + + - COUNT ( col1 ) AS col2 FROM tab1
----
74

query I rowsort
SELECT DISTINCT + 27 FROM tab1 AS cor0 WHERE NOT - 95 * + col2 * - col0 BETWEEN - 33 AND ( + 64 * col0 )
----
27

query I rowsort
SELECT ALL + 68 - - col2 + - + ( + - 82 ) FROM tab2 AS cor0
----
173
190
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3532
SELECT ALL - CAST( ( ( - COUNT( * ) ) ) AS SIGNED ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3532
SELECT ALL - CAST ( ( ( - COUNT ( * ) ) ) AS INTEGER ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3533
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 84 IN ( 63, CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 84 IN ( 63, CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT DISTINCT + 29 FROM tab1 cor0
----
29

query I rowsort
SELECT - 1 * + + 66 AS col0 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT ALL - 14 * - col0 AS col2 FROM tab0 AS cor0
----
1218
1358
210

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + + 57 * + col1 ) = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3539
SELECT + - col0 DIV - 54, col0 col0 FROM tab2 AS cor0
----
0
46
1
64
1
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3539
SELECT + - col0 / - 54, col0 col0 FROM tab2 AS cor0
----
0
46
1
64
1
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT DISTINCT + col1 DIV - - 35 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT + col1 / - - 35 FROM tab1 cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + - col2 * col0 * + 46 + - col1 <> ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT - MAX( col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3542
SELECT - MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3543
SELECT 70 col2 FROM tab1 WHERE NOT + col2 * 80 * col0 * - col2 * + + col0 * col1 + - 99 NOT BETWEEN NULL AND CAST( NULL AS DECIMAL ) + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3543
SELECT 70 col2 FROM tab1 WHERE NOT + col2 * 80 * col0 * - col2 * + + col0 * col1 + - 99 NOT BETWEEN NULL AND CAST ( NULL AS REAL ) + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 NOT IN ( - col0, ( - + col2 ) )
----

query I rowsort
SELECT + 36 * - 87 AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
-3132
-3132
-3132

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT ALL 4 DIV - col1 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3546
SELECT ALL 4 / - col1 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT DISTINCT - MAX( ALL 23 ) FROM tab2 WHERE NULL IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT - MAX ( ALL 23 ) FROM tab2 WHERE NULL IS NULL
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT + 83 DIV 30 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3548
SELECT + 83 / 30 FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3549
SELECT DISTINCT MIN( ALL + 90 ) DIV - MAX( DISTINCT + 95 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT MIN ( ALL + 90 ) / - MAX ( DISTINCT + 95 ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3550
SELECT DISTINCT ( + COUNT( * ) ) * + COUNT( - 14 ) AS col2 FROM tab0 WHERE - 3 NOT IN ( col2, - 97 * CAST( + + 13 AS DECIMAL ) )
----
9

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT ( + COUNT ( * ) ) * + COUNT ( - 14 ) AS col2 FROM tab0 WHERE - 3 NOT IN ( col2, - 97 * CAST ( + + 13 AS REAL ) )
----
9

query I rowsort
SELECT - 46 * - - 45 FROM tab2 AS cor0
----
-2070
-2070
-2070

query II rowsort
SELECT ALL - col2 AS col2, + 53 FROM tab1 AS cor0
----
-59
53
-68
53
-96
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT - MIN( - 11 ) AS col2 FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-3553
SELECT - MIN ( - 11 ) AS col2 FROM tab2 cor0
----
11

query I rowsort
SELECT - + ( + 6 ) AS col0 FROM tab0 cor0
----
-6
-6
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - 77 = NULL
----

query I rowsort
SELECT + - 22 + + col2 FROM tab1 AS cor0 WHERE - 89 * col0 <= - + col2
----
37
46
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3558
SELECT ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT ALL - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT ( + 19 ), col2 AS col0 FROM tab1 AS cor0
----
19
59
19
68
19
96

query III rowsort
SELECT * FROM tab1 WHERE col1 * - col0 * - + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3562
SELECT DISTINCT 42 AS col0, col0 - 57 + + - col0 - CAST( NULL AS SIGNED ) FROM tab2
----
42
NULL

skipif mysql # not compatible
query II rowsort label-3562
SELECT DISTINCT 42 AS col0, col0 - 57 + + - col0 - CAST ( NULL AS INTEGER ) FROM tab2
----
42
NULL

query I rowsort
SELECT DISTINCT + 45 + + + 10 FROM tab1
----
55

query I rowsort
SELECT - 30 * col2 + - 51 * col2 AS col2 FROM tab0
----
-3807
-8019
-810

query III rowsort
SELECT * FROM tab0 WHERE - col0 + + + 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 91, 13 AS col1 FROM tab0
----
-91
13

query I rowsort
SELECT 57 * - 17 + + col1 * + ( - ( + ( - + col2 ) ) ) + - - col1 AS col0 FROM tab1
----
-669
2274
389

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT COUNT( * ) + + + 39 col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3568
SELECT COUNT ( * ) + + + 39 col1 FROM tab2 AS cor0
----
42

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT + 22 * - 34 + - col0 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT + MAX( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 6 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT + MAX ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 6 AND col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3571
SELECT DISTINCT ( - + 58 ) + - ( CAST( NULL AS SIGNED ) ) * col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT ( - + 58 ) + - ( CAST ( NULL AS INTEGER ) ) * col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 17 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT col2 * + col1 * + 96 + - + col1 AS col0 FROM tab1
----
129010
28315
306769

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT COUNT( * ) * + ( + 75 ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-3574
SELECT COUNT ( * ) * + ( + 75 ) FROM tab0
----
225

query I rowsort
SELECT + 95 - 89 AS col0 FROM tab0
----
6
6
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( + 23 ) * col2 ) IS NOT NULL AND + col1 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col0 AS col0, + col2 * + col0 AS col1 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

onlyif mysql # DIV for integer division: 
query II rowsort label-3578
SELECT ALL - 67 AS col2, - col1 DIV + 12 AS col1 FROM tab0 AS cor0
----
-67
-1
-67
-6
-67
0

skipif mysql # not compatible
query II rowsort label-3578
SELECT ALL - 67 AS col2, - col1 / + 12 AS col1 FROM tab0 AS cor0
----
-67
-1
-67
-6
-67
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3579
SELECT * FROM tab2 AS cor0 WHERE NOT 77 >= + 24 * + 56 + + col0 * + - col0 + ( + - col1 ) + - CAST( - col1 AS SIGNED ) + - col0 * col1 * 77 * col1
----

skipif mysql # not compatible
query III rowsort label-3579
SELECT * FROM tab2 AS cor0 WHERE NOT 77 >= + 24 * + 56 + + col0 * + - col0 + ( + - col1 ) + - CAST ( - col1 AS INTEGER ) + - col0 * col1 * 77 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + ( + col2 ) col1 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3581
SELECT - + SUM( - - ( - - CAST( + 93 AS SIGNED ) ) ) col1 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3581
SELECT - + SUM ( - - ( - - CAST ( + 93 AS INTEGER ) ) ) col1 FROM tab2 AS cor0
----
-279

query I rowsort
SELECT ALL + col2 * - ( + + col0 ) AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - col1 * + 78 - col2 FROM tab1 AS cor0
----
-1188
-3734
-449

query II rowsort
SELECT col2 AS col1, 8 + col1 AS col0 FROM tab2 cor0
----
23
59
40
85
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3585
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 7 * + CAST( NULL AS SIGNED ) <> - 86
----

skipif mysql # not compatible
query III rowsort label-3585
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 7 * + CAST ( NULL AS INTEGER ) <> - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT SUM( 37 ) AS col2 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-3586
SELECT SUM ( 37 ) AS col2 FROM tab2
----
111

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 97 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - - col1 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-3589
SELECT ALL COUNT( DISTINCT - + col2 ) AS col0, - COUNT( * ) * + + 41 FROM tab0
----
3
-123

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL COUNT ( DISTINCT - + col2 ) AS col0, - COUNT ( * ) * + + 41 FROM tab0
----
3
-123

query I rowsort
SELECT 33 * + col2 * + col0 AS col0 FROM tab2
----
143550
34914
84480

query II rowsort
SELECT 7 AS col0, col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( 35, 66 + - 91 )
----

query I rowsort
SELECT ALL + - 45 * + col0 FROM tab2 cor0
----
-2070
-2880
-3375

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3593
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3593
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) ) IS NULL
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NOT + 59 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3595
SELECT col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL >= - col0 + + + 36
----

skipif mysql # not compatible
query II rowsort label-3595
SELECT col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL >= - col0 + + + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL - MIN( ALL - 45 ) col1 FROM tab2 cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3596
SELECT ALL - MIN ( ALL - 45 ) col1 FROM tab2 cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL + + MIN( - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL + + MIN ( - col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3598
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( - - col1, CAST( col2 AS SIGNED ) / + col1 * + - col1 / col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3598
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( - - col1, CAST ( col2 AS INTEGER ) / + col1 * + - col1 / col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - ( + + col0 ) FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + ( + col0 ) + + 64 AS col2 FROM tab2 AS cor0
----
110
128
139

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3601
SELECT - COUNT( * ) + - + MIN( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT - COUNT ( * ) + - + MIN ( CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3603
SELECT ALL - col1 + CAST( - + 9 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
-75
57
87

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL - col1 + CAST ( - + 9 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
-75
57
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT DISTINCT COUNT( * ) + + 96 FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT COUNT ( * ) + + 96 FROM tab2 cor0
----
99

query I rowsort
SELECT - col2 + - 80 AS col2 FROM tab2 AS cor0
----
-103
-120
-138

query I rowsort
SELECT - col1 * - - col1 + - - col1 AS col1 FROM tab2
----
-2550
-4422
-5852

query I rowsort
SELECT DISTINCT + col1 + + - ( + - col1 ) FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - SUM( ALL - col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3608
SELECT - SUM ( ALL - col0 ) AS col1 FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3609
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE - - CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT col1 + + + col2 * + - col0 AS col1 FROM tab0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT - - 42 * - - COUNT( * ) * COUNT( * ) AS col0 FROM tab0 cor0
----
378

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - - 42 * - - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 cor0
----
378

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3612
SELECT ALL + CAST( + col0 AS SIGNED ) DIV + col2 - - col1 + + 45 FROM tab0 AS cor0
----
126
46
74

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL + CAST ( + col0 AS INTEGER ) / + col2 - - col1 + + 45 FROM tab0 AS cor0
----
126
46
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3613
SELECT - COUNT( * ) - - ( 99 ) + - 56 * + CAST( NULL AS DECIMAL ), 94 AS col1 FROM tab0 AS cor0
----
NULL
94

skipif mysql # not compatible
query II rowsort label-3613
SELECT - COUNT ( * ) - - ( 99 ) + - 56 * + CAST ( NULL AS REAL ), 94 AS col1 FROM tab0 AS cor0
----
NULL
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3614
SELECT ALL + 69 + + 25 + col1 * CAST( NULL AS SIGNED ) + - ( + 41 ) + - col1 * + 42 * + + col1 / 53 + - 12 + - ( col0 ) + 58 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL + 69 + + 25 + col1 * CAST ( NULL AS INTEGER ) + - ( + 41 ) + - col1 * + 42 * + + col1 / 53 + - 12 + - ( col0 ) + 58 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3615
SELECT + ( + + 94 ) - + COUNT( * ) DIV COUNT( * ) col0 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3615
SELECT + ( + + 94 ) - + COUNT ( * ) / COUNT ( * ) col0 FROM tab0 AS cor0
----
93

query I rowsort
SELECT - 33 - + col0 FROM tab2 AS cor0
----
-108
-79
-97

query I rowsort
SELECT ALL + col2 + - 38 + col1 - + 32 FROM tab0 AS cor0
----
-39
30
58

query I rowsort
SELECT col0 * + col1 + + col1 FROM tab0 AS cor0
----
1296
1848
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 * + - col2 * + 73 * - col0 IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - 58 * col1 FROM tab0
----
-1218
-4698
-58

query I rowsort
SELECT ALL + + 58 AS col1 FROM tab1 WHERE NOT + 55 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT NULL >= ( col2 )
----

query I rowsort
SELECT DISTINCT + 49 * col0 * - col2 FROM tab1 AS cor0
----
-239904
-245735
-303212

query I rowsort
SELECT + col2 * 4 * - 43 AS col1 FROM tab2 AS cor0
----
-3956
-6880
-9976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT - CAST( + 16 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-3625
SELECT - CAST ( + 16 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3626
SELECT + COUNT( * ) DIV 67 * - 27 * + COUNT( * ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT + COUNT ( * ) / 67 * - 27 * + COUNT ( * ) AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT ( + 81 ) AS col1 FROM tab1 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - + 80 ) col2, col1 FROM tab0
----
80
1
80
21
80
81

query I rowsort
SELECT ALL ( + + ( - + 35 ) ) AS col0 FROM tab2
----
-35
-35
-35

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 92 = - - 15 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT - ( SUM( + 60 ) ) AS col1 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-3631
SELECT - ( SUM ( + 60 ) ) AS col1 FROM tab2
----
-180

query I rowsort
SELECT DISTINCT col0 * - col1 * - - 59 AS col2 FROM tab1
----
-25075
-252343
-42126

query I rowsort
SELECT DISTINCT col2 * - - 30 * 43 FROM tab0
----
127710
12900
60630

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + - 32 )
----

query I rowsort
SELECT ALL + + col1 * - + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 * - + 28, - col1 * + 30 + + + col1 + + - col1 * + 82 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3637
SELECT - CAST( NULL AS SIGNED ) + + CAST( + col0 AS SIGNED ) / + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( + col0 AS INTEGER ) / + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + col2, col2 col0 FROM tab2 AS cor0
----
-28
23
-37
40
-9
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT + + MAX( DISTINCT + 56 ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT + + MAX ( DISTINCT + 56 ) FROM tab1 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL - ( ( - - COUNT( * ) ) ) AS col1 FROM tab2 WHERE NOT - - col1 * + + 26 * col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL - ( ( - - COUNT ( * ) ) ) AS col1 FROM tab2 WHERE NOT - - col1 * + + 26 * col2 IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 WHERE - 86 >= + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3642
SELECT ALL - ( COUNT( * ) ) DIV 32 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - ( COUNT ( * ) ) / 32 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3643
SELECT ALL - MIN( - - col2 ) * - ( 61 ) AS col2, - COUNT( DISTINCT - 17 ) FROM tab0 AS cor0 WHERE + ( - CAST( - col1 AS SIGNED ) ) IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3643
SELECT ALL - MIN ( - - col2 ) * - ( 61 ) AS col2, - COUNT ( DISTINCT - 17 ) FROM tab0 AS cor0 WHERE + ( - CAST ( - col1 AS INTEGER ) ) IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL MIN( col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE - ( + ( - + col2 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3646
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE - ( + ( - + col2 ) ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT - COUNT( * ) - - COUNT( ALL 14 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3647
SELECT - COUNT ( * ) - - COUNT ( ALL 14 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL col0 - - + col1 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT + 46 + - - 1 AS col0 FROM tab2, tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL - COUNT( ALL + col2 ) + + 69 * SUM( DISTINCT + - col0 ) FROM tab1
----
-15666

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - COUNT ( ALL + col2 ) + + 69 * SUM ( DISTINCT + - col0 ) FROM tab1
----
-15666

query I rowsort
SELECT col2 + - - col0 AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT 1 + + col0 - col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + 42 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
42

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 28 + ( + - 0 ) + - col0 ) <= + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3655
SELECT DISTINCT 36 * - COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab0
----
-108
3

skipif mysql # not compatible
query II rowsort label-3655
SELECT DISTINCT 36 * - COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab0
----
-108
3

query I rowsort
SELECT DISTINCT col2 * - + col2 * col0 AS col0 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3657
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ( - 3 ) AS col2, 24 AS col0 FROM tab0 AS cor0
----
-3
24
-3
24
-3
24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 61 * - col2 IS NOT NULL
----

query I rowsort
SELECT + col0 * ( + col1 ) AS col0 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT ALL - col2 * + - col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3662
SELECT DISTINCT 38 DIV - + col0 * + col1 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT 38 / - + col0 * + col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 90 AS col1 FROM tab0 AS cor0 WHERE 27 + - + col2 IS NOT NULL
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3664
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 IN ( - + col2, col2, + CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-3664
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 IN ( - + col2, col2, + CAST ( NULL AS INTEGER ) ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT ALL - + CAST( - 92 AS SIGNED ) FROM tab2 cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - + CAST ( - 92 AS INTEGER ) FROM tab2 cor0
----
92
92
92

query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab1 WHERE NOT + + 84 < + - col2
----
-63

query I rowsort
SELECT DISTINCT col0 * + 23 * - col1 FROM tab0
----
-2231
-27945
-42021

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - 19 * - 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT DISTINCT - MIN( ALL - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT - MIN ( ALL - col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT DISTINCT + 75 * MIN( DISTINCT - 90 ) FROM tab0
----
-6750

skipif mysql # not compatible
query I rowsort label-3670
SELECT DISTINCT + 75 * MIN ( DISTINCT - 90 ) FROM tab0
----
-6750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT - - col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + 80 + col2 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3671
SELECT - - col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + 80 + col2 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + ( - 55 ) FROM tab1
----
-55
-55
-55

query I rowsort
SELECT DISTINCT - 79 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - 98 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT ALL - SUM( col0 ) * + + 95 AS col2 FROM tab1
----
-21565

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - SUM ( col0 ) * + + 95 AS col2 FROM tab1
----
-21565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + col2 AS col0, - col2 * - col0 col2 FROM tab0
----
-11
870
-34
705
98
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT + - COUNT( * ) + - + ( + 77 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-86

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT + - COUNT ( * ) + - + ( + 77 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-86

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + + 68 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT ALL + - ( - 49 ) + - - 46 DIV ( - col0 ) FROM tab0 cor0
----
46
49
49

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL + - ( - 49 ) + - - 46 / ( - col0 ) FROM tab0 cor0
----
46
49
49

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - 65 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3681
SELECT DISTINCT - ( + col1 ) AS col2, - 18 DIV col2 col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3681
SELECT DISTINCT - ( + col1 ) AS col2, - 18 / col2 col0 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

query I rowsort
SELECT DISTINCT + ( - 75 ) FROM tab0 AS cor0
----
-75

query I rowsort
SELECT + - col2 AS col2 FROM tab0 AS cor0 WHERE + 10 IS NULL
----

query I rowsort
SELECT + col2 + - - col1 AS col0 FROM tab1 AS cor0
----
110
115
64

query II rowsort
SELECT DISTINCT - col0 AS col0, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL - COUNT( * ) + - MAX( col2 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - COUNT ( * ) + - MAX ( col2 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT COUNT( col1 ) * - 95 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-3687
SELECT COUNT ( col1 ) * - 95 FROM tab0
----
-285

query I rowsort
SELECT DISTINCT - ( 36 ) - col2 * col0 AS col0 FROM tab1
----
-4932
-5051
-6224

query I rowsort
SELECT DISTINCT col2 - - + col2 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3690
SELECT ALL COUNT( * ) DIV + + 71 * + MAX( - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL COUNT ( * ) / + + 71 * + MAX ( - col2 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + - col1
----

query I rowsort
SELECT - col0 * + ( + 27 ) FROM tab0
----
-2349
-2619
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT + MIN( - 89 ) * COUNT( * ) FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-3693
SELECT + MIN ( - 89 ) * COUNT ( * ) FROM tab0
----
-267

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col0, + col1, 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT + + COUNT( DISTINCT + col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3695
SELECT + + COUNT ( DISTINCT + col0 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3696
SELECT + COUNT( * ), 41 col0 FROM tab2 AS cor0
----
3
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3696
SELECT + COUNT ( * ), 41 col0 FROM tab2 AS cor0
----
3
41

query I rowsort
SELECT ALL - col0 + 23 * 71 AS col0 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
1558
1569
1587

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3698
SELECT + - COUNT( * ), - CAST( - 65 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3
65

skipif mysql # not compatible
query II rowsort label-3698
SELECT + - COUNT ( * ), - CAST ( - 65 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3
65

query I rowsort
SELECT DISTINCT 16 + - col1 FROM tab1 AS cor0
----
-31
11
2

query I rowsort
SELECT col1 + col2 * + col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT - SUM( ALL - col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-3701
SELECT - SUM ( ALL - col1 ) FROM tab0 cor0
----
103

query I rowsort
SELECT ALL 30 * col1 FROM tab2
----
1530
2010
2310

query I rowsort
SELECT ALL - ( - col0 ) * - 92 FROM tab2
----
-4232
-5888
-6900

query I rowsort
SELECT DISTINCT ( + 92 ) FROM tab1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ALL + MIN( + + ( - col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL + MIN ( + + ( - col0 ) ) FROM tab0
----
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 19 * + + col0 IS NULL
----

query I rowsort
SELECT - 32 + + + 4 + + + 7 FROM tab2 AS cor0
----
-21
-21
-21

query II rowsort
SELECT + col2, - col0 * - + 17 FROM tab0 AS cor0
----
10
1479
47
255
99
1649

query II rowsort
SELECT col2 - - + col0 * 52, col0 FROM tab1 AS cor0
----
2748
51
4479
85
4800
91

query II rowsort
SELECT - - col2 - + + col2 * - - col0 AS col1, col1 * + - col2 + 8 AS col2 FROM tab1 AS cor0
----
-4800
-1336
-4956
-287
-6120
-3188

query I rowsort
SELECT DISTINCT + - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT COUNT( * ) + + 71 AS col1 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3712
SELECT COUNT ( * ) + + 71 AS col1 FROM tab1 AS cor0
----
74

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + + col1 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + 87 ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT ALL col2 DIV - col1 * 43 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL col2 / - col1 * 43 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + 43 * + MIN( ALL 25 ) AS col0 FROM tab2
----
1075

skipif mysql # not compatible
query I rowsort label-3716
SELECT + 43 * + MIN ( ALL 25 ) AS col0 FROM tab2
----
1075

query I rowsort
SELECT 83 * + 0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT - MAX( ALL + col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3718
SELECT - MAX ( ALL + col0 ) AS col2 FROM tab0
----
-97

query I rowsort
SELECT ALL + col1 * - 86 FROM tab0 AS cor0
----
-1806
-6966
-86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3721
SELECT + col2 col2, col0 * - col2 + + col1 * + + col2 + + col1 * col1 + - + col0 DIV col2 + - 38 + + 44 * 97 AS col0 FROM tab1 AS cor0
----
59
-466
68
3446
96
874

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3721
SELECT + col2 col2, col0 * - col2 + + col1 * + + col2 + + col1 * col1 + - + col0 / col2 + - 38 + + 44 * 97 AS col0 FROM tab1 AS cor0
----
59
-466
68
3446
96
874

onlyif mysql # DIV for integer division: 
query I rowsort label-3722
SELECT ALL - 74 DIV - col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL - 74 / - col2 FROM tab0 AS cor0
----
0
1
7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 87 <= - 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT - SUM( ALL + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3724
SELECT - SUM ( ALL + col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 < col0 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 69 AS col2 FROM tab0 cor0
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 + col2 + 63 + - 5 * + col2 col1 FROM tab1
----
-125
-161
-273

query I rowsort
SELECT DISTINCT col0 * + 13 + + + col2 AS col2 FROM tab1
----
1164
1251
759

query I rowsort
SELECT col1 * 48 * + + 53 + + - col0 + + - col2 - 87 * - col1 + col0 AS col2 FROM tab2
----
134158
176219
202547

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
23

query II rowsort
SELECT ALL - ( - ( - col0 ) ) AS col2, - col2 FROM tab2
----
-46
-23
-64
-40
-75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT col2 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT col2 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 33 AS col1 FROM tab1
----
1947
2244
3168

query I rowsort
SELECT DISTINCT + ( 34 ) AS col1 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT SUM( DISTINCT 2 ) FROM tab2 cor0
----
2

skipif mysql # not compatible
query I rowsort label-3735
SELECT SUM ( DISTINCT 2 ) FROM tab2 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT - - 94 + - ( + 94 ) * ( - - MAX( - + 58 ) ) FROM tab2 AS cor0
----
5546

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT - - 94 + - ( + 94 ) * ( - - MAX ( - + 58 ) ) FROM tab2 AS cor0
----
5546

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT - COUNT( ALL 91 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3737
SELECT - COUNT ( ALL 91 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 19 + col2 AS col1 FROM tab2
----
42
59
77

query I rowsort
SELECT DISTINCT - col0 - 34 AS col0 FROM tab0
----
-121
-131
-49

query I rowsort
SELECT ALL - 68 * + col0 + ( col2 ) + col2 * + 69 AS col2 FROM tab0
----
-5216
2270
334

query I rowsort
SELECT DISTINCT + + col2 * + 29 + col2 AS col2 FROM tab2 AS cor0
----
1200
1740
690

query I rowsort
SELECT + 76 * + - col2 + + + col1 FROM tab1 AS cor0
----
-4479
-5121
-7282

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT 64 DIV + - col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT 64 / + - col2 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT DISTINCT col1 + + ( 91 ) FROM tab1 AS cor0
----
105
138
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3745
SELECT ALL + + COUNT( * ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + + COUNT ( * ) / - - COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3746
SELECT + col0 / - CAST( NULL AS SIGNED ) AS col0, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3746
SELECT + col0 / - CAST ( NULL AS INTEGER ) AS col0, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT - col1 * + 19 AS col2 FROM tab2
----
-1273
-1463
-969

query I rowsort
SELECT - - col1 FROM tab0 WHERE NOT col1 + col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT ALL MAX( + - ( col2 ) ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL MAX ( + - ( col2 ) ) AS col2 FROM tab1
----
-59

query I rowsort
SELECT ALL + ( - 42 ) AS col1 FROM tab1
----
-42
-42
-42

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 * 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT COUNT( * ) + + COUNT( * ) col0 FROM tab0, tab2 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3752
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) col0 FROM tab0, tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ALL - - 50 * - MAX( - col0 ) col0 FROM tab0 cor0
----
750

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3753
SELECT ALL - - 50 * - MAX ( - col0 ) col0 FROM tab0 cor0
----
750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT 87 * - - CAST( + + col2 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
5074
5848
8256

skipif mysql # not compatible
query I rowsort label-3754
SELECT 87 * - - CAST ( + + col2 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
5074
5848
8256

query I rowsort
SELECT DISTINCT col0 * + col1 * + - col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # DIV for integer division: 
query I rowsort label-3756
SELECT DISTINCT + + ( + col1 ) DIV + + col0 + + col1 * 13 FROM tab2 AS cor0
----
1002
664
871

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT + + ( + col1 ) / + + col0 + + col1 * 13 FROM tab2 AS cor0
----
1002
664
871

query II rowsort
SELECT ALL - col2 AS col2, ( col2 ) FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT + - 48 * - col0 * - - col0 FROM tab0 AS cor0
----
10800
363312
451632

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3759
SELECT DISTINCT - 95 AS col0, + col1 * - CAST( NULL AS SIGNED ) * - col2 * + col1 FROM tab0 cor0
----
-95
NULL

skipif mysql # not compatible
query II rowsort label-3759
SELECT DISTINCT - 95 AS col0, + col1 * - CAST ( NULL AS INTEGER ) * - col2 * + col1 FROM tab0 cor0
----
-95
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT ALL + 79 DIV + + col1 + col1 AS col1 FROM tab1 cor0
----
19
20
48

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL + 79 / + + col1 + col1 AS col1 FROM tab1 cor0
----
19
20
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3761
SELECT DISTINCT + COUNT( * ) AS col2, 50 FROM tab2 AS cor0
----
3
50

skipif mysql # not compatible
query II rowsort label-3761
SELECT DISTINCT + COUNT ( * ) AS col2, 50 FROM tab2 AS cor0
----
3
50

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT ALL + 45, 61 * + col0 AS col0 FROM tab1 AS cor0
----
45
3111
45
5185
45
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT + MAX( - 10 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-3764
SELECT + MAX ( - 10 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col0 * - col0 + + - 35 FROM tab1
----
-2636
-7260
-8316

query I rowsort
SELECT DISTINCT - ( 5 ) AS col2 FROM tab0
----
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NULL OR - col2 NOT IN ( - - ( - 42 ), 30 * + col1, + + 25 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT ALL - MIN( DISTINCT - + ( - col2 ) ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL - MIN ( DISTINCT - + ( - col2 ) ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT 66 + col1 AS col0 FROM tab1 AS cor0
----
113
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3771
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - col2 > + - col1
----
99

query I rowsort
SELECT - + 63 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT DISTINCT + ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL COUNT( * ) - 34 col1 FROM tab0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3775
SELECT ALL COUNT ( * ) - 34 col1 FROM tab0
----
-31

query I rowsort
SELECT + col2 - - + col0 + + - 40 FROM tab2 AS cor0
----
29
64
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3777
SELECT 52 - - col0 - - - col0 * + + 58 - + - CAST( col1 AS SIGNED ), col0 AS col2 FROM tab0 AS cor0
----
-4886
87
-5476
97
-722
15

skipif mysql # not compatible
query II rowsort label-3777
SELECT 52 - - col0 - - - col0 * + + 58 - + - CAST ( col1 AS INTEGER ), col0 AS col2 FROM tab0 AS cor0
----
-4886
87
-5476
97
-722
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3778
SELECT ( 15 ) - - COUNT( - col1 ) DIV - MIN( ALL col2 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3778
SELECT ( 15 ) - - COUNT ( - col1 ) / - MIN ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT COUNT( + - col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3780
SELECT COUNT ( + - col0 ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN col0 + + 24 / - 49 * + 11 AND NULL
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + col2 + - col2 * col1 * + + 14 / - + col2 + + + col0, - 88 / + - 69 * + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - 72 IS NOT NULL
----

query II rowsort
SELECT - col0 * - - col2 AS col1, 23 FROM tab0
----
-705
23
-870
23
-9603
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3785
SELECT DISTINCT - COUNT( - + col2 ) AS col1, COUNT( * ) AS col1 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3785
SELECT DISTINCT - COUNT ( - + col2 ) AS col1, COUNT ( * ) AS col1 FROM tab0
----
-3
3

query I rowsort
SELECT ( + 2 ) AS col0 FROM tab1
----
2
2
2

query II rowsort
SELECT ALL + 31 * + 12 AS col2, + ( col0 ) FROM tab1
----
372
51
372
85
372
91

query I rowsort
SELECT DISTINCT - 98 * col1 AS col2 FROM tab1
----
-1372
-4606
-490

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT DISTINCT - 48 DIV 6 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT - 48 / 6 FROM tab0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3790
SELECT - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + ( + + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + + col0 * + col2 / - + 24 FROM tab0 AS cor0 WHERE NOT - ( + + 93 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col1 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 12 col2 FROM tab0
----
1188
120
564

query I rowsort
SELECT + 58 + + + col1 * col2 AS col1 FROM tab0 AS cor0
----
157
268
3865

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT - - col0 + col2 DIV - col2 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-3796
SELECT - - col0 + col2 / - col2 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT ALL - - 68 FROM tab0 cor0
----
68
68
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 42
----

query I rowsort
SELECT DISTINCT + col2 + col2 + - col0 + col0 * - col2 + + 92 AS col2 FROM tab1 cor0
----
-4663
-4890
-6051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT DISTINCT + 30 + - CAST( - 59 AS SIGNED ) * 20 FROM tab0
----
1210

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT + 30 + - CAST ( - 59 AS INTEGER ) * 20 FROM tab0
----
1210

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT + MIN( DISTINCT 40 ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-3801
SELECT + MIN ( DISTINCT 40 ) FROM tab1
----
40

query II rowsort
SELECT col2, - ( col0 ) AS col0 FROM tab0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT ( ( col2 ) ) * + col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT 26 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 48 * + ( - ( - col0 ) ) - - + 56 AS col1 FROM tab0 AS cor0
----
4232
4712
776

query III rowsort
SELECT * FROM tab0 cor0 WHERE 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - + col2 * + col2 + 12 * - 24 * - + ( - + 29 ) * col0 FROM tab2
----
-408526
-636928
-878700

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT 1 + + - COUNT( * ) AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-3809
SELECT 1 + + - COUNT ( * ) AS col2 FROM tab2
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * - col2 col1, col0 + + col1 FROM tab0 cor0
----
-705
96
-870
108
-9603
98

query I rowsort
SELECT + ( 53 ) + - 71 * col1 / 89 AS col0 FROM tab2 AS cor0 WHERE NOT + 49 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 59 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * - col0 + - 48 + - - col0 AS col0 FROM tab1 cor0
----
-4893
-4978
-6145

query I rowsort
SELECT - col1 / - 93 * + 2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT COUNT( * ) col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3815
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT - 27 * + MAX( - ( + col1 ) ) AS col2 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-3816
SELECT - 27 * + MAX ( - ( + col1 ) ) AS col2 FROM tab1
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-3817
SELECT DISTINCT COUNT( * ) AS col2, + 7 AS col0 FROM tab1
----
3
7

skipif mysql # not compatible
query II rowsort label-3817
SELECT DISTINCT COUNT ( * ) AS col2, + 7 AS col0 FROM tab1
----
3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT ALL + SUM( ALL - - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL + SUM ( ALL - - col0 ) FROM tab0
----
199

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) * - - 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE + - ( - col2 ) >= NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND 91
----

query I rowsort
SELECT ALL - col2 * + + col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + col1 - - 41 FROM tab0 AS cor0 WHERE ( 18 ) BETWEEN NULL AND + 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT + MIN( 75 ) AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3824
SELECT + MIN ( 75 ) AS col2 FROM tab1 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3825
SELECT ALL - - col0 DIV + col1 FROM tab1 AS cor0 WHERE - 50 IS NOT NULL
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - - col0 / + col1 FROM tab1 AS cor0 WHERE - 50 IS NOT NULL
----
1
17
3

query I rowsort
SELECT - col1 + 73 + - col2 FROM tab2
----
-1
-44
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL MIN( - 60 ) * - + COUNT( * ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL MIN ( - 60 ) * - + COUNT ( * ) FROM tab1
----
180

query I rowsort
SELECT + - col2 * 60 + + col1 + - - ( - - col1 ) * + col1 AS col1 FROM tab0 AS cor0
----
-138
-5938
3822

query I rowsort
SELECT - col1 * + - col2 * + col0 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT - - SUM( 65 ) FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3830
SELECT - - SUM ( 65 ) FROM tab1 AS cor0
----
195

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3832
SELECT COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT COUNT( * ) + - 42 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT COUNT ( * ) + - 42 FROM tab0
----
-39

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - 73 BETWEEN 90 - - 7 - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + - col2 + ( - - ( - col2 ) ) * + col0 col1 FROM tab2
----
-464
115
520

query I rowsort
SELECT DISTINCT + 68 - 43 + + col2 AS col0 FROM tab1
----
121
84
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT 74 + + + 84 * + MAX( ALL + col1 ) FROM tab2
----
6542

skipif mysql # not compatible
query I rowsort label-3837
SELECT 74 + + + 84 * + MAX ( ALL + col1 ) FROM tab2
----
6542

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3838
SELECT ALL - col1 DIV col1 * + CAST( 13 AS SIGNED ) AS col0 FROM tab1
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL - col1 / col1 * + CAST ( 13 AS INTEGER ) AS col0 FROM tab1
----
-13
-13
-13

query I rowsort
SELECT + col0 * + col2 * 12 + - col2 FROM tab0 AS cor0
----
10430
115137
8413

query I rowsort
SELECT + col0 + col1 + 48 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
145
189
190

query I rowsort
SELECT DISTINCT - - 27 - + col2 + - - col0 + - + col2 + - col0 * - + col1 AS col1 FROM tab2 AS cor0
----
2373
4939
5011

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT MAX( DISTINCT - 77 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3842
SELECT MAX ( DISTINCT - 77 ) FROM tab2
----
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3843
SELECT DISTINCT * FROM tab2 WHERE + ( - - 67 ) > + ( CAST( - ( - col0 ) AS DECIMAL ) )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-3843
SELECT DISTINCT * FROM tab2 WHERE + ( - - 67 ) > + ( CAST ( - ( - col0 ) AS REAL ) )
----
46
51
23
64
77
40

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab1 AS cor0 WHERE + col2 >= + col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3845
SELECT DISTINCT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT - 31 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT - 31 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col0 * + 80 AS col1 FROM tab2 AS cor0 WHERE NOT - 88 + 41 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 15 FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 20 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT + - 53 + COUNT( * ) * MAX( - - ( - - col0 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT + - 53 + COUNT ( * ) * MAX ( - - ( - - col0 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3851
SELECT DISTINCT - 11 AS col0, - COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0
----
-11
9

skipif mysql # not compatible
query II rowsort label-3851
SELECT DISTINCT - 11 AS col0, - COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-11
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 23 - - col1 NOT BETWEEN - + col1 / - ( col2 ) + - col0 + 9 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL COUNT( ALL - + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL COUNT ( ALL - + col0 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3854
SELECT ALL * FROM tab1 WHERE - col2 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3854
SELECT ALL * FROM tab1 WHERE - col2 < - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3855
SELECT - ( + + COUNT( * ) ), 38 col1 FROM tab1, tab0 AS cor0
----
-9
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3855
SELECT - ( + + COUNT ( * ) ), 38 col1 FROM tab1, tab0 AS cor0
----
-9
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT - COUNT( * ) DIV + MAX( + 55 ) DIV - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3856
SELECT - COUNT ( * ) / + MAX ( + 55 ) / - COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3857
SELECT - MAX( ALL - - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT - MAX ( ALL - - CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col2 FROM tab0
----
49

query III rowsort
SELECT * FROM tab0 WHERE NOT 14 * - - col1 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) + - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) + - - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 46 * - 15 AS col0 FROM tab2
----
-35190
-46230
-53130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT ALL + + col1 AS col0 FROM tab2 WHERE NOT + CAST( - 0 AS SIGNED ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL + + col1 AS col0 FROM tab2 WHERE NOT + CAST ( - 0 AS INTEGER ) IS NULL
----
51
67
77

query II rowsort
SELECT + col2, + col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 26 col1 FROM tab0
----
-16
21
73

query I rowsort
SELECT 2 + - ( col1 ) * 79 * + 53 AS col1 FROM tab2
----
-213535
-280527
-322397

query I rowsort
SELECT + + 79 + - + 27 FROM tab2 cor0
----
52
52
52

query I rowsort
SELECT col1 + - - 45 FROM tab0 AS cor0
----
126
46
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT - 98 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-3868
SELECT - 98 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-95

query I rowsort
SELECT ALL + + col2 + - - 62 AS col2 FROM tab1 AS cor0
----
121
130
158

query I rowsort
SELECT 64 FROM tab2 WHERE - col0 / - + col0 - - col2 + 67 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL ( - col0 ) - - - col0 AS col1 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT MIN( DISTINCT 55 ) AS col1 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-3872
SELECT MIN ( DISTINCT 55 ) AS col1 FROM tab1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + MIN( ALL - 77 ) FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-3873
SELECT + MIN ( ALL - 77 ) FROM tab0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 - + col0 col2 FROM tab0
----
-11
-83
-93

query I rowsort
SELECT ALL - - col1 * ( - col2 ) + + + col2 - ( + col0 ) - + 40 + - - col2 FROM tab2 AS cor0
----
-1213
-3104
-3885

query I rowsort
SELECT + + col1 * - ( 29 ) + + col2 FROM tab1 AS cor0
----
-1295
-310
-86

query I rowsort
SELECT - + col2 * - 29 AS col1 FROM tab1 AS cor0
----
1711
1972
2784

query I rowsort
SELECT + col2 * - - 5 AS col0 FROM tab1 AS cor0
----
295
340
480

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT ALL + 56 + + - 48 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL SUM( DISTINCT - ( + col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL SUM ( DISTINCT - ( + col0 ) ) FROM tab0
----
-199

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= + + ( 94 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 <> col0
----

query II rowsort
SELECT + + col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query II rowsort
SELECT + + col0 * + - 69 * - - col0, 93 * col1 * - ( 40 ) AS col2 FROM tab2 AS cor0
----
-146004
-189720
-282624
-286440
-388125
-249240

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT 16 * - 84 - - COUNT( * ) FROM tab1 AS cor0
----
-1341

skipif mysql # not compatible
query I rowsort label-3886
SELECT 16 * - 84 - - COUNT ( * ) FROM tab1 AS cor0
----
-1341

query I rowsort
SELECT col2 * - - 30 FROM tab1 AS cor0
----
1770
2040
2880

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3888
SELECT CAST( NULL AS DECIMAL ) AS col0, - ( - + ( + - 12 ) ) AS col0 FROM tab0
----
NULL
-12
NULL
-12
NULL
-12

skipif mysql # not compatible
query II rowsort label-3888
SELECT CAST ( NULL AS REAL ) AS col0, - ( - + ( + - 12 ) ) AS col0 FROM tab0
----
NULL
-12
NULL
-12
NULL
-12

query I rowsort
SELECT ALL + 2 * - 61 FROM tab1
----
-122
-122
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT col0 * 36 DIV - - col0 AS col2 FROM tab2
----
36
36
36

skipif mysql # not compatible
query I rowsort label-3890
SELECT col0 * 36 / - - col0 AS col2 FROM tab2
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT 95 * - + ( - ( MIN( + col0 ) ) ) col1 FROM tab0
----
1425

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3891
SELECT 95 * - + ( - ( MIN ( + col0 ) ) ) col1 FROM tab0
----
1425

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( ( NOT ( NOT ( NULL ) <> - 88 + - 53 * 96 ) ) ) )
----

query I rowsort
SELECT ALL - col1 * + ( - 79 ) + col2 + - + ( 29 ) * - col0 * + + col2 AS col1 FROM tab2 AS cor0
----
131501
34734
80363

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT ALL + - SUM( + 37 ) FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL + - SUM ( + 37 ) FROM tab1 AS cor0
----
-111

query III rowsort
SELECT * FROM tab2 WHERE - - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - MAX( ALL - + 28 ) AS col2 FROM tab0 cor0
----
28

skipif mysql # not compatible
query I rowsort label-3896
SELECT - MAX ( ALL - + 28 ) AS col2 FROM tab0 cor0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3897
SELECT - + 7 DIV - col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT - + 7 / - col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT 60 * - + MIN( DISTINCT - - col1 ) FROM tab2 AS cor0
----
-3060

skipif mysql # not compatible
query I rowsort label-3898
SELECT 60 * - + MIN ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
-3060

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + ( + col1 ) < 37 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 + + ( col2 ) col0 FROM tab2 AS cor0
----
26
43
61

query I rowsort
SELECT + col0 - - 58 AS col1 FROM tab1 AS cor0
----
109
143
149

query I rowsort
SELECT DISTINCT - - 12 * - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-12696
-30720
-52200

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT - - COUNT( * ) + 27 + SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT - - COUNT ( * ) + 27 + SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL col2 + - - 6 FROM tab1 AS cor0
----
102
65
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - col1 col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL + + COUNT( * ) FROM tab2 WHERE + 2 NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL + + COUNT ( * ) FROM tab2 WHERE + 2 NOT BETWEEN NULL AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab1 WHERE + + col1 BETWEEN + + 69 * col0 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE + + col1 BETWEEN + + 69 * col0 AND col0
----
0

query I rowsort
SELECT DISTINCT + 51 AS col2 FROM tab1, tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL 24 - + + 37 - + COUNT( * ) + - 32 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL 24 - + + 37 - + COUNT ( * ) + - 32 FROM tab1
----
-48

query I rowsort
SELECT + 37 * - 53 * + 16 FROM tab2 AS cor0
----
-31376
-31376
-31376

query I rowsort
SELECT ALL - - col0 * - - 53 FROM tab2 AS cor0
----
2438
3392
3975

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + 66 - 81 * 80 AND - col2 * 8 - + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL - MIN( DISTINCT col1 ) - - 34 AS col1 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL - MIN ( DISTINCT col1 ) - - 34 AS col1 FROM tab1
----
29

query I rowsort
SELECT ALL 25 + + 85 FROM tab0
----
110
110
110

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( 20 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( col2 ) + - ( col0 ) FROM tab2
----
-104
-133
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 3 ) col2 FROM tab1
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL COUNT( * ) + + 73 AS col2 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL COUNT ( * ) + + 73 AS col2 FROM tab2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3921
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND col2 * + 68
----

skipif mysql # not compatible
query III rowsort label-3921
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND col2 * + 68
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NULL NOT BETWEEN ( ( col0 ) + 57 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3923
SELECT - CAST( NULL AS DECIMAL ) / - COUNT( * ) FROM tab2 WHERE NOT - col1 + col1 IN ( + col2 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT - CAST ( NULL AS REAL ) / - COUNT ( * ) FROM tab2 WHERE NOT - col1 + col1 IN ( + col2 * + col1 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 + + col2 ) <= ( - 85 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 48 - - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT SUM( + 60 ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-3926
SELECT SUM ( + 60 ) FROM tab1
----
180

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * - 66 + + 49 / 56 IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
14
47
5

query I rowsort
SELECT ALL + 50 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 10 - col1 FROM tab1
----
-37
-4
5

query I rowsort
SELECT ALL col1 * + 93 FROM tab1
----
1302
4371
465

query I rowsort
SELECT ALL - ( + col1 ) - col0 FROM tab2
----
-141
-142
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + ( + 6 ) * 2 )
----

query I rowsort
SELECT + 43 * - col1 FROM tab1
----
-2021
-215
-602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 - col0 col1 FROM tab2
----
-40
-58
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - ( + 21 ) col2 FROM tab2
----
1218
483
840

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL SUM( + col1 ) AS col1 FROM tab0 WHERE col2 * col2 <= - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL SUM ( + col1 ) AS col1 FROM tab0 WHERE col2 * col2 <= - 22
----
NULL

query I rowsort
SELECT - 26 AS col1 FROM tab0 WHERE NOT - 47 IS NULL
----
-26
-26
-26

query I rowsort
SELECT DISTINCT col2 * 58 FROM tab0 WHERE 43 IS NULL
----

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab0 WHERE ( - 72 * col2 ) <> ( - 34 + + col1 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT DISTINCT + 79 + + COUNT( * ) col0 FROM tab1 WHERE - 55 NOT BETWEEN col2 AND col2
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3941
SELECT DISTINCT + 79 + + COUNT ( * ) col0 FROM tab1 WHERE - 55 NOT BETWEEN col2 AND col2
----
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 51 ) = + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 77 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 11 ) + + col2 AS col0 FROM tab2 AS cor0
----
34
51
69

query I rowsort
SELECT DISTINCT - 17 * col1 + col0 FROM tab1 cor0
----
-187
-708
0

query I rowsort
SELECT DISTINCT 30 + + col1 FROM tab0 AS cor0
----
111
31
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT col1 - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3947
SELECT col1 - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT 25 + MIN( ( 88 ) + - col0 ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-3948
SELECT 25 + MIN ( ( 88 ) + - col0 ) FROM tab1
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3949
SELECT ALL col0 * - CAST( NULL AS DECIMAL ) FROM tab2 WHERE col1 >= + col1 + col0 * + 23
----

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL col0 * - CAST ( NULL AS REAL ) FROM tab2 WHERE col1 >= + col1 + col0 * + 23
----

query I rowsort
SELECT ALL - - col0 * 21 + - col2 FROM tab1 cor0
----
1726
1843
975

query I rowsort
SELECT + ( col2 ) + 77 AS col0 FROM tab2 AS cor0 WHERE - 39 IS NULL
----

query I rowsort
SELECT DISTINCT 16 + col0 AS col0 FROM tab2 AS cor0
----
62
80
91

query I rowsort
SELECT - - 84 AS col2 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT - col1 DIV - col0 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3954
SELECT - col1 / - col0 col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL + MIN( ALL - col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + MIN ( ALL - col1 ) AS col0 FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-3956
SELECT ALL col1 * col0 DIV col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL col1 * col0 / col0 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT BETWEEN NULL AND col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL SUM( + + 78 ) FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL SUM ( + + 78 ) FROM tab1
----
234

query I rowsort
SELECT ALL - col0 * + 74 AS col1 FROM tab2 WHERE NULL <= ( + 3 * + 69 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3960
SELECT * FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN - col1 * ( 25 * - 78 ) AND ( + ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-3960
SELECT * FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN - col1 * ( 25 * - 78 ) AND ( + ( + CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL - ( - MIN( ALL + 21 ) ) * - 16 FROM tab2 AS cor0
----
-336

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - ( - MIN ( ALL + 21 ) ) * - 16 FROM tab2 AS cor0
----
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT ALL - col1 col2 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN ( col0 + col0 ) AND + CAST( NULL AS SIGNED ) + 93
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3963
SELECT ALL - col1 col2 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN ( col0 + col0 ) AND + CAST ( NULL AS INTEGER ) + 93
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 49 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 23 IS NOT NULL
----

query I rowsort
SELECT ALL + 52 * + 17 FROM tab1 cor0
----
884
884
884

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 96 = ( NULL )
----

query I rowsort
SELECT ALL + ( + + col2 ) AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + col0 * + 31 FROM tab0
----
2697
3007
465

query I rowsort
SELECT - 75 * 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ebc376c74bc416d084001496f430c52c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3972
SELECT + COUNT( * ) DIV + 66 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT + COUNT ( * ) / + 66 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND + 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT ALL + col1 DIV - 79 + + ( 50 ) FROM tab1 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + col1 / - 79 + + ( 50 ) FROM tab1 AS cor0
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3975
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - CAST( NULL AS SIGNED ) ) + 6 NOT BETWEEN - col0 AND col2
----

skipif mysql # not compatible
query III rowsort label-3975
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - CAST ( NULL AS INTEGER ) ) + 6 NOT BETWEEN - col0 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3976
SELECT DISTINCT + + col1 * 44 DIV 19 col2 FROM tab1 cor0
----
108
11
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3976
SELECT DISTINCT + + col1 * 44 / 19 col2 FROM tab1 cor0
----
108
11
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 90 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 90 IS NULL
----
0

query I rowsort
SELECT col1 + - 28 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
-27
-7
53

query I rowsort
SELECT ALL + col1 * col1 * + 16 + 62 FROM tab0 AS cor0
----
105038
7118
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT - col0 DIV - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3980
SELECT - col0 / - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
1
1

query I rowsort
SELECT DISTINCT AVG ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) col1 FROM tab0 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * + col2 col2 FROM tab1
----
4307
4964
7008

query I rowsort
SELECT ALL - col1 * 67 + 57 + 17 * col2 FROM tab0
----
-1180
-4571
1673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 29 col1 FROM tab1
----
1479
2465
2639

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL + 30 * COUNT( * ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL + 30 * COUNT ( * ) FROM tab1
----
90

query I rowsort
SELECT DISTINCT - col2 * + + col0 AS col0 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 79 + 34 + + - col1 IS NULL
----

query I rowsort
SELECT 17 + - col0 AS col0 FROM tab2 AS cor0
----
-29
-47
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL + + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3990
SELECT ALL + + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 80 * + + 88 <> - col2 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3992
SELECT + - col2 + CAST( + ( - 36 ) AS SIGNED ) + + col0 * + col2 FROM tab0 cor0
----
622
824
9468

skipif mysql # not compatible
query I rowsort label-3992
SELECT + - col2 + CAST ( + ( - 36 ) AS INTEGER ) + + col0 * + col2 FROM tab0 cor0
----
622
824
9468

query I rowsort
SELECT ALL col0 * + col0 + ( + 29 ) FROM tab1 AS cor0
----
2630
7254
8310

query I rowsort
SELECT DISTINCT col0 + - ( - + col0 ) FROM tab2
----
128
150
92

query I rowsort
SELECT ALL - 2 + - + col2 FROM tab1
----
-61
-70
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3996
SELECT ALL + 20 - col0 DIV col2 DIV - - col2 * + 64 AS col1 FROM tab0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL + 20 - col0 / col2 / - - col2 * + 64 AS col1 FROM tab0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT SUM( - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3997
SELECT SUM ( - col2 ) AS col2 FROM tab1
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT + - 67 - + - col0 - + CAST( + - col2 AS SIGNED ) * + 57 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT + - 67 - + - col0 - + CAST ( + - col2 AS INTEGER ) * + 57 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT 8 - - + col0 - - col1 DIV 92 AS col0 FROM tab1 AS cor0
----
59
93
99

skipif mysql # not compatible
query I rowsort label-3999
SELECT 8 - - + col0 - - col1 / 92 AS col0 FROM tab1 AS cor0
----
59
93
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL AND ( + col0 * col0 ) <> 50
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4001
SELECT DISTINCT + + 0 / + 42 * + + SUM( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT + + 0 / + 42 * + + SUM ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 9 + - 40 * + - col0 + - col2 * col0 BETWEEN NULL AND - col0 AND NOT + col1 IN ( 19 * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4003
SELECT - - ( - AVG ( - CAST( 70 AS DECIMAL ) ) ) + + COUNT( * ) * 89 AS col0 FROM tab1 AS cor0 WHERE col2 + + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT - - ( - AVG ( - CAST ( 70 AS REAL ) ) ) + + COUNT ( * ) * 89 AS col0 FROM tab1 AS cor0 WHERE col2 + + + col0 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - col0 AS col0, + col2 * col0 FROM tab2 AS cor0
----
-46
1058
-64
2560
-75
4350

query II rowsort
SELECT ALL col2 AS col2, + col2 AS col2 FROM tab0
----
10
10
47
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NOT ( NOT ( col0 ) > ( + ( - col2 ) * - 59 ) ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT MIN( 43 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-4007
SELECT MIN ( 43 ) FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4008
SELECT COUNT( * ) AS col1, 79 AS col0 FROM tab2
----
3
79

skipif mysql # not compatible
query II rowsort label-4008
SELECT COUNT ( * ) AS col1, 79 AS col0 FROM tab2
----
3
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT + MAX( - ( + - col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4009
SELECT + MAX ( - ( + - col2 ) ) FROM tab0
----
99

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * + - 4 AS col1 FROM tab2 AS cor0
----
160
232
92

query II rowsort
SELECT + - 47, 94 AS col2 FROM tab2 cor0
----
-47
94
-47
94
-47
94

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 AND ( 40 - + col2 * + - 12 * + col1 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT - + SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4014
SELECT - + SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * + - 68 + + col0 col0 FROM tab1 AS cor0
----
-2561
-2567
-2601

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 NOT BETWEEN - col0 AND ( NULL )
----

query I rowsort
SELECT ALL - 50 + + 11 + + col1 FROM tab1 AS cor0
----
-25
-34
8

query I rowsort
SELECT DISTINCT + AVG ( 9 ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 / + 62 * + + 42 / + 37 / + + 21 AND + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4019
SELECT DISTINCT SUM( ALL - col2 ) + 11, + COUNT( + col2 ) col0 FROM tab0 AS cor0
----
-145
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4019
SELECT DISTINCT SUM ( ALL - col2 ) + 11, + COUNT ( + col2 ) col0 FROM tab0 AS cor0
----
-145
3

query I rowsort
SELECT 82 + ( - 99 ) * - col0 AS col1 FROM tab2
----
4636
6418
7507

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 78 ) = col2 * - 76 / 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4022
SELECT * FROM tab1 WHERE + 84 * - col1 * - + col2 + - CAST( NULL AS SIGNED ) > - 60
----

skipif mysql # not compatible
query III rowsort label-4022
SELECT * FROM tab1 WHERE + 84 * - col1 * - + col2 + - CAST ( NULL AS INTEGER ) > - 60
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4024
SELECT + CAST( + + col2 AS SIGNED ) DIV 6 * - col0 col2 FROM tab1
----
-1001
-765
-816

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4024
SELECT + CAST ( + + col2 AS INTEGER ) / 6 * - col0 col2 FROM tab1
----
-1001
-765
-816

query III rowsort
SELECT * FROM tab1 WHERE - + 28 < + 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4026
SELECT + SUM( DISTINCT CAST( - 16 AS SIGNED ) ) AS col0 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-4026
SELECT + SUM ( DISTINCT CAST ( - 16 AS INTEGER ) ) AS col0 FROM tab2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4027
SELECT + col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT + col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT - - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4028
SELECT - - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT ALL 24 - COUNT( * ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL 24 - COUNT ( * ) AS col2 FROM tab2
----
21

query I rowsort
SELECT ALL - 27 AS col0 FROM tab0 cor0
----
-27
-27
-27

query I rowsort
SELECT ALL - + ( + 1 ) FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT + - col1 * - 26 FROM tab1 AS cor0
----
1222
130
364

query I rowsort
SELECT col2 * + 76 + - ( + 72 ) FROM tab1 AS cor0
----
4412
5096
7224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4034
SELECT 61 DIV CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-4034
SELECT 61 / CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
1
12
4

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT - col2 + + 84 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4036
SELECT - 18, col1 DIV + col1 + - col0 DIV + col1 AS col2 FROM tab1
----
-18
-16
-18
-2
-18
0

skipif mysql # not compatible
query II rowsort label-4036
SELECT - 18, col1 / + col1 + - col0 / + col1 AS col2 FROM tab1
----
-18
-16
-18
-2
-18
0

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - + 53 * + 1 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT + MAX( 87 ) AS col0 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4038
SELECT + MAX ( 87 ) AS col0 FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT + COUNT( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT + COUNT ( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT DISTINCT 22 * COUNT( * ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT 22 * COUNT ( * ) FROM tab1 AS cor0
----
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 20 NOT BETWEEN 90 * + ( + col1 ) AND + 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 58 * - - col1 * - 50 - 78 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 38 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4044
SELECT DISTINCT - COUNT( * ), COUNT( ALL + 17 ) DIV - 75 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4044
SELECT DISTINCT - COUNT ( * ), COUNT ( ALL + 17 ) / - 75 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT ALL col2 * - 50 AS col2 FROM tab0
----
-2350
-4950
-500

query I rowsort
SELECT ALL - - 93 AS col1 FROM tab1 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT COUNT( * ) * + COUNT( * ) + - 53 FROM tab0 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4047
SELECT COUNT ( * ) * + COUNT ( * ) + - 53 FROM tab0 cor0
----
-44

query III rowsort
SELECT col0 AS col1, col0, + ( + + col0 ) AS col0 FROM tab1 AS cor0
----
9 values hashing to a69a1c25366f2e5dbc2b64a2b141dde4

query I rowsort
SELECT ALL + col2 + - + 54 AS col0 FROM tab1 AS cor0
----
14
42
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4050
SELECT + 40, + CAST( col2 AS SIGNED ) * + col2 - - - col1 + - - col1 * 63 AS col1 FROM tab0 AS cor0
----
40
1402
40
7231
40
9863

skipif mysql # not compatible
query II rowsort label-4050
SELECT + 40, + CAST ( col2 AS INTEGER ) * + col2 - - - col1 + - - col1 * 63 AS col1 FROM tab0 AS cor0
----
40
1402
40
7231
40
9863

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT COUNT( ( - col1 ) ) + - ( - COUNT( * ) ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT COUNT ( ( - col1 ) ) + - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT + COUNT( * ) + - - 78 AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT + COUNT ( * ) + - - 78 AS col0 FROM tab2
----
81

query II rowsort
SELECT + col2 + + col1 + + 4, col1 FROM tab2
----
121
77
129
67
78
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT NULL IS NULL
----

query II rowsort
SELECT ALL - 49 + + 89 AS col1, + 68 FROM tab2 AS cor0
----
40
68
40
68
40
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4056
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 69 + CAST( + - col2 AS DECIMAL ) AND - 23
----
0

skipif mysql # not compatible
query I rowsort label-4056
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 69 + CAST ( + - col2 AS REAL ) AND - 23
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4057
SELECT ALL col0 DIV col1 AS col0 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
1
17
3

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL col0 / col1 AS col0 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
1
17
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 < + - 25 + + - 34 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + + col1 * - ( + col2 ) + - col2 - - col0 * + + col0 - - - 31 FROM tab1 AS cor0
----
1144
5033
6845

onlyif mysql # DIV for integer division: 
query I rowsort label-4060
SELECT - 32 DIV + 92 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4060
SELECT - 32 / + 92 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL COUNT( * ) * + COUNT( * ) - + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL COUNT ( * ) * + COUNT ( * ) - + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT + 68 * + 55 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
3740

query I rowsort
SELECT ALL + 48 * - col1 FROM tab2 AS cor0
----
-2448
-3216
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL + MIN( - 45 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL + MIN ( - 45 ) FROM tab0 AS cor0
----
-45

query I rowsort
SELECT + col2 * - - 25 FROM tab1 AS cor0
----
1475
1700
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT - - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT - - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL < NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4068
SELECT DISTINCT + - COUNT( DISTINCT - col2 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT + - COUNT ( DISTINCT - col2 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL < col2
----
NULL

query I rowsort
SELECT + col2 / + col0 * - + ( + 6 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND - - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 < 69
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT DISTINCT COUNT( * ) * + 23 AS col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT COUNT ( * ) * + 23 AS col1 FROM tab2 AS cor0
----
69

query I rowsort
SELECT col2 * - 49 AS col2 FROM tab1 AS cor0 WHERE NOT - 68 + + 70 IS NULL
----
-2891
-3332
-4704

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - 51 IN ( - 9, - col0 )
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-4074
SELECT col0 DIV + 45 AS col2, - col0 AS col2 FROM tab1
----
1
-51
1
-85
2
-91

skipif mysql # not compatible
query II rowsort label-4074
SELECT col0 / + 45 AS col2, - col0 AS col2 FROM tab1
----
1
-51
1
-85
2
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT COUNT( ALL col2 ) FROM tab2 WHERE + + col0 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT COUNT ( ALL col2 ) FROM tab2 WHERE + + col0 > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT - ( + MIN( DISTINCT + - 25 ) ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-4076
SELECT - ( + MIN ( DISTINCT + - 25 ) ) FROM tab2
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col0 FROM tab1
----
83
83
83

query I rowsort
SELECT DISTINCT + col1 * + 79 AS col0 FROM tab0 AS cor0
----
1659
6399
79

query I rowsort
SELECT - 23 * 80 * - col2 FROM tab2 AS cor0
----
106720
42320
73600

query I rowsort
SELECT ALL + - ( + 54 ) * + col1 AS col0 FROM tab2 cor0
----
-2754
-3618
-4158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4081
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4083
SELECT - 2 AS col1, CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-4083
SELECT - 2 AS col1, CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 + col0 * - + col1 col0 FROM tab0 AS cor0
----
-1178
-1790
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4085
SELECT - CAST( + 40 AS SIGNED ) + + 84 * + COUNT( * ) FROM tab0 AS cor0 WHERE col0 IN ( - ( col2 ) + - - col2 * + - 32 * - 43 * col2, - 32, + 45, - 7 )
----
-40

skipif mysql # not compatible
query I rowsort label-4085
SELECT - CAST ( + 40 AS INTEGER ) + + 84 * + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IN ( - ( col2 ) + - - col2 * + - 32 * - 43 * col2, - 32, + 45, - 7 )
----
-40

query I rowsort
SELECT DISTINCT - 26 + - 29 FROM tab2 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT CAST( NULL AS SIGNED ) + - 57 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT CAST ( NULL AS INTEGER ) + - 57 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 11, + col0 AS col2 FROM tab0 AS cor0
----
11
15
11
87
11
97

query I rowsort
SELECT - 55 + + 34 AS col1 FROM tab2 AS cor0
----
-21
-21
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
3

query I rowsort
SELECT ALL + col1 + - + 62 - - - col1 * - - col0 FROM tab2 AS cor0
----
-2357
-4913
-5020

query II rowsort
SELECT + 62 * - col1 AS col2, - 59 + - col2 AS col1 FROM tab2
----
-3162
-82
-4154
-117
-4774
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4093
SELECT + CAST( NULL AS DECIMAL ), ( col0 ) + + 79 AS col0 FROM tab1
----
NULL
130
NULL
164
NULL
170

skipif mysql # not compatible
query II rowsort label-4093
SELECT + CAST ( NULL AS REAL ), ( col0 ) + + 79 AS col0 FROM tab1
----
NULL
130
NULL
164
NULL
170

query II rowsort
SELECT + col2 * + 55, 91 * - - col2 AS col0 FROM tab0
----
2585
4277
5445
9009
550
910

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT DISTINCT - MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT - MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT ALL + COUNT( * ), SUM( col2 ) AS col1 FROM tab2 AS cor0
----
3
121

skipif mysql # not compatible
query II rowsort label-4096
SELECT ALL + COUNT ( * ), SUM ( col2 ) AS col1 FROM tab2 AS cor0
----
3
121

query I rowsort
SELECT + + col2 - + col2 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
-3507
-4647
-9171

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - 48 ) IS NULL
----

query II rowsort
SELECT - 53, 63 AS col0 FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( + 54 IS NULL )
----

query I rowsort
SELECT DISTINCT col0 * + 78 - col2 AS col0 FROM tab1 AS cor0
----
3882
6571
7030

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( + - 96 ) AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4103
SELECT DISTINCT - 22 * - SUM( ALL - 39 ) * + COUNT( * ) DIV + + COUNT( * ) FROM tab0 cor0
----
-2574

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT - 22 * - SUM ( ALL - 39 ) * + COUNT ( * ) / + + COUNT ( * ) FROM tab0 cor0
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT COUNT( ALL + col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4104
SELECT COUNT ( ALL + col2 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL + - COUNT( * ) * + + COUNT( * ) * + 75 FROM tab2 AS cor0
----
-675

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + - COUNT ( * ) * + + COUNT ( * ) * + 75 FROM tab2 AS cor0
----
-675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL - - CAST( - 8 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - - CAST ( - 8 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + - 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL + + 36 * - ( + + 55 ) * COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
-5937

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL + + 36 * - ( + + 55 ) * COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
-5937

query II rowsort
SELECT 71 * col1 AS col1, 55 AS col1 FROM tab0 AS cor0
----
1491
55
5751
55
71
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT - 98 * ( + COUNT( * ) ) FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT - 98 * ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 49 * 65 col2 FROM tab1 AS cor0
----
3185
3185
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL + + SUM( col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + + SUM ( col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4113
SELECT - 48 DIV MAX( + - col2 ) AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4113
SELECT - 48 / MAX ( + - col2 ) AS col0 FROM tab0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, col1 * + col0 col1 FROM tab2
----
23
2346
40
4928
58
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL + SUM( DISTINCT 2 ) AS col1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL + SUM ( DISTINCT 2 ) AS col1 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4116
SELECT ALL - COUNT( * ), 32 AS col0 FROM tab2
----
-3
32

skipif mysql # not compatible
query II rowsort label-4116
SELECT ALL - COUNT ( * ), 32 AS col0 FROM tab2
----
-3
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + - col2 IS NULL
----

query I rowsort
SELECT + 81 * + col0 AS col2 FROM tab1
----
4131
6885
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) col0 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4119
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) col0 FROM tab1
----
9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 80 > + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4121
SELECT + COUNT( * ) + - + CAST( NULL AS DECIMAL ) * + 50 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT + COUNT ( * ) + - + CAST ( NULL AS REAL ) * + 50 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT DISTINCT - SUM( DISTINCT - col0 ) + 92 FROM tab1
----
319

skipif mysql # not compatible
query I rowsort label-4122
SELECT DISTINCT - SUM ( DISTINCT - col0 ) + 92 FROM tab1
----
319

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT DISTINCT 57 * - 52 * COUNT( * ) * + COUNT( * ) - + 66 + + 48 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-240102

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT 57 * - 52 * COUNT ( * ) * + COUNT ( * ) - + 66 + + 48 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-240102

query I rowsort
SELECT + 59 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ALL + col1 + + + 21 * + 5 AS col2 FROM tab1 AS cor0
----
110
119
152

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT DISTINCT 42 DIV + - col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT 42 / + - col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col2 + + col2 + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL >= 90 - col2 )
----

query I rowsort
SELECT - - 89 - - 32 AS col2 FROM tab0 AS cor0
----
121
121
121

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 >= - - col0
----

query I rowsort
SELECT DISTINCT col2 + - - col1 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT ALL ( - 60 ) - + 82 + + 74 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT DISTINCT - col1 + - + col2 * col1 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT ALL + col0 DIV - 21 + - 56 FROM tab1
----
-58
-60
-60

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + col0 / - 21 + - 56 FROM tab1
----
-58
-60
-60

query II rowsort
SELECT ALL 73 + col1 AS col2, + col1 AS col1 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4135
SELECT DISTINCT 94 DIV 32 + + col2 AS col2 FROM tab0
----
101
12
49

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT 94 / 32 + + col2 AS col2 FROM tab0
----
101
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT - 17 + - COUNT( * ) FROM tab1 WHERE - col1 <= + + 22
----
-20

skipif mysql # not compatible
query I rowsort label-4136
SELECT - 17 + - COUNT ( * ) FROM tab1 WHERE - col1 <= + + 22
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT + MIN( DISTINCT - - 17 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT + MIN ( DISTINCT - - 17 ) FROM tab2
----
17

query I rowsort
SELECT 19 * + - 57 FROM tab2 AS cor0
----
-1083
-1083
-1083

query II rowsort
SELECT - col0 AS col1, 30 FROM tab1 AS cor0
----
-51
30
-85
30
-91
30

query I rowsort
SELECT ALL + col1 * + 7 FROM tab0
----
147
567
7

query I rowsort
SELECT + ( + + col1 ) FROM tab2
----
51
67
77

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) > + + 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT + + 90 * - - COUNT( * ) + - - 58 AS col1 FROM tab0 AS cor0
----
328

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + + 90 * - - COUNT ( * ) + - - 58 AS col1 FROM tab0 AS cor0
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT - COUNT( col1 ) * 71 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT - COUNT ( col1 ) * 71 FROM tab2 AS cor0
----
-213

query II rowsort
SELECT col0 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4146
SELECT ALL - 5 AS col2, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-5
3

skipif mysql # not compatible
query II rowsort label-4146
SELECT ALL - 5 AS col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT DISTINCT MAX( ( + + col0 ) ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT MAX ( ( + + col0 ) ) FROM tab0 cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - MIN( - ( + col2 ) ) * SUM( DISTINCT + 98 ) AS col1 FROM tab0 AS cor0
----
9702

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - MIN ( - ( + col2 ) ) * SUM ( DISTINCT + 98 ) AS col1 FROM tab0 AS cor0
----
9702

query II rowsort
SELECT DISTINCT ( + col1 ), 45 FROM tab1
----
14
45
47
45
5
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL + MIN( - col2 ) * 55 AS col1 FROM tab0
----
-5445

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL + MIN ( - col2 ) * 55 AS col1 FROM tab0
----
-5445

query I rowsort
SELECT DISTINCT + + ( - col2 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT + ( 78 ) DIV - col1 AS col2 FROM tab1
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-4153
SELECT + ( 78 ) / - col1 AS col2 FROM tab1
----
-1
-15
-5

query I rowsort
SELECT 22 * - - col0 FROM tab0
----
1914
2134
330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + col2 col1, col1 AS col2 FROM tab0
----
-210
21
-3807
81
-99
1

query I rowsort
SELECT col1 * - - col1 * + - 69 FROM tab0
----
-30429
-452709
-69

query I rowsort
SELECT ALL - col0 * + 56 FROM tab1
----
-2856
-4760
-5096

query III rowsort
SELECT ALL * FROM tab0 WHERE + 89 IS NULL
----

query II rowsort
SELECT ALL - col0 + - - ( - col2 ) + - + col1 + - + col0 AS col2, 88 AS col0 FROM tab2 AS cor0
----
-166
88
-245
88
-275
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT DISTINCT - col1 - - 47 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT - col1 - - 47 FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND CAST ( - col2 AS INTEGER ) )
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 <= - 69
----

query II rowsort
SELECT col1, + 19 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
14
19
47
19
5
19

query I rowsort
SELECT DISTINCT - ( - 72 ) * 33 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
2376

query I rowsort
SELECT ALL 20 + + + col2 AS col1 FROM tab0 AS cor0
----
119
30
67

query III rowsort
SELECT * FROM tab1 cor0 WHERE 23 * - - ( - - 44 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col0 * - 79 AS col1 FROM tab0 AS cor0
----
-1185
-6873
-7663

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT DISTINCT - 44 - - - COUNT( * ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT - 44 - - - COUNT ( * ) FROM tab2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT ALL + CAST( NULL AS SIGNED ) - col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4170
SELECT ALL + CAST ( NULL AS INTEGER ) - col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + col0 ) - - - col1 * - 87 col1, + 98 AS col0 FROM tab0
----
-10
98
1740
98
7032
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 68 col1 FROM tab2 cor0 WHERE NOT - col2 IS NULL
----
68

query II rowsort
SELECT DISTINCT + 27 - + 49 - + col2 + + + col2 + + 78 AS col0, 77 + - 79 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN - 10 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT 47 + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
56

skipif mysql # not compatible
query I rowsort label-4175
SELECT 47 + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT DISTINCT COUNT( * ) * + + ( + - 39 ) - - 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-319

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT COUNT ( * ) * + + ( + - 39 ) - - 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 / - + col0 * - col1 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0, + col1 AS col0 FROM tab0 cor0 WHERE NOT 7 + ( + col1 ) IS NULL
----
-15
81
-87
21
-97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 col2 FROM tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - + MIN( - 68 ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4180
SELECT - + MIN ( - 68 ) FROM tab0 AS cor0
----
68

query I rowsort
SELECT + - col0 * + 77 FROM tab0 cor0
----
-1155
-6699
-7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col1, - 53 FROM tab1 AS cor0
----
-51
-53
-85
-53
-91
-53

query I rowsort
SELECT DISTINCT col2 - col1 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL - 11 * - MIN( + col1 ) AS col1 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - 11 * - MIN ( + col1 ) AS col1 FROM tab1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT - 73 / + col1 + - 42 * - col2 AS col0 FROM tab0 WHERE NOT - col2 + - 28 * col2 BETWEEN NULL AND + CAST( - - 20 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4185
SELECT - 73 / + col1 + - 42 * - col2 AS col0 FROM tab0 WHERE NOT - col2 + - 28 * col2 BETWEEN NULL AND + CAST ( - - 20 AS INTEGER )
----

query II rowsort
SELECT DISTINCT 62, + 7 AS col1 FROM tab1
----
62
7

query II rowsort
SELECT DISTINCT 56 * 5 AS col0, col2 AS col0 FROM tab0
----
280
10
280
47
280
99

query I rowsort
SELECT - 0 FROM tab1 WHERE + - col0 + col2 IS NOT NULL
----
0
0
0

query I rowsort
SELECT + + col1 + 54 AS col0 FROM tab1 AS cor0
----
101
59
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT + col1 DIV - + 93 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT + col1 / - + 93 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT - SUM( - 28 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT - SUM ( - 28 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + + 40 + + 17 * - col0 * - - 29 FROM tab0 AS cor0
----
-42851
-47781
-7355

query I rowsort
SELECT col1 - + col0 + + + col2 AS col2 FROM tab0 AS cor0
----
-56
113
3

query I rowsort
SELECT DISTINCT + 52 + + col2 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
110
75
92

query I rowsort
SELECT + col1 * + col2 FROM tab0 AS cor0 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4196
SELECT DISTINCT - 84 * - CAST( NULL AS DECIMAL ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - 84 * - CAST ( NULL AS REAL ) FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT ALL ( - col0 ) DIV col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL ( - col0 ) / col0 FROM tab0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 + col2 + col1 FROM tab2
----
23
120
40
181
58
200

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 45 * + + 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - ( col2 ), 3 col0 FROM tab1 AS cor0
----
-1344
3
-295
3
-3196
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) / ( - - 49 ) + + AVG ( + - col2 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) / ( - - 49 ) + + AVG ( + - col2 ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL - COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - 37 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT ALL - + col0 + + ( + 4 ) FROM tab2 AS cor0
----
-42
-60
-71

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > + col0
----

query I rowsort
SELECT - + col0 + + col0 FROM tab0 AS cor0 WHERE NOT - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4207
SELECT COUNT( * ) * - COUNT( * ) + + MAX( DISTINCT - col1 ) * - COUNT( * ), COUNT( * ) col1 FROM tab1
----
6
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4207
SELECT COUNT ( * ) * - COUNT ( * ) + + MAX ( DISTINCT - col1 ) * - COUNT ( * ), COUNT ( * ) col1 FROM tab1
----
6
3

query III rowsort
SELECT * FROM tab1 WHERE + col0 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT ( - 6 ) + + SUM( + - col2 ) FROM tab2
----
-127

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT ( - 6 ) + + SUM ( + - col2 ) FROM tab2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT - SUM( ALL - - 96 ) AS col2 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-4210
SELECT - SUM ( ALL - - 96 ) AS col2 FROM tab0
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT col2 DIV col2 * - + col1 AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4211
SELECT col2 / col2 * - + col1 AS col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT col2 * - col0 * + - col1 * - col1 AS col1 FROM tab0
----
-383670
-4625505
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT - 39 * + COUNT( ALL - col0 ) * + 11 FROM tab1 AS cor0
----
-1287

skipif mysql # not compatible
query I rowsort label-4213
SELECT - 39 * + COUNT ( ALL - col0 ) * + 11 FROM tab1 AS cor0
----
-1287

query II rowsort
SELECT ALL - - 10 AS col0, col0 AS col2 FROM tab2 AS cor0
----
10
46
10
64
10
75

query I rowsort
SELECT + - col1 - - 33 FROM tab1 AS cor0
----
-14
19
28

query II rowsort
SELECT - col0 + + - col0 AS col2, + col2 + 38 AS col0 FROM tab0
----
-174
48
-194
137
-30
85

query I rowsort
SELECT + 58 + - - col0 + + 87 AS col0 FROM tab2
----
191
209
220

query I rowsort
SELECT ALL - 59 + col0 AS col2 FROM tab0
----
-44
28
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT - - COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4219
SELECT - - COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT DISTINCT + 91 * + COUNT( * ) FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-4220
SELECT DISTINCT + 91 * + COUNT ( * ) FROM tab0 AS cor0
----
273

query I rowsort
SELECT DISTINCT - - 59 * + + col0 FROM tab2 AS cor0
----
2714
3776
4425

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT + ( + + COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4223
SELECT + ( + + COUNT ( * ) ) AS col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( 90 ) * + - ( + 97 ) + - + 20 BETWEEN - 27 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * - - 21 * + 99 FROM tab2
----
133056
155925
95634

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT DISTINCT + ( COUNT( * ) ) * + COUNT( * ) * 80 FROM tab2
----
720

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT + ( COUNT ( * ) ) * + COUNT ( * ) * 80 FROM tab2
----
720

query I rowsort
SELECT - - 69 * + col1 AS col2 FROM tab0 AS cor0
----
1449
5589
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT DISTINCT col1 DIV - + ( col1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT col1 / - + ( col1 ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT SUM( - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4230
SELECT SUM ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT DISTINCT col0 + col1 * col0 - + col1 + + CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
2392
4992
5100

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT col0 + col1 * col0 - + col1 + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
2392
4992
5100

query II rowsort
SELECT - col2 AS col2, ( 9 ) + - - 74 FROM tab0 AS cor0
----
-10
83
-47
83
-99
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL 67 + COUNT( * ) FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL 67 + COUNT ( * ) FROM tab1 AS cor0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * 73 * + - 34 + col1 col0 FROM tab2 AS cor0
----
119187
119203
119213

query I rowsort
SELECT - col1 + - + col2 FROM tab1 AS cor0 WHERE + 61 IS NULL
----

query I rowsort
SELECT DISTINCT - 55 + + 85 AS col1 FROM tab0 AS cor0
----
30

query I rowsort
SELECT ALL col0 + + col0 + + ( col2 ) + col1 * - + 93 AS col0 FROM tab2 AS cor0
----
-4628
-6023
-6993

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= - - 8 - - 6 * + ( + - col2 )
----

query I rowsort
SELECT - col1 / 3 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 6 IN ( - 29, col2, - col1 )
----

query I rowsort
SELECT DISTINCT - - col1 - + col1 - + col0 + col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-77
2
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT ALL col1 DIV + 55 + + col2 FROM tab0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL col1 / + 55 + + col2 FROM tab0
----
10
48
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 41 col2 FROM tab0
----
140
51
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT DISTINCT + ( CAST( ( COUNT( * ) ) AS SIGNED ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4244
SELECT DISTINCT + ( CAST ( ( COUNT ( * ) ) AS INTEGER ) ) col1 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4245
SELECT + - CAST( NULL AS SIGNED ) + COUNT( ALL + + 63 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT + - CAST ( NULL AS INTEGER ) + COUNT ( ALL + + 63 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT + + ( - COUNT( ALL - + col0 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + + ( - COUNT ( ALL - + col0 ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col0 + + 4 FROM tab0 AS cor0
----
-11
-83
-93

query I rowsort
SELECT 90 * + 44 FROM tab1 AS cor0
----
3960
3960
3960

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT ALL - + 95 * COUNT( * ) AS col2, COUNT( * ) FROM tab0 cor0
----
-285
3

skipif mysql # not compatible
query II rowsort label-4249
SELECT ALL - + 95 * COUNT ( * ) AS col2, COUNT ( * ) FROM tab0 cor0
----
-285
3

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE + col1 <> + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT MIN( DISTINCT + + col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-4251
SELECT MIN ( DISTINCT + + col2 ) FROM tab2 cor0
----
23

query I rowsort
SELECT + ( - col1 ) * - 27 * + + col2 FROM tab2 cor0 WHERE NOT + 82 <= + col0 * + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 32 col1 FROM tab2 AS cor0
----
-1632
-2144
-2464

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT + col0 DIV + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4255
SELECT + col0 / + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL + 41 * + + ( + COUNT( * ) ) col0 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4256
SELECT ALL + 41 * + + ( + COUNT ( * ) ) col0 FROM tab1 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL + COUNT( ALL + 53 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + COUNT ( ALL + 53 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT ( + 13 ) FROM tab2, tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4259
SELECT DISTINCT + COUNT( * ) AS col2, - COUNT( * ) AS col1 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-4259
SELECT DISTINCT + COUNT ( * ) AS col2, - COUNT ( * ) AS col1 FROM tab2
----
3
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4260
SELECT ALL - 72 AS col0, col2 DIV - col1 FROM tab2
----
-72
0
-72
0
-72
0

skipif mysql # not compatible
query II rowsort label-4260
SELECT ALL - 72 AS col0, col2 / - col1 FROM tab2
----
-72
0
-72
0
-72
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, - 80 col0 FROM tab1
----
59
-80
68
-80
96
-80

query II rowsort
SELECT 71 AS col2, col0 * + col2 * + 82 AS col0 FROM tab0
----
71
57810
71
71340
71
787446

query I rowsort
SELECT ALL - 87 * col2 FROM tab0
----
-4089
-8613
-870

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT DISTINCT + - col1 DIV - col2 * col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT + - col1 / - col2 * col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT DISTINCT + MAX( DISTINCT col2 ) * - + 63 FROM tab2 cor0
----
-3654

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT + MAX ( DISTINCT col2 ) * - + 63 FROM tab2 cor0
----
-3654

query I rowsort
SELECT - 95 FROM tab0 cor0 WHERE NOT NULL BETWEEN - col1 * - 20 / + col0 AND - + col2 / + - col1 * 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT ALL col1 FROM tab0 AS cor0 WHERE - CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL col1 FROM tab0 AS cor0 WHERE - CAST ( - col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ( + 6 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT MIN( ALL col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT MIN ( ALL col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT 50 * - - COUNT( * ) AS col2, + 36 AS col2 FROM tab2
----
150
36

skipif mysql # not compatible
query II rowsort label-4271
SELECT 50 * - - COUNT ( * ) AS col2, + 36 AS col2 FROM tab2
----
150
36

query I rowsort
SELECT DISTINCT col0 * col0 * 72 AS col0 FROM tab2
----
152352
294912
405000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4273
SELECT ALL - + CAST( NULL AS SIGNED ) + + col1 col1, + 94 FROM tab0 AS cor0
----
NULL
94
NULL
94
NULL
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4273
SELECT ALL - + CAST ( NULL AS INTEGER ) + + col1 col1, + 94 FROM tab0 AS cor0
----
NULL
94
NULL
94
NULL
94

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE + col1 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4275
SELECT + COUNT( * ) + ( 2 ) AS col0, - 11 FROM tab2 cor0
----
5
-11

skipif mysql # not compatible
query II rowsort label-4275
SELECT + COUNT ( * ) + ( 2 ) AS col0, - 11 FROM tab2 cor0
----
5
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT + MIN( + - col1 ) + + + MAX( - col2 ) FROM tab2 AS cor0 WHERE ( NOT + 97 > NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT + MIN ( + - col1 ) + + + MAX ( - col2 ) FROM tab2 AS cor0 WHERE ( NOT + 97 > NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4278
SELECT ALL col2 DIV - col2 AS col2, + col0 col2 FROM tab2 AS cor0
----
-1
46
-1
64
-1
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4278
SELECT ALL col2 / - col2 AS col2, + col0 col2 FROM tab2 AS cor0
----
-1
46
-1
64
-1
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * + - 78 col1 FROM tab2 cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT - 47 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT - 47 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-50

query I rowsort
SELECT ALL - + col0 * 76 + 1 - + - 26 FROM tab1 cor0
----
-3849
-6433
-6889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + + col0 * col0 * - 25 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + + col0 * col0 * - 25 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL - MAX( + 19 ) + 7 AS col2 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - MAX ( + 19 ) + 7 AS col2 FROM tab2
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 44 col1, col2 * + col2 FROM tab0
----
44
100
44
2209
44
9801

query I rowsort
SELECT + col0 * + - 12 FROM tab2
----
-552
-768
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL MAX( - + 80 ) * SUM( ALL - + 91 ) * + MAX( ALL col2 ) AS col1 FROM tab0
----
2162160

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL MAX ( - + 80 ) * SUM ( ALL - + 91 ) * + MAX ( ALL col2 ) AS col1 FROM tab0
----
2162160

query I rowsort
SELECT + col2 * + + 5 FROM tab2
----
115
200
290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4289
SELECT ALL - 54 DIV COUNT( * ) * COUNT( * ) * COUNT( * ) FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL - 54 / COUNT ( * ) * COUNT ( * ) * COUNT ( * ) FROM tab2
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56 AS col0, - col1 * + col0 * + - 19 - - + 44 col0 FROM tab1
----
56
13610
56
8119
56
81307

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT - COUNT( - - 77 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT - COUNT ( - - 77 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 61 * col2 AS col1 FROM tab0 cor0
----
2867
6039
610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT ALL + CAST( - col0 AS SIGNED ) + col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL + CAST ( - col0 AS INTEGER ) + col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4295
SELECT + ( + 9 ) DIV - 76 + + COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4295
SELECT + ( + 9 ) / - 76 + + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT + MAX( ( - 19 ) ) * - - CAST( + 45 AS SIGNED ) - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-846

skipif mysql # not compatible
query I rowsort label-4296
SELECT + MAX ( ( - 19 ) ) * - - CAST ( + 45 AS INTEGER ) - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-846

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 1 >= - col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 98 * - - 98 IS NOT NULL
----

query I rowsort
SELECT - + ( + col1 ) * + + 14 FROM tab2 cor0
----
-1078
-714
-938

query I rowsort
SELECT ALL + col2 + + col2 + - - col2 * - 6 * - 96 / - + col2 * col2 / - + col2 * + col2 FROM tab1 AS cor0 WHERE NOT col1 * col0 / + col0 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + 12 * SUM( - - 40 ) AS col1 FROM tab0 AS cor0
----
1440

skipif mysql # not compatible
query I rowsort label-4301
SELECT + 12 * SUM ( - - 40 ) AS col1 FROM tab0 AS cor0
----
1440

onlyif mysql # DIV for integer division: 
query I rowsort label-4302
SELECT col0 DIV - + col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4302
SELECT col0 / - + col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + col2 * 93 + + col0 + + col1 * - col1 FROM tab0 AS cor0
----
-2175
576
9303

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4304
SELECT COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4304
SELECT COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + 51 * + - col1 FROM tab0
----
-1071
-4131
-51

query I rowsort
SELECT ( + - 2 ) FROM tab2
----
-2
-2
-2

query II rowsort
SELECT DISTINCT - 2, col1 * 75 * - 3 AS col1 FROM tab0
----
-2
-18225
-2
-225
-2
-4725

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 <= + + 58 + - col2
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT ALL - 77 * - col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL - 77 * - col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN 3 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT DISTINCT + 49 + COUNT( * ) AS col1 FROM tab1 cor0
----
52

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT + 49 + COUNT ( * ) AS col1 FROM tab1 cor0
----
52

query I rowsort
SELECT DISTINCT 33 + + - 35 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT col0 + + + 79 FROM tab0
----
166
176
94

query II rowsort
SELECT DISTINCT - col0 + - - 73, 21 AS col1 FROM tab2
----
-2
21
27
21
9
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4316
SELECT * FROM tab1 WHERE - + col0 = CAST( + + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4316
SELECT * FROM tab1 WHERE - + col0 = CAST ( + + col2 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 72 * + 7 IS NULL
----

query I rowsort
SELECT - + 79 * + col0 FROM tab0 cor0 WHERE ( - col2 ) - + 19 IS NULL
----

query I rowsort
SELECT DISTINCT 4 + col0 AS col1 FROM tab0 AS cor0
----
101
19
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT - ( CAST( - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4320
SELECT - ( CAST ( - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL - col0 + - + ( + 40 ) AS col2 FROM tab2 AS cor0
----
-104
-115
-86

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT - + COUNT( 99 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4323
SELECT - + COUNT ( 99 ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - + col2 - col2 AS col1, 49 FROM tab2 AS cor0
----
-116
49
-46
49
-80
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4325
SELECT ALL col2 + - col0, + col0 + + - CAST( NULL AS SIGNED ) * + col1 + col1 AS col0 FROM tab0
----
-77
NULL
2
NULL
32
NULL

skipif mysql # not compatible
query II rowsort label-4325
SELECT ALL col2 + - col0, + col0 + + - CAST ( NULL AS INTEGER ) * + col1 + col1 AS col0 FROM tab0
----
-77
NULL
2
NULL
32
NULL

query I rowsort
SELECT DISTINCT col0 + 60 * col1 AS col1 FROM tab2
----
3106
4095
4684

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - col1, + col1 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT DISTINCT - 44 DIV - - 16 AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT - 44 / - - 16 AS col0 FROM tab0
----
-2

query I rowsort
SELECT 75 + + col0 FROM tab0
----
162
172
90

query I rowsort
SELECT ALL - col0 * + 42 - + 55 FROM tab1
----
-2197
-3625
-3877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4331
SELECT - col0 * 13 - + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT - col0 * 13 - + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 29 AS col0, + 52 AS col0 FROM tab0
----
-29
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL - SUM( - 26 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
234

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL - SUM ( - 26 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
234

query II rowsort
SELECT DISTINCT col1 AS col2, ( + 14 ) FROM tab1 AS cor0
----
14
14
47
14
5
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4335
SELECT + + col1 col1, + CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4335
SELECT + + col1 col1, + CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 * col0 NOT BETWEEN + 87 + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 col2 FROM tab2 AS cor0
----
-27
-27
-27

query II rowsort
SELECT DISTINCT - + 9, col0 AS col0 FROM tab2 AS cor0
----
-9
46
-9
64
-9
75

query II rowsort
SELECT ALL + + col1, col0 * + + col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT + COUNT( ALL ( + col2 ) ) + - 17 * + - 6 * SUM( ALL - + 96 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT + COUNT ( ALL ( + col2 ) ) + - 17 * + - 6 * SUM ( ALL - + 96 ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ( + 82 ) AS col2 FROM tab2
----
82
82
82

query I rowsort
SELECT - + col0 + - + 21 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * + + col1 * - col2 IS NULL
----
-108
-118
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT - MAX( col2 ) col1 FROM tab0 cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4343
SELECT - MAX ( col2 ) col1 FROM tab0 cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT DISTINCT COUNT( * ) * ( - - COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT COUNT ( * ) * ( - - COUNT ( * ) ) FROM tab2
----
9

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 11 IS NULL
----

query I rowsort
SELECT DISTINCT + + 12 + + col2 FROM tab0 AS cor0
----
111
22
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT ALL MAX( col2 ) * + 39 + + + ( - COUNT( * ) ) FROM tab2
----
2259

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL MAX ( col2 ) * + 39 + + + ( - COUNT ( * ) ) FROM tab2
----
2259

query I rowsort
SELECT col2 * ( - col0 ) * - col2 AS col2 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT COUNT( - 10 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4350
SELECT COUNT ( - 10 ) FROM tab2
----
3

query I rowsort
SELECT ( + - 96 ) FROM tab2
----
-96
-96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 col0, col1 col1 FROM tab0 AS cor0
----
27
1
27
21
27
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL + COUNT( * ) * ( - - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL + COUNT ( * ) * ( - - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT - col1 DIV ( - 52 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4355
SELECT - col1 / ( - 52 ) AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4356
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - 24 * col1 + CAST( + 19 AS DECIMAL ) + + - 60 * 14 * col2 / + + col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - 24 * col1 + CAST ( + 19 AS REAL ) + + - 60 * 14 * col2 / + + col1 > NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT + COUNT( * ) * 99 AS col0 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-4358
SELECT + COUNT ( * ) * 99 AS col0 FROM tab0 AS cor0
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT DISTINCT + + MAX( ALL + CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT + + MAX ( ALL + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4360
SELECT ALL col2 DIV ( col0 ) * + - col1 DIV + - 6 + + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL col2 / ( col0 ) * + - col1 / + - 6 + + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT DISTINCT - COUNT( + + 34 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT - COUNT ( + + 34 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4363
SELECT ALL col0, + 79 DIV - 9 AS col2 FROM tab0
----
15
-8
87
-8
97
-8

skipif mysql # not compatible
query II rowsort label-4363
SELECT ALL col0, + 79 / - 9 AS col2 FROM tab0
----
15
-8
87
-8
97
-8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL MAX( DISTINCT + ( col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL MAX ( DISTINCT + ( col1 ) ) FROM tab2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT 43 DIV - + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4366
SELECT 43 / - + col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4367
SELECT - - CAST( NULL AS DECIMAL ) + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT - - CAST ( NULL AS REAL ) + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL - SUM( DISTINCT - + 19 ) AS col2 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - SUM ( DISTINCT - + 19 ) AS col2 FROM tab1 AS cor0
----
19

query I rowsort
SELECT + - col2 + 98 FROM tab0 AS cor0
----
-1
51
88

query I rowsort
SELECT col1 + - 1 AS col1 FROM tab1
----
13
4
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 >= col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4372
SELECT * FROM tab1 WHERE ( + CAST( NULL AS DECIMAL ) ) IN ( 52 )
----

skipif mysql # not compatible
query III rowsort label-4372
SELECT * FROM tab1 WHERE ( + CAST ( NULL AS REAL ) ) IN ( 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT DISTINCT + 63 * MIN( ALL + col0 ) AS col2 FROM tab0
----
945

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT + 63 * MIN ( ALL + col0 ) AS col2 FROM tab0
----
945

query I rowsort
SELECT - 42 * col0 - 86 * col0 FROM tab1
----
-10880
-11648
-6528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 col1 FROM tab1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT 90 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4376
SELECT 90 / + col2 FROM tab1
----
0
1
1

query I rowsort
SELECT 0 AS col0 FROM tab0 WHERE NULL < 92 * + 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4378
SELECT DISTINCT + col2 DIV + 96 + 59 col0 FROM tab1
----
59
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4378
SELECT DISTINCT + col2 / + 96 + 59 col0 FROM tab1
----
59
60

query I rowsort
SELECT 40 * + col0 AS col0 FROM tab2
----
1840
2560
3000

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - ( + col1 ) * - col0 ) <= - ( ( 48 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT DISTINCT col1 DIV + 67 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT col1 / + 67 FROM tab2
----
0
1

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 - 50 * 16 > - ( col2 )
----

query I rowsort
SELECT + ( - 94 ) * + col2 FROM tab0
----
-4418
-9306
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT - COUNT( * ) * + 31 AS col2 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-4384
SELECT - COUNT ( * ) * + 31 AS col2 FROM tab2
----
-93

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 = - col1 - - col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT DISTINCT + MIN( ALL + col2 ) * + COUNT( * ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT + MIN ( ALL + col2 ) * + COUNT ( * ) FROM tab2
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * + col2 col0 FROM tab2
----
1472
2560
3712

onlyif mysql # DIV for integer division: 
query I rowsort label-4388
SELECT DISTINCT + 98 DIV + col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT + 98 / + col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT + COUNT( * ) * 7 col2 FROM tab1
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4389
SELECT + COUNT ( * ) * 7 col2 FROM tab1
----
21

query I rowsort
SELECT + col2 * - ( col0 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT ALL - 16 * COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL - 16 * COUNT ( * ) FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT COUNT( - 13 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4392
SELECT COUNT ( - 13 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + MAX( + col1 ) * 13 FROM tab1 AS cor0
----
611

skipif mysql # not compatible
query I rowsort label-4393
SELECT + MAX ( + col1 ) * 13 FROM tab1 AS cor0
----
611

query I rowsort
SELECT ALL + 22 * 19 FROM tab1 AS cor0
----
418
418
418

onlyif mysql # DIV for integer division: 
query I rowsort label-4395
SELECT ALL - 45 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - 45 / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4396
SELECT DISTINCT MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT + CAST( 13 AS SIGNED ) FROM tab1
----
13
13
13

skipif mysql # not compatible
query I rowsort label-4397
SELECT + CAST ( 13 AS INTEGER ) FROM tab1
----
13
13
13

query I rowsort
SELECT ALL col1 * + 45 FROM tab1
----
2115
225
630

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) <> - col0 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 80 * - col1 )
----

query I rowsort
SELECT - col0 + + 45 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-40
-46
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT COUNT( * ) + - - 53 * COUNT( * ) FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-4403
SELECT COUNT ( * ) + - - 53 * COUNT ( * ) FROM tab1
----
162

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 - 65 * + col1 ) NOT BETWEEN ( - col1 ) AND col0
----

query I rowsort
SELECT + 42 * - col1 * + col1 FROM tab1
----
-1050
-8232
-92778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4406
SELECT + COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4406
SELECT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT CAST( NULL AS SIGNED ) * ( + col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT CAST ( NULL AS INTEGER ) * ( + col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col0 FROM tab0 AS cor0 WHERE NOT col1 + + 63 IS NULL
----
-97
-97
-97

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE ( NULL ) <> + col0
----

query I rowsort
SELECT + col0 - + + col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT 20 - + COUNT( - 67 ) AS col2 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT 20 - + COUNT ( - 67 ) AS col2 FROM tab2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT - 62 * + - col2 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT - 62 * + - col2 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT DISTINCT - COUNT( * ) - - 24 AS col0 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - COUNT ( * ) - - 24 AS col0 FROM tab0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + CAST( - col2 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + CAST ( - col2 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT 11 + - col0 AS col0 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN + CAST( NULL AS SIGNED ) * + 60 AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-4415
SELECT 11 + - col0 AS col0 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN + CAST ( NULL AS INTEGER ) * + 60 AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT MAX( - + 35 ) FROM tab0 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-4416
SELECT MAX ( - + 35 ) FROM tab0 cor0
----
-35

query I rowsort
SELECT DISTINCT + 34 + + col2 FROM tab2 AS cor0
----
57
74
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + 55 * + 53 * - col0 col0 FROM tab1
----
21060875
24139115
7581915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4419
SELECT + MAX( DISTINCT - CAST( + - CAST( + 16 AS SIGNED ) AS SIGNED ) ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-4419
SELECT + MAX ( DISTINCT - CAST ( + - CAST ( + 16 AS INTEGER ) AS INTEGER ) ) FROM tab0
----
16

query I rowsort
SELECT ALL - ( + + ( + + col2 ) ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL MAX( DISTINCT + 86 ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL MAX ( DISTINCT + 86 ) FROM tab0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT + MAX( - + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4422
SELECT + MAX ( - + col0 ) FROM tab1
----
-51

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT - 77 * + - col2 * col0 - - col1 >= col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND col0 * col0
----

query I rowsort
SELECT + - col0 * - - 64 FROM tab2 cor0
----
-2944
-4096
-4800

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( + + col1 )
----

query I rowsort
SELECT + col2 * - 13 FROM tab0
----
-1287
-130
-611

query I rowsort
SELECT 37 + + - col0 FROM tab2 WHERE NOT 82 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 <= ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4431
SELECT ALL * FROM tab1 cor0 WHERE 6 NOT BETWEEN - - 86 AND - CAST( NULL AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4431
SELECT ALL * FROM tab1 cor0 WHERE 6 NOT BETWEEN - - 86 AND - CAST ( NULL AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 39 + - col1 + - - col0 + + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 + + col2 + - col2 * - - col2 FROM tab0 cor0
----
-177
-2177
-9799

query I rowsort
SELECT ALL - col2 + - - col2 + - - col1 + col1 AS col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT MIN( + col1 ) * - 74 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT MIN ( + col1 ) * - 74 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT + col2 - col2 BETWEEN + + col1 + + + col0 + - 19 AND - col2
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT + 12 * - + ( SUM( - col1 ) ) AS col1 FROM tab2 AS cor0
----
2340

skipif mysql # not compatible
query I rowsort label-4437
SELECT + 12 * - + ( SUM ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
2340

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 56 * + + 54 ) IS NULL
----

query I rowsort
SELECT DISTINCT 22 + ( + + col2 ) FROM tab1 AS cor0
----
118
81
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT ALL + CAST( - col0 AS SIGNED ) * 43 * + col1 FROM tab0 AS cor0
----
-4171
-52245
-78561

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL + CAST ( - col0 AS INTEGER ) * 43 * + col1 FROM tab0 AS cor0
----
-4171
-52245
-78561

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT ALL - col0 * 80 DIV col0 + col2 AS col0 FROM tab1 AS cor0
----
-12
-21
16

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - col0 * 80 / col0 + col2 AS col0 FROM tab1 AS cor0
----
-12
-21
16

query I rowsort
SELECT - ( + 79 ) FROM tab1
----
-79
-79
-79

query I rowsort
SELECT ALL col1 - - col1 AS col2 FROM tab2 WHERE NOT + col0 < + + 54
----
134
154

onlyif mysql # aggregate syntax: 
query II rowsort label-4444
SELECT DISTINCT SUM( ALL - col2 ) AS col0, + 78 col2 FROM tab2
----
-121
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4444
SELECT DISTINCT SUM ( ALL - col2 ) AS col0, + 78 col2 FROM tab2
----
-121
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT 46 * MIN( col2 ) AS col0 FROM tab0 WHERE ( - + ( col0 ) + + col0 + 93 ) < ( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT 46 * MIN ( col2 ) AS col0 FROM tab0 WHERE ( - + ( col0 ) + + col0 + 93 ) < ( 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT - - COUNT( * ) + + SUM( DISTINCT 19 ) AS col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4446
SELECT - - COUNT ( * ) + + SUM ( DISTINCT 19 ) AS col1 FROM tab2 AS cor0
----
22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 - + ( - - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 9 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 16, col1 - + + 22 + + - 29 * + col0 * 83 - + col1 AS col0 FROM tab0 AS cor0
----
16
-209431
16
-233501
16
-36127

query I rowsort
SELECT DISTINCT + col0 + - 85 FROM tab2 AS cor0 WHERE + col0 + - col0 = - - 91 + - 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4452
SELECT * FROM tab2 WHERE + col1 * - col0 BETWEEN NULL AND - - 9 * + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4452
SELECT * FROM tab2 WHERE + col1 * - col0 BETWEEN NULL AND - - 9 * + CAST ( + col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4453
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 56 * - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4453
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 56 * - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 95 - - col2 AS col1 FROM tab2 cor0
----
-37
-55
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 85 * - ( - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 + + col1 AND col1
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 4 AS col1 FROM tab0 cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col2 FROM tab2 AS cor0
----
50

query II rowsort
SELECT ALL 35, - col0 AS col0 FROM tab2
----
35
-46
35
-64
35
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 / + col1 NOT IN ( 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 36 FROM tab0 WHERE NOT NULL <= ( NULL )
----

query II rowsort
SELECT ALL + 83, col1 * + col0 AS col2 FROM tab1
----
83
425
83
4277
83
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ( + MIN( - + col2 ) ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4464
SELECT ( + MIN ( - + col2 ) ) AS col0 FROM tab2
----
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 62 - - + 80 - + col2 BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT DISTINCT col2, col2 + + col2 + col0 + - + col0 * 54 FROM tab2
----
23
-2392
40
-3312
58
-3859

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 + + col2 ) BETWEEN col2 * + ( - - 8 ) AND + + col1 / - ( - col0 ) + + 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 30 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * col1 * - col2 * - 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 76 * col1 / - - 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4471
SELECT - col2 * + CAST( NULL AS SIGNED ) + col2 * - + 34 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT - col2 * + CAST ( NULL AS INTEGER ) + col2 * - + 34 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2, col0 col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL COUNT( * ) * - - 30 col1 FROM tab2
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4473
SELECT ALL COUNT ( * ) * - - 30 col1 FROM tab2
----
90

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN 97 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ( + MIN( ALL + col1 ) ) + 96 AS col0 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-4475
SELECT ( + MIN ( ALL + col1 ) ) + 96 AS col0 FROM tab2 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT - 12 * - COUNT( * ) FROM tab1 cor0
----
36

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT - 12 * - COUNT ( * ) FROM tab1 cor0
----
36

query I rowsort
SELECT ALL + ( - col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT + + col0 + - - 78 FROM tab0 AS cor0
----
165
175
93

query I rowsort
SELECT ALL 15 + - + col1 AS col1 FROM tab0
----
-6
-66
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT + col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT + col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( col0 * + 42 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT DISTINCT SUM( col0 ) + - ( - SUM( - 95 ) ) AS col2 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT SUM ( col0 ) + - ( - SUM ( - 95 ) ) AS col2 FROM tab0
----
-86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + col0 >= NULL
----

query I rowsort
SELECT DISTINCT + col1 - + 87 FROM tab2
----
-10
-20
-36

query I rowsort
SELECT ALL 26 * 8 FROM tab2
----
208
208
208

query I rowsort
SELECT ( + - 14 ) FROM tab0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT ALL - COUNT( * ) * + 57 + + COUNT( 79 ) FROM tab0 cor0
----
-168

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL - COUNT ( * ) * + 57 + + COUNT ( 79 ) FROM tab0 cor0
----
-168

query I rowsort
SELECT DISTINCT - col1 + + - col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT - COUNT( * ) + - MAX( ALL - col2 ) AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-4489
SELECT - COUNT ( * ) + - MAX ( ALL - col2 ) AS col0 FROM tab1
----
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4490
SELECT COUNT( + CAST( col0 AS DECIMAL ) ) + + 1 AS col0 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4490
SELECT COUNT ( + CAST ( col0 AS REAL ) ) + + 1 AS col0 FROM tab0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT col1 + + 36 + 61 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT col1 + + 36 + 61 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 91 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 63 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT + MIN( 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT + MIN ( 97 ) FROM tab1 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT ALL 92 DIV + - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL 92 / + - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - ( - 74 ) AS col2 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT + 86 * col2 AS col0 FROM tab2 AS cor0
----
1978
3440
4988

query II rowsort
SELECT ( 41 ), + col2 AS col1 FROM tab0 cor0
----
41
10
41
47
41
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT - - ( - + 11 ) DIV + col2 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4499
SELECT - - ( - + 11 ) / + col2 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL - + 61 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL - + 61 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT MAX( 37 ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-4501
SELECT MAX ( 37 ) FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT DISTINCT + + MIN( - - ( + ( - 90 ) ) ) AS col2 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT + + MIN ( - - ( + ( - 90 ) ) ) AS col2 FROM tab2 AS cor0
----
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 AND + col2 * 34 OR NOT col1 + + 30 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
2116
4096
5625

query II rowsort
SELECT col2 + col2 AS col2, - 27 * - 43 FROM tab0 AS cor0
----
198
1161
20
1161
94
1161

query II rowsort
SELECT ALL + 46 AS col1, col1 + - - col1 * + 75 * + - col0 * col0 * - + col0 AS col1 FROM tab2
----
46
1513881677
46
2119921942
46
372310251

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT + + col2 DIV + + 21 AS col2 FROM tab0 AS cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-4507
SELECT + + col2 / + + 21 AS col2 FROM tab0 AS cor0
----
0
2
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT col1 DIV 19 FROM tab2 cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-4508
SELECT col1 / 19 FROM tab2 cor0
----
2
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL MIN( ALL 31 ) AS col1 FROM tab2 cor0
----
31

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL MIN ( ALL 31 ) AS col1 FROM tab2 cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col0 col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT MIN( 10 ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4511
SELECT MIN ( 10 ) FROM tab2 AS cor0
----
10

query II rowsort
SELECT + col2, col2 * - + col0 AS col1 FROM tab2 AS cor0
----
23
-1058
40
-2560
58
-4350

query I rowsort
SELECT ( 65 ) AS col0 FROM tab1 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT - COUNT( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4514
SELECT - COUNT ( ALL - + col0 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - 23 + + col2 AS col2 FROM tab0 AS cor0
----
122
33
70

query I rowsort
SELECT - col2 - + 96 FROM tab1 cor0
----
-155
-164
-192

query I rowsort
SELECT ALL - 97 + - + 77 + - col1 AS col0 FROM tab2 AS cor0 WHERE 88 IS NULL
----

query I rowsort
SELECT ALL col2 * + 87 + 73 * - - col0 FROM tab2
----
10521
5359
8152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + + + 32 col2 FROM tab0
----
103
103
103

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) = NULL OR NOT + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab2 WHERE + col2 / + col1 * col0 + col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT - 78 + 98 FROM tab0
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4523
SELECT ALL * FROM tab2 WHERE NOT col1 + + col2 / - CAST( - ( - 14 ) AS SIGNED ) * + + col1 + - col0 <> - col2
----

skipif mysql # not compatible
query III rowsort label-4523
SELECT ALL * FROM tab2 WHERE NOT col1 + + col2 / - CAST ( - ( - 14 ) AS INTEGER ) * + + col1 + - col0 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT + COUNT( - 29 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT + COUNT ( - 29 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4525
SELECT * FROM tab2 cor0 WHERE ( 57 + + + col1 ) NOT IN ( 75, + ( - col0 ), col0 - col1, + ( - + CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
query III rowsort label-4525
SELECT * FROM tab2 cor0 WHERE ( 57 + + + col1 ) NOT IN ( 75, + ( - col0 ), col0 - col1, + ( - + CAST ( NULL AS REAL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT + COUNT( * ) * + COUNT( * ) * 10 FROM tab2 AS cor0 WHERE ( + col0 ) <= + 64 * col2
----
90

skipif mysql # not compatible
query I rowsort label-4526
SELECT + COUNT ( * ) * + COUNT ( * ) * 10 FROM tab2 AS cor0 WHERE ( + col0 ) <= + 64 * col2
----
90

query I rowsort
SELECT ALL + 34 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT - ( + SUM( ALL + + CAST( NULL AS SIGNED ) ) ) * + + 33 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT - ( + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) ) * + + 33 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL + SUM( ALL - + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + SUM ( ALL - + col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL CAST( + 28 AS SIGNED ) * - 76 FROM tab0 AS cor0
----
-2128
-2128
-2128

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL CAST ( + 28 AS INTEGER ) * - 76 FROM tab0 AS cor0
----
-2128
-2128
-2128

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) + - 40 IN ( + + col0, + ( + 98 ) * - - col2 )
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT ALL COUNT( * ) DIV + MAX( - + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL COUNT ( * ) / + MAX ( - + col1 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4533
SELECT DISTINCT col1 DIV 14 AS col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT col1 / 14 AS col1 FROM tab1
----
0
1
3

query II rowsort
SELECT - 37, col0 FROM tab2
----
-37
46
-37
64
-37
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 - - col1 IS NULL
----

query II rowsort
SELECT ALL - ( + 0 ) AS col1, + 82 AS col0 FROM tab1
----
0
82
0
82
0
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4537
SELECT + col1 DIV + - col1 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4537
SELECT + col1 / + - col1 AS col2 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT col1 AS col1, col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - MIN( ALL + - col0 ) col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4539
SELECT - MIN ( ALL + - col0 ) col2 FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4540
SELECT + + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4540
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 + col1 FROM tab1 cor0 WHERE NOT - col2 BETWEEN NULL AND - + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4542
SELECT DISTINCT + MAX( DISTINCT col2 ) AS col0, 49 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
58
52

skipif mysql # not compatible
query II rowsort label-4542
SELECT DISTINCT + MAX ( DISTINCT col2 ) AS col0, 49 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
58
52

query I rowsort
SELECT - - 80 * col0 FROM tab1 AS cor0 WHERE 78 > 97
----

query I rowsort
SELECT DISTINCT - 43 + col0 AS col2 FROM tab0 AS cor0
----
-28
44
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL + SUM( ALL + col1 ) AS col2 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL + SUM ( ALL + col1 ) AS col2 FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-4546
SELECT ALL - + COUNT( * ) + - 73 AS col1, - COUNT( * ) col1 FROM tab2 AS cor0
----
-76
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4546
SELECT ALL - + COUNT ( * ) + - 73 AS col1, - COUNT ( * ) col1 FROM tab2 AS cor0
----
-76
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 * col0 * + 73 - - - col2 col0 FROM tab2
----
204815
284952
333917

query III rowsort
SELECT * FROM tab2 WHERE 61 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT SUM( ALL - + col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT SUM ( ALL - + col1 ) AS col1 FROM tab2
----
-195

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL = + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4551
SELECT DISTINCT 19 * col2 * + + col0 - - col0 - - + 6 DIV col0 FROM tab1
----
117663
93075
95370

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT 19 * col2 * + + col0 - - col0 - - + 6 / col0 FROM tab1
----
117663
93075
95370

query III rowsort
SELECT * FROM tab2 WHERE - 31 + + + col1 <= + ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4553
SELECT ALL * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4553
SELECT ALL * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL + ( + ( - COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL + ( + ( - COUNT ( * ) ) ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT - col0 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN CAST( col1 AS SIGNED ) AND - col2
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4555
SELECT - col0 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN CAST ( col1 AS INTEGER ) AND - col2
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4556
SELECT ALL ( col0 ) + - CAST( - col1 AS SIGNED ) AS col2, - col2 AS col2 FROM tab2 AS cor0
----
141
-40
142
-58
97
-23

skipif mysql # not compatible
query II rowsort label-4556
SELECT ALL ( col0 ) + - CAST ( - col1 AS INTEGER ) AS col2, - col2 AS col2 FROM tab2 AS cor0
----
141
-40
142
-58
97
-23

query III rowsort
SELECT * FROM tab2 cor0 WHERE - ( + + 46 ) >= NULL
----

query I rowsort
SELECT - 23 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 78 * col1 AS col2 FROM tab2 WHERE NOT + col2 + + - col0 <> + ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - ( col2 ) * - + ( + 38 ) + col1 FROM tab1
----
2247
2631
3662

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT - COUNT( * ) * + 59 col0 FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4562
SELECT DISTINCT - COUNT ( * ) * + 59 col0 FROM tab0 AS cor0
----
-177

query I rowsort
SELECT ALL + col1 * + 2 + - col0 FROM tab2 cor0
----
56
59
90

query I rowsort
SELECT - col2 * - - 3 * + 93 + + 53 + + + 57 AS col1 FROM tab1 AS cor0
----
-16351
-18862
-26674

query I rowsort
SELECT ALL + ( + - col2 ) * - col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT - col2 + - 68 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4567
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4568
SELECT col1 * + 59 / CAST( NULL AS SIGNED ), + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4568
SELECT col1 * + 59 / CAST ( NULL AS INTEGER ), + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT col2 DIV col2 DIV + - 47 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4569
SELECT col2 / col2 / + - 47 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 34 AS col0 FROM tab2
----
34
34
34

query II rowsort
SELECT ALL col0 AS col1, col0 AS col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4572
SELECT DISTINCT + COUNT( * ) AS col1, - 49 + - - MAX( col1 ) FROM tab0
----
3
32

skipif mysql # not compatible
query II rowsort label-4572
SELECT DISTINCT + COUNT ( * ) AS col1, - 49 + - - MAX ( col1 ) FROM tab0
----
3
32

query I rowsort
SELECT + 81 AS col2 FROM tab0 WHERE NOT NULL > - - col1
----

query I rowsort
SELECT ALL + col0 * + 12 FROM tab1
----
1020
1092
612

query I rowsort
SELECT DISTINCT 7 * + - 26 AS col0 FROM tab2 AS cor0
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL + CAST( col2 AS SIGNED ) + ( 23 ) FROM tab0 AS cor0
----
122
33
70

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + CAST ( col2 AS INTEGER ) + ( 23 ) FROM tab0 AS cor0
----
122
33
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - - col2 col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT ALL 8 * + col1 + - + col0 FROM tab2 AS cor0
----
362
461
552

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT 37 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4579
SELECT 37 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
40

query I rowsort
SELECT + - col2 + - col1 + + - 91 * - + col1 AS col1 FROM tab0 AS cor0
----
-9
1880
7243

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + + + col2 * + col0 * 24 IS NULL
----

query II rowsort
SELECT DISTINCT 92 AS col1, + col2 + col1 FROM tab0
----
92
100
92
128
92
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT DISTINCT - + COUNT( * ) * + 58 AS col2 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT - + COUNT ( * ) * + 58 AS col2 FROM tab0 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT DISTINCT + MIN( DISTINCT 58 ) + - SUM( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-137

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT + MIN ( DISTINCT 58 ) + - SUM ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-4586
SELECT - + col0 DIV - 15 + + + col1 FROM tab2 AS cor0
----
54
72
81

skipif mysql # not compatible
query I rowsort label-4586
SELECT - + col0 / - 15 + + + col1 FROM tab2 AS cor0
----
54
72
81

query I rowsort
SELECT ALL - col0 * + 44 AS col2 FROM tab2 cor0
----
-2024
-2816
-3300

query I rowsort
SELECT DISTINCT ( - - col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 + + col2 * + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-178976
-2110
-9900

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT ALL COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4590
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT + 50 + + col1 + - + col1 AS col1 FROM tab1
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL + SUM( ALL - 45 ) - COUNT( * ) AS col1 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL + SUM ( ALL - 45 ) - COUNT ( * ) AS col1 FROM tab2
----
-138

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + col2 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + ( + ( col2 ) ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 4 / + col0 * + col1 IN ( col1 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT - - SUM( ALL + + col1 ) col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4596
SELECT - - SUM ( ALL + + col1 ) col0 FROM tab2 AS cor0
----
195

query II rowsort
SELECT ALL 43, + col2 FROM tab1 AS cor0
----
43
59
43
68
43
96

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE col2 * col0 NOT BETWEEN NULL AND + + col2 + - col1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - + COUNT( + 26 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4599
SELECT - + COUNT ( + 26 ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4600
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT + CAST( - col0 AS SIGNED ) - + ( + 93 ) BETWEEN NULL AND 22 + CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-4600
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT + CAST ( - col0 AS INTEGER ) - + ( + 93 ) BETWEEN NULL AND 22 + CAST ( NULL AS REAL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * 22 col2 FROM tab0 AS cor0
----
-1914
-2134
-330

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4602
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 20 + + 37 * - - col1 NOT BETWEEN + 50 / + + ( - CAST( NULL AS SIGNED ) ) * - col2 + + 56 + + - col2 + - - 22 AND - 22
----

skipif mysql # not compatible
query III rowsort label-4602
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 20 + + 37 * - - col1 NOT BETWEEN + 50 / + + ( - CAST ( NULL AS INTEGER ) ) * - col2 + + 56 + + - col2 + - - 22 AND - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT - SUM( + 73 ) AS col1 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4603
SELECT - SUM ( + 73 ) AS col1 FROM tab1 AS cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4604
SELECT DISTINCT + CAST( + + 38 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT + CAST ( + + 38 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT col0 + + ( col1 ) AS col2 FROM tab1
----
138
65
90

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - - col0, col2, + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT 98 DIV + - col2 FROM tab0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT 98 / + - col2 FROM tab0
----
-2
-9
0

query I rowsort
SELECT - col0 * - 72 AS col0 FROM tab1
----
3672
6120
6552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 * - - col2 col2 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT DISTINCT 68 * - SUM( - 8 ) FROM tab1
----
1632

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT 68 * - SUM ( - 8 ) FROM tab1
----
1632

query I rowsort
SELECT DISTINCT - col2 * + - col2 + col1 AS col2 FROM tab2
----
1677
3431
580

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4612
SELECT ALL + CAST( NULL AS DECIMAL ) * + 9 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL + CAST ( NULL AS REAL ) * + 9 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 8 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-8
-8
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - col0 IN ( + ( - col2 ) * + col0, - col0 )
----

query I rowsort
SELECT DISTINCT + - 90 + + + col2 AS col0 FROM tab0 cor0
----
-43
-80
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4616
SELECT ALL - - 93 + + COUNT( * ) col2, COUNT( * ) FROM tab2 AS cor0
----
96
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4616
SELECT ALL - - 93 + + COUNT ( * ) col2, COUNT ( * ) FROM tab2 AS cor0
----
96
3

query I rowsort
SELECT + 75 + + - 19 + + + 67 * + col1 FROM tab1
----
3205
391
994

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4619
SELECT DISTINCT 21 DIV col2 + + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-19
-81

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT 21 / col2 + + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-19
-81

query I rowsort
SELECT col2 + - - col0 * - + 36 + - ( - + 12 ) FROM tab2 cor0
----
-1621
-2252
-2630

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + - 78 IS NOT NULL
----

query I rowsort
SELECT + 96 + - col0 AS col1 FROM tab1 AS cor0
----
11
45
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 9 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT ALL + - MIN( DISTINCT + ( + 80 ) ) FROM tab0 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL + - MIN ( DISTINCT + ( + 80 ) ) FROM tab0 cor0
----
-80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + + col1 >= + 16 * col1
----
85
5
59

query II rowsort
SELECT + + col1, col1 + col1 FROM tab2 cor0
----
51
102
67
134
77
154

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NULL <> - col0 - ( + 15 ) / col0 / + col2 * - - col0 * col1 / + + 29 * + - 41 / - - 45
----

query I rowsort
SELECT + ( - 34 ) AS col2 FROM tab2 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT MAX( DISTINCT + 58 ) AS col1 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-4629
SELECT MAX ( DISTINCT + 58 ) AS col1 FROM tab1
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col0 + + 36 * - 63 col1 FROM tab2
----
-2126
-2127
-2171

query I rowsort
SELECT ALL col1 - + 79 FROM tab1
----
-32
-65
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - COUNT( * ) - 83 AS col2 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-4632
SELECT - COUNT ( * ) - 83 AS col2 FROM tab1
----
-86

query I rowsort
SELECT ALL col2 + - col1 + 81 AS col0 FROM tab2
----
44
53
72

query I rowsort
SELECT - 40 - + 46 AS col1 FROM tab0
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT DISTINCT 14 + + + col0 / - + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4635
SELECT DISTINCT 14 + + + col0 / - + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query I rowsort
SELECT + - ( + 24 ) FROM tab2 cor0
----
-24
-24
-24

query I rowsort
SELECT ALL - 40 AS col2 FROM tab0 cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT + ( + ( COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4638
SELECT + ( + ( COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT ( + col0 ), col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4640
SELECT COUNT( * ) AS col0, SUM( - + col0 ) FROM tab1
----
3
-227

skipif mysql # not compatible
query II rowsort label-4640
SELECT COUNT ( * ) AS col0, SUM ( - + col0 ) FROM tab1
----
3
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL MAX( DISTINCT + 87 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL MAX ( DISTINCT + 87 ) FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT NULL NOT IN ( col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT MIN( DISTINCT + + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4644
SELECT MIN ( DISTINCT + + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT DISTINCT - ( - - 13 ) * - + MIN( ALL + col1 ) * + + COUNT( * ) AS col1 FROM tab2
----
1989

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT - ( - - 13 ) * - + MIN ( ALL + col1 ) * + + COUNT ( * ) AS col1 FROM tab2
----
1989

onlyif mysql # aggregate syntax: 
query II rowsort label-4646
SELECT DISTINCT - COUNT( * ) AS col0, - 26 AS col0 FROM tab1
----
-3
-26

skipif mysql # not compatible
query II rowsort label-4646
SELECT DISTINCT - COUNT ( * ) AS col0, - 26 AS col0 FROM tab1
----
-3
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL 86 + - 0 + - + 40 + - - COUNT( * ) col2 FROM tab0
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4647
SELECT ALL 86 + - 0 + - + 40 + - - COUNT ( * ) col2 FROM tab0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT + - COUNT( + + ( - + 83 ) ) + - - MAX( ALL - - ( col1 ) ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
78
3

skipif mysql # not compatible
query II rowsort label-4648
SELECT + - COUNT ( + + ( - + 83 ) ) + - - MAX ( ALL - - ( col1 ) ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
78
3

query I rowsort
SELECT - 95 * + col1 + - 24 AS col2 FROM tab2 AS cor0
----
-4869
-6389
-7339

query I rowsort
SELECT + col2 * + + col2 * col0 + - + 31 + ( - - 55 ) AS col1 FROM tab0 cor0
----
33159
8724
950721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NOT - 2 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-4651
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NOT - 2 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT - ( + ( + - col2 ) ) + + col0 AS col0, col2 FROM tab1
----
144
59
147
96
159
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT + - col0 DIV - col0 + + - col1 - col2 + + ( - - 47 ) - ( - col1 ) - 64 DIV col0 * - - col1 * + + col1 FROM tab1 cor0
----
-11
-20
-244

skipif mysql # not compatible
query I rowsort label-4653
SELECT + - col0 / - col0 + + - col1 - col2 + + ( - - 47 ) - ( - col1 ) - 64 / col0 * - - col1 * + + col1 FROM tab1 cor0
----
-11
-20
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + 65 - MIN( DISTINCT col2 ) AS col2 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-4654
SELECT + 65 - MIN ( DISTINCT col2 ) AS col2 FROM tab2 cor0
----
42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT 33 + + col2 = NULL
----

query I rowsort
SELECT col2 * + col1 + - 48 AS col2 FROM tab2 AS cor0
----
1125
3032
3838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT CAST( 42 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-5
-57
32

skipif mysql # not compatible
query I rowsort label-4657
SELECT CAST ( 42 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-5
-57
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT ALL + ( + + 15 ) AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> + col1 AND - 70 / - col1 / - col1 * + + 60 * col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL + ( + + 15 ) AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> + col1 AND - 70 / - col1 / - col1 * + + 60 * col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4659
SELECT ALL ( + + 49 ) DIV + SUM( DISTINCT + - col0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL ( + + 49 ) / + SUM ( DISTINCT + - col0 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL - col2 * - - col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT - 99 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4662
SELECT col1, + ( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4662
SELECT col1, + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT + ( + 59 ) * - col0 * 15 FROM tab2
----
-40710
-56640
-66375

onlyif mysql # aggregate syntax: 
query II rowsort label-4664
SELECT - 34 AS col1, + COUNT( * ) FROM tab0 AS cor0
----
-34
3

skipif mysql # not compatible
query II rowsort label-4664
SELECT - 34 AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
-34
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col0 * + 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT MAX( - - col0 ) col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4666
SELECT MAX ( - - col0 ) col0 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL - SUM( - - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL - SUM ( - - col1 ) FROM tab2 AS cor0
----
-195

query III rowsort
SELECT * FROM tab2 WHERE NOT 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4669
SELECT COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT COUNT ( * ) * + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT 16 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT 16 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4671
SELECT DISTINCT + - CAST( - 25 AS SIGNED ) AS col0 FROM tab1 cor0
----
25

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT + - CAST ( - 25 AS INTEGER ) AS col0 FROM tab1 cor0
----
25

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 NOT BETWEEN - col0 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT DISTINCT - col1 * + ( + col1 ) + - col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT - col1 * + ( + col1 ) + - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 47 AS col1 FROM tab2 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 > NULL
----

query I rowsort
SELECT + col2 FROM tab0 WHERE - + col1 NOT BETWEEN - col0 AND col2
----
47

query I rowsort
SELECT - - col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4678
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 AS col2, - 12 AS col1 FROM tab2
----
NULL
-12
NULL
-12
NULL
-12

skipif mysql # not compatible
query II rowsort label-4678
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 AS col2, - 12 AS col1 FROM tab2
----
NULL
-12
NULL
-12
NULL
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT COUNT( col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4679
SELECT COUNT ( col2 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT DISTINCT - 76 + - + col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT - 76 + - + col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col2 FROM tab1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4682
SELECT ALL CAST( NULL AS SIGNED ) + SUM( DISTINCT + col2 ), CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4682
SELECT ALL CAST ( NULL AS INTEGER ) + SUM ( DISTINCT + col2 ), CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL

query I rowsort
SELECT col2 * + + col0 * - col1 AS col2 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT + col2 * - + 81 FROM tab1
----
-4779
-5508
-7776

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4685
SELECT * FROM tab2 AS cor0 WHERE + CAST( - ( col2 ) AS SIGNED ) + - - 98 < - CAST( - - col1 AS SIGNED ) + + col2 * ( 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4685
SELECT * FROM tab2 AS cor0 WHERE + CAST ( - ( col2 ) AS INTEGER ) + - - 98 < - CAST ( - - col1 AS INTEGER ) + + col2 * ( 20 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 + + - 78 FROM tab2 AS cor0
----
-1
-11
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4687
SELECT COUNT( DISTINCT + CAST( 58 AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-4687
SELECT COUNT ( DISTINCT + CAST ( 58 AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - MAX( - + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4688
SELECT - MAX ( - + col1 ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT col1 - + col1 <= - - col1 * - + col2 + + 81 + - - col2
----
10
47

query I rowsort
SELECT ALL 67 * - + col0 AS col1 FROM tab2 AS cor0
----
-3082
-4288
-5025

query II rowsort
SELECT DISTINCT + col0, + col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT ALL - 40 * + + 76 FROM tab0 AS cor0
----
-3040
-3040
-3040

onlyif mysql # DIV for integer division: 
query I rowsort label-4693
SELECT + - 51 DIV - - col1 FROM tab1 AS cor0
----
-1
-10
-3

skipif mysql # not compatible
query I rowsort label-4693
SELECT + - 51 / - - col1 FROM tab1 AS cor0
----
-1
-10
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4694
SELECT DISTINCT - - 98 DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - - 98 / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4695
SELECT - - 81 DIV + - 79 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4695
SELECT - - 81 / + - 79 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4696
SELECT DISTINCT col0 DIV - col0, - col2 * col2 AS col0 FROM tab2
----
-1
-1600
-1
-3364
-1
-529

skipif mysql # not compatible
query II rowsort label-4696
SELECT DISTINCT col0 / - col0, - col2 * col2 AS col0 FROM tab2
----
-1
-1600
-1
-3364
-1
-529

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4697
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( - col0 AS SIGNED ) BETWEEN + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4697
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( - col0 AS INTEGER ) BETWEEN + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + - 19 * + col1 FROM tab0
----
1843
23085
34713

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT + col0 / col2 * 79 + - col1 + 23 * 83 / - col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 10 ) FROM tab2
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4701
SELECT DISTINCT col0 * 95 DIV + + col0 col0 FROM tab1
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4701
SELECT DISTINCT col0 * 95 / + + col0 col0 FROM tab1
----
95

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE - - 62 + - 31 BETWEEN + col2 + 70 + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL COUNT( DISTINCT - + 13 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL COUNT ( DISTINCT - + 13 ) AS col1 FROM tab1
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND + 15
----

query I rowsort
SELECT - 87 AS col2 FROM tab0 cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4706
SELECT COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4706
SELECT COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 63 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 34 + 48 AS col1 FROM tab0 cor0
----
82

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 NOT BETWEEN + - col0 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - ( - col1 ) * - col2 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4711
SELECT - + COUNT( * ) DIV + 23 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4711
SELECT - + COUNT ( * ) / + 23 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 61 + 11 FROM tab1 AS cor0
----
72

query III rowsort
SELECT * FROM tab0 WHERE ( col1 BETWEEN - col2 * - - col0 AND + col2 )
----
97
1
99

query I rowsort
SELECT 82 + - ( + 44 ) AS col2 FROM tab2
----
38
38
38

query I rowsort
SELECT DISTINCT 7 + - - ( + - col2 ) FROM tab2
----
-16
-33
-51

query I rowsort
SELECT 0 + - col0 AS col2 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 92 BETWEEN col0 * - col2 + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + col1 + + - col0 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT ALL - col2 + + 54 DIV + + 73 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - col2 + + 54 / + + 73 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4721
SELECT DISTINCT + 23 * CAST( NULL AS SIGNED ) AS col2, 80 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-4721
SELECT DISTINCT + 23 * CAST ( NULL AS INTEGER ) AS col2, 80 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL
77

query I rowsort
SELECT ALL col2 * - col0 * + col1 * 55 AS col0 FROM tab2 AS cor0
----
-10841600
-16029750
-2967690

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT + 14 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4723
SELECT + 14 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
42

query I rowsort
SELECT + col0 * col1 * - col2 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT 28 * + + col1 * + 55 FROM tab1 AS cor0
----
21560
72380
7700

onlyif mysql # aggregate syntax: 
query II rowsort label-4726
SELECT 74, COUNT( * ) AS col1 FROM tab1
----
74
3

skipif mysql # not compatible
query II rowsort label-4726
SELECT 74, COUNT ( * ) AS col1 FROM tab1
----
74
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT COUNT( - 34 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4727
SELECT COUNT ( - 34 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - col2 * + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 + - 21 * + col0 FROM tab0 WHERE NOT + - col0 IN ( + 63 * 8, col1 * - col0, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT COUNT( + col2 ) * - - COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT COUNT ( + col2 ) * - - COUNT ( * ) AS col2 FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4731
SELECT DISTINCT + col1, + col0 DIV - 18 FROM tab0
----
1
-5
21
-4
81
0

skipif mysql # not compatible
query II rowsort label-4731
SELECT DISTINCT + col1, + col0 / - 18 FROM tab0
----
1
-5
21
-4
81
0

query II rowsort
SELECT 92 AS col1, 18 AS col1 FROM tab0
----
92
18
92
18
92
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4733
SELECT SUM( ALL - ( + 31 ) ) AS col1, - 88 + + 8 col1 FROM tab2 AS cor0
----
-93
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4733
SELECT SUM ( ALL - ( + 31 ) ) AS col1, - 88 + + 8 col1 FROM tab2 AS cor0
----
-93
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4734
SELECT col2 DIV col1 + + col1 + col2 AS col0 FROM tab1
----
116
116
75

skipif mysql # not compatible
query I rowsort label-4734
SELECT col2 / col1 + + col1 + col2 AS col0 FROM tab1
----
116
116
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4735
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - - col0 * - col1 + + 18 + - CAST( col2 AS DECIMAL ) - col0 + - 29 + 48
----

skipif mysql # not compatible
query III rowsort label-4735
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - - col0 * - col1 + + 18 + - CAST ( col2 AS REAL ) - col0 + - 29 + 48
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * - 49 NOT BETWEEN + 37 + col0 * - + ( - - col2 ) AND col2 + - 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT ALL - 69 * + ( - - SUM( - + ( + - 99 ) ) ) col2 FROM tab0 AS cor0
----
-20493

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4737
SELECT ALL - 69 * + ( - - SUM ( - + ( + - 99 ) ) ) col2 FROM tab0 AS cor0
----
-20493

onlyif mysql # DIV for integer division: 
query I rowsort label-4738
SELECT ALL + + 67 * col0 + col0 + - 75 + - col2 DIV - - 82 * - 16 * + col0 AS col2 FROM tab2 AS cor0
----
3053
4277
5025

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL + + 67 * col0 + col0 + - 75 + - col2 / - - 82 * - 16 * + col0 AS col2 FROM tab2 AS cor0
----
3053
4277
5025

query I rowsort
SELECT ALL + col2 + - 92 * + + col0 FROM tab1 AS cor0
----
-4596
-7761
-8304

query I rowsort
SELECT ALL + 79 - col1 * - + col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT DISTINCT + + MAX( - col0 ) + - COUNT( * ) FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT + + MAX ( - col0 ) + - COUNT ( * ) FROM tab0 cor0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-4742
SELECT ALL - 93 DIV col0 * col0 + + ( - col2 ) * - - col1 FROM tab2
----
-1265
-3144
-3961

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - 93 / col0 * col0 + + ( - col2 ) * - - col1 FROM tab2
----
-1265
-3144
-3961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 52 ) + + col1 + + - col2 col2 FROM tab1
----
-106
-134
-73

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT ALL - 79 + - 52 FROM tab0 WHERE + - 91 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT DISTINCT - ( + - MIN( 47 ) ) - + 86 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT - ( + - MIN ( 47 ) ) - + 86 FROM tab0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT DISTINCT + AVG ( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT + AVG ( + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 * + col0 col1 FROM tab2
----
2139
4136
5683

query I rowsort
SELECT + 62 + col0 AS col0 FROM tab2 AS cor0
----
108
126
137

query I rowsort
SELECT 89 + + col0 AS col2 FROM tab2
----
135
153
164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, + col1 col2 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4752
SELECT ALL - CAST( NULL AS SIGNED ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4752
SELECT ALL - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4754
SELECT DISTINCT + col0 * CAST( - + 1 AS SIGNED ) * 97 DIV - col2 FROM tab0 AS cor0
----
30
843
95

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT + col0 * CAST ( - + 1 AS INTEGER ) * 97 / - col2 FROM tab0 AS cor0
----
30
843
95

query II rowsort
SELECT ALL + - col0, - col1 AS col2 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

query II rowsort
SELECT DISTINCT col1 AS col1, col2 * col0 AS col1 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 84 * - col1 NOT BETWEEN - 25 + + 32 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4758
SELECT col1 DIV - 78 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4758
SELECT col1 / - 78 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * + 86 col2 FROM tab1
----
-2322
-2322
-2322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT CAST( NULL AS SIGNED ) * + - 62 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT CAST ( NULL AS INTEGER ) * + - 62 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4761
SELECT ALL + COUNT( * ) * 71 AS col1, 86 col1 FROM tab1
----
213
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4761
SELECT ALL + COUNT ( * ) * 71 AS col1, 86 col1 FROM tab1
----
213
86

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL BETWEEN NULL AND col0 - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 5 * + col1 * 10 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * + 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 2 * - - 79 AS col1 FROM tab2 AS cor0
----
-158
-158
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-4766
SELECT ALL - 25 DIV - - col0 col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4766
SELECT ALL - 25 / - - col0 col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT + MAX( ALL - + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4767
SELECT + MAX ( ALL - + col1 ) FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 9 col2, col2 + - - col0 AS col1 FROM tab0 AS cor0
----
9
196
9
62
9
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + ( ( + COUNT( * ) ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4769
SELECT + ( ( + COUNT ( * ) ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + col0 + - + col0 / ( + col0 ) BETWEEN NULL AND + - col2 + + + 49 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4771
SELECT - col1 DIV + 62 col2 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4771
SELECT - col1 / + 62 col2 FROM tab2 cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col1 + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL + 18 + - COUNT( * ) + - 85 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL + 18 + - COUNT ( * ) + - 85 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT DISTINCT - col2 + + 12 FROM tab0 cor0
----
-35
-87
2

query I rowsort
SELECT ALL + col2 * + col1 * col1 - - + 3 + 76 * - + 90 * + col1 FROM tab2
----
-197915
-289014
-289517

query I rowsort
SELECT DISTINCT col0 + - + 4 FROM tab0
----
11
83
93

query II rowsort
SELECT ALL col0 - - + col0, col2 FROM tab2
----
128
40
150
58
92
23

query I rowsort
SELECT DISTINCT col2 - col0 * + + 7 * + col1 FROM tab2 AS cor0
----
-16399
-34456
-35117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + - 90 ) col1 FROM tab1 AS cor0
----
-90
-90
-90

query II rowsort
SELECT col0 * 6, - col2 - + col2 AS col1 FROM tab0 AS cor0
----
522
-20
582
-198
90
-94

query I rowsort
SELECT - - ( ( - col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) <> 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL - - ( COUNT( - col1 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - - ( COUNT ( - col1 ) ) FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT ALL - 73 DIV col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL - 73 / col0 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT + MAX( DISTINCT 50 ) col2 FROM tab1
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4785
SELECT DISTINCT + MAX ( DISTINCT 50 ) col2 FROM tab1
----
50

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 cor0 WHERE + col2 * + col1 BETWEEN - col1 + + col2 + + col0 AND + col1 + - col0 + - ( 88 ) / + - col1 + col2 * + - col2 * - - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL + + SUM( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + + SUM ( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT - SUM( - - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4788
SELECT - SUM ( - - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 89 col2 FROM tab2 AS cor0
----
-4094
-5696
-6675

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 - - col1 * - col1 <= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4791
SELECT ALL - CAST( - - col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL - CAST ( - - col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL 4 * 44 * - 6 FROM tab0
----
-1056
-1056
-1056

query I rowsort
SELECT 30 * - - col2 AS col0 FROM tab1
----
1770
2040
2880

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col1 ) + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT AVG ( DISTINCT col1 ) * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT AVG ( DISTINCT col1 ) * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + + col2 FROM tab2 AS cor0
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * 7 * + 54 FROM tab0
----
30618
378
7938

query I rowsort
SELECT ALL 42 * - 67 FROM ( tab0 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 2d6c96ae19db54cf07c83cbee88e1cc7

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < NULL OR NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col1 * + - ( + + 74 ) + col2 AS col2 FROM tab0
----
-1544
-5947
25

query I rowsort
SELECT 60 + - + col2 + - - 4 * + col0 AS col1 FROM tab0 AS cor0
----
349
398
73

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - 39 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > ( + 3 ) + col1 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 71 + 95 + - col0 + col0 * + 87 col0 FROM tab0 AS cor0
----
1456
7648
8508

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4806
SELECT DISTINCT + - CAST( + 85 AS SIGNED ) AS col0, - col1 * + 76 * - col2 FROM tab1 AS cor0
----
-85
102144
-85
22420
-85
242896

skipif mysql # not compatible
query II rowsort label-4806
SELECT DISTINCT + - CAST ( + 85 AS INTEGER ) AS col0, - col1 * + 76 * - col2 FROM tab1 AS cor0
----
-85
102144
-85
22420
-85
242896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 + col1 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + 63 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col2 FROM tab1 AS cor0
----
-22
-22
-22

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL NOT BETWEEN NULL AND ( NULL ) )
----

query I rowsort
SELECT DISTINCT 10 - - - col0 FROM tab0
----
-5
-77
-87

query I rowsort
SELECT ALL + col0 * - 93 + + - col2 + - + 90 FROM tab1
----
-4929
-8054
-8621

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL - MAX( + - col2 ) AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
10

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL - MAX ( + - col2 ) AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT 10 - COUNT( * ) + + - 34 - - + MIN( - 44 ) AS col2 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-4814
SELECT 10 - COUNT ( * ) + + - 34 - - + MIN ( - 44 ) AS col2 FROM tab1
----
-71

query I rowsort
SELECT ( - col0 ) - + 67 AS col1 FROM tab1
----
-118
-152
-158

query I rowsort
SELECT + col2 - 85 FROM tab1
----
-17
-26
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4817
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - COUNT( ALL - col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - COUNT ( ALL - col2 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4818
SELECT 47 AS col0, + MAX( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
47
81

skipif mysql # not compatible
query II rowsort label-4818
SELECT 47 AS col0, + MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
47
81

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL + MIN( ALL 44 ) AS col1 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + MIN ( ALL 44 ) AS col1 FROM tab2
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col1 col2 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT - 85 + - COUNT( * ) AS col1 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-4822
SELECT - 85 + - COUNT ( * ) AS col1 FROM tab1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL ( SUM( ( col0 ) ) ) + COUNT( * ) FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL ( SUM ( ( col0 ) ) ) + COUNT ( * ) FROM tab1
----
230

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * 35 BETWEEN ( col1 + - col2 ) AND col2
----

query I rowsort
SELECT DISTINCT col2 * ( - 83 ) + 76 FROM tab0 WHERE NULL NOT IN ( + col2 - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col1 FROM tab2
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT ALL + CAST( - 33 AS SIGNED ) + + col0 FROM tab1
----
18
52
58

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + CAST ( - 33 AS INTEGER ) + + col0 FROM tab1
----
18
52
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NOT - 9 - 5 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - 9 - 5 IS NOT NULL
----
0

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT col1 + - col1 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT ALL + 1 FROM tab0 WHERE NOT 19 * col1 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + 1 FROM tab0 WHERE NOT 19 * col1 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 23 * col2 FROM tab0
----
1081
2277
230

onlyif mysql # DIV for integer division: 
query I rowsort label-4832
SELECT col1 * - 52 + + 44 DIV - col1 AS col1 FROM tab1 AS cor0
----
-2444
-268
-731

skipif mysql # not compatible
query I rowsort label-4832
SELECT col1 * - 52 + + 44 / - col1 AS col1 FROM tab1 AS cor0
----
-2444
-268
-731

query I rowsort
SELECT + ( + ( col1 ) ) + + 15 FROM tab2 AS cor0
----
66
82
92

query I rowsort
SELECT 39 + 93 AS col0 FROM tab0 AS cor0
----
132
132
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 col1 FROM tab1 cor0
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 + col0 col1 FROM tab2 AS cor0
----
-2070
-4032
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4838
SELECT - - 85 DIV - COUNT( - col0 ) - - COUNT( * ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4838
SELECT - - 85 / - COUNT ( - col0 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT DISTINCT + 81 FROM tab0 AS cor0 WHERE NOT ( - col1 ) > + col2 * - col0
----

query I rowsort
SELECT 42 * + col2 - + col1 AS col0 FROM tab1 AS cor0
----
2473
2809
4018

query I rowsort
SELECT - col0 - 41 FROM tab0 AS cor0
----
-128
-138
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT + - COUNT( + col1 ) - - ( + 83 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4842
SELECT + - COUNT ( + col1 ) - - ( + 83 ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT - + 88 - col1 AS col2 FROM tab1 AS cor0
----
-102
-135
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4844
SELECT - 41 + COUNT( * ) DIV COUNT( * ) col2 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4844
SELECT - 41 + COUNT ( * ) / COUNT ( * ) col2 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT ALL col2 * col0 + - 67 AS col0 FROM tab1 AS cor0
----
4829
4948
6121

query I rowsort
SELECT - - 19 + - col2 AS col0 FROM tab2 cor0
----
-21
-39
-4

query I rowsort
SELECT ALL + - 3 * + col1 AS col2 FROM tab1 AS cor0
----
-141
-15
-42

query I rowsort
SELECT ALL + 64 + - col0 AS col1 FROM tab0 AS cor0
----
-23
-33
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4849
SELECT + CAST( NULL AS DECIMAL ) * COUNT( * ) + COUNT( * ) / 97 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT + CAST ( NULL AS REAL ) * COUNT ( * ) + COUNT ( * ) / 97 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 + col1 <= ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 90 ) = NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE ( col2 + col0 ) BETWEEN 90 AND ( + ( - col1 ) ) + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL - SUM( ALL ( + 76 ) ) - + 61 AS col0 FROM tab1
----
-289

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - SUM ( ALL ( + 76 ) ) - + 61 AS col0 FROM tab1
----
-289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab0 WHERE col1 * + ( col0 ) NOT IN ( col0 )
----
210
3807

query I rowsort
SELECT ALL + ( 39 ) * col1 FROM tab1 WHERE NULL BETWEEN col0 + - col0 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT - MAX( DISTINCT 42 ) AS col1 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-4858
SELECT - MAX ( DISTINCT 42 ) AS col1 FROM tab1
----
-42

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 > + 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 24 ) - col1 * - col0 <> + 5
----

query I rowsort
SELECT DISTINCT - 83 * - - col0 FROM tab0 cor0
----
-1245
-7221
-8051

query I rowsort
SELECT ALL - col1 * col0 - + 49 AS col2 FROM tab0 AS cor0
----
-1264
-146
-1876

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4863
SELECT DISTINCT + CAST( 41 AS SIGNED ) DIV col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT + CAST ( 41 AS INTEGER ) / col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT IN ( 17 + - col1 )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL BETWEEN + col0 + col0 AND 34
----

query I rowsort
SELECT DISTINCT 82 + + 97 AS col1 FROM tab1 WHERE NOT ( 54 + col1 > col2 )
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4867
SELECT DISTINCT * FROM tab2 WHERE NOT ( CAST( col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4867
SELECT DISTINCT * FROM tab2 WHERE NOT ( CAST ( col0 AS INTEGER ) ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE ( + 75 ) > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= + + 37 + + ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 - + col1 NOT IN ( 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4871
SELECT - 11 - - 73 DIV + 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif mysql # not compatible
query I rowsort label-4871
SELECT - 11 - - 73 / + 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT + COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4872
SELECT + COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col1 ) * col1 col2 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT DISTINCT + col2 + + + CAST( + col0 AS SIGNED ) - col0 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + col2 + + + CAST ( + col0 AS INTEGER ) - col0 AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4875
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( CAST( + 64 AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-4875
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( CAST ( + 64 AS INTEGER ) * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT - CAST( NULL AS SIGNED ) + - MAX( + col2 ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT - CAST ( NULL AS INTEGER ) + - MAX ( + col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4877
SELECT + CAST( NULL AS SIGNED ) + + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL col1 AS col1, col0 * + + col0 FROM tab2 cor0
----
51
2116
67
5625
77
4096

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 < - col1
----
23
40
58

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL <= - col1 * - col2 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL + ( MAX( DISTINCT + + col1 ) ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + ( MAX ( DISTINCT + + col1 ) ) AS col1 FROM tab1
----
47

query I rowsort
SELECT DISTINCT col2 + - col1 FROM tab1 WHERE NOT + col0 NOT BETWEEN + + 40 * - 19 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - col2 <= ( NULL )
----

query I rowsort
SELECT - 31 * + + 54 AS col0 FROM tab0
----
-1674
-1674
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT - - col0 + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT - - col0 + col1 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 / 69 + 18 * + col0 IS NOT NULL
----

query II rowsort
SELECT ( col1 ), + col2 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT + ( - - col2 ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT SUM( + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4890
SELECT SUM ( + col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT DISTINCT - - COUNT( - col0 ) + + 44 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT - - COUNT ( - col0 ) + + 44 FROM tab2 AS cor0
----
47

query I rowsort
SELECT - 6 FROM tab2 cor0 WHERE ( NULL ) = ( - - 52 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN 89 / + col0 AND + 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT ALL - + CAST( NULL AS SIGNED ) + col2 * + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - + CAST ( NULL AS INTEGER ) + col2 * + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT DISTINCT - MAX( - 61 ) + CAST( - 25 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT - MAX ( - 61 ) + CAST ( - 25 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
36

query I rowsort
SELECT col2 * 91 + - 33 + + - 25 * - 62 FROM tab1
----
10253
6886
7705

query I rowsort
SELECT - col0 * col1 + - + col1 AS col1 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT ALL 56 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( - - col2 ) AND 27
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4900
SELECT ( + + col1 ) + col0 + - + col2 * col0 + col0 * ( + col2 + col0 DIV col0 ) AS col0 FROM tab1
----
116
175
229

skipif mysql # not compatible
query I rowsort label-4900
SELECT ( + + col1 ) + col0 + - + col2 * col0 + col0 * ( + col2 + col0 / col0 ) AS col0 FROM tab1
----
116
175
229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - - col0 + - col0 * + col0 + 97 col1 FROM tab2 AS cor0
----
97
97
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 30 + - 28 / - 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT ALL - 97 * CAST( NULL AS SIGNED ) + - + col0 * - col1 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - 97 * CAST ( NULL AS INTEGER ) + - + col0 * - col1 * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT - + SUM( col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4904
SELECT - + SUM ( col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL + 57 * 4 + 40 AS col2 FROM tab1 AS cor0
----
268
268
268

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 AS col1, 12 FROM tab0
----
-10
12
-47
12
-99
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4908
SELECT + MIN( + + col2 ) DIV - + COUNT( DISTINCT - col0 ) + ( 66 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4908
SELECT + MIN ( + + col2 ) / - + COUNT ( DISTINCT - col0 ) + ( 66 ) AS col0 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4909
SELECT * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) * col1 >= - col0 - - + col1
----

skipif mysql # not compatible
query III rowsort label-4909
SELECT * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) * col1 >= - col0 - - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col1 + - - col0 * - - col2 col1 FROM tab0
----
15
786
87
891
97
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT - MIN( col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT - MIN ( col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----
NULL

query II rowsort
SELECT DISTINCT - 59 AS col0, col1 FROM tab1 AS cor0
----
-59
14
-59
47
-59
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4913
SELECT ALL + - CAST( + + MIN( DISTINCT - col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL + - CAST ( + + MIN ( DISTINCT - col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
75

query II rowsort
SELECT + + col2, col2 * - 39 FROM tab2 AS cor0
----
23
-897
40
-1560
58
-2262

query I rowsort
SELECT ALL + + col2 * + + col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + ( col0 ) IN ( col0 / ( - 25 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4916
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + ( col0 ) IN ( col0 / ( - 25 ) )
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4918
SELECT + COUNT( + + col0 ) AS col1, 82 FROM tab1
----
3
82

skipif mysql # not compatible
query II rowsort label-4918
SELECT + COUNT ( + + col0 ) AS col1, 82 FROM tab1
----
3
82

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 64 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT - col1 - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT - col1 - + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4922
SELECT ALL COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - ( + col2 ) AS col0 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NOT ( NOT ( NULL > col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4925
SELECT + 95 DIV + SUM( - col2 ) - ( - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4925
SELECT + 95 / + SUM ( - col2 ) - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 24 FROM tab0 AS cor0 WHERE NOT + 9 IS NULL
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT DISTINCT + 2 + MIN( ALL 43 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT + 2 + MIN ( ALL 43 ) FROM tab1 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( ( - 84 IS NULL ) )
----

query I rowsort
SELECT ALL - + 25 * - + ( - - ( + 59 ) ) - + + ( col0 ) + - - col1 + + 82 FROM tab2 AS cor0
----
1549
1562
1570

query II rowsort
SELECT - - ( - 97 ) AS col2, col0 FROM tab0 AS cor0
----
-97
15
-97
87
-97
97

query I rowsort
SELECT DISTINCT 93 + - col2 - + col0 FROM tab0 AS cor0
----
-103
-4
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - COUNT( * ) * 0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4933
SELECT - COUNT ( * ) * 0 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 94 * + + 97 FROM tab1
----
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT + COUNT( * ) + - 41 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT + COUNT ( * ) + - 41 FROM tab2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT 65 + - CAST( + col0 AS SIGNED ) col0 FROM tab0
----
-22
-32
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4936
SELECT 65 + - CAST ( + col0 AS INTEGER ) col0 FROM tab0
----
-22
-32
50

query III rowsort
SELECT * FROM tab0 WHERE - + 18 + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL - MIN( + - 29 ) col0 FROM tab0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4938
SELECT ALL - MIN ( + - 29 ) col0 FROM tab0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT DISTINCT 42 + - ( col1 ) + 51 + CAST( - 61 AS SIGNED ) - + + ( - - ( + 9 ) ) * 71 AS col1 FROM tab1
----
-612
-621
-654

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT 42 + - ( col1 ) + 51 + CAST ( - 61 AS INTEGER ) - + + ( - - ( + 9 ) ) * 71 AS col1 FROM tab1
----
-612
-621
-654

query I rowsort
SELECT ALL col2 + col0 + + 23 * - col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 78 + - col0 FROM tab2 AS cor0
----
14
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT - SUM( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4942
SELECT - SUM ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT 10 DIV 80 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4943
SELECT 10 / 80 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 89 * + 40 + + + 13 FROM tab2 AS cor0
----
3573

query I rowsort
SELECT DISTINCT + 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
33

query I rowsort
SELECT + col0 - + col1 + + 11 FROM tab0 AS cor0
----
-55
107
77

query I rowsort
SELECT ALL 35 * col2 - + - col2 FROM tab0 AS cor0
----
1692
3564
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4948
SELECT - + col0 * + col1 - + + CAST( NULL AS SIGNED ) + - - ( + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT - + col0 * + col1 - + + CAST ( NULL AS INTEGER ) + - - ( + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4949
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( 60 AS SIGNED ) * col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4949
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( 60 AS INTEGER ) * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4950
SELECT - + 79 * COUNT( * ) AS col0, - MAX( col0 ) col1 FROM tab0 AS cor0
----
-237
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4950
SELECT - + 79 * COUNT ( * ) AS col0, - MAX ( col0 ) col1 FROM tab0 AS cor0
----
-237
-97

query I rowsort
SELECT ALL ( + 88 ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + 27 AS col0 FROM tab2 cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - COUNT( ALL - col2 ) FROM tab0 WHERE NOT NULL > + col2
----
0

skipif mysql # not compatible
query I rowsort label-4953
SELECT - COUNT ( ALL - col2 ) FROM tab0 WHERE NOT NULL > + col2
----
0

query I rowsort
SELECT 82 * 7 FROM tab1
----
574
574
574

query I rowsort
SELECT ALL - col1 * - 20 AS col2 FROM tab1
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT MIN( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4956
SELECT MIN ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT 58 + - 21 AS col2 FROM tab1
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL + - COUNT( - 93 ) + 8 - - COUNT( - col2 ) + + - COUNT( * ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL + - COUNT ( - 93 ) + 8 - - COUNT ( - col2 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT + col0 + 92 + col1 DIV - - 58 AS col2 FROM tab0 AS cor0
----
108
179
189

skipif mysql # not compatible
query I rowsort label-4959
SELECT + col0 + 92 + col1 / - - 58 AS col2 FROM tab0 AS cor0
----
108
179
189

query I rowsort
SELECT ALL - - 95 * col2 * 54 + - + 1 * col1 - col1 FROM tab2 AS cor0
----
117888
205046
297406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE + col0 <> + CAST( NULL AS SIGNED ) + + col2
----

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE + col0 <> + CAST ( NULL AS INTEGER ) + + col2
----

query I rowsort
SELECT DISTINCT + col2 + + 90 FROM tab0 AS cor0
----
100
137
189

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 WHERE col0 IS NULL
----
0

query II rowsort
SELECT DISTINCT col0 + + col1 AS col2, 32 FROM tab1 AS cor0
----
138
32
65
32
90
32

query I rowsort
SELECT ALL 58 + + 93 * - 95 FROM tab1 AS cor0
----
-8777
-8777
-8777

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT DISTINCT - 52 + - - 55 + SUM( + + col2 ) FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-4966
SELECT DISTINCT - 52 + - - 55 + SUM ( + + col2 ) FROM tab1
----
226

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4967
SELECT col1 * 55, - ( - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
1155
NULL
4455
NULL
55
NULL

skipif mysql # not compatible
query II rowsort label-4967
SELECT col1 * 55, - ( - - CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
1155
NULL
4455
NULL
55
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4968
SELECT + 85 DIV COUNT( * ) * - + COUNT( * ) AS col0 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-4968
SELECT + 85 / COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab2
----
-84

query I rowsort
SELECT - 45 - + + ( col0 ) + col2 FROM tab0 AS cor0
----
-122
-13
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT + 8 + SUM( ALL - col1 ) AS col2 FROM tab1 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4970
SELECT + 8 + SUM ( ALL - col1 ) AS col2 FROM tab1 cor0
----
-58

query I rowsort
SELECT 2 * - 30 AS col2 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL + col1 * - col2 * - + 65 * col0 FROM tab1 AS cor0
----
1629875
18904340
4455360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4973
SELECT ALL - 27 * - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - 27 * - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-81

query II rowsort
SELECT col2, - col1 * - col1 FROM tab1 AS cor0
----
59
25
68
2209
96
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + + 15 col1, col1 col1 FROM tab1
----
1020
47
1440
14
885
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4976
SELECT ALL COUNT( ALL 7 ) AS col0, 86 AS col0 FROM tab2
----
3
86

skipif mysql # not compatible
query II rowsort label-4976
SELECT ALL COUNT ( ALL 7 ) AS col0, 86 AS col0 FROM tab2
----
3
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4977
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( + col1 AS SIGNED ) + + CAST( NULL AS SIGNED ) + - col0 * - ( 5 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4977
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( + col1 AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - col0 * - ( 5 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + col0 + + ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4979
SELECT CAST( NULL AS DECIMAL ) / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT CAST ( NULL AS REAL ) / - COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col0 FROM tab1
----
-84

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab1 AS cor0 WHERE 2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL - MIN( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL - MIN ( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT - - col1 + + 47 FROM tab1 cor0
----
52
61
94

query I rowsort
SELECT DISTINCT - 33 * - col0 + 98 FROM tab2 AS cor0
----
1616
2210
2573

onlyif mysql # aggregate syntax: 
query II rowsort label-4988
SELECT ALL + COUNT( * ), + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-4988
SELECT ALL + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

query I rowsort
SELECT - + 22 + - col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + 96 AS col0 FROM tab0 cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL + 87 + SUM( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL + 87 + SUM ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
153

query I rowsort
SELECT - 8 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4993
SELECT - COUNT( * ) DIV + 82 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT - COUNT ( * ) / + 82 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT - COUNT( * ) AS col1, + ( + - SUM( col1 ) ) AS col0 FROM tab1 AS cor0
----
-3
-66

skipif mysql # not compatible
query II rowsort label-4994
SELECT - COUNT ( * ) AS col1, + ( + - SUM ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-3
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT DISTINCT ( + MAX( ALL - - 44 ) ) AS col1 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT ( + MAX ( ALL - - 44 ) ) AS col1 FROM tab1 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT - col1 + + col0 + 69 * + 23 * + + 98 + col1 FROM tab1 AS cor0
----
155577
155611
155617

query I rowsort
SELECT 24 + 46 FROM tab1
----
70
70
70

query I rowsort
SELECT - 61 + - 97 AS col1 FROM tab0
----
-158
-158
-158

query I rowsort
SELECT DISTINCT ( - + col0 ) + col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT DISTINCT 0 DIV col2 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT 0 / col2 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + - col1 * - 79 FROM tab2 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT + + col1 AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 col1, + ( - col2 ) FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT DISTINCT + 47 FROM tab0 AS cor0 WHERE NOT NULL < 59
----

query I rowsort
SELECT 98 * + - 44 - 44 FROM tab2 AS cor0
----
-4356
-4356
-4356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT - - CAST( + COUNT( + + col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5007
SELECT - - CAST ( + COUNT ( + + col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col0 * + - 48 FROM tab2 cor0
----
2208
3072
3600

query I rowsort
SELECT - + 15 - 79 * col2 * 60 AS col0 FROM tab2 AS cor0
----
-109035
-189615
-274935

query I rowsort
SELECT + - 91 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT - 79 - - 27 + - 65 AS col2 FROM tab1 AS cor0
----
-117
-117
-117

query I rowsort
SELECT DISTINCT - col1 * col1 * + 75 AS col1 FROM tab2
----
-195075
-336675
-444675

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 * - col1 ) IN ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + + col2 col2 FROM tab2 WHERE col1 * + ( + + col2 ) * + 85 / - + col1 BETWEEN col0 AND col2 / col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5015
SELECT - CAST( - - 70 AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT - CAST ( - - 70 AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 46 * + col2 AS col0 FROM tab2 AS cor0
----
1058
1840
2668

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 + col0 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5018
SELECT ALL + + CAST( NULL AS DECIMAL ) * + col2 AS col1, + col2 + - 15 col0 FROM tab0 AS cor0
----
NULL
-5
NULL
32
NULL
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5018
SELECT ALL + + CAST ( NULL AS REAL ) * + col2 AS col1, + col2 + - 15 col0 FROM tab0 AS cor0
----
NULL
-5
NULL
32
NULL
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5019
SELECT ALL + 20 DIV SUM( ALL col0 ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL + 20 / SUM ( ALL col0 ) AS col0 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - col2 + col0
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT + col1 * - - 82 AS col1 FROM tab1
----
1148
3854
410

onlyif mysql # DIV for integer division: 
query I rowsort label-5023
SELECT 64 DIV + 24 col1 FROM tab1
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5023
SELECT 64 / + 24 col1 FROM tab1
----
2
2
2

query I rowsort
SELECT ALL ( - + 12 ) FROM tab1
----
-12
-12
-12

query II rowsort
SELECT ALL + col2, - col0 AS col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT DISTINCT - + col2 * + 27 + + + col0 + - - col1 FROM tab0 AS cor0
----
-1173
-162
-2575

query I rowsort
SELECT ALL 40 AS col2 FROM tab2 AS cor0 WHERE NOT - 63 IS NULL
----
40
40
40

query I rowsort
SELECT col2 + - - col0 FROM tab1
----
144
147
159

query I rowsort
SELECT 53 * + + col2 + - col0 AS col2 FROM tab0
----
2476
443
5150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + + ( 11 ) col1 FROM tab0
----
108
26
98

query I rowsort
SELECT + 27 + ( 48 ) FROM tab0 AS cor0
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( + + 62 * - + col1 ) <= NULL )
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - 64 )
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE ( NOT + + col2 IS NULL )
----
-51
-85
-91

query I rowsort
SELECT ALL col0 * + col0 + + 74 FROM tab1 AS cor0
----
2675
7299
8355

query I rowsort
SELECT ALL + col1 + - 96 FROM tab0 AS cor0 WHERE + 94 - + + 64 + col0 * - + 25 IS NOT NULL
----
-15
-75
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5037
SELECT ALL - CAST( - - col1 AS SIGNED ) + + 56 AS col1 FROM tab1 cor0
----
42
51
9

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL - CAST ( - - col1 AS INTEGER ) + + 56 AS col1 FROM tab1 cor0
----
42
51
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, - 61 col1 FROM tab0
----
1
-61
21
-61
81
-61

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IS NOT NULL OR NOT 23 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT ALL + MIN( col1 ) FROM tab1 WHERE - 54 IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + MIN ( col1 ) FROM tab1 WHERE - 54 IS NOT NULL
----
5

query I rowsort
SELECT ALL - 7 + - 33 FROM tab2
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT ALL SUM( ALL + - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL SUM ( ALL + - col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT + ( + col1 ) - - 96 AS col0 FROM tab1 WHERE NULL IS NULL
----
101
110
143

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE - ( - - col1 ) - 11 * + + col1 <> ( - 13 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT - COUNT( * ) * + - MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT - COUNT ( * ) * + - MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
69

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 22 * + 51 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT ALL + + COUNT( * ) * - ( 9 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-81

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL + + COUNT ( * ) * - ( 9 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5048
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT COUNT( * ) * - COUNT( ALL - col0 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5049
SELECT COUNT ( * ) * - COUNT ( ALL - col0 ) FROM tab0
----
-9

query I rowsort
SELECT ALL ( col0 ) * + col0 AS col2 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT ALL col1 * + + col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT ALL 14 DIV + - 69 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL 14 / + - 69 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5053
SELECT DISTINCT + + 75 DIV col0 AS col1, 68 FROM tab1 AS cor0
----
0
68
1
68

skipif mysql # not compatible
query II rowsort label-5053
SELECT DISTINCT + + 75 / col0 AS col1, 68 FROM tab1 AS cor0
----
0
68
1
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT + 89 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-5054
SELECT + 89 / + col2 AS col0 FROM tab0 AS cor0
----
0
1
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5055
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1, MIN( + 80 ) FROM tab2 AS cor0
----
NULL
80

skipif mysql # not compatible
query II rowsort label-5055
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1, MIN ( + 80 ) FROM tab2 AS cor0
----
NULL
80

query I rowsort
SELECT - col1 * 33 FROM tab1
----
-1551
-165
-462

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - col0 - - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5058
SELECT DISTINCT + COUNT( * ) DIV + 70 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT + COUNT ( * ) / + 70 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + + col2 + + 86 FROM tab2 WHERE - + col0 IS NULL
----

query I rowsort
SELECT 59 - - - col0 + 83 + 53 AS col0 FROM tab0 WHERE NOT - + col0 = col2
----
108
180
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT 17 + COUNT( * ) + + 79 * - 81 FROM tab1 AS cor0
----
-6379

skipif mysql # not compatible
query I rowsort label-5062
SELECT 17 + COUNT ( * ) + + 79 * - 81 FROM tab1 AS cor0
----
-6379

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 18 >= NULL
----

query I rowsort
SELECT DISTINCT - 88 FROM tab2 WHERE NOT 21 - - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query I rowsort
SELECT + col0 - + - col2 AS col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT ( - col1 ) + + 10 FROM tab2 AS cor0
----
-41
-57
-67

query II rowsort
SELECT - 90 + 68 * 23, + col2 FROM tab0 AS cor0
----
1474
10
1474
47
1474
99

query I rowsort
SELECT ALL - 35 + - - 77 AS col0 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT col1 + 46 FROM tab1
----
51
60
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5071
SELECT ALL 96 DIV + 7 - + 71 + - col0 FROM tab0
----
-145
-155
-73

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL 96 / + 7 - + 71 + - col0 FROM tab0
----
-145
-155
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col0 ) + + 12 col2 FROM tab2
----
58
76
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT ALL MIN( 24 ) AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL MIN ( 24 ) AS col0 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL COUNT( * ) * - + MAX( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL COUNT ( * ) * - + MAX ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT - COUNT( * ) * - 66 + 81 AS col0 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-5076
SELECT - COUNT ( * ) * - 66 + 81 AS col0 FROM tab2 AS cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL + COUNT( ( 43 ) ) * - MIN( + ( + 36 ) ) FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL + COUNT ( ( 43 ) ) * - MIN ( + ( + 36 ) ) FROM tab0 AS cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL + SUM( - 79 ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL + SUM ( - 79 ) FROM tab1
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5079
SELECT ALL + CAST( - + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 13 + 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5081
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5081
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - ( 91 ) ) col1 FROM tab0 cor0
----
91
91
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN col0 AND + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5084
SELECT DISTINCT - col2 DIV - - 85 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT - col2 / - - 85 FROM tab2 cor0
----
0

query II rowsort
SELECT ALL + 0 AS col1, - 69 * col2 AS col0 FROM tab1 AS cor0
----
0
-4071
0
-4692
0
-6624

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 <= - 30
----
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5087
SELECT ALL * FROM tab0 WHERE NOT ( 47 * + CAST( NULL AS SIGNED ) * - ( - col2 ) ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5087
SELECT ALL * FROM tab0 WHERE NOT ( 47 * + CAST ( NULL AS INTEGER ) * - ( - col2 ) ) = ( NULL )
----

query I rowsort
SELECT ALL - 47 + - + col1 AS col0 FROM tab0 WHERE NOT + + 13 * - - col0 IS NULL
----
-128
-48
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-5089
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) col0 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5089
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) col0 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT DISTINCT + MAX( - - 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT + MAX ( - - 83 ) FROM tab2
----
83

query I rowsort
SELECT DISTINCT 60 * + + col0 FROM tab1
----
3060
5100
5460

query I rowsort
SELECT col2 * - 36 FROM tab0
----
-1692
-3564
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-5093
SELECT - 99 DIV + + 82 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5093
SELECT - 99 / + + 82 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT + 47 DIV - + 27 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5094
SELECT + 47 / - + 27 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT + col1 DIV + 40 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5095
SELECT + col1 / + 40 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5096
SELECT - 97 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
-97
3

skipif mysql # not compatible
query II rowsort label-5096
SELECT - 97 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
-97
3

query I rowsort
SELECT + ( - + ( + col1 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT ALL col0 * + col1 + - col2 + col2 DIV - col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
355
4208
612

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL col0 * + col1 + - col2 + col2 / - col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
355
4208
612

query II rowsort
SELECT - col0 + - 39, col1 * + + col1 AS col2 FROM tab2
----
-103
5929
-114
4489
-85
2601

onlyif mysql # DIV for integer division: 
query I rowsort label-5101
SELECT DISTINCT col0 DIV - 90 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT col0 / - 90 FROM tab0
----
-1
0

query I rowsort
SELECT + - col2 AS col1 FROM tab1 WHERE ( NOT - 71 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL - COUNT( DISTINCT + col1 ) FROM tab1 WHERE NOT NULL < col0 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL - COUNT ( DISTINCT + col1 ) FROM tab1 WHERE NOT NULL < col0 + + col1
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 27 / - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col1 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5107
SELECT ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT col2 - + 36 AS col2 FROM tab2
----
-13
22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT - MAX( 13 ) AS col0 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-5109
SELECT - MAX ( 13 ) AS col0 FROM tab2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5110
SELECT + 85 * ( + COUNT( * ) ) AS col0, 27 col1 FROM tab2
----
255
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5110
SELECT + 85 * ( + COUNT ( * ) ) AS col0, 27 col1 FROM tab2
----
255
27

query I rowsort
SELECT ALL + 19 AS col2 FROM tab2
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT COUNT( 62 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5112
SELECT COUNT ( 62 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT 97 - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT col0 < NULL
----

query II rowsort
SELECT DISTINCT - 16 AS col2, - col2 AS col1 FROM tab2 AS cor0
----
-16
-23
-16
-40
-16
-58

query I rowsort
SELECT ALL 50 * - 39 * col1 AS col2 FROM tab2
----
-130650
-150150
-99450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + 43 col1, col1 AS col1 FROM tab1
----
2537
5
2924
47
4128
14

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 + + 80 col2 FROM tab2 AS cor0
----
-1093
-3000
-3806

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 31 AND - 23
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT - + ( - SUM( DISTINCT ( + - 92 ) ) ) AS col1 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5121
SELECT - + ( - SUM ( DISTINCT ( + - 92 ) ) ) AS col1 FROM tab0 AS cor0
----
-92

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 * - - 6 * - col2 + ( + 85 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5123
SELECT - col2 * - CAST( NULL AS SIGNED ) col2, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5123
SELECT - col2 * - CAST ( NULL AS INTEGER ) col2, col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT + COUNT( * ) * - 63 AS col2 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-5124
SELECT + COUNT ( * ) * - 63 AS col2 FROM tab1 AS cor0
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5125
SELECT CAST( NULL AS SIGNED ), + 2 DIV - SUM( ALL - + 44 ) AS col0 FROM tab1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5125
SELECT CAST ( NULL AS INTEGER ), + 2 / - SUM ( ALL - + 44 ) AS col0 FROM tab1
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5126
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5126
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + + ( + 18 ) AS col1 FROM tab0
----
1566
1746
270

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL 22 * - + COUNT( * ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL 22 * - + COUNT ( * ) AS col2 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 87 + + - 55 IS NULL
----

query I rowsort
SELECT ALL 15 * col1 + + col1 AS col0 FROM tab0 cor0
----
1296
16
336

query I rowsort
SELECT ALL + ( + 8 ) + + + 43 - + col0 FROM tab1
----
-34
-40
0

query I rowsort
SELECT ALL - - 69 + - col2 FROM tab0 AS cor0
----
-30
22
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * - col1 + + col2 + col1 col0 FROM tab2 AS cor0
----
-3649
-4766
-5504

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 27 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col0 + col0 - col0 AS col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + - 95 * col1 AS col2 FROM tab1 WHERE NOT col2 BETWEEN ( + + col1 ) AND - 45
----
-1234
-416
-4397

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL ( - COUNT( ALL - - col0 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL ( - COUNT ( ALL - - col0 ) ) FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 >= - - 81
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5140
SELECT - 20 * 97 * - col1 FROM tab0 WHERE NOT col1 + - + col0 NOT BETWEEN + - 39 * - + CAST( NULL AS DECIMAL ) AND - col1 * col2
----

skipif mysql # not compatible
query I rowsort label-5140
SELECT - 20 * 97 * - col1 FROM tab0 WHERE NOT col1 + - + col0 NOT BETWEEN + - 39 * - + CAST ( NULL AS REAL ) AND - col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT MAX( DISTINCT 69 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-5141
SELECT MAX ( DISTINCT 69 ) FROM tab2
----
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + 28 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 33 / col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5144
SELECT + MAX( + - 78 ) AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-5144
SELECT + MAX ( + - 78 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-78
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) > NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IN ( 5 )
----

query I rowsort
SELECT ALL col2 + 7 FROM tab2 AS cor0
----
30
47
65

query II rowsort
SELECT DISTINCT - col0, - col2 AS col0 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 23
----

query I rowsort
SELECT DISTINCT - 57 + + col0 + + col1 + - col2 FROM tab0 AS cor0
----
-58
-8
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL COUNT( * ) + + + MIN( ALL col1 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL COUNT ( * ) + + + MIN ( ALL col1 ) FROM tab0
----
4

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * + 70 col0, col0 * col1 - col0 AS col0 FROM tab1
----
3290
4186
350
340
980
663

onlyif mysql # DIV for integer division: 
query I rowsort label-5154
SELECT 76 DIV - 66 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5154
SELECT 76 / - 66 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5155
SELECT - 19 * 26 AS col1, + COUNT( * ) AS col0 FROM tab0
----
-494
3

skipif mysql # not compatible
query II rowsort label-5155
SELECT - 19 * 26 AS col1, + COUNT ( * ) AS col0 FROM tab0
----
-494
3

query I rowsort
SELECT + col0 * + col2 * + col2 - + col2 FROM tab1 AS cor0
----
295826
420716
469920

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL COUNT( * ) + + COUNT( col2 ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL COUNT ( * ) + + COUNT ( col2 ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT DISTINCT + col0 + - 98 * col0 DIV + 86 AS col2 FROM tab0 cor0
----
-12
-13
-2

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT + col0 + - 98 * col0 / + 86 AS col2 FROM tab0 cor0
----
-12
-13
-2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - - 19 ) + 28 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT - MIN( + 29 ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT - MIN ( + 29 ) FROM tab2 AS cor0
----
-29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= col2
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT col1 >= - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL + + ( - MAX( col0 ) ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL + + ( - MAX ( col0 ) ) FROM tab1 cor0
----
-91

query II rowsort
SELECT - col1 AS col1, col2 * + ( - 90 ) AS col1 FROM tab0
----
-1
-8910
-21
-900
-81
-4230

onlyif mysql # aggregate syntax: 
query II rowsort label-5165
SELECT ALL 44 AS col0, COUNT( * ) col0 FROM tab2
----
44
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5165
SELECT ALL 44 AS col0, COUNT ( * ) col0 FROM tab2
----
44
3

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0, ( + + col2 ) FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 26 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 78 AS col0, 13 FROM tab1
----
-78
13
-78
13
-78
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5170
SELECT 37 AS col0, COUNT( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
37
3

skipif mysql # not compatible
query II rowsort label-5170
SELECT 37 AS col0, COUNT ( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
37
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT ALL COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL MIN( ALL + 56 ) col2 FROM tab2
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5172
SELECT ALL MIN ( ALL + 56 ) col2 FROM tab2
----
56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - - 90 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT + ( MIN( ALL - col2 ) ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5174
SELECT + ( MIN ( ALL - col2 ) ) FROM tab2 cor0
----
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 63 BETWEEN + - col0 AND - + ( - col2 ) * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col2 * + ( + - col0 ) + - - col2 + - + col1, col0 FROM tab0 AS cor0
----
-739
15
-881
87
-9505
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT ( CAST( - - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5177
SELECT ( CAST ( - - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = - col0 * 71 / - 50 * - col1 * 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT ALL + COUNT( * ) + - MIN( DISTINCT - ( + ( ( + col0 ) ) ) ) AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL + COUNT ( * ) + - MIN ( DISTINCT - ( + ( ( + col0 ) ) ) ) AS col1 FROM tab2 AS cor0
----
78

query I rowsort
SELECT DISTINCT + 90 + - - 24 FROM tab2 AS cor0
----
114

query II rowsort
SELECT DISTINCT + col0 + + 56 AS col1, col1 FROM tab1 AS cor0
----
107
14
141
5
147
47

query I rowsort
SELECT DISTINCT - 5 * + col1 + + col1 FROM tab0
----
-324
-4
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + 45 * - + 51 col1 FROM tab2
----
2341
2359
2370

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + + col2 ) FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + - + col1 AS col1 FROM tab1
----
21
54
82

query I rowsort
SELECT ALL + 70 + + + ( 9 ) FROM tab0 AS cor0 WHERE NOT - col0 + + 37 IS NULL
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT - CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE + col1 + + - col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-5189
SELECT - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE + col1 + + - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT SUM( DISTINCT - col1 ) AS col2 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5190
SELECT SUM ( DISTINCT - col1 ) AS col2 FROM tab1 cor0
----
-66

query I rowsort
SELECT + col1 * + + col1 * + 39 FROM tab0 AS cor0
----
17199
255879
39

query II rowsort
SELECT 60 * - col2, + col2 AS col1 FROM tab0
----
-2820
47
-5940
99
-600
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5193
SELECT + CAST( col0 AS DECIMAL ) * - 51 * 82 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 + + ( 51 )
----

skipif mysql # not compatible
query I rowsort label-5193
SELECT + CAST ( col0 AS REAL ) * - 51 * 82 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 + + ( 51 )
----

query I rowsort
SELECT ALL - 46 * - + col1 * - col0 * + ( + col0 ) FROM tab2 AS cor0
----
-14508032
-17336250
-4964136

query I rowsort
SELECT + ( - col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + - col0 / - col0 + - ( 1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5196
SELECT - CAST( NULL AS DECIMAL ) * - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT - CAST ( NULL AS REAL ) * - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5197
SELECT - 82 DIV + + COUNT( * ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5197
SELECT - 82 / + + COUNT ( * ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT + ( col2 ) * - 88 FROM tab0 AS cor0
----
-4136
-8712
-880

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 74 NOT BETWEEN col1 * - - 82 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5200
SELECT 39 DIV - 69 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5200
SELECT 39 / - 69 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT + col2 DIV + + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5202
SELECT + col2 / + + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 * - + 74 AS col0 FROM tab2
----
-3774
-4958
-5698

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + - col1 * + col0 + col2 + col0 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 88 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - 11 IS NOT NULL
----

query I rowsort
SELECT ALL 41 * col2 AS col0 FROM tab1
----
2419
2788
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT 51 + + MAX( ALL - + ( - 80 ) ) AS col0 FROM tab0
----
131

skipif mysql # not compatible
query I rowsort label-5208
SELECT 51 + + MAX ( ALL - + ( - 80 ) ) AS col0 FROM tab0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL 8 * + COUNT( col2 ) AS col2 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL 8 * + COUNT ( col2 ) AS col2 FROM tab1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5210
SELECT * FROM tab1 cor0 WHERE 53 * + CAST( - col0 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5210
SELECT * FROM tab1 cor0 WHERE 53 * + CAST ( - col0 AS INTEGER ) <> NULL
----

query I rowsort
SELECT - col0 + - 30 + col0 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT ALL + AVG ( ALL 54 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT + MIN( + col1 ) + + + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5213
SELECT + MIN ( + col1 ) + + + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL - col0 + - - col2 AS col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL - 33 + - 1 * + COUNT( * ) AS col1 FROM tab0 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL - 33 + - 1 * + COUNT ( * ) AS col1 FROM tab0 cor0
----
-36

query I rowsort
SELECT DISTINCT + + ( col1 ) + + col1 * - + col2 * - col0 AS col1 FROM tab2 AS cor0
----
197197
291517
54009

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 76 + 64 FROM tab1
----
-12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > + - 44 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + + 33 ) - + 39 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5221
SELECT ALL MAX( col0 ) - - + AVG ( - - ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL MAX ( col0 ) - - + AVG ( - - ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT COUNT( * ) + + - COUNT( * ) + + - 41 AS col2 FROM tab2 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-5222
SELECT COUNT ( * ) + + - COUNT ( * ) + + - 41 AS col2 FROM tab2 cor0
----
-41

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE 99 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col0 * 15 AS col1 FROM tab1 AS cor0
----
-1275
-1365
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - + 59 * COUNT( * ) FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-5225
SELECT - + 59 * COUNT ( * ) FROM tab0 AS cor0
----
-177

query I rowsort
SELECT col1 + + col2 AS col0 FROM tab0 WHERE NOT NULL >= - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT ALL ( + SUM( + 90 ) ) * + COUNT( * ) AS col1 FROM tab0
----
810

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL ( + SUM ( + 90 ) ) * + COUNT ( * ) AS col1 FROM tab0
----
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5228
SELECT COUNT( * ) + COUNT( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT COUNT ( * ) + COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - col1 col1 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5230
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1, - col0 AS col0 FROM tab2 cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-5230
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1, - col0 AS col0 FROM tab2 cor0
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT DISTINCT - AVG ( - 30 ) AS col1 FROM tab0 AS cor0 WHERE ( + 38 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - MIN( DISTINCT + col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5232
SELECT - MIN ( DISTINCT + col0 ) AS col2 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT CAST( - - ( + - col2 ) AS SIGNED ) * - - 67 AS col1 FROM tab0
----
-3149
-6633
-670

skipif mysql # not compatible
query I rowsort label-5233
SELECT CAST ( - - ( + - col2 ) AS INTEGER ) * - - 67 AS col1 FROM tab0
----
-3149
-6633
-670

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT col1 < + col2 - + - 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + - 81 FROM tab2 cor0
----
-17
-35
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT - - CAST( - + col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5236
SELECT - - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 9 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col1 * + 66 - + col1 + - - col2 + + - col2 AS col0, + col1 + + col2 FROM tab2 AS cor0
----
3315
74
4355
125
5005
117

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5240
SELECT SUM( 80 ) * + 51 + 94 + + - 54 * - SUM( - col2 ) - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT SUM ( 80 ) * + 51 + 94 + + - 54 * - SUM ( - col2 ) - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE + 56 * col2 IS NULL
----

query II rowsort
SELECT + - col2 * - 0 + + 69, + ( col0 ) FROM tab0 cor0
----
69
15
69
87
69
97

query II rowsort
SELECT DISTINCT col2 + - ( - 16 ), col0 AS col2 FROM tab1 AS cor0
----
112
51
75
85
84
91

query I rowsort
SELECT - 72 * - ( + + 32 ) * + 91 + 80 + - + col1 + - col1 - 51 + - + 90 * - 80 FROM tab2 AS cor0
----
216739
216759
216791

query I rowsort
SELECT - 56 + col2 AS col1 FROM tab1 AS cor0
----
12
3
40

query I rowsort
SELECT DISTINCT - - 25 + col1 AS col0 FROM tab1 AS cor0
----
30
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL - 41 + COUNT( * ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - 41 + COUNT ( * ) FROM tab0 AS cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 74 + 34 col2 FROM tab1
----
-26
-35
7

query II rowsort
SELECT col2 * - + col1 AS col2, - col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
-1173
-23
-3080
-40
-3886
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5250
SELECT ALL - 58 DIV 20 col2, col1 * + col2 + + CAST( NULL AS SIGNED ) + + 83 AS col2 FROM tab2
----
-2
NULL
-2
NULL
-2
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5250
SELECT ALL - 58 / 20 col2, col1 * + col2 + + CAST ( NULL AS INTEGER ) + + 83 AS col2 FROM tab2
----
-2
NULL
-2
NULL
-2
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT ALL CAST( NULL AS SIGNED ) / + 14 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL CAST ( NULL AS INTEGER ) / + 14 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT + + CAST( - + col2 AS SIGNED ) col0 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5252
SELECT + + CAST ( - + col2 AS INTEGER ) col0 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT - + MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT - + MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 * ( + 93 ) <> 52 - 74
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 0 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT ALL + COUNT( - col0 ) AS col2, COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
6

skipif mysql # not compatible
query II rowsort label-5256
SELECT ALL + COUNT ( - col0 ) AS col2, COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
6

query I rowsort
SELECT + - 78 AS col2 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT - ( - 66 ) AS col0 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab1 cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col2 * - 57 * + + col1 AS col2 FROM tab2 AS cor0
----
-175560
-221502
-66861

onlyif mysql # aggregate syntax: 
query II rowsort label-5263
SELECT ALL 85, + 76 * - COUNT( * ) AS col2 FROM tab2
----
85
-228

skipif mysql # not compatible
query II rowsort label-5263
SELECT ALL 85, + 76 * - COUNT ( * ) AS col2 FROM tab2
----
85
-228

query II rowsort
SELECT ALL 96 AS col2, col2 AS col1 FROM tab1
----
96
59
96
68
96
96

query I rowsort
SELECT 72 * + + 23 FROM tab2
----
1656
1656
1656

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN + + col2 AND + col2 * - - 65 + - col1
----
51
14
96

query I rowsort
SELECT ALL + 95 AS col2 FROM tab2
----
95
95
95

query I rowsort
SELECT DISTINCT + col2 + - - 86 FROM tab2 AS cor0
----
109
126
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 52 col0 FROM tab2 AS cor0
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5270
SELECT DISTINCT + + col0 * - col2 * - + ( col1 ) + CAST( CAST( + ( - - col0 ) AS SIGNED ) AS SIGNED ) + 33 * - + 6 + ( - + col1 ) + col2 AS col1 FROM tab1 AS cor0
----
25016
290750
68479

skipif mysql # not compatible
query I rowsort label-5270
SELECT DISTINCT + + col0 * - col2 * - + ( col1 ) + CAST ( CAST ( + ( - - col0 ) AS INTEGER ) AS INTEGER ) + 33 * - + 6 + ( - + col1 ) + col2 AS col1 FROM tab1 AS cor0
----
25016
290750
68479

query I rowsort
SELECT ALL col0 + - - 1 AS col0 FROM tab1 AS cor0
----
52
86
92

query II rowsort
SELECT ALL + + 79 AS col1, 54 FROM tab0 AS cor0
----
79
54
79
54
79
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5273
SELECT ALL + col2 DIV + col0 + + 53 AS col1 FROM tab2
----
53
53
53

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL + col2 / + col0 + + 53 AS col1 FROM tab2
----
53
53
53

query I rowsort
SELECT ALL - 98 * + 14 - col2 * col1 AS col1 FROM tab1
----
-1667
-2716
-4568

query III rowsort
SELECT * FROM tab0 WHERE NOT 90 BETWEEN col1 + 39 AND NULL
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ( - COUNT( * ) ) * - 54 AS col2 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-5276
SELECT ( - COUNT ( * ) ) * - 54 AS col2 FROM tab2
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * + col2 col2 FROM tab0
----
1316
2772
280

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE ( NULL ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( NULL ) = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT DISTINCT + COUNT( * ) * + SUM( ALL - col2 ) - - SUM( DISTINCT + 16 ) AS col1 FROM tab2
----
-347

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT + COUNT ( * ) * + SUM ( ALL - col2 ) - - SUM ( DISTINCT + 16 ) AS col1 FROM tab2
----
-347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5280
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 68 * col1 + - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE + 66 IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NOT + 18 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * 58 - col1 AS col0 FROM tab0
----
-1239
-4779
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT DISTINCT - 93 AS col2 FROM tab1 WHERE NOT + CAST( col2 AS SIGNED ) > ( col2 )
----
-93

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT - 93 AS col2 FROM tab1 WHERE NOT + CAST ( col2 AS INTEGER ) > ( col2 )
----
-93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 50 * + col0 AS col0 FROM tab0 WHERE NOT 8 * col2 + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 50 * + col0 AS col0 FROM tab0 WHERE NOT 8 * col2 + col0 IS NULL
----
NULL

query I rowsort
SELECT col1 + + 64 * col1 FROM tab0 WHERE ( + 96 ) - col0 <> ( col2 )
----
1365
5265
65

query I rowsort
SELECT ALL col2 * + 10 AS col2 FROM tab2
----
230
400
580

query I rowsort
SELECT DISTINCT - 89 * - ( 76 ) FROM tab2
----
6764

query I rowsort
SELECT 81 - - 59 FROM tab1
----
140
140
140

query III rowsort
SELECT * FROM tab2 WHERE NOT - 44 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ( + col1 ) * - 29 - 82 FROM tab0
----
-111
-2431
-691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5294
SELECT MIN( ALL col1 ) DIV - 17 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5294
SELECT MIN ( ALL col1 ) / - 17 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5295
SELECT - 4 DIV 43 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5295
SELECT - 4 / 43 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5296
SELECT + COUNT( * ) DIV MAX( + 85 * col1 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5296
SELECT + COUNT ( * ) / MAX ( + 85 * col1 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT 36 + - col1 AS col1 FROM tab0
----
-45
15
35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * + col2 + - 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + - 18 FROM tab1
----
41
50
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5300
SELECT 42 DIV ( 32 * - 86 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5300
SELECT 42 / ( 32 * - 86 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 76 + 22 AS col0 FROM tab1
----
98

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL NOT BETWEEN ( col2 * 53 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5303
SELECT ALL CAST( NULL AS DECIMAL ) + - SUM( col2 ) * - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL CAST ( NULL AS REAL ) + - SUM ( col2 ) * - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5304
SELECT * FROM tab1 WHERE NOT - CAST( + ( + col0 ) AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5304
SELECT * FROM tab1 WHERE NOT - CAST ( + ( + col0 ) AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5305
SELECT 85 DIV + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5305
SELECT 85 / + col1 FROM tab2
----
1
1
1

query I rowsort
SELECT col2 / col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) BETWEEN col1 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT MAX( DISTINCT - col2 ) * - 12 FROM tab2 cor0
----
276

skipif mysql # not compatible
query I rowsort label-5308
SELECT MAX ( DISTINCT - col2 ) * - 12 FROM tab2 cor0
----
276

query I rowsort
SELECT ALL ( - 49 ) AS col2 FROM tab1 AS cor0 WHERE NOT 70 - + col2 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT MIN( DISTINCT 33 ) col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN - 99 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5310
SELECT DISTINCT MIN ( DISTINCT 33 ) col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN - 99 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT ALL + 70 DIV 84 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL + 70 / 84 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-4
-4
-4

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 41 ) IS NULL
----

query I rowsort
SELECT col0 * - 33 AS col0 FROM tab1
----
-1683
-2805
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT - CAST( NULL AS SIGNED ) * col2 + col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-5315
SELECT - CAST ( NULL AS INTEGER ) * col2 + col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 25 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 73 * + col2 = ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT MAX( ALL + 96 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5319
SELECT MAX ( ALL + 96 ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT + CAST( col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL <> - col2 + + 68
----

skipif mysql # not compatible
query I rowsort label-5320
SELECT + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL <> - col2 + + 68
----

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 AND col0 * col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <= ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5323
SELECT - CAST( col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - col1 < + col0 + - 21
----

skipif mysql # not compatible
query I rowsort label-5323
SELECT - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col1 < + col0 + - 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT ( CAST( col2 AS SIGNED ) ) * - 74 col0 FROM tab1
----
-4366
-5032
-7104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5324
SELECT ( CAST ( col2 AS INTEGER ) ) * - 74 col0 FROM tab1
----
-4366
-5032
-7104

query I rowsort
SELECT + col2 * 39 AS col1 FROM tab2 WHERE NOT - col0 + col2 * col2 IS NOT NULL
----

query I rowsort
SELECT 11 * - - col1 * + 76 FROM tab1
----
11704
39292
4180

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN NULL AND NULL OR NULL <= - col0 + - col2
----

query I rowsort
SELECT 90 * - col2 AS col0 FROM tab2
----
-2070
-3600
-5220

query I rowsort
SELECT col2 + + ( col1 ) AS col2 FROM tab0
----
100
128
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col2 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 * - 65 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL 89 + col1 FROM tab0 cor0
----
110
170
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 + + ( 71 ) col2 FROM tab1 AS cor0
----
127
127
127

query I rowsort
SELECT DISTINCT - - col1 + + - 37 * + col1 FROM tab2 AS cor0
----
-1836
-2412
-2772

query I rowsort
SELECT DISTINCT + 55 + - - col2 FROM tab0 AS cor0
----
102
154
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5337
SELECT DISTINCT COUNT( * ) + - + MAX( DISTINCT - CAST( - col2 AS SIGNED ) ) col2 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5337
SELECT DISTINCT COUNT ( * ) + - + MAX ( DISTINCT - CAST ( - col2 AS INTEGER ) ) col2 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL 45 + + col0 + + ( 75 ) * 77 AS col0 FROM tab1 AS cor0
----
5871
5905
5911

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN 55 AND ( NULL )
----
15
81
47

query I rowsort
SELECT DISTINCT + 82 * - col0 * - 13 - + col1 FROM tab0
----
103401
15909
92721

query I rowsort
SELECT + 7 * - - 42 FROM tab0, tab2 AS cor0
----
9 values hashing to 410d0e7544c6b578053333349ab42a03

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE ( - + col1 ) NOT IN ( + col1 / 17 )
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5343
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) - - - ( col2 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) - - - ( col2 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col0 - + ( - col1 ) + + col0 FROM tab2 AS cor0
----
143
205
217

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( + col1 )
----

query II rowsort
SELECT DISTINCT + col0, - 23 FROM tab0 cor0
----
15
-23
87
-23
97
-23

query I rowsort
SELECT 83 + - ( - 59 ) AS col0 FROM tab0 AS cor0
----
142
142
142

query I rowsort
SELECT - + col0 + col2 + 23 AS col1 FROM tab0 AS cor0
----
-54
25
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5349
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 - col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 * col1 AND ( col0 + col2 )
----

query I rowsort
SELECT DISTINCT + col0 + + + col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT DISTINCT - 87 + MIN( DISTINCT + 55 ) * - 9 AS col0 FROM tab2 cor0
----
-582

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT - 87 + MIN ( DISTINCT + 55 ) * - 9 AS col0 FROM tab2 cor0
----
-582

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND 2 * + col1
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - 87 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5355
SELECT COUNT( * ) + - + ( - + 75 ) + - CAST( NULL AS SIGNED ) * - COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5355
SELECT COUNT ( * ) + - + ( - + 75 ) + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5356
SELECT ALL - - 79 - + col2 + - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL - - 79 - + col2 + - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) > - 98
----

query II rowsort
SELECT DISTINCT col0 + + + col1 AS col1, + col0 AS col2 FROM tab1
----
138
91
65
51
90
85

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( - 47 * col1 * col2 + - col1 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( - + col1 ) AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL - - col0 - col2 FROM tab0 WHERE NULL IS NULL
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5362
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( - 61 ) * 41 + 47 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT DISTINCT - COUNT( * ) * + 52 * + COUNT( * ) + - 88 AS col2 FROM tab1 AS cor0
----
-556

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT - COUNT ( * ) * + 52 * + COUNT ( * ) + - 88 AS col2 FROM tab1 AS cor0
----
-556

query I rowsort
SELECT DISTINCT 40 * col2 FROM tab2 cor0 WHERE NOT ( + col1 ) <> NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( 9 )
----

query I rowsort
SELECT ALL + + col0 * col1 + - + col1 FROM tab1 AS cor0
----
420
4230
700

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - col2 ) AND ( 47 + col2 )
----

query II rowsort
SELECT ALL - - 29 * + - col0, col0 AS col1 FROM tab2 cor0
----
-1334
46
-1856
64
-2175
75

query I rowsort
SELECT col2 FROM tab1 WHERE NOT 30 NOT IN ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL + COUNT( ALL + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + COUNT ( ALL + col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5373
SELECT + CAST( COUNT( ALL 29 ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5373
SELECT + CAST ( COUNT ( ALL 29 ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5374
SELECT DISTINCT - 91 * CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
5369
6188
8736

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT - 91 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
5369
6188
8736

query I rowsort
SELECT ALL col1 * - 43 FROM tab2 AS cor0
----
-2193
-2881
-3311

query I rowsort
SELECT ALL - 81 * col1 + col2 FROM tab1 AS cor0
----
-1038
-346
-3739

query I rowsort
SELECT + 22 * - 46 FROM tab0 AS cor0 WHERE NOT 38 / ( - col0 ) + + - col1 <= + col1 + - col2
----
-1012

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * - ( + 38 ) IN ( + col2 + - 5 )
----

query I rowsort
SELECT ALL - ( + 50 ) + + col1 AS col0 FROM tab0 AS cor0
----
-29
-49
31

query I rowsort
SELECT col1 + - col1 - - col2 AS col1 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT DISTINCT ( + col1 ) * + col1 + - - col0 * - col1 FROM tab0 AS cor0
----
-1386
-96
5346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5382
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 43 <> 91 * - + col1 * - - 59
----
0

skipif mysql # not compatible
query I rowsort label-5382
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 43 <> 91 * - + col1 * - - 59
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 17 NOT BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL + + COUNT( * ) + 4 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
4

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL + + COUNT ( * ) + 4 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
4

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE + + 11 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT DISTINCT - COUNT( * ) + + + 50 AS col2 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT - COUNT ( * ) + + + 50 AS col2 FROM tab0
----
47

query II rowsort
SELECT DISTINCT 42 AS col0, + 53 * + col2 FROM tab2
----
42
1219
42
2120
42
3074

query II rowsort
SELECT + col1, ( + + 89 ) AS col0 FROM tab0
----
1
89
21
89
81
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col2 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT col1 * - col1 AS col0 FROM tab0 AS cor0 WHERE ( + 35 * + 7 * + ( - col1 ) ) IS NULL OR NOT col0 >= 20
----
-6561

query I rowsort
SELECT DISTINCT - + ( + + 45 ) AS col2 FROM tab2 AS cor0 WHERE NOT + 48 IS NOT NULL
----

query II rowsort
SELECT - + 29 + - col0 AS col2, + 87 AS col2 FROM tab2 AS cor0
----
-104
87
-75
87
-93
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5393
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + col0 + - + col2 * + + 26 IN ( + - col1 + CAST( NULL AS SIGNED ) * + col0 )
----

skipif mysql # not compatible
query III rowsort label-5393
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + col0 + - + col2 * + + 26 IN ( + - col1 + CAST ( NULL AS INTEGER ) * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( 80 * + + col2 / - CAST( NULL AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( 80 * + + col2 / - CAST ( NULL AS INTEGER ) ) > NULL
----

query I rowsort
SELECT ALL + 32 - - 28 FROM tab2
----
60
60
60

query I rowsort
SELECT DISTINCT + 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT COUNT( + ( col2 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5397
SELECT COUNT ( + ( col2 ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL 41 FROM tab1 cor0
----
41
41
41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 / ( - ( + 46 ) ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 86 * - 59 * - col0 FROM tab2 cor0
----
233404
324736
380550

query I rowsort
SELECT ALL - 39 + + - 49 + + 53 AS col0 FROM tab2 AS cor0
----
-35
-35
-35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( + col1 + col2 - - 94 + col0 * ( + 84 + col1 ) * 34 ) IN ( + col2 + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - + col1 ) * - 94 AS col0 FROM tab2 AS cor0
----
-4794
-6298
-7238

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT ALL - - ( - ( col2 ) ) * + col0 DIV ( - + col0 ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL - - ( - ( col2 ) ) * + col0 / ( - + col0 ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT - 74 = col1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NULL ) NOT IN ( col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT + col1 DIV - 57 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5407
SELECT + col1 / - 57 FROM tab2
----
-1
-1
0

query I rowsort
SELECT + 73 * col2 FROM tab1
----
4307
4964
7008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5409
SELECT ALL + COUNT( * ) * - - 65 * - CAST( + 73 AS SIGNED ) AS col1 FROM tab0
----
-14235

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + COUNT ( * ) * - - 65 * - CAST ( + 73 AS INTEGER ) AS col1 FROM tab0
----
-14235

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - - 29, + 73 )
----

query I rowsort
SELECT - 40 * + + 35 AS col1 FROM tab1
----
-1400
-1400
-1400

onlyif mysql # aggregate syntax: 
query II rowsort label-5412
SELECT - COUNT( * ) AS col2, - COUNT( + + 57 ) FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-5412
SELECT - COUNT ( * ) AS col2, - COUNT ( + + 57 ) FROM tab0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT + COUNT( * ) * - 48 AS col1 FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT + COUNT ( * ) * - 48 AS col1 FROM tab0
----
-144

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - - col2 <> - + 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT + ( - COUNT( * ) ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5415
SELECT + ( - COUNT ( * ) ) col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5417
SELECT ALL + CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5418
SELECT ALL CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT + 85 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-5419
SELECT + 85 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-255

query I rowsort
SELECT ALL + - col0 + + 70 AS col0 FROM tab0 AS cor0
----
-17
-27
55

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 85 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) + - 93 col1 FROM tab1 AS cor0
----
-46
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT DISTINCT + MIN( ALL - 93 ) AS col0 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT + MIN ( ALL - 93 ) AS col0 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT - + 71 FROM tab1 WHERE ( 72 - + col2 + + col1 ) > + col1
----
-71

query II rowsort
SELECT DISTINCT + col0 AS col2, - col2 AS col0 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT + col2 FROM tab0 WHERE - ( + + col1 ) + + + 45 + col0 <> - col0
----
10
47
99

query II rowsort
SELECT DISTINCT + col2, - col1 * - col1 + + col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5428
SELECT * FROM tab1 AS cor0 WHERE 30 * - CAST( NULL AS SIGNED ) IN ( - col2 / - - 18, + col1 + + 53 )
----

skipif mysql # not compatible
query III rowsort label-5428
SELECT * FROM tab1 AS cor0 WHERE 30 * - CAST ( NULL AS INTEGER ) IN ( - col2 / - - 18, + col1 + + 53 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT - - CAST( + + 1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5429
SELECT - - CAST ( + + 1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5430
SELECT + - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5430
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col2 * 15 AS col0 FROM tab1 cor0
----
1020
1440
885

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / ( + col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5433
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - CAST( NULL AS SIGNED ) * - MAX( ALL + + 40 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5433
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) * - MAX ( ALL + + 40 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 65 + - 99 * - + 42 * - + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0, + 10 AS col1 FROM tab2 AS cor0
----
46
10
64
10
75
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 26 * + col2 ) = - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5438
SELECT ALL - COUNT( * ), 92 * 98 AS col2 FROM tab1 AS cor0
----
-3
9016

skipif mysql # not compatible
query II rowsort label-5438
SELECT ALL - COUNT ( * ), 92 * 98 AS col2 FROM tab1 AS cor0
----
-3
9016

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT - SUM( 27 ) FROM tab2 WHERE NOT + col2 / + - col2 = + 94
----
-81

skipif mysql # not compatible
query I rowsort label-5439
SELECT - SUM ( 27 ) FROM tab2 WHERE NOT + col2 / + - col2 = + 94
----
-81

query I rowsort
SELECT - col0 * - col1 * col1 FROM tab1
----
201019
2125
9996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col1 FROM tab1
----
-30
-30
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5442
SELECT CAST( - MIN( - ( col0 ) ) AS SIGNED ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5442
SELECT CAST ( - MIN ( - ( col0 ) ) AS INTEGER ) AS col0 FROM tab0
----
97

query I rowsort
SELECT - + col2 * + col2 * - 79 FROM tab0 AS cor0
----
174511
774279
7900

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL SUM( DISTINCT + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL SUM ( DISTINCT + col1 ) AS col0 FROM tab1
----
66

query I rowsort
SELECT DISTINCT + col1 * 1 AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT 24 + + col0 * + + 64 FROM tab1
----
3288
5464
5848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5447
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) + + MAX( col1 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) + + MAX ( col1 ) FROM tab1 AS cor0
----
48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - 13 < NULL
----

query I rowsort
SELECT ALL + col0 * + col0 + - 41 * - col1 - + col2 AS col2 FROM tab0 AS cor0
----
3499
8420
9351

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5451
SELECT DISTINCT + 42 * 99 + - COUNT( - + ( - + col0 ) ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT + 42 * 99 + - COUNT ( - + ( - + col0 ) ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + - + col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT ALL - + col0 + - col2 + - ( - col0 ) * + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-107985
-315496
-377008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT ALL 43 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL 43 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT DISTINCT - SUM( + ( + col2 ) ) + + + ( - - 34 ) * 71 AS col0 FROM tab0
----
2258

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT - SUM ( + ( + col2 ) ) + + + ( - - 34 ) * 71 AS col0 FROM tab0
----
2258

onlyif mysql # DIV for integer division: 
query I rowsort label-5456
SELECT DISTINCT - ( - 60 ) DIV + col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT - ( - 60 ) / + col0 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + MIN( ALL + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-5457
SELECT + MIN ( ALL + col2 ) AS col2 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT + 63 * - COUNT( * ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-5458
SELECT + 63 * - COUNT ( * ) FROM tab1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT + COUNT( * ) * - ( - MAX( 56 ) ) FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-5459
SELECT + COUNT ( * ) * - ( - MAX ( 56 ) ) FROM tab1
----
168

query I rowsort
SELECT col2 + + 79 FROM tab2 AS cor0
----
102
119
137

query I rowsort
SELECT DISTINCT + - 90 AS col2 FROM tab1 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN 67 AND NULL
----

query I rowsort
SELECT ( - - col2 ) + + 24 AS col1 FROM tab2
----
47
64
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5464
SELECT 51 DIV + - ( 39 ) + + - col0 FROM tab1
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-5464
SELECT 51 / + - ( 39 ) + + - col0 FROM tab1
----
-52
-86
-92

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 WHERE - 81 * - 30 * 2 = + 84
----

query II rowsort
SELECT ALL col1 - + - 23 + + 9, ( + ( - col0 ) ) AS col0 FROM tab2
----
109
-64
83
-46
99
-75

query II rowsort
SELECT DISTINCT 0 AS col1, ( + 8 ) * - - col1 FROM tab1
----
0
112
0
376
0
40

query I rowsort
SELECT col2 * + 8 + ( + + 91 ) FROM tab2 AS cor0
----
275
411
555

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT + MAX( col1 ) - - COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
84

skipif mysql # not compatible
query I rowsort label-5469
SELECT + MAX ( col1 ) - - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT DISTINCT + col2 DIV + 96 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT + col2 / + 96 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL + 9 * - 59 + + - 35 FROM tab2 AS cor0
----
-566
-566
-566

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT DISTINCT + COUNT( - 10 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT + COUNT ( - 10 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 24 AS col1 FROM tab0 cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5474
SELECT CAST( - + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5474
SELECT CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5475
SELECT - - MIN( - col1 ) DIV - 27, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-5475
SELECT - - MIN ( - col1 ) / - 27, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2
NULL

query I rowsort
SELECT col2 * 48 AS col0 FROM tab0
----
2256
4752
480

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT COUNT( 51 ) * 18 col2 FROM tab1
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5477
SELECT COUNT ( 51 ) * 18 col2 FROM tab1
----
54

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col1 FROM tab1 cor0
----
-1344
-295
-3196

query I rowsort
SELECT + col1 * - - 84 FROM tab2 AS cor0
----
4284
5628
6468

query II rowsort
SELECT + col2, col0 * + 27 AS col0 FROM tab2 AS cor0
----
23
1242
40
1728
58
2025

query I rowsort
SELECT ALL + col1 + + + col0 FROM tab0
----
108
96
98

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5483
SELECT DISTINCT + ( + SUM( DISTINCT CAST( - + col0 AS SIGNED ) ) ) * + COUNT( * ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-5483
SELECT DISTINCT + ( + SUM ( DISTINCT CAST ( - + col0 AS INTEGER ) ) ) * + COUNT ( * ) FROM tab1
----
-681

query I rowsort
SELECT DISTINCT + - 58 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT IN ( + col1, + 88 )
----

query I rowsort
SELECT - - 74 AS col2 FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT - - col1 * ( - - col0 ) + - col2 FROM tab1 AS cor0
----
366
4209
618

query II rowsort
SELECT ( + 0 ), col1 FROM tab0 cor0
----
0
1
0
21
0
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - - ( col0 ) * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col0 + - - 72 FROM tab0 AS cor0
----
-15
-25
57

query I rowsort
SELECT - col0 + - - col2 * + col1 * col2 FROM tab1 AS cor0
----
128973
17320
217237

query I rowsort
SELECT ALL - 87 + col1 * col2 * - col2 FROM tab2 AS cor0
----
-123287
-225475
-27066

query I rowsort
SELECT + 30 + col1 - - 24 FROM tab0 cor0
----
135
55
75

query I rowsort
SELECT DISTINCT 92 - col2 AS col1 FROM tab1
----
-4
24
33

query I rowsort
SELECT ALL - 34 + col2 + col0 - col0 AS col0 FROM tab1
----
25
34
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5496
SELECT DISTINCT COUNT( * ) DIV 2 + + SUM( + 89 ) AS col0 FROM tab0
----
268

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT COUNT ( * ) / 2 + + SUM ( + 89 ) AS col0 FROM tab0
----
268

query I rowsort
SELECT DISTINCT - AVG ( + col0 ) AS col1 FROM tab0 WHERE ( ( ( NOT + 49 * 62 IS NOT NULL ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT col0 DIV col0 col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5498
SELECT col0 / col0 col0 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT - 71, col0 FROM tab2 AS cor0
----
-71
46
-71
64
-71
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT - - 2 * + COUNT( * ) * - 67 AS col2 FROM tab0 cor0
----
-402

skipif mysql # not compatible
query I rowsort label-5500
SELECT - - 2 * + COUNT ( * ) * - 67 AS col2 FROM tab0 cor0
----
-402

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT - + 63 + - SUM( DISTINCT - + col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL <= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT - + 63 + - SUM ( DISTINCT - + col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL <= NULL )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5502
SELECT + CAST( - col0 AS DECIMAL ) * ( + + col2 ) FROM tab2 AS cor0 WHERE NOT NULL < col2 + - - 68
----

skipif mysql # not compatible
query I rowsort label-5502
SELECT + CAST ( - col0 AS REAL ) * ( + + col2 ) FROM tab2 AS cor0 WHERE NOT NULL < col2 + - - 68
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 75 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5505
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( col1 AS SIGNED ) - col0 * - col0 NOT BETWEEN ( + - col0 ) AND col2
----

skipif mysql # not compatible
query III rowsort label-5505
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( col1 AS INTEGER ) - col0 * - col0 NOT BETWEEN ( + - col0 ) AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 73 NOT BETWEEN + 43 AND - col0 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5507
SELECT * FROM tab0 WHERE NOT - - col1 * + col1 * + col1 - + CAST( + - 57 AS SIGNED ) + + 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5507
SELECT * FROM tab0 WHERE NOT - - col1 * + col1 * + col1 - + CAST ( + - 57 AS INTEGER ) + + 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5508
SELECT COUNT( * ) DIV + 49 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5508
SELECT COUNT ( * ) / + 49 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT COUNT( * ) * + 56 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-5509
SELECT COUNT ( * ) * + 56 FROM tab1
----
168

query I rowsort
SELECT ALL + - 13 AS col0 FROM tab0 WHERE - + 31 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5511
SELECT MIN( DISTINCT + + col1 ) DIV + - COUNT( - - col2 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5511
SELECT MIN ( DISTINCT + + col1 ) / + - COUNT ( - - col2 ) AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - + MIN( ALL - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5512
SELECT - + MIN ( ALL - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT - - MIN( DISTINCT + 85 ) AS col2 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5513
SELECT - - MIN ( DISTINCT + 85 ) AS col2 FROM tab1 AS cor0
----
85

query I rowsort
SELECT + - 38 AS col2 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5515
SELECT DISTINCT + 48 + - CAST( NULL AS SIGNED ) + - COUNT( * ) * - COUNT( * ) + - 23 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT + 48 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - COUNT ( * ) + - 23 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT COUNT( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5516
SELECT COUNT ( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT - col1 + + 18 + - - col0 AS col0 FROM tab1 cor0
----
55
62
98

query II rowsort
SELECT ALL + col0, 20 AS col2 FROM tab2 cor0
----
46
20
64
20
75
20

query II rowsort
SELECT ALL col0 + - col0, - col0 AS col2 FROM tab1 AS cor0
----
0
-51
0
-85
0
-91

query I rowsort
SELECT DISTINCT - col2 + - col1 * + 8 - col0 - 98 AS col1 FROM tab0 AS cor0
----
-302
-363
-808

query I rowsort
SELECT DISTINCT - 30 + 12 * 84 FROM tab0 AS cor0
----
978

query I rowsort
SELECT DISTINCT + 15 + + ( + + 57 ) FROM tab2 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL 36 - + col0 - - col0 * - 85 * 64 * - - 34 FROM tab2
----
-11837468
-13872039
-8508170

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT DISTINCT - SUM( - col1 ) - - 29 + 28 AS col2 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT - SUM ( - col1 ) - - 29 + 28 AS col2 FROM tab1
----
123

query I rowsort
SELECT ALL col0 + + 41 FROM tab1
----
126
132
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5527
SELECT ALL MIN( ALL - - CAST( NULL AS SIGNED ) ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5527
SELECT ALL MIN ( ALL - - CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL

query I rowsort
SELECT 67 FROM tab1 WHERE 11 IS NULL
----

query II rowsort
SELECT 5 * - + col1 * - col0 * - col1 - + col1, col2 FROM tab2
----
-1683442
58
-1897357
40
-598281
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL - 66 - - COUNT( * ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - 66 - - COUNT ( * ) AS col0 FROM tab0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5531
SELECT 10 - - CAST( - + col2 AS SIGNED ) AS col1, col1 FROM tab0
----
-37
81
-89
1
0
21

skipif mysql # not compatible
query II rowsort label-5531
SELECT 10 - - CAST ( - + col2 AS INTEGER ) AS col1, col1 FROM tab0
----
-37
81
-89
1
0
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 78 * + + col1 col0, + 45 + - - col1 * + col0 FROM tab1 AS cor0
----
1092
759
3666
4322
390
470

query I rowsort
SELECT DISTINCT - + 61 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5534
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) * - 55 * + - COUNT( * ) FROM tab1 WHERE ( - col2 ) * + ( - + 39 ) IS NOT NULL
----
-495

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * - 55 * + - COUNT ( * ) FROM tab1 WHERE ( - col2 ) * + ( - + 39 ) IS NOT NULL
----
-495

query I rowsort
SELECT ALL - col1 * 8 * - col2 AS col2 FROM tab2 cor0
----
24640
31088
9384

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 59 * - + col2 <> + 34
----

query I rowsort
SELECT + + col2 * + col0 AS col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( 27 + - - col2, 18 * - 67 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 91 * col0 / - - col2 * + - 38 <> + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT ALL - COUNT( * ) / + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL - COUNT ( * ) / + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - 54 * col2 AS col1 FROM tab0
----
-2538
-5346
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT 84 DIV 75 * 68 FROM tab2
----
68
68
68

skipif mysql # not compatible
query I rowsort label-5541
SELECT 84 / 75 * 68 FROM tab2
----
68
68
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5542
SELECT ALL SUM( ALL - col1 ), COUNT( * ) AS col1 FROM tab0
----
-103
3

skipif mysql # not compatible
query II rowsort label-5542
SELECT ALL SUM ( ALL - col1 ), COUNT ( * ) AS col1 FROM tab0
----
-103
3

query I rowsort
SELECT ALL - + 91 * + + 63 FROM tab2 AS cor0
----
-5733
-5733
-5733

query I rowsort
SELECT ( + - 42 ) FROM tab0
----
-42
-42
-42

query II rowsort
SELECT DISTINCT col2 AS col0, - ( 1 ) FROM tab2
----
23
-1
40
-1
58
-1

query I rowsort
SELECT col1 + + - col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col2 * col2 + + - ( - - 12 ) AS col1 FROM tab0 AS cor0
----
2197
88
9789

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT COUNT( * ) + - COUNT( DISTINCT col0 ) + - 25 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5548
SELECT COUNT ( * ) + - COUNT ( DISTINCT col0 ) + - 25 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT - COUNT( * ) + - 71 AS col0 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5549
SELECT - COUNT ( * ) + - 71 AS col0 FROM tab1 AS cor0
----
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - - 62 - - + 44 * - col0 AS col0 FROM tab0 AS cor0
----
-3766
-4206
-598

query I rowsort
SELECT ( + 13 ) + col1 AS col0 FROM tab2 AS cor0
----
64
80
90

query I rowsort
SELECT col1 + - + col2 + col0 * + 86 + - col1 AS col1 FROM tab2
----
3933
5464
6392

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT - SUM( DISTINCT - 15 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5554
SELECT - SUM ( DISTINCT - 15 ) FROM tab0
----
15

query III rowsort
SELECT * FROM tab2 WHERE - + col1 > NULL
----

query I rowsort
SELECT DISTINCT + 37 FROM tab1 WHERE - - col1 IS NOT NULL
----
37

query I rowsort
SELECT DISTINCT col0 * + + ( - col1 ) FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 - - - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5559
SELECT - COUNT( * ), 54 AS col2 FROM tab2 AS cor0
----
-3
54

skipif mysql # not compatible
query II rowsort label-5559
SELECT - COUNT ( * ), 54 AS col2 FROM tab2 AS cor0
----
-3
54

onlyif mysql # DIV for integer division: 
query II rowsort label-5560
SELECT ALL - 36 AS col2, - 83 DIV + col0 FROM tab2 AS cor0
----
-36
-1
-36
-1
-36
-1

skipif mysql # not compatible
query II rowsort label-5560
SELECT ALL - 36 AS col2, - 83 / + col0 FROM tab2 AS cor0
----
-36
-1
-36
-1
-36
-1

query I rowsort
SELECT ALL - col1 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5562
SELECT - 0 AS col1, COUNT( * ) AS col2 FROM tab1 cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-5562
SELECT - 0 AS col1, COUNT ( * ) AS col2 FROM tab1 cor0
----
0
3

query I rowsort
SELECT ALL - col2 * + 14 * - col1 AS col1 FROM tab0 AS cor0
----
1386
2940
53298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5564
SELECT CAST( NULL AS SIGNED ) * + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT CAST ( NULL AS INTEGER ) * + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 69 * 10 AS col1 FROM tab2 AS cor0
----
690
690
690

query II rowsort
SELECT ALL col1 + - col2, + ( col1 ) AS col1 FROM tab2 AS cor0
----
28
51
37
77
9
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5567
SELECT DISTINCT CAST( 84 AS SIGNED ) + col0 DIV + + col0 AS col2 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT CAST ( 84 AS INTEGER ) + col0 / + + col0 AS col2 FROM tab1 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5568
SELECT ALL - - ( COUNT( * ) ) AS col1, + MAX( - col0 ) * + - 45 FROM tab0 AS cor0
----
3
675

skipif mysql # not compatible
query II rowsort label-5568
SELECT ALL - - ( COUNT ( * ) ) AS col1, + MAX ( - col0 ) * + - 45 FROM tab0 AS cor0
----
3
675

query II rowsort
SELECT DISTINCT - 4, col1 FROM tab2
----
-4
51
-4
67
-4
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT DISTINCT COUNT( * ) * + MAX( ( - + 40 ) ) AS col2 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT COUNT ( * ) * + MAX ( ( - + 40 ) ) AS col2 FROM tab1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT ALL 51 * - COUNT( * ) AS col0 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL 51 * - COUNT ( * ) AS col0 FROM tab1
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT 53 DIV - - 85 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5572
SELECT 53 / - - 85 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT ALL + 93 DIV + 9 - + col0 * col1 + 71 FROM tab0 WHERE NOT + 81 IS NULL
----
-1134
-16
-1746

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL + 93 / + 9 - + col0 * col1 + 71 FROM tab0 WHERE NOT + 81 IS NULL
----
-1134
-16
-1746

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT + COUNT( ALL + col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT + COUNT ( ALL + col0 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + 71 * + 68 FROM tab2
----
4828
4828
4828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5576
SELECT DISTINCT CAST( NULL AS SIGNED ) * SUM( ALL col2 ), + CAST( NULL AS SIGNED ) + + + 26 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5576
SELECT DISTINCT CAST ( NULL AS INTEGER ) * SUM ( ALL col2 ), + CAST ( NULL AS INTEGER ) + + + 26 FROM tab2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ( + MAX( + - ( + col0 ) ) ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5577
SELECT ( + MAX ( + - ( + col0 ) ) ) AS col2 FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, + 49 * - ( - - 9 ) col2 FROM tab2 cor0
----
-23
-441
-40
-441
-58
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT ALL + 94 + COUNT( * ) AS col1 FROM tab2 cor0
----
97

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL + 94 + COUNT ( * ) AS col1 FROM tab2 cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + ( + + col1 )
----

query I rowsort
SELECT DISTINCT + + col0 + 61 - - + col0 AS col0 FROM tab1 cor0
----
163
231
243

query I rowsort
SELECT col0 * + col2 + - col2 AS col0 FROM tab1
----
4800
4956
6120

onlyif mysql # DIV for integer division: 
query I rowsort label-5583
SELECT + col0 DIV + col1 + - 61 FROM tab1 AS cor0
----
-44
-58
-60

skipif mysql # not compatible
query I rowsort label-5583
SELECT + col0 / + col1 + - 61 FROM tab1 AS cor0
----
-44
-58
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - 74 col0 FROM tab1 AS cor0
----
-15
-6
22

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
-47
-5

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE 72 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = col2 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 col2 FROM tab0 AS cor0
----
37
37
37

query II rowsort
SELECT col1 AS col2, col2 * col2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5591
SELECT - 88 DIV - col2 + 53 - - - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-1161
-1766
-44

skipif mysql # not compatible
query I rowsort label-5591
SELECT - 88 / - col2 + 53 - - - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-1161
-1766
-44

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 + + + col1 < + + col1
----

query II rowsort
SELECT + 64 AS col2, 52 + + col0 FROM tab0
----
64
139
64
149
64
67

query I rowsort
SELECT + col2 * + ( 77 ) FROM tab0
----
3619
7623
770

query I rowsort
SELECT ALL ( + - ( - col0 ) ) AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ALL MIN( DISTINCT - 90 ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL MIN ( DISTINCT - 90 ) FROM tab0
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5597
SELECT CAST( NULL AS DECIMAL ) AS col1, col1 * + + col1 FROM tab0
----
NULL
1
NULL
441
NULL
6561

skipif mysql # not compatible
query II rowsort label-5597
SELECT CAST ( NULL AS REAL ) AS col1, col1 * + + col1 FROM tab0
----
NULL
1
NULL
441
NULL
6561

query II rowsort
SELECT 73, ( - + col0 ) * - - col2 AS col1 FROM tab0
----
73
-705
73
-870
73
-9603

query II rowsort
SELECT 21, + col1 + + col2 AS col0 FROM tab0 AS cor0
----
21
100
21
128
21
31

query II rowsort
SELECT + 76 AS col0, col1 FROM tab0 AS cor0
----
76
1
76
21
76
81

query I rowsort
SELECT - - 39 FROM tab0 cor0
----
39
39
39

skipif postgresql # Postg