sqllogictest
Artifact Content
Not logged in

Artifact 1344922ae2971bc27d2a3baf43f41008253b9b6a:


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 III rowsort
SELECT ALL * FROM tab2 WHERE col2 * 6 - - 72 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT DISTINCT - - SUM( ALL - 33 ) FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT - - SUM ( ALL - 33 ) FROM tab1 cor0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4
SELECT + CAST( + COUNT( * ) AS SIGNED ) * + ( + 5 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
45

skipif mysql # not compatible
query I rowsort label-4
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * + ( + 5 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
45

query I rowsort
SELECT + 37 + col1 + + + col0 * + - col1 * - 90 AS col2 FROM tab1
----
38292
385014
64311

query I rowsort
SELECT + 25 FROM tab2 WHERE NULL <= col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - col0 ) / - - 62 NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL col2 - + col2 + + - ( + col0 ) AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT COUNT( * ) * - 26 AS col0 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-10
SELECT COUNT ( * ) * - 26 AS col0 FROM tab1
----
-78

query I rowsort
SELECT ALL col0 * - col2 - col1 FROM tab0
----
-786
-891
-9604

query I rowsort
SELECT col2 * 67 * + 39 AS col2 FROM tab1
----
154167
177684
250848

query I rowsort
SELECT DISTINCT 70 * + col2 * + - 46 FROM tab0
----
-151340
-318780
-32200

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-15
SELECT ALL 27 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL 27 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - - 22 FROM tab2 WHERE NOT NULL IS NOT NULL
----
73
89
99

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT SUM( ALL + ( - - col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-17
SELECT SUM ( ALL + ( - - col1 ) ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-18
SELECT - col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-18
SELECT - col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
-59
NULL
-68
NULL
-96
NULL

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

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

query I rowsort
SELECT DISTINCT + col0 + + 91 * - - col0 AS col0 FROM tab2 AS cor0
----
4232
5888
6900

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-21
SELECT DISTINCT - MIN( + - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT - MIN ( + - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT DISTINCT + + CAST( - col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT + + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + col2, col2 + col1 AS col0 FROM tab1
----
59
64
68
115
96
110

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT - col1 * - - col1 IS NULL
----
23
40
58

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT + 20 + - col2 IS NULL
----
15
87
97

query II rowsort
SELECT DISTINCT 17 AS col2, + 3 FROM tab0
----
17
3

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT 11 DIV - 57 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-28
SELECT 11 / - 57 FROM tab0
----
0
0
0

query II rowsort
SELECT ALL 7, 1 + + col0 AS col2 FROM tab2
----
7
47
7
65
7
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-30
SELECT DISTINCT col0 * + - CAST( ( + - col2 ) AS SIGNED ) FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT col0 * + - CAST ( ( + - col2 ) AS INTEGER ) FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT col2 * 21 + + col2 FROM tab1 AS cor0
----
1298
1496
2112

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col1 * - col2 - + col1 col1 FROM tab1 AS cor0
----
1426
3217
349

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-35
SELECT + 38 - + CAST( NULL AS SIGNED ) col0, col0 * - col1 AS col1 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-35
SELECT + 38 - + CAST ( NULL AS INTEGER ) col0, col0 * - col1 AS col1 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

query II rowsort
SELECT ALL + col0 + - - 80 AS col0, - col2 FROM tab1 AS cor0
----
131
-96
165
-59
171
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT - MIN( + 94 ) - ( - + COUNT( * ) ) col0 FROM tab2 AS cor0
----
-91

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + - col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 * + 87 + 53 - + 17 col1 FROM tab1 cor0 WHERE - 82 + - 76 BETWEEN col1 AND - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-40
SELECT - 32 * - 26 - COUNT( + - col2 ) AS col1 FROM tab1 AS cor0
----
829

skipif mysql # not compatible
query I rowsort label-40
SELECT - 32 * - 26 - COUNT ( + - col2 ) AS col1 FROM tab1 AS cor0
----
829

onlyif mysql # DIV for integer division: 
query I rowsort label-41
SELECT ALL - 38 DIV - 96 * - col0 + - 54 FROM tab1 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL - 38 / - 96 * - col0 + - 54 FROM tab1 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ALL 18 - + + COUNT( * ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL 18 - + + COUNT ( * ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - + col1 - + col1 + + 78 + - col1 FROM tab0 AS cor0
----
-165
15
75

query I rowsort
SELECT col1 * + col2 + - - 99 FROM tab0
----
198
309
3906

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT DISTINCT + COUNT( * ) - + 12 FROM tab2 WHERE + 90 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT + COUNT ( * ) - + 12 FROM tab2 WHERE + 90 IS NOT NULL
----
-9

query I rowsort
SELECT DISTINCT - 42 * + col1 FROM tab2
----
-2142
-2814
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT COUNT( + + col2 ) * - - 86 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-48
SELECT COUNT ( + + col2 ) * - - 86 FROM tab1
----
258

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

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

query I rowsort
SELECT 10 * - col1 AS col0 FROM tab0
----
-10
-210
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-51
SELECT ALL CAST( NULL AS SIGNED ) * + 38 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL CAST ( NULL AS INTEGER ) * + 38 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 79 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col0, + 98 + + + col0 * - col0 FROM tab1 AS cor0
----
14
-2503
47
-8183
5
-7127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-54
SELECT + + col2 / col0 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( + col1, - col1 - - col2 + 20, + ( - col1 ) * - 25, - CAST( col2 AS SIGNED ) * + 99 )
----

skipif mysql # not compatible
query I rowsort label-54
SELECT + + col2 / col0 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( + col1, - col1 - - col2 + 20, + ( - col1 ) * - 25, - CAST ( col2 AS INTEGER ) * + 99 )
----

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

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT - col2 / 69 AS col1 FROM tab0 AS cor0
----
-1
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= + col1 / + - col1 * + - 66
----

query II rowsort
SELECT ALL col0, - 1 + - col0 FROM tab1 AS cor0
----
51
-52
85
-86
91
-92

query II rowsort
SELECT + col1 * + col1, - col1 AS col2 FROM tab2
----
2601
-51
4489
-67
5929
-77

query I rowsort
SELECT - 25 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query II rowsort
SELECT ( - + col0 ) AS col2, col0 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT COUNT( DISTINCT - - 47 ) * + 97 * SUM( DISTINCT - col0 ) - 90 FROM tab1 AS cor0
----
-22109

skipif mysql # not compatible
query I rowsort label-61
SELECT COUNT ( DISTINCT - - 47 ) * + 97 * SUM ( DISTINCT - col0 ) - 90 FROM tab1 AS cor0
----
-22109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-62
SELECT ALL + - 49 * - CAST( NULL AS SIGNED ) + + col1 + + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL + - 49 * - CAST ( NULL AS INTEGER ) + + col1 + + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-63
SELECT DISTINCT + - CAST( 43 AS SIGNED ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT + - CAST ( 43 AS INTEGER ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-64
SELECT ALL SUM( ALL - 19 ) AS col1 FROM tab1 cor0 WHERE NOT + 82 IN ( + 57 + + col2, + col2 * + CAST( NULL AS DECIMAL ) + + col0 + - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL SUM ( ALL - 19 ) AS col1 FROM tab1 cor0 WHERE NOT + 82 IN ( + 57 + + col2, + col2 * + CAST ( NULL AS REAL ) + + col0 + - - col2 )
----
NULL

query I rowsort
SELECT DISTINCT + 74 * - + col1 FROM tab0 AS cor0
----
-1554
-5994
-74

query I rowsort
SELECT 12 * 52 * - 14 AS col0 FROM tab1 cor0
----
-8736
-8736
-8736

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 51 + + col1 <> - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * - - ( - + col1 ) * - 75 - + col2 FROM tab0 AS cor0
----
137015
7176
91078

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT - ( + 39 ) > NULL
----

query I rowsort
SELECT + + col1 * + col1 + + col1 * col1 + - - 19 + 49 AS col0 FROM tab0 AS cor0
----
13190
70
950

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT - 90 + ( + MIN( ALL + col2 ) ) AS col0 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-71
SELECT - 90 + ( + MIN ( ALL + col2 ) ) AS col0 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT ALL + 21 - col0 AS col0 FROM tab2 WHERE NOT - col2 + + - col1 + + - col1 NOT BETWEEN - - 31 * col1 / col1 + - col0 + - 15 / + + col0 AND + col0
----

query I rowsort
SELECT DISTINCT + ( col0 ) * + col0 * col1 FROM tab0
----
158949
18225
9409

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-74
SELECT - 30, + col2 FROM tab0 WHERE - CAST( + + col0 AS SIGNED ) NOT BETWEEN NULL AND - + col1 / - col0 + + col0
----

skipif mysql # not compatible
query II rowsort label-74
SELECT - 30, + col2 FROM tab0 WHERE - CAST ( + + col0 AS INTEGER ) NOT BETWEEN NULL AND - + col1 / - col0 + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT col2 + - 98 + col2 DIV + ( - - 31 ) FROM tab1
----
-28
-38
1

skipif mysql # not compatible
query I rowsort label-75
SELECT col2 + - 98 + col2 / + ( - - 31 ) FROM tab1
----
-28
-38
1

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

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

query II rowsort
SELECT - 87, - 5 AS col2 FROM tab0 AS cor0
----
-87
-5
-87
-5
-87
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT DISTINCT + SUM( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT + SUM ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE - col2 / + + 75 IS NULL
----

query I rowsort
SELECT ALL col2 + + - col0 + col2 FROM tab2 AS cor0
----
0
16
41

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT DISTINCT MIN( col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT MIN ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 41 + - + col1 FROM tab0 AS cor0
----
-40
20
40

query I rowsort
SELECT ( - + 99 ) + - col2 AS col1 FROM tab0
----
-109
-146
-198

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 69 + - + col1 * + col1 + col1 FROM tab1 AS cor0
----
-2231
-251
-89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + 35 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-90
SELECT + CAST( - col2 AS DECIMAL ) * col1 + - + col2 + - col0 + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / 36 + + 20 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-90
SELECT + CAST ( - col2 AS REAL ) * col1 + - + col2 + - col0 + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / 36 + + 20 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 38 * + col0 FROM tab0 cor0
----
3306
3686
570

query I rowsort
SELECT col1 + - + col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + col2 - + 8 >= col0
----
47
5

query II rowsort
SELECT ALL + col0, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT SUM( ALL + 93 ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-97
SELECT SUM ( ALL + 93 ) FROM tab0
----
279

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 63 NOT BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + - col2 col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT col0 * - + 31 AS col2 FROM tab1
----
-1581
-2635
-2821

query I rowsort
SELECT ALL - AVG ( - - col0 ) FROM tab1 WHERE - col1 / 13 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT DISTINCT - + ( - COUNT( * ) ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT - + ( - COUNT ( * ) ) FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL - ( + + 15 ) AS col0 FROM tab2 cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT - col1 * - col0 * + - 84 * + 27 AS col0 FROM tab2 AS cor0
----
-11176704
-11396700
-5320728

query I rowsort
SELECT - + 70 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

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

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

query I rowsort
SELECT ALL + - ( - + col0 ) + + col0 * - 76 AS col1 FROM tab2 AS cor0
----
-3450
-4800
-5625

query I rowsort
SELECT col0 * + col1 * + col2 AS col2 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT ALL 68 * 71 AS col1 FROM tab2
----
4828
4828
4828

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT COUNT( DISTINCT 31 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-111
SELECT COUNT ( DISTINCT 31 ) FROM tab2
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT DISTINCT - COUNT( * ) + - 56 + - 37 * - 65 AS col1 FROM tab2 AS cor0
----
2346

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT - COUNT ( * ) + - 56 + - 37 * - 65 AS col1 FROM tab2 AS cor0
----
2346

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * col1 * col1 col0 FROM tab2 AS cor0
----
119600
336600
379392

query II rowsort
SELECT ALL col2 + - + 50 AS col2, col2 AS col2 FROM tab2 AS cor0
----
-10
40
-27
23
8
58

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----
0

query I rowsort
SELECT - - col1 * - 97 AS col2 FROM tab1 AS cor0
----
-1358
-4559
-485

query I rowsort
SELECT + + col0 * + col0 * - ( col1 ) + + ( 55 ) + - ( - ( - col1 ) ) FROM tab2 AS cor0
----
-107912
-315414
-376887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-119
SELECT + col0 * col0 + col0 + 30 * + + col1 - col0 - + + 22 + - CAST( - 98 AS SIGNED ) * - - col1 FROM tab2 AS cor0
----
13930
14179
8622

skipif mysql # not compatible
query I rowsort label-119
SELECT + col0 * col0 + col0 + 30 * + + col1 - col0 - + + 22 + - CAST ( - 98 AS INTEGER ) * - - col1 FROM tab2 AS cor0
----
13930
14179
8622

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + + col1 NOT BETWEEN - 98 AND NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, 13 + 74 col0 FROM tab2
----
51
87
67
87
77
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col0 FROM tab2 AS cor0
----
89
89
89

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-124
SELECT + + COUNT ( DISTINCT + - col1 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 50 * + 34 FROM tab0 AS cor0
----
-1700
-1700
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT + COUNT( * ) * + 72 AS col0 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-126
SELECT + COUNT ( * ) * + 72 AS col0 FROM tab1 AS cor0
----
216

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + + col1, - col0, + + col0, - col2 * + 0, + col2, - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT + COUNT( * ) + + 35 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-129
SELECT + COUNT ( * ) + + 35 FROM tab1 AS cor0
----
38

query I rowsort
SELECT DISTINCT + ( - col0 ) + - col2 + col0 + + + col2 AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - - col2 col1 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT - 74 + + - col0 AS col1 FROM tab2 cor0
----
-120
-138
-149

onlyif mysql # DIV for integer division: 
query II rowsort label-133
SELECT DISTINCT - col1 DIV + col2 AS col1, 87 AS col1 FROM tab2 AS cor0
----
-1
87
-2
87

skipif mysql # not compatible
query II rowsort label-133
SELECT DISTINCT - col1 / + col2 AS col1, 87 AS col1 FROM tab2 AS cor0
----
-1
87
-2
87

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-136
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL ) < - - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-138
SELECT - 49 DIV - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-138
SELECT - 49 / - col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 97 + - col2 * + - 34 AS col0 FROM tab0
----
1695
3463
437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-140
SELECT + 56 AS col2, + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-140
SELECT + 56 AS col2, + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
56
NULL

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

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT col2 + + CAST ( NULL AS REAL ) * col2 * + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 * - col2 FROM tab2 AS cor0 WHERE + 57 IS NOT NULL
----
1600
3364
529

query I rowsort
SELECT ALL - col0 + col2 * - 97 FROM tab2 WHERE 22 IS NOT NULL
----
-2277
-3944
-5701

onlyif mysql # DIV for integer division: 
query I rowsort label-144
SELECT ALL - 18 DIV + col1 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL - 18 / + col1 FROM tab1
----
-1
-3
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT MIN( ALL 82 ) FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-146
SELECT MIN ( ALL 82 ) FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT col0 + col1 DIV - col1 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-147
SELECT col0 + col1 / - col1 FROM tab2
----
45
63
74

query III rowsort
SELECT * FROM tab0 WHERE 32 * col1 + 1 * 38 NOT IN ( - 4 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + - 26 FROM tab0 WHERE NOT col0 * col1 NOT IN ( - 56 + col2 )
----

query I rowsort
SELECT col0 + + ( col1 + + col1 ) FROM tab2
----
148
209
218

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT col1 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 * + 69 ) IS NOT NULL
----

query I rowsort
SELECT - 2 FROM tab1 WHERE NOT - col1 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-154
SELECT COUNT( ( col0 ) ) AS col2 FROM tab2 WHERE NOT - 56 * CAST( NULL AS SIGNED ) + 61 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-154
SELECT COUNT ( ( col0 ) ) AS col2 FROM tab2 WHERE NOT - 56 * CAST ( NULL AS INTEGER ) + 61 IS NULL
----
0

query I rowsort
SELECT ALL ( - 15 ) * 60 FROM tab2 WHERE NOT ( NULL ) BETWEEN col2 AND - 11
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-156
SELECT 4 AS col1 FROM tab2 WHERE NOT + col2 + + col1 / CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-156
SELECT 4 AS col1 FROM tab2 WHERE NOT + col2 + + col1 / CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT ALL - MAX( ALL col2 ) FROM tab0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL - MAX ( ALL col2 ) FROM tab0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT ALL ( + col1 ) FROM tab0 WHERE 88 / ( col0 ) IS NOT NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-159
SELECT ALL * FROM tab2 WHERE NULL > 43 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-159
SELECT ALL * FROM tab2 WHERE NULL > 43 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT + col2 DIV col2 - ( + col1 ) FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-160
SELECT + col2 / col2 - ( + col1 ) FROM tab2
----
-50
-66
-76

query I rowsort
SELECT - 67 + + col1 FROM tab2
----
-16
0
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 70 * + 38 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( + 15 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-164
SELECT + 96 col2 FROM tab1 WHERE NOT ( 1 ) BETWEEN ( - CAST( NULL AS SIGNED ) + col0 * + 45 ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-164
SELECT + 96 col2 FROM tab1 WHERE NOT ( 1 ) BETWEEN ( - CAST ( NULL AS INTEGER ) + col0 * + 45 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-165
SELECT 45 * + col2 + - col1 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-165
SELECT 45 * + col2 + - col1 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 4 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT ALL + 8 + 64 FROM tab0 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-170
SELECT 53 + + 38 DIV - COUNT( * ) FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-170
SELECT 53 + + 38 / - COUNT ( * ) FROM tab0 AS cor0
----
41

query I rowsort
SELECT + 35 * ( 2 ) + + col1 AS col2 FROM tab2 AS cor0
----
121
137
147

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

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT MIN( ALL + col0 ) + + 84 * COUNT( * ) AS col0 FROM tab2
----
298

skipif mysql # not compatible
query I rowsort label-173
SELECT MIN ( ALL + col0 ) + + 84 * COUNT ( * ) AS col0 FROM tab2
----
298

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT + COUNT( * ) * SUM( - 31 ) + - 96 AS col2 FROM tab2
----
-375

skipif mysql # not compatible
query I rowsort label-174
SELECT + COUNT ( * ) * SUM ( - 31 ) + - 96 AS col2 FROM tab2
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT DISTINCT MAX( - 60 ) AS col2 FROM tab1 WHERE - 16 >= - col1 * 79 + col0
----
-60

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT MAX ( - 60 ) AS col2 FROM tab1 WHERE - 16 >= - col1 * 79 + col0
----
-60

query I rowsort
SELECT DISTINCT + 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
40

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 20 NOT BETWEEN ( col0 * col0 + - col1 / col0 ) AND - col0 * + col2 - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-180
SELECT DISTINCT CAST( 97 AS SIGNED ) + 82 AS col0 FROM tab1 AS cor0
----
179

skipif mysql # not compatible
query I rowsort label-180
SELECT DISTINCT CAST ( 97 AS INTEGER ) + 82 AS col0 FROM tab1 AS cor0
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT ALL - 39 + + COUNT( * ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-181
SELECT ALL - 39 + + COUNT ( * ) FROM tab0 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT DISTINCT 24 + COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT 24 + COUNT ( * ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT 41 - - col0 * - 5 AS col2 FROM tab2 AS cor0
----
-189
-279
-334

query I rowsort
SELECT DISTINCT + 80 - - + col1 AS col2 FROM tab2
----
131
147
157

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT 52 DIV 39 * + 69 - + col2 AS col2 FROM tab2
----
11
29
46

skipif mysql # not compatible
query I rowsort label-185
SELECT 52 / 39 * + 69 - + col2 AS col2 FROM tab2
----
11
29
46

query I rowsort
SELECT + ( + col2 ) * - col1 - - 27 AS col0 FROM tab0
----
-183
-3780
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT - MIN( DISTINCT + col1 ) AS col0 FROM tab2 WHERE ( col1 ) = - 26 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT - MIN ( DISTINCT + col1 ) AS col0 FROM tab2 WHERE ( col1 ) = - 26 * 31
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-189
SELECT DISTINCT + 30 + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( 19 + + 55 * - CAST( + 13 AS SIGNED ) ) < ( + col2 * + 2 )
----
30

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT + 30 + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( 19 + + 55 * - CAST ( + 13 AS INTEGER ) ) < ( + col2 * + 2 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT + COUNT( * ) * COUNT( ( + col2 ) ) + + ( - 76 ) FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-190
SELECT + COUNT ( * ) * COUNT ( ( + col2 ) ) + + ( - 76 ) FROM tab0
----
-67

query III rowsort
SELECT * FROM tab2 WHERE NULL > + ( + ( + col0 ) ) * 2
----

query I rowsort
SELECT 43 AS col1 FROM tab0 WHERE - col0 NOT IN ( 96 * col1 + col1 )
----
43
43
43

query I rowsort
SELECT ALL - ( 98 ) AS col1 FROM tab2
----
-98
-98
-98

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

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

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

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

query I rowsort
SELECT ALL col2 * + - 73 AS col1 FROM tab1 AS cor0
----
-4307
-4964
-7008

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT - COUNT( * ) * 94 FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-198
SELECT - COUNT ( * ) * 94 FROM tab1 AS cor0
----
-282

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

query I rowsort
SELECT + - col2 * + - col2 FROM tab0 cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT ALL + SUM( - + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL + SUM ( - + col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-202
SELECT - 15 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-202
SELECT - 15 / + col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 * + col1 col0 FROM tab2 cor0 WHERE NOT + col0 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-205
SELECT + col1 DIV + - 24 AS col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-205
SELECT + col1 / + - 24 AS col0 FROM tab0 AS cor0
----
-3
0
0

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + 43 IS NOT NULL
----

query I rowsort
SELECT ALL ( 40 ) FROM tab0
----
40
40
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 * - + 94 - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT ALL - col2 + + col0 AS col2 FROM tab2 WHERE - 13 + + col2 * col1 IN ( - CAST( NULL AS SIGNED ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL - col2 + + col0 AS col2 FROM tab2 WHERE - 13 + + col2 * col1 IN ( - CAST ( NULL AS INTEGER ) * col2 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL > ( - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-213
SELECT DISTINCT CAST( + + ( col2 ) AS SIGNED ) * - - col0 * + col0 AS col1 FROM tab2
----
163840
326250
48668

skipif mysql # not compatible
query I rowsort label-213
SELECT DISTINCT CAST ( + + ( col2 ) AS INTEGER ) * - - col0 * + col0 AS col1 FROM tab2
----
163840
326250
48668

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) <= ( col1 )
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( - col0 )
----

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE ( + col1 * - - col1 / - col1 * + ( - col0 ) ) <> col2
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + 68 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-217
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + 68 IS NULL
----
3

query I rowsort
SELECT DISTINCT - col0 + - col0 + 77 AS col1 FROM tab0 AS cor0
----
-117
-97
47

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT + COUNT( * ) FROM tab2 WHERE ( - col1 + + col1 * - + 75 * col0 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-219
SELECT + COUNT ( * ) FROM tab2 WHERE ( - col1 + + col1 * - + 75 * col0 ) <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-220
SELECT - col1 - 97 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND + CAST( + col1 AS SIGNED ) AND NOT + col0 + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-220
SELECT - col1 - 97 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND + CAST ( + col1 AS INTEGER ) AND NOT + col0 + + col0 IS NOT NULL
----

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

query II rowsort
SELECT + ( col1 ) + + + col2, col2 FROM tab0 AS cor0
----
100
99
128
47
31
10

query I rowsort
SELECT DISTINCT + 90 + - + 93 - ( - 86 ) FROM tab0 cor0
----
83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( col2 ) > - - col0
----
51
14
96

query I rowsort
SELECT DISTINCT - col2 + col0 + col2 AS col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT 56 * MIN( ALL 6 ) AS col2 FROM tab2
----
336

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT 56 * MIN ( ALL 6 ) AS col2 FROM tab2
----
336

query I rowsort
SELECT DISTINCT + 80 AS col0 FROM tab1
----
80

query II rowsort
SELECT 31, col1 FROM tab0
----
31
1
31
21
31
81

query I rowsort
SELECT DISTINCT + 68 - - col0 * - 17 AS col1 FROM tab1
----
-1377
-1479
-799

query II rowsort
SELECT col0 AS col1, - 22 FROM tab2
----
46
-22
64
-22
75
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-231
SELECT ALL + col0 AS col1, + col0 + + - col2 / col2 * - - CAST( NULL AS SIGNED ) * col2 - + 63 * + col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-231
SELECT ALL + col0 AS col1, + col0 + + - col2 / col2 * - - CAST ( NULL AS INTEGER ) * col2 - + 63 * + col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 * + + col1 * - ( - col2 ) NOT IN ( 50 )
----
0

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 * + + col1 * - ( - col2 ) NOT IN ( 50 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 <> 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-234
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 = ( NULL )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 93 / - - col0 <> + col1 * - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT 93 * - COUNT( ALL col2 ) AS col1 FROM tab1 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-237
SELECT 93 * - COUNT ( ALL col2 ) AS col1 FROM tab1 cor0
----
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-238
SELECT - 84 DIV col1 * col2 FROM tab1 AS cor0
----
-576
-68
-944

skipif mysql # not compatible
query I rowsort label-238
SELECT - 84 / col1 * col2 FROM tab1 AS cor0
----
-576
-68
-944

query II rowsort
SELECT DISTINCT 11 AS col2, col1 FROM tab2
----
11
51
11
67
11
77

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ( - COUNT( * ) ) * - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-240
SELECT ( - COUNT ( * ) ) * - COUNT ( * ) FROM tab0
----
9

query II rowsort
SELECT ALL 61 * + - 87 * - - col0 AS col1, - col2 AS col2 FROM tab1
----
-270657
-96
-451095
-59
-482937
-68

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT ( + 70 ) * - COUNT( * ) AS col0 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-243
SELECT ( + 70 ) * - COUNT ( * ) AS col0 FROM tab2
----
-210

query III rowsort
SELECT * FROM tab0 WHERE NOT - 84 + 13 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( + 19 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - col2 / + - col0 - + + 60 AND - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-247
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + ( + 84 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + ( + 84 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col0 + - col2 + col2 AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-249
SELECT + col2 + - CAST( NULL AS DECIMAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-249
SELECT + col2 + - CAST ( NULL AS REAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 44 + - + col1 * + col1 AS col0 FROM tab1 AS cor0
----
-152
-2165
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT - ( - MAX( DISTINCT - col2 ) ) DIV 81 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-251
SELECT - ( - MAX ( DISTINCT - col2 ) ) / 81 FROM tab2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT DISTINCT - - 44 * + 8 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
3168

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT - - 44 * + 8 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
3168

onlyif mysql # DIV for integer division: 
query I rowsort label-254
SELECT ALL col1 DIV - + col2 + + 32 AS col2 FROM tab1 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL col1 / - + col2 + + 32 AS col2 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-255
SELECT DISTINCT CAST( NULL AS DECIMAL ) + MIN( + col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT CAST ( NULL AS REAL ) + MIN ( + col2 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT COUNT( * ) - - + 70 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-256
SELECT COUNT ( * ) - - + 70 FROM tab0 AS cor0
----
73

query I rowsort
SELECT DISTINCT - + col2 - - col1 + col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT SUM( DISTINCT + col0 ) + + + COUNT( * ) + - + 14 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-258
SELECT SUM ( DISTINCT + col0 ) + + + COUNT ( * ) + - + 14 FROM tab1
----
216

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + col1 AS col2 FROM tab2 WHERE + col0 IN ( + col2 * 4 * + col0, col2 / - + col2, - col2 / - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 * + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 94 + 51 IS NULL
----

query I rowsort
SELECT - + col1 FROM tab2 WHERE NOT + + 30 + - - col0 + col2 IS NOT NULL
----

query I rowsort
SELECT - + col1 * - - col2 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

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

query I rowsort
SELECT - - 94 * - + col2 + + 37 + - + 37 AS col0 FROM tab0 AS cor0
----
-4418
-9306
-940

query I rowsort
SELECT ( + 57 ) AS col1 FROM tab0 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT + ( - SUM( - + col1 ) ) * - - COUNT( * ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-268
SELECT + ( - SUM ( - + col1 ) ) * - - COUNT ( * ) FROM tab2
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL - + COUNT( * ) + - COUNT( - ( col0 ) ) AS col0 FROM tab0 WHERE - col2 + - + 40 IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - + COUNT ( * ) + - COUNT ( - ( col0 ) ) AS col0 FROM tab0 WHERE - col2 + - + 40 IS NOT NULL
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-270
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) * 95 AS col0 FROM tab2
----
3
285

skipif mysql # not compatible
query II rowsort label-270
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) * 95 AS col0 FROM tab2
----
3
285

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-271
SELECT - 45 col0, + col1 + - ( + CAST( NULL AS DECIMAL ) ) / ( - CAST( col1 AS SIGNED ) ) + - 89 FROM tab0 AS cor0
----
-45
NULL
-45
NULL
-45
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-271
SELECT - 45 col0, + col1 + - ( + CAST ( NULL AS REAL ) ) / ( - CAST ( col1 AS INTEGER ) ) + - 89 FROM tab0 AS cor0
----
-45
NULL
-45
NULL
-45
NULL

query I rowsort
SELECT DISTINCT - - ( + col1 ) * ( + - 76 ) FROM tab0 AS cor0
----
-1596
-6156
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) * - - col0 col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + col1 * - - 11 AS col0 FROM tab1 AS cor0
----
154
517
55

query I rowsort
SELECT DISTINCT + col0 + + 61 FROM tab2 AS cor0
----
107
125
136

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-277
SELECT + SUM( - + col2 ) * - CAST( - COUNT( * ) AS SIGNED ) + + 40 + + - COUNT( * ) FROM tab1 AS cor0
----
-632

skipif mysql # not compatible
query I rowsort label-277
SELECT + SUM ( - + col2 ) * - CAST ( - COUNT ( * ) AS INTEGER ) + + 40 + + - COUNT ( * ) FROM tab1 AS cor0
----
-632

query I rowsort
SELECT col0 + - 62 AS col1 FROM tab0 cor0
----
-47
25
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-279
SELECT - 25 AS col0, - AVG ( - 91 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 12 * + col2, 69 * + CAST( ( + - col2 ) AS SIGNED ), - + col0 )
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-279
SELECT - 25 AS col0, - AVG ( - 91 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 12 * + col2, 69 * + CAST ( ( + - col2 ) AS INTEGER ), - + col0 )
----
-25
NULL

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col2 FROM tab0 WHERE NOT ( NOT ( 33 ) IS NOT NULL )
----
10
47
99

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE - col0 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-283
SELECT - COUNT ( DISTINCT + + col1 ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 79 ) col2 FROM tab0
----
79
79
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ALL - SUM( DISTINCT 89 ) + 34 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL - SUM ( DISTINCT 89 ) + 34 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL - - 81 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-360
-6480
80

onlyif mysql # aggregate syntax: 
query II rowsort label-288
SELECT - 60 + + 79 AS col0, - COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
19
0

skipif mysql # not compatible
query II rowsort label-288
SELECT - 60 + + 79 AS col0, - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
19
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-289
SELECT DISTINCT - COUNT( * ) / - 58 + + 17 + + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-289
SELECT DISTINCT - COUNT ( * ) / - 58 + + 17 + + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-290
SELECT - col1 + - 73 DIV + - col2 + + col2 + col2 FROM tab2
----
-2
4
50

skipif mysql # not compatible
query I rowsort label-290
SELECT - col1 + - 73 / + - col2 + + col2 + col2 FROM tab2
----
-2
4
50

query I rowsort
SELECT DISTINCT - 54 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT DISTINCT MAX( DISTINCT - 50 ) AS col0 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT MAX ( DISTINCT - 50 ) AS col0 FROM tab1
----
-50

query II rowsort
SELECT ALL - col2, col2 + + col2 + + + col0 AS col2 FROM tab0 AS cor0
----
-10
107
-47
109
-99
295

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT + MAX( ALL + col1 ) + + + SUM( ALL - 77 ) - + 49 AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-294
SELECT + MAX ( ALL + col1 ) + + + SUM ( ALL - 77 ) - + 49 AS col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT col2 + - - 84 FROM tab0 AS cor0
----
131
183
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-296
SELECT + col0, - col0 AS col1 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col2 <= NULL
----

skipif mysql # not compatible
query II rowsort label-296
SELECT + col0, - col0 AS col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col2 <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL + + COUNT( * ) * - + 26 + + SUM( - + 44 ) FROM tab2 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL + + COUNT ( * ) * - + 26 + + SUM ( - + 44 ) FROM tab2 AS cor0
----
-210

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 76 * col2 <= NULL
----

query I rowsort
SELECT DISTINCT + 63 + + + col0 - - col0 FROM tab0 AS cor0
----
237
257
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-301
SELECT ALL col1 * 62 + + col0 * CAST( col2 AS SIGNED ) * + col0 - + - col1, 52 AS col0 FROM tab2
----
168691
52
330471
52
51881
52

skipif mysql # not compatible
query II rowsort label-301
SELECT ALL col1 * 62 + + col0 * CAST ( col2 AS INTEGER ) * + col0 - + - col1, 52 AS col0 FROM tab2
----
168691
52
330471
52
51881
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( - - col1 ) ) col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT col2 * - - col2 AS col0 FROM tab2
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT + col0 DIV - 12 FROM tab1
----
-4
-7
-7

skipif mysql # not compatible
query I rowsort label-304
SELECT + col0 / - 12 FROM tab1
----
-4
-7
-7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > + 6 + - 22 - - col1 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-306
SELECT DISTINCT - CAST( + + 94 AS SIGNED ) AS col2 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT - CAST ( + + 94 AS INTEGER ) AS col2 FROM tab1
----
-94

query IIIIII rowsort
SELECT * FROM ( tab0 cor0 JOIN tab0 AS cor1 ON 90 * - 47 <> NULL )
----

query I rowsort
SELECT ALL - 16 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT - - MIN( ALL - 14 ) FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-310
SELECT - - MIN ( ALL - 14 ) FROM tab1 AS cor0
----
-14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 22 + 56 * + + col1 / + col1 >= - + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-312
SELECT ALL COUNT( * ) DIV + ( + + 84 ) + + 74 + - COUNT( * ) FROM tab0 cor0
----
71

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL COUNT ( * ) / + ( + + 84 ) + + 74 + - COUNT ( * ) FROM tab0 cor0
----
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-313
SELECT ALL + col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL + col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 * - col2 AS col0, 51 + - col2 + + 97 FROM tab2
----
1173
125
3080
108
3886
90

query I rowsort
SELECT DISTINCT - ( 9 ) * col0 FROM tab1
----
-459
-765
-819

query I rowsort
SELECT + ( + + 58 ) FROM tab1
----
58
58
58

query I rowsort
SELECT + - 34 * + col2 - + col1 FROM tab0 WHERE + 29 - - col0 + 16 * + - col0 > col0 / + - 68 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT MIN( - + ( - - ( - col2 ) ) ) + ( - COUNT( * ) ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT MIN ( - + ( - - ( - col2 ) ) ) + ( - COUNT ( * ) ) FROM tab1
----
56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * - + col0 + + col2 BETWEEN 86 + - 54 AND 55 * col2
----

query I rowsort
SELECT ALL - ( + 11 ) AS col1 FROM tab0 cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
-11
-11
-11

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

query I rowsort
SELECT DISTINCT + - ( + - col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 > NULL
----

query I rowsort
SELECT + - 49 - + col1 - - - col1 FROM tab1 AS cor0
----
-143
-59
-77

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND ( 52 )
----

query I rowsort
SELECT DISTINCT + + col1 + + col2 * - col2 FROM tab2 AS cor0
----
-1523
-3297
-478

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-328
SELECT - 25 * - + CAST( NULL AS SIGNED ) * - col0 + - + 94 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-328
SELECT - 25 * - + CAST ( NULL AS INTEGER ) * - col0 + - + 94 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT col2 < - - 73
----
1

skipif mysql # not compatible
query I rowsort label-329
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT col2 < - - 73
----
1

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab1 WHERE col2 <= - + col2 * + col0
----

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

query I rowsort
SELECT DISTINCT - col2 * - - 95 AS col2 FROM tab0
----
-4465
-9405
-950

query I rowsort
SELECT - 5 * + 3 AS col2 FROM tab2 AS cor0
----
-15
-15
-15

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col1 < NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 69, + col0 col2 FROM tab1 AS cor0
----
-69
51
-69
85
-69
91

query I rowsort
SELECT + - ( + - 42 ) AS col1 FROM tab2 AS cor0
----
42
42
42

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT - col2 >= - - col2
----
-1
-21
-81

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

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

query I rowsort
SELECT DISTINCT - 9 * + - col0 + + + 29 AS col1 FROM tab2 AS cor0
----
443
605
704

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT DISTINCT - SUM( + + 94 ) FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT - SUM ( + + 94 ) FROM tab1 AS cor0
----
-282

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

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

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

query I rowsort
SELECT - + ( - col2 ) + col2 AS col1 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab0 AS cor0 WHERE NOT ( 98 ) IS NULL
----
63

query I rowsort
SELECT DISTINCT - 82 + 87 + 43 FROM tab1 cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-349
SELECT + 85 * + + CAST( - + 70 AS SIGNED ) AS col1, col1 AS col1 FROM tab0
----
-5950
1
-5950
21
-5950
81

skipif mysql # not compatible
query II rowsort label-349
SELECT + 85 * + + CAST ( - + 70 AS INTEGER ) AS col1, col1 AS col1 FROM tab0
----
-5950
1
-5950
21
-5950
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( col1 ) >= 74
----

query I rowsort
SELECT ( 1 ) AS col1 FROM tab1
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 30 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 14 - + col2 NOT BETWEEN + - 13 AND ( 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 39 + - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT DISTINCT COUNT( * ) * + 37 + + + 13 AS col2 FROM tab0 WHERE NULL <> - col1
----
13

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT COUNT ( * ) * + 37 + + + 13 AS col2 FROM tab0 WHERE NULL <> - col1
----
13

query I rowsort
SELECT ALL col1 * + col0 * - 4 FROM tab2 cor0
----
-19712
-20100
-9384

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-358
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN CAST( col2 AS SIGNED ) / col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-358
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN CAST ( col2 AS INTEGER ) / col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-359
SELECT DISTINCT + - col2 DIV col0, col2 AS col1 FROM tab1 AS cor0
----
-1
96
0
59
0
68

skipif mysql # not compatible
query II rowsort label-359
SELECT DISTINCT + - col2 / col0, col2 AS col1 FROM tab1 AS cor0
----
-1
96
0
59
0
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 0 col0 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-362
SELECT col0 DIV - col2 col2, col2 FROM tab1
----
-1
59
-1
68
0
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-362
SELECT col0 / - col2 col2, col2 FROM tab1
----
-1
59
-1
68
0
96

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-364
SELECT CAST( + + col0 AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-364
SELECT CAST ( + + col0 AS INTEGER ) AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL col2 * + + col1 * - + 55 FROM tab2
----
-169400
-213730
-64515

query I rowsort
SELECT DISTINCT ( - + col2 ) * + col1 * 39 FROM tab2
----
-120120
-151554
-45747

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT DISTINCT + MAX( DISTINCT - col2 ) * - ( - COUNT( * ) ) AS col1 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT + MAX ( DISTINCT - col2 ) * - ( - COUNT ( * ) ) AS col1 FROM tab1
----
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-369
SELECT ALL - COUNT( ALL - col0 ) / - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL - COUNT ( ALL - col0 ) / - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT + - MAX( ALL 83 ) FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-370
SELECT + - MAX ( ALL 83 ) FROM tab2 AS cor0
----
-83

query I rowsort
SELECT ALL + col2 * + + col0 * + col2 AS col2 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT DISTINCT - 46 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL MIN( - 96 ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL MIN ( - 96 ) FROM tab2
----
-96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-375
SELECT DISTINCT CAST( - - 20 AS SIGNED ) col1 FROM tab0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-375
SELECT DISTINCT CAST ( - - 20 AS INTEGER ) col1 FROM tab0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-376
SELECT ALL col1 DIV 90 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL col1 / 90 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * - 65 * + col1 + + col2 FROM tab1 AS cor0
----
-27566
-277937
-46314

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT ALL - 93 + - + ( + MIN( ALL col0 ) ) AS col1 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL - 93 + - + ( + MIN ( ALL col0 ) ) AS col1 FROM tab0 AS cor0
----
-108

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-379
SELECT * FROM tab0 AS cor0 WHERE 69 / - - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-379
SELECT * FROM tab0 AS cor0 WHERE 69 / - - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL 59 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 - - col2 col2, - col0 FROM tab1
----
21
-91
54
-85
82
-51

query I rowsort
SELECT col0 + + - col0 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = col0 / col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT + + COUNT( - + col2 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-385
SELECT + + COUNT ( - + col2 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 27 col2, + 82 / + col1 * - + ( - - 81 ) FROM tab0 AS cor0 WHERE col0 + - col1 * 51 IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NULL = col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 53 AND - - 98
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + 44 * - + 96 * - + 1 + - col0, col0, - col1, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT + SUM( - col0 ) * + ( - 98 ) * - - 60 AS col1 FROM tab0 AS cor0
----
1170120

skipif mysql # not compatible
query I rowsort label-390
SELECT + SUM ( - col0 ) * + ( - 98 ) * - - 60 AS col1 FROM tab0 AS cor0
----
1170120

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT + + COUNT( * ) * + 27 AS col1 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-391
SELECT + + COUNT ( * ) * + 27 AS col1 FROM tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT - SUM( ALL 36 ) FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-392
SELECT - SUM ( ALL 36 ) FROM tab1 AS cor0
----
-108

query I rowsort
SELECT DISTINCT + 41 * col2 AS col0 FROM tab1 AS cor0
----
2419
2788
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT - SUM( + col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-394
SELECT - SUM ( + col0 ) AS col1 FROM tab0 AS cor0
----
-199

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

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT ALL + COUNT( * ) col1 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-396
SELECT ALL + COUNT ( * ) col1 FROM tab2 WHERE NULL IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-397
SELECT ALL - col1 DIV + + 43 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL - col1 / + + 43 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 + + 21 + 10 AS col2 FROM tab1
----
127
90
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-399
SELECT ALL + - col2 * + col1 - + CAST( + col1 AS SIGNED ) * - 11 FROM tab2 AS cor0
----
-2233
-3149
-612

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL + - col2 * + col1 - + CAST ( + col1 AS INTEGER ) * - 11 FROM tab2 AS cor0
----
-2233
-3149
-612

query I rowsort
SELECT DISTINCT - + 90 AS col0 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT - col1 + - ( + 97 ) FROM tab0 AS cor0
----
-118
-178
-98

query I rowsort
SELECT - col1 + + col2 * - 52 AS col1 FROM tab2 AS cor0
----
-1247
-2157
-3083

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT DISTINCT - + SUM( ALL 99 ) + - 90 FROM tab1 AS cor0
----
-387

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT - + SUM ( ALL 99 ) + - 90 FROM tab1 AS cor0
----
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT COUNT( * ) + - ( - - ( COUNT( * ) ) ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-404
SELECT COUNT ( * ) + - ( - - ( COUNT ( * ) ) ) col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL = col2
----

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab0 WHERE NOT - + col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT + MIN( + 56 ) AS col0 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-407
SELECT + MIN ( + 56 ) AS col0 FROM tab2
----
56

query I rowsort
SELECT col0 * + col2 - + col1 FROM tab0 AS cor0
----
624
849
9602

query I rowsort
SELECT DISTINCT - col1 * - col2 + + 61 * - + col1 + - col0 AS col2 FROM tab1 cor0
----
-95
238
439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 72 col0 FROM tab2
----
3312
4608
5400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-411
SELECT 0 * - ( + CAST( 48 AS SIGNED ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-411
SELECT 0 * - ( + CAST ( 48 AS INTEGER ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT ALL - MIN( ALL - + col2 ) FROM tab0 WHERE NULL IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL - MIN ( ALL - + col2 ) FROM tab0 WHERE NULL IS NULL
----
99

query I rowsort
SELECT DISTINCT - col0 * 64 FROM tab0 AS cor0
----
-5568
-6208
-960

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-416
SELECT col0 + CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT + + 27 / + + col0 / + col1 + - col1 + - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT col0 + CAST ( NULL AS REAL ) FROM tab1 WHERE NOT + + 27 / + + col0 / + col1 + - col1 + - col1 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 81 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-418
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE col2 / + - CAST( - col1 AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-418
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE col2 / + - CAST ( - col1 AS INTEGER ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - - col2 * + 98 * - col0 + - 77 + - - 75 * + 95 AS col1 FROM tab2 cor0
----
-243832
-419252
-96636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-420
SELECT ALL + CAST( - col1 AS SIGNED ) + + col0 - + + 36 + + - col2 * - + col2 + + 14 - + 31 * - - col1 col1 FROM tab1 AS cor0
----
3189
3384
8797

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-420
SELECT ALL + CAST ( - col1 AS INTEGER ) + + col0 - + + 36 + + - col2 * - + col2 + + 14 - + 31 * - - col1 col1 FROM tab1 AS cor0
----
3189
3384
8797

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT COUNT( * ) + - 69 AS col1 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-421
SELECT COUNT ( * ) + - 69 AS col1 FROM tab2
----
-66

query II rowsort
SELECT - col2 AS col2, ( col1 ) FROM tab1
----
-59
5
-68
47
-96
14

query II rowsort
SELECT DISTINCT 8, + col2 AS col2 FROM tab2
----
8
23
8
40
8
58

query I rowsort
SELECT DISTINCT col0 * 3 * col2 + - 29 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
2086
2581
28780

onlyif mysql # DIV for integer division: 
query II rowsort label-425
SELECT ALL - col1 AS col0, + 21 + col0 + + col2 DIV - col2 col0 FROM tab1 cor0
----
-14
71
-47
111
-5
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-425
SELECT ALL - col1 AS col0, + 21 + col0 + + col2 / - col2 col0 FROM tab1 cor0
----
-14
71
-47
111
-5
105

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT DISTINCT - COUNT( * ) + - 76 * 63 AS col1 FROM tab1 AS cor0
----
-4791

skipif mysql # not compatible
query I rowsort label-426
SELECT DISTINCT - COUNT ( * ) + - 76 * 63 AS col1 FROM tab1 AS cor0
----
-4791

query I rowsort
SELECT + 46 - col2 * + + col0 AS col2 FROM tab2 AS cor0
----
-1012
-2514
-4304

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-428
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + 74 + + + col1 / - col2 * col0 >= - col1 / ( + col2 ) + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-428
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + 74 + + + col1 / - col2 * col0 >= - col1 / ( + col2 ) + - + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 - + + col2 + col1 * + - col0 + + col2 col1 FROM tab2 AS cor0
----
-2288
-4870
-4967

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT ALL - + 59 + SUM( ALL + col1 ) - 84 * - ( 89 ) FROM tab0 AS cor0
----
7520

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL - + 59 + SUM ( ALL + col1 ) - 84 * - ( 89 ) FROM tab0 AS cor0
----
7520

query I rowsort
SELECT - 54 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT - COUNT( * ) FROM tab2 WHERE 73 + - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-432
SELECT - COUNT ( * ) FROM tab2 WHERE 73 + - col1 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT 6 * col0 FROM tab0 WHERE col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT + COUNT( * ) + - + 10 AS col2 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-434
SELECT + COUNT ( * ) + - + 10 AS col2 FROM tab0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-435
SELECT - col1 * col2 * - + col1 * + 95 + - 91 * - - CAST( - col1 AS SIGNED ) FROM tab1
----
140580
14274417
1788794

skipif mysql # not compatible
query I rowsort label-435
SELECT - col1 * col2 * - + col1 * + 95 + - 91 * - - CAST ( - col1 AS INTEGER ) FROM tab1
----
140580
14274417
1788794

query II rowsort
SELECT col0 + + - col1 AS col2, - col0 AS col1 FROM tab2
----
-13
-64
-5
-46
8
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-437
SELECT ALL - col2 + + col1 DIV + - col1 AS col2 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL - col2 + + col1 / + - col1 AS col2 FROM tab2
----
-24
-41
-59

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

query I rowsort
SELECT + col1 + - col1 * - col0 + - + col2 AS col1 FROM tab0
----
-1
1249
1838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col0 FROM tab0 AS cor0 WHERE NOT NULL = 79 + - col2
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 JOIN tab0 AS cor1 ON NOT + 44 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL 12 FROM tab1, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT col1 * + + 88 FROM tab2 AS cor0
----
4488
5896
6776

query I rowsort
SELECT DISTINCT - col1 * - col2 * - + col2 AS col0 FROM tab2 AS cor0
----
-123200
-225388
-26979

query II rowsort
SELECT DISTINCT - 98 AS col2, col1 FROM tab1 AS cor0
----
-98
14
-98
47
-98
5

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 45 * - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-448
SELECT + CAST( + + 12 AS SIGNED ) AS col2 FROM tab1 cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-448
SELECT + CAST ( + + 12 AS INTEGER ) AS col2 FROM tab1 cor0
----
12
12
12

query I rowsort
SELECT DISTINCT col2 * - 12 AS col0 FROM tab2
----
-276
-480
-696

query II rowsort
SELECT ALL ( 33 ), col0 AS col0 FROM tab2
----
33
46
33
64
33
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( col1, col2 * + 80, ( - + col1 ), + + col1, - col1 )
----

query I rowsort
SELECT + col0 * - 38 AS col2 FROM tab0 WHERE NOT - - 42 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 88 > + col1
----

query I rowsort
SELECT + col2 + 23 - + - col2 + - col2 AS col0 FROM tab2
----
46
63
81

query I rowsort
SELECT ALL ( - - ( - + col2 ) ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col1 + - col2 AS col0 FROM tab1 cor0
----
-110
-115
-64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 67 >= 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-458
SELECT ALL col2, col2 * + - col0 * + col2 * - CAST( NULL AS SIGNED ) + - - col2 + 48 AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-458
SELECT ALL col2, col2 * + - col0 * + col2 * - CAST ( NULL AS INTEGER ) + - - col2 + 48 AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT col1 + 91 + - col2 AS col2 FROM tab0 AS cor0
----
-7
102
125

query I rowsort
SELECT DISTINCT 20 FROM tab0 AS cor0 WHERE + 55 + - - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND + 64
----
0

skipif mysql # not compatible
query I rowsort label-461
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND + 64
----
0

query I rowsort
SELECT ALL + ( - - ( 21 ) ) * + + col0 * + 22 + - - col0 FROM tab2 AS cor0
----
21298
29632
34725

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + - + 34 + + col0 IS NULL
----

query II rowsort
SELECT ALL col2 + - ( - col2 ) AS col2, + 12 AS col2 FROM tab2 cor0
----
116
12
46
12
80
12

query I rowsort
SELECT DISTINCT - + 84 - + col0 AS col1 FROM tab1 cor0
----
-135
-169
-175

query I rowsort
SELECT + col0 * ( col0 ) AS col1 FROM tab0
----
225
7569
9409

query I rowsort
SELECT ALL - col1 * + ( - col0 ) FROM tab1
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab1 WHERE col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-469
SELECT 11 DIV ( - col1 ) + - col1 AS col2, col0 * - 8 + - CAST( - - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-422
-47
-775
-7
-685

skipif mysql # not compatible
query II rowsort label-469
SELECT 11 / ( - col1 ) + - col1 AS col2, col0 * - 8 + - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-422
-47
-775
-7
-685

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 * col1 * + 16 col1 FROM tab1 AS cor0
----
17296
1840
5152

query II rowsort
SELECT DISTINCT - ( col1 ), - col1 AS col2 FROM tab0 cor0
----
-1
-1
-21
-21
-81
-81

query II rowsort
SELECT DISTINCT - col1 * + + 65 + + - col0, col2 FROM tab0 AS cor0
----
-1452
10
-162
99
-5280
47

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT - 65 + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-62

skipif mysql # not compatible
query I rowsort label-475
SELECT - 65 + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-62

query I rowsort
SELECT + - 87 AS col2 FROM tab2 AS cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-477
SELECT + - CAST( NULL AS DECIMAL ) / + COUNT( * ), - MAX( 95 ) AS col2 FROM tab1 AS cor0
----
NULL
-95

skipif mysql # not compatible
query II rowsort label-477
SELECT + - CAST ( NULL AS REAL ) / + COUNT ( * ), - MAX ( 95 ) AS col2 FROM tab1 AS cor0
----
NULL
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT 72 * - - MIN( ALL col1 ) FROM tab2
----
3672

skipif mysql # not compatible
query I rowsort label-478
SELECT 72 * - - MIN ( ALL col1 ) FROM tab2
----
3672

query I rowsort
SELECT ( + 33 ) AS col1 FROM tab1
----
33
33
33

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NULL >= + col1
----

query I rowsort
SELECT DISTINCT - + col2 * + col0 * - 13 + + - 45 + + col0 * - col2 - col1 AS col2 FROM tab1 AS cor0
----
58693
60130
74164

query I rowsort
SELECT ALL 84 + ( - ( + col1 ) ) FROM tab1 cor0
----
37
70
79

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

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

query I rowsort
SELECT ALL + col2 + - + 2 FROM tab0 AS cor0
----
45
8
97

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT DISTINCT - SUM( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
185

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT - SUM ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
185

query I rowsort
SELECT ALL 94 * - - col1 + col2 + col1 FROM tab0 AS cor0
----
194
2005
7742

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-488
SELECT + col1 * + CAST( - col2 AS SIGNED ) + + - col1 + - + 8 * - + col2 * + - col1 + + 93 * - - col1 FROM tab1 AS cor0
----
-10808
-2195
-24440

skipif mysql # not compatible
query I rowsort label-488
SELECT + col1 * + CAST ( - col2 AS INTEGER ) + + - col1 + - + 8 * - + col2 * + - col1 + + 93 * - - col1 FROM tab1 AS cor0
----
-10808
-2195
-24440

query I rowsort
SELECT - col2 + + 65 AS col1 FROM tab0 AS cor0
----
-34
18
55

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

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

query I rowsort
SELECT col0 * - - 26 AS col1 FROM tab2
----
1196
1664
1950

query II rowsort
SELECT col0 * + 48, - col1 + col0 AS col1 FROM tab0
----
4176
66
4656
96
720
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT ALL + + COUNT( 11 ) + + 86 AS col0 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL + + COUNT ( 11 ) + + 86 AS col0 FROM tab0 AS cor0
----
89

query I rowsort
SELECT + - 75 - col0 AS col2 FROM tab1 AS cor0
----
-126
-160
-166

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-495
SELECT + CAST ( NULL AS INTEGER ) - + col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + + 47 - - col1 AS col2 FROM tab2 AS cor0
----
56
75
84

query I rowsort
SELECT 66 - + col2 FROM tab1 cor0
----
-2
-30
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-498
SELECT ALL col0 * col2 / + 21 * + + CAST( NULL AS SIGNED ) + + col2 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL col0 * col2 / + 21 * + + CAST ( NULL AS INTEGER ) + + col2 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + 24 + - 45 + + col1 AS col2 FROM tab0 AS cor0
----
-19
141
21

query I rowsort
SELECT DISTINCT - 94 * 84 FROM tab1
----
-7896

query III rowsort
SELECT ALL * FROM tab2 WHERE - 57 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-502
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + 68 AND + col0 + - CAST( + + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-502
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + 68 AND + col0 + - CAST ( + + col0 AS INTEGER )
----

query I rowsort
SELECT + ( - 12 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 61 * + 48 AS col0 FROM tab0 AS cor0
----
-2928
-2928
-2928

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

query I rowsort
SELECT ALL col1 * + 22 * col1 AS col0 FROM tab2
----
130438
57222
98758

query I rowsort
SELECT ALL - + 94 FROM tab0 AS cor0 WHERE + col0 <= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-509
SELECT + - CAST( NULL AS SIGNED ) * + col0, - 30 AS col0 FROM tab2 AS cor0
----
NULL
-30
NULL
-30
NULL
-30

skipif mysql # not compatible
query II rowsort label-509
SELECT + - CAST ( NULL AS INTEGER ) * + col0, - 30 AS col0 FROM tab2 AS cor0
----
NULL
-30
NULL
-30
NULL
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT - 36 + COUNT( * ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT - 36 + COUNT ( * ) FROM tab1 AS cor0
----
-33

query II rowsort
SELECT DISTINCT - 71 AS col2, - 26 * + + col2 FROM tab1 AS cor0
----
-71
-1534
-71
-1768
-71
-2496

query I rowsort
SELECT ( + col0 ) * - col0 + col2 AS col1 FROM tab2
----
-2093
-4056
-5567

onlyif mysql # aggregate syntax: 
query II rowsort label-513
SELECT COUNT( * ) + + COUNT( * ), ( 64 ) AS col1 FROM tab2
----
6
64

skipif mysql # not compatible
query II rowsort label-513
SELECT COUNT ( * ) + + COUNT ( * ), ( 64 ) AS col1 FROM tab2
----
6
64

query I rowsort
SELECT ALL ( - 75 ) AS col2 FROM tab0
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-515
SELECT CAST( - + col0 AS SIGNED ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-515
SELECT CAST ( - + col0 AS INTEGER ) AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT 90 * + COUNT( * ) col0 FROM tab0
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-516
SELECT 90 * + COUNT ( * ) col0 FROM tab0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT - COUNT( * ) * + + 1 AS col0 FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-517
SELECT - COUNT ( * ) * + + 1 AS col0 FROM tab2, tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 43 + - col2 AS col0 FROM tab0 AS cor0
----
-4
-56
33

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 <> NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + col0 + col0 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-522
SELECT + col2 * - 11 + - col0 - 54 AS col0, col2 DIV - - 1 AS col1 FROM tab1 AS cor0
----
-1161
96
-788
59
-893
68

skipif mysql # not compatible
query II rowsort label-522
SELECT + col2 * - 11 + - col0 - 54 AS col0, col2 / - - 1 AS col1 FROM tab1 AS cor0
----
-1161
96
-788
59
-893
68

onlyif mysql # DIV for integer division: 
query I rowsort label-523
SELECT + - 66 + - col0 DIV col0 AS col1 FROM tab2 cor0 WHERE 14 IS NOT NULL
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-523
SELECT + - 66 + - col0 / col0 AS col1 FROM tab2 cor0 WHERE 14 IS NOT NULL
----
-67
-67
-67

query I rowsort
SELECT DISTINCT 87 * - 77 * 53 + + - col0 FROM tab1 cor0
----
-355098
-355132
-355138

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 * 75 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT MAX( ALL 6 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-526
SELECT MAX ( ALL 6 ) AS col0 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT 73 * + + MIN( ALL col0 ) AS col1 FROM tab2
----
3358

skipif mysql # not compatible
query I rowsort label-527
SELECT 73 * + + MIN ( ALL col0 ) AS col1 FROM tab2
----
3358

query I rowsort
SELECT ALL - col0 * + 64 AS col1 FROM tab1
----
-3264
-5440
-5824

query II rowsort
SELECT + col2 * + col2 AS col0, - 82 * 41 + - - col0 FROM tab0 WHERE NOT + - col2 + col1 * - - 30 + - 46 * + 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT ALL + MAX( 61 ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL + MAX ( 61 ) FROM tab0
----
61

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - 76 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col2 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL + ( - 20 ) * col2 * 99 + col1 * - ( - + col0 ) + - - 15 FROM tab1 AS cor0 WHERE + col2 * - 43 NOT BETWEEN - col0 AND - 47
----
-116380
-130348
-189351

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT + + ( - - COUNT( * ) ) + - 89 FROM tab2 WHERE NOT ( NOT ( NULL ) BETWEEN NULL AND + col1 + + 43 )
----
-89

skipif mysql # not compatible
query I rowsort label-534
SELECT + + ( - - COUNT ( * ) ) + - 89 FROM tab2 WHERE NOT ( NOT ( NULL ) BETWEEN NULL AND + col1 + + 43 )
----
-89

query I rowsort
SELECT DISTINCT 78 * - 92 * - col2 FROM tab2
----
165048
287040
416208

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-536
SELECT DISTINCT ( + col2 ) * - CAST( col0 AS SIGNED ) + + - col0 + col1, 99 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-639
NULL
-936
NULL
-9699
NULL

skipif mysql # not compatible
query II rowsort label-536
SELECT DISTINCT ( + col2 ) * - CAST ( col0 AS INTEGER ) + + - col0 + col1, 99 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-639
NULL
-936
NULL
-9699
NULL

query I rowsort
SELECT ALL + ( - - ( - col2 ) ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - - ( 43 ) ) IN ( + col1 + col0 + - + col0, 33 + - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 81 >= col0 * - col2 * + + 42 * - - 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 42 ) FROM tab2 AS cor0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-541
SELECT - col0 * ( + - col0 ) * col1 + - 92 + - - 9 * + col0 + 44 * + col0 - + CAST( - + col1 AS SIGNED ) FROM tab1 cor0
----
39039
393985
40543

skipif mysql # not compatible
query I rowsort label-541
SELECT - col0 * ( + - col0 ) * col1 + - 92 + - - 9 * + col0 + 44 * + col0 - + CAST ( - + col1 AS INTEGER ) FROM tab1 cor0
----
39039
393985
40543

query I rowsort
SELECT - ( - + col1 ) * + + col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT + col1 * 87 FROM tab2
----
4437
5829
6699

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT DISTINCT - col0 DIV + 40 AS col0 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT - col0 / + 40 AS col0 FROM tab1
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-545
SELECT ALL + col0 DIV + 85 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-545
SELECT ALL + col0 / + 85 FROM tab1
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT col1 + + col0 + + + col2 DIV - col0 - + + 54 AS col2 FROM tab1
----
10
36
84

skipif mysql # not compatible
query I rowsort label-546
SELECT col1 + + col0 + + + col2 / - col0 - + + 54 AS col2 FROM tab1
----
10
36
84

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT COUNT( * ) + + 49 AS col1 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-547
SELECT COUNT ( * ) + + 49 AS col1 FROM tab1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT 10 + + 21 + + + COUNT( * ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-548
SELECT 10 + + 21 + + + COUNT ( * ) FROM tab2
----
34

query I rowsort
SELECT DISTINCT + col1 + - col1 + + - 57 FROM tab1
----
-57

query II rowsort
SELECT ALL - col1, + 67 + 14 AS col2 FROM tab1 cor0
----
-14
81
-47
81
-5
81

query I rowsort
SELECT ALL + - col1 + - 1 * + 89 AS col1 FROM tab2 cor0
----
-140
-156
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT + 95 + MAX( + + col0 ) AS col2 FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-552
SELECT + 95 + MAX ( + + col0 ) AS col2 FROM tab1 AS cor0
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-553
SELECT - ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-553
SELECT - ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND + CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT ALL + col1 + + + 33 FROM tab2 cor0
----
100
110
84

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT + + 98 + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
107

skipif mysql # not compatible
query I rowsort label-555
SELECT + + 98 + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
107

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT col1 * - 75 FROM tab0 cor0
----
-1575
-6075
-75

query I rowsort
SELECT col2 * - + 57 FROM tab0 AS cor0
----
-2679
-5643
-570

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-560
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN + col1 AND col2
----

skipif mysql # not compatible
query III rowsort label-560
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN + col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT DISTINCT - - MAX( + 12 ) FROM tab1 WHERE NULL IS NULL
----
12

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT - - MAX ( + 12 ) FROM tab1 WHERE NULL IS NULL
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT COUNT( DISTINCT - 97 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT COUNT ( DISTINCT - 97 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-563
SELECT 90 AS col2, COUNT( * ) * - + 50 AS col2 FROM tab0 AS cor0
----
90
-150

skipif mysql # not compatible
query II rowsort label-563
SELECT 90 AS col2, COUNT ( * ) * - + 50 AS col2 FROM tab0 AS cor0
----
90
-150

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-566
SELECT - ( - col1 ) * - col0 + 55 DIV 34 AS col1 FROM tab1
----
-424
-4276
-713

skipif mysql # not compatible
query I rowsort label-566
SELECT - ( - col1 ) * - col0 + 55 / 34 AS col1 FROM tab1
----
-424
-4276
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT + MIN( ALL col0 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-567
SELECT + MIN ( ALL col0 ) col2 FROM tab2
----
46

query I rowsort
SELECT + col1 * col0 - col2 FROM tab0 WHERE NOT ( - col2 * - 82 ) > NULL
----

query I rowsort
SELECT - col1 + 63 FROM tab1 WHERE col2 / - 68 <> NULL
----

query I rowsort
SELECT ALL col1 * 42 + + col2 * col2 FROM tab0 WHERE NOT NULL = ( 61 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 75 ) < NULL
----

query I rowsort
SELECT ALL + col1 * 2 AS col2 FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-573
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col1 + col1 * - 25 FROM tab2
----
-1326
-1742
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT + 89 * COUNT( * ) FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-575
SELECT + 89 * COUNT ( * ) FROM tab0
----
267

query I rowsort
SELECT DISTINCT 50 + - ( - 36 ) AS col2 FROM tab1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT COUNT( ALL - col0 ) * 89 AS col1 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-577
SELECT COUNT ( ALL - col0 ) * 89 AS col1 FROM tab2
----
267

query I rowsort
SELECT ( 45 ) + 21 AS col1 FROM tab0
----
66
66
66

query I rowsort
SELECT col2 * 3 AS col1 FROM tab0
----
141
297
30

query I rowsort
SELECT col2 * - 91 AS col0 FROM tab1
----
-5369
-6188
-8736

query I rowsort
SELECT 6 + - ( col1 ) FROM tab2
----
-45
-61
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT MAX( DISTINCT + 44 ) * COUNT( * ) AS col2 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-582
SELECT MAX ( DISTINCT + 44 ) * COUNT ( * ) AS col2 FROM tab0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT COUNT( + col2 ) + 31 AS col2 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-583
SELECT COUNT ( + col2 ) + 31 AS col2 FROM tab1
----
34

query I rowsort
SELECT col1 * ( + col2 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1344
295
3196

query I rowsort
SELECT ALL - 33 + col2 * 40 FROM tab2
----
1567
2287
887

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-586
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) + col2 IN ( - col0 * + 82 + col0 )
----

skipif mysql # not compatible
query III rowsort label-586
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + col2 IN ( - col0 * + 82 + col0 )
----

query I rowsort
SELECT DISTINCT + ( 58 ) FROM tab1 WHERE NOT - col1 IS NULL
----
58

query I rowsort
SELECT ALL - col0 * 58 + col2 FROM tab1 AS cor0
----
-2862
-4871
-5210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 - - 53 col0 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT 81 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

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

query I rowsort
SELECT ALL - 83 * col2 FROM tab2 cor0
----
-1909
-3320
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT ( ( COUNT( * ) ) ) FROM tab2 AS cor0 WHERE NOT col0 IN ( - 42 * + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-593
SELECT ( ( COUNT ( * ) ) ) FROM tab2 AS cor0 WHERE NOT col0 IN ( - 42 * + col0 )
----
3

query I rowsort
SELECT DISTINCT 9 FROM tab1 AS cor0 WHERE NOT 70 * - col0 IS NOT NULL
----

query I rowsort
SELECT - + ( 34 ) * 52 AS col2 FROM tab1 cor0
----
-1768
-1768
-1768

query I rowsort
SELECT ALL + col2 * + 42 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1974
4158
420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 27 col2 FROM tab1 AS cor0
----
-1593
-1836
-2592

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 37 BETWEEN ( NULL ) AND ( + col2 )
----
46
51
23

onlyif mysql # DIV for integer division: 
query I rowsort label-599
SELECT ( 98 ) DIV col2 AS col2 FROM tab0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-599
SELECT ( 98 ) / col2 AS col2 FROM tab0
----
0
2
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT + 48 * + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( - col1 ) <> ( col2 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-601
SELECT + 48 * + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( - col1 ) <> ( col2 * - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT DISTINCT + 59 - - COUNT( * ) FROM tab0 WHERE NULL <> NULL
----
59

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT + 59 - - COUNT ( * ) FROM tab0 WHERE NULL <> NULL
----
59

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > - col2 * col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT MIN( ALL + 62 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-604
SELECT MIN ( ALL + 62 ) FROM tab1
----
62

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE ( NULL ) BETWEEN + 2 AND + col0 + 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-606
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( col1 ) <> ( col1 / CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-606
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( col1 ) <> ( col1 / CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT ( 95 ) * + - col0 + + col1 DIV 53 AS col0 FROM tab1
----
-4845
-8075
-8645

skipif mysql # not compatible
query I rowsort label-608
SELECT ( 95 ) * + - col0 + + col1 / 53 AS col0 FROM tab1
----
-4845
-8075
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT 49 + + 15 + 11 + + COUNT( * ) * COUNT( * ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-609
SELECT 49 + + 15 + 11 + + COUNT ( * ) * COUNT ( * ) FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT COUNT( * ) - + 17 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-610
SELECT COUNT ( * ) - + 17 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-611
SELECT * FROM tab2 WHERE - col2 <= - col0 - - CAST( col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-611
SELECT * FROM tab2 WHERE - col2 <= - col0 - - CAST ( col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN - col1 AND 27
----

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

query I rowsort
SELECT ALL + - ( - - 71 ) AS col1 FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT ALL + 61 * - col1 + + - 44 * col0 + - 78 FROM tab1 AS cor0
----
-3176
-4123
-6949

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-617
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT - CAST ( NULL AS REAL ) + - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 38 - - - 45 FROM tab1 AS cor0
----
-7
-7
-7

query I rowsort
SELECT + 96 FROM tab1 AS cor0 WHERE 92 IN ( 8 )
----

query II rowsort
SELECT ALL + + 95 AS col2, col2 AS col2 FROM tab1 AS cor0
----
95
59
95
68
95
96

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL 68 * - 29 - + 56 + - + MAX( + col1 ) AS col1 FROM tab1
----
-2075

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL 68 * - 29 - + 56 + - + MAX ( + col1 ) AS col1 FROM tab1
----
-2075

query I rowsort
SELECT ALL + 22 * - col1 FROM tab0
----
-1782
-22
-462

query I rowsort
SELECT + ( col1 ) * + col2 AS col2 FROM tab0 WHERE - - col1 IS NULL
----

query I rowsort
SELECT - ( ( + 67 ) ) AS col2 FROM tab0 WHERE ( + 10 ) > - 64 + col2
----
-67
-67

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE ( + 8 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT 59 - SUM( ALL col2 ) + + 29 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-68

skipif mysql # not compatible
query I rowsort label-626
SELECT 59 - SUM ( ALL col2 ) + + 29 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL + COUNT( * ) * + 15 FROM tab2 AS cor0 WHERE + col0 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL + COUNT ( * ) * + 15 FROM tab2 AS cor0 WHERE + col0 <= ( NULL )
----
0

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

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

query I rowsort
SELECT + col2 * - + col0 + + col1 FROM tab1 AS cor0
----
-4882
-5010
-6141

query I rowsort
SELECT - + ( - col2 ) * + col1 * - 58 FROM tab0 AS cor0
----
-12180
-220806
-5742

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-631
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 WHERE NOT CAST( ( - col2 ) AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 WHERE NOT CAST ( ( - col2 ) AS REAL ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 AS col2, 67 col0 FROM tab2 AS cor0
----
46
67
64
67
75
67

query I rowsort
SELECT + - ( - - col2 ) FROM tab0 AS cor0 WHERE NOT + col1 + - 54 IS NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 AS col0, - col1 col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - col0 ) <> 22 + - + col0
----

query I rowsort
SELECT DISTINCT 18 FROM tab2 WHERE - col0 BETWEEN + 9 + col2 + - + col0 - 68 * - col0 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT - 54 * ( col2 ) * col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-638
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) / + col1 + col1 = NULL
----

skipif mysql # not compatible
query III rowsort label-638
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) / + col1 + col1 = NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-640
SELECT CAST( NULL AS SIGNED ) AS col1, ( + - ( - 40 ) ) * 23 - + + 93 + 3 FROM tab1
----
NULL
830
NULL
830
NULL
830

skipif mysql # not compatible
query II rowsort label-640
SELECT CAST ( NULL AS INTEGER ) AS col1, ( + - ( - 40 ) ) * 23 - + + 93 + 3 FROM tab1
----
NULL
830
NULL
830
NULL
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97, col0 col1 FROM tab1
----
97
51
97
85
97
91

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

query I rowsort
SELECT 7 * + col1 * - 16 * - col0 - 40 + - col1 FROM tab2 cor0
----
262661
551819
562693

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-644
SELECT ALL - 82 + col0 AS col1, CAST( NULL AS SIGNED ) + + + col0 AS col2 FROM tab1 AS cor0
----
-31
NULL
3
NULL
9
NULL

skipif mysql # not compatible
query II rowsort label-644
SELECT ALL - 82 + col0 AS col1, CAST ( NULL AS INTEGER ) + + + col0 AS col2 FROM tab1 AS cor0
----
-31
NULL
3
NULL
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT DISTINCT + - ( - + 2 ) + - - SUM( + + col1 ) * 2 AS col1 FROM tab0 cor0
----
208

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT + - ( - + 2 ) + - - SUM ( + + col1 ) * 2 AS col1 FROM tab0 cor0
----
208

query II rowsort
SELECT DISTINCT + - col2 AS col2, 17 FROM tab2 AS cor0
----
-23
17
-40
17
-58
17

query I rowsort
SELECT 18 + - + 23 AS col2 FROM tab2
----
-5
-5
-5

query I rowsort
SELECT col0 + - + 91 FROM tab2
----
-16
-27
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-649
SELECT DISTINCT + col0 + col2 DIV + col1 FROM tab1 AS cor0 WHERE NOT ( ( NOT col1 + col0 <= col2 + 82 ) )
----
57
92
96

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT + col0 + col2 / + col1 FROM tab1 AS cor0 WHERE NOT ( ( NOT col1 + col0 <= col2 + 82 ) )
----
57
92
96

query I rowsort
SELECT ALL + col2 + - - 65 FROM tab2 AS cor0
----
105
123
88

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT 8 + - SUM( ALL + col1 ) FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-651
SELECT 8 + - SUM ( ALL + col1 ) FROM tab1 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT + MAX( + + col2 ) * - + 60 + - MIN( ALL + col2 ) + + COUNT( * ) FROM tab0 AS cor0
----
-5947

skipif mysql # not compatible
query I rowsort label-652
SELECT + MAX ( + + col2 ) * - + 60 + - MIN ( ALL + col2 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-5947

query I rowsort
SELECT ALL col0 - col2 AS col1 FROM tab0 cor0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + 53 col0 FROM tab2
----
-7
11
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-655
SELECT ALL + CAST( NULL AS SIGNED ) + - 43 * - ( + + col0 ) / + 89 * col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL + CAST ( NULL AS INTEGER ) + - 43 * - ( + + col0 ) / + 89 * col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 26 - + col0 FROM tab2
----
-101
-72
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT DISTINCT - 21 * + - COUNT( * ) * - 15 FROM tab0
----
-945

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT - 21 * + - COUNT ( * ) * - 15 FROM tab0
----
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT ALL + 93 - - + COUNT( ALL 57 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL + 93 - - + COUNT ( ALL 57 ) FROM tab1
----
96

query III rowsort
SELECT * FROM tab2 WHERE col0 <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-660
SELECT DISTINCT col1 * - - ( + CAST( NULL AS SIGNED ) ), - 17 AS col0 FROM tab0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-660
SELECT DISTINCT col1 * - - ( + CAST ( NULL AS INTEGER ) ), - 17 AS col0 FROM tab0
----
NULL
-17

query I rowsort
SELECT ALL 82 * + col0 FROM tab0
----
1230
7134
7954

query I rowsort
SELECT DISTINCT + 99 - + + col0 AS col2 FROM tab0
----
12
2
84

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT MAX( + 52 ) AS col2 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT MAX ( + 52 ) AS col2 FROM tab2
----
52

query I rowsort
SELECT ALL 48 * + + col1 FROM tab2
----
2448
3216
3696

query I rowsort
SELECT ( - - col0 ) * + col2 - col0 AS col0 FROM tab0
----
690
783
9506

query I rowsort
SELECT 96 * - 43 FROM tab1 AS cor0
----
-4128
-4128
-4128

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

query I rowsort
SELECT DISTINCT 33 + - - 97 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
130

query I rowsort
SELECT ALL 80 * - col0 FROM tab1
----
-4080
-6800
-7280

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 * 35 + + + 30 + + - col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-672
SELECT DISTINCT - + ( - - COUNT( * ) ) AS col1, - 36 AS col2 FROM tab0 AS cor0
----
-3
-36

skipif mysql # not compatible
query II rowsort label-672
SELECT DISTINCT - + ( - - COUNT ( * ) ) AS col1, - 36 AS col2 FROM tab0 AS cor0
----
-3
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-673
SELECT + col0 * + ( - + CAST( NULL AS SIGNED ) ) * - 94 * - col0 AS col0, 50 AS col2 FROM tab0
----
NULL
50
NULL
50
NULL
50

skipif mysql # not compatible
query II rowsort label-673
SELECT + col0 * + ( - + CAST ( NULL AS INTEGER ) ) * - 94 * - col0 AS col0, 50 AS col2 FROM tab0
----
NULL
50
NULL
50
NULL
50

query I rowsort
SELECT DISTINCT 74 FROM tab2 WHERE NOT col0 + + + col1 NOT BETWEEN + 85 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-675
SELECT DISTINCT - 93 * MIN( DISTINCT - col2 ) DIV + 41 FROM tab1
----
217

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT - 93 * MIN ( DISTINCT - col2 ) / + 41 FROM tab1
----
217

query I rowsort
SELECT + col2 * - 91 AS col2 FROM tab1
----
-5369
-6188
-8736

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-677
SELECT * FROM tab2 WHERE NOT - col1 + - CAST( + - 9 AS SIGNED ) + col0 + + + col2 + + - 24 * col2 * + col1 IN ( + col2 + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-677
SELECT * FROM tab2 WHERE NOT - col1 + - CAST ( + - 9 AS INTEGER ) + col0 + + + col2 + + - 24 * col2 * + col1 IN ( + col2 + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-678
SELECT col1 AS col1, - col0 * CAST( NULL AS DECIMAL ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-678
SELECT col1 AS col1, - col0 * CAST ( NULL AS REAL ) FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT ALL + 60 / - - CAST( NULL AS SIGNED ) * + 81 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL + 60 / - - CAST ( NULL AS INTEGER ) * + 81 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 30 FROM tab1 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( 65 ) ) <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 59 + col1 * - 26 AS col0 FROM tab1
----
-1281
-189
-423

query I rowsort
SELECT ALL 89 FROM tab0 WHERE NOT NULL NOT IN ( 38 + col2 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 61 / - 47 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT IN ( + col0 - - col0 * + + ( + - 87 ), 24 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / col1 > NULL
----

query I rowsort
SELECT DISTINCT - col2 + - + col0 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT ALL - ( col2 ) + + col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 27 ) IS NULL
----

query I rowsort
SELECT - + 12 - + 33 * - col0 FROM tab1 AS cor0
----
1671
2793
2991

query I rowsort
SELECT DISTINCT - col0 + - - col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT - 44 * ( - col2 ) + + 0 FROM tab0 AS cor0
----
2068
4356
440

query I rowsort
SELECT 77 + + 82 - - 49 AS col2 FROM tab2
----
208
208
208

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col2 * col2 * + col2 <= + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-695
SELECT ALL + col1 * CAST( NULL AS SIGNED ) * + - CAST( col1 AS SIGNED ) * - ( col1 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) * + - CAST ( col1 AS INTEGER ) * - ( col1 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT ( 32 ) NOT BETWEEN 2 AND col1
----
-15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-698
SELECT COUNT( * ) * CAST( + 93 AS SIGNED ) - + COUNT( * ) col2 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-698
SELECT COUNT ( * ) * CAST ( + 93 AS INTEGER ) - + COUNT ( * ) col2 FROM tab2 AS cor0
----
276

query I rowsort
SELECT DISTINCT + + 94 * - + ( + - col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
244494
421966
557326

query I rowsort
SELECT ALL col0 - - + 70 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - col2 - - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - + 16
----

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-703
SELECT + COUNT( * ) AS col2, SUM( - 50 ) AS col2 FROM tab2
----
3
-150

skipif mysql # not compatible
query II rowsort label-703
SELECT + COUNT ( * ) AS col2, SUM ( - 50 ) AS col2 FROM tab2
----
3
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT DISTINCT + COUNT( + + col1 ) * - 67 AS col2 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT + COUNT ( + + col1 ) * - 67 AS col2 FROM tab2 AS cor0
----
-201

query II rowsort
SELECT DISTINCT + 57 AS col1, col2 AS col0 FROM tab1 AS cor0
----
57
59
57
68
57
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL + 33 * + COUNT( * ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL + 33 * + COUNT ( * ) FROM tab0
----
99

query I rowsort
SELECT DISTINCT 49 * + + 13 FROM tab2
----
637

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-709
SELECT * FROM tab0 WHERE + + col2 * + ( - + CAST( + 21 AS SIGNED ) ) * col1 + - col2 * + ( + - CAST( NULL AS SIGNED ) ) <= col2
----

skipif mysql # not compatible
query III rowsort label-709
SELECT * FROM tab0 WHERE + + col2 * + ( - + CAST ( + 21 AS INTEGER ) ) * col1 + - col2 * + ( + - CAST ( NULL AS INTEGER ) ) <= col2
----

query III rowsort
SELECT * FROM tab2 WHERE + - ( col2 ) * + col2 * + col1 - - ( + col2 ) + + - col1 + - ( + 97 ) + 62 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-711
SELECT ALL col2 DIV - - ( + col1 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL col2 / - - ( + col1 ) AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 - + 10 NOT BETWEEN + 73 AND NULL
----

query I rowsort
SELECT ALL + 24 AS col1 FROM tab1 cor0 WHERE 43 + col2 IS NOT NULL
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + + col1 + 17 col1 FROM tab0 AS cor0
----
-424
-6544
16

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT + + MAX( - - col2 ) + - 43 * - + 93 + - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
4057

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT + + MAX ( - - col2 ) + - 43 * - + 93 + - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
4057

query I rowsort
SELECT ALL - col1 + col2 * + + col2 FROM tab2 AS cor0
----
1523
3297
478

query III rowsort
SELECT * FROM tab0 WHERE col2 * + + col0 + - 86 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-718
SELECT - + CAST( NULL AS SIGNED ) / + col0 * 79 / - col1 * col2 + + - col2 + + 23 * - CAST( - col1 AS SIGNED ) - - ( - 5 ) + - 89 + - + 80 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT - + CAST ( NULL AS INTEGER ) / + col0 * 79 / - col1 * col2 + + - col2 + + 23 * - CAST ( - col1 AS INTEGER ) - - ( - 5 ) + - 89 + - + 80 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT DISTINCT + 19 + ( SUM( + col0 ) ) AS col0 FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT + 19 + ( SUM ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
246

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

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

query I rowsort
SELECT DISTINCT - 58 FROM tab0 AS cor0 WHERE col1 NOT IN ( + - ( col2 ), col1, + col0 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * col0 >= + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + 92 + + + col2 col1 FROM tab2 AS cor0
----
-18
25
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 48 = col1
----

query I rowsort
SELECT DISTINCT - 85 - 43 FROM tab2 AS cor0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT ALL - - MAX( + col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL - - MAX ( + col2 ) FROM tab2 cor0
----
58

query II rowsort
SELECT DISTINCT - 56, + col2 FROM tab2
----
-56
23
-56
40
-56
58

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

skipif mysql # not compatible
query II rowsort label-729
SELECT DISTINCT - 5 AS col2, + COUNT ( * ) AS col1 FROM tab2
----
-5
3

query II rowsort
SELECT ALL + col1, 21 * + col2 FROM tab1
----
14
2016
47
1428
5
1239

query II rowsort
SELECT DISTINCT + 46, col1 * + + 45 * 89 AS col0 FROM tab2
----
46
204255
46
268335
46
308385

query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT + MIN( ALL - 67 ) col1 FROM tab1
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-734
SELECT + MIN ( ALL - 67 ) col1 FROM tab1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT MIN( ALL 14 ) AS col1 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-735
SELECT MIN ( ALL 14 ) AS col1 FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT ALL ( - AVG ( ALL col0 ) ) - - MAX( ALL - - ( col0 ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - col0 ) AND ( + ( - col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL ( - AVG ( ALL col0 ) ) - - MAX ( ALL - - ( col0 ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - col0 ) AND ( + ( - col0 ) )
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 38 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT DISTINCT - 70 + + col1 DIV - col2 * 53 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT - 70 + + col1 / - col2 * 53 FROM tab1 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-739
SELECT DISTINCT MIN( + col0 ) AS col1, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
15
3

skipif mysql # not compatible
query II rowsort label-739
SELECT DISTINCT MIN ( + col0 ) AS col1, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
15
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - col2 BETWEEN NULL AND + 12 * col2 / 33
----
46
51
23
64
77
40

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-742
SELECT col1 * - + col0 * + + 72 + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-131523
-6983
-87399

skipif mysql # not compatible
query I rowsort label-742
SELECT col1 * - + col0 * + + 72 + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-131523
-6983
-87399

query I rowsort
SELECT DISTINCT - ( + col0 ) * + col0 + col0 FROM tab1
----
-2550
-7140
-8190

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 AS col2 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT - 46 DIV + col1 AS col0 FROM tab0
----
-2
-46
0

skipif mysql # not compatible
query I rowsort label-745
SELECT - 46 / + col1 AS col0 FROM tab0
----
-2
-46
0

onlyif mysql # aggregate syntax: 
query II rowsort label-746
SELECT COUNT( * ) col2, 87 AS col2 FROM tab0
----
3
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-746
SELECT COUNT ( * ) col2, 87 AS col2 FROM tab0
----
3
87

query I rowsort
SELECT col2 + + col2 + - col2 AS col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT DISTINCT + 10 * - - COUNT( * ) FROM tab1 WHERE NOT + - col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT + 10 * - - COUNT ( * ) FROM tab1 WHERE NOT + - col1 <= NULL
----
0

query II rowsort
SELECT + col1 + col0 - + col2 AS col1, 35 - + col1 * col1 FROM tab0
----
-1
34
49
-6526
98
-406

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - - col2 + + col2 + col1, col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL - COUNT( * ) + - MAX( + 4 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-7

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL - COUNT ( * ) + - MAX ( + 4 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-7

query I rowsort
SELECT col2 + - 13 FROM tab0 AS cor0
----
-3
34
86

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-754
SELECT COUNT ( ALL - col1 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT ALL MAX( ALL + 7 ) - + 11 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL MAX ( ALL + 7 ) - + 11 FROM tab1
----
-4

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

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

query I rowsort
SELECT DISTINCT + ( + + 53 ) + - - 78 FROM tab0 cor0
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-758
SELECT col0 DIV 77 DIV 5 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-758
SELECT col0 / 77 / 5 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT - col2 DIV - 89 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-759
SELECT - col2 / - 89 AS col0 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT + - 71 AS col2 FROM tab0 cor0
----
-71
-71
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE col1 / + col0 IN ( - col2 * - col1 + + + col1, 62 * - 7 )
----
0

skipif mysql # not compatible
query I rowsort label-764
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE col1 / + col0 IN ( - col2 * - col1 + + + col1, 62 * - 7 )
----
0

query I rowsort
SELECT + 98 * + 90 FROM tab0 WHERE NOT NULL >= - col0 * - 70 + - - 23 * col1
----

query I rowsort
SELECT - 85 * col0 * - col2 FROM tab1
----
416160
426275
525980

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT ALL + MIN( DISTINCT + + 78 ) AS col2 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL + MIN ( DISTINCT + + 78 ) AS col2 FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-768
SELECT 35 + + - CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
-52
-62
20

skipif mysql # not compatible
query I rowsort label-768
SELECT 35 + + - CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
-52
-62
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 58 + + col2 col1 FROM tab2 cor0
----
-2645
-3672
-4292

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

onlyif mysql # DIV for integer division: 
query I rowsort label-771
SELECT ALL + col2 + col0 DIV col0 FROM tab1 cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL + col2 + col0 / col0 FROM tab1 cor0
----
60
69
97

query I rowsort
SELECT 29 * + - col2 + col1 FROM tab2 AS cor0
----
-1083
-1615
-616

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT col2 + + col1 DIV + + col2 + - col2 + + col0 DIV - - ( 21 ) FROM tab0 cor0
----
1
4
6

skipif mysql # not compatible
query I rowsort label-773
SELECT col2 + + col1 / + + col2 + - col2 + + col0 / - - ( 21 ) FROM tab0 cor0
----
1
4
6

query I rowsort
SELECT - ( + col1 ) FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT col2 * - col0, - col2 AS col1 FROM tab2
----
-1058
-23
-2560
-40
-4350
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-776
SELECT CAST( + + 95 AS SIGNED ) * + + col0 AS col1 FROM tab0
----
1425
8265
9215

skipif mysql # not compatible
query I rowsort label-776
SELECT CAST ( + + 95 AS INTEGER ) * + + col0 AS col1 FROM tab0
----
1425
8265
9215

onlyif mysql # aggregate syntax: 
query II rowsort label-777
SELECT ALL - COUNT( * ) + - 16, 1 AS col0 FROM tab1
----
-19
1

skipif mysql # not compatible
query II rowsort label-777
SELECT ALL - COUNT ( * ) + - 16, 1 AS col0 FROM tab1
----
-19
1

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT COUNT( * ) * + 17 AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-778
SELECT COUNT ( * ) * + 17 AS col2 FROM tab2
----
51

query I rowsort
SELECT + 83 + - col1 FROM tab0 AS cor0 WHERE ( col2 - 72 IS NULL )
----

query I rowsort
SELECT ALL 54 + + + col0 + + 40 FROM tab2 cor0
----
140
158
169

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( 51 ) + + 67 * 23 col1 FROM tab0
----
2051
3938
6590

query I rowsort
SELECT + col0 + + 79 AS col0 FROM tab1
----
130
164
170

query III rowsort
SELECT * FROM tab1 WHERE - + 27 < 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-785
SELECT DISTINCT - 59 * - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-785
SELECT DISTINCT - 59 * - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - 55, + col2 )
----

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

query II rowsort
SELECT ALL + col2, 39 * 49 FROM tab2 AS cor0
----
23
1911
40
1911
58
1911

query I rowsort
SELECT DISTINCT + 93 * - 46 FROM tab2 AS cor0 WHERE NOT - 60 IS NULL
----
-4278

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT - SUM( ALL 52 ) FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-790
SELECT - SUM ( ALL 52 ) FROM tab1 AS cor0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT DISTINCT + col0 DIV - + 92 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT + col0 / - + 92 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT - MAX( - 29 ) FROM tab0, tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-792
SELECT - MAX ( - 29 ) FROM tab0, tab1 AS cor0
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT - MIN( DISTINCT - - 96 ) + + + ( - - COUNT( * ) ) FROM tab0, tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-794
SELECT - MIN ( DISTINCT - - 96 ) + + + ( - - COUNT ( * ) ) FROM tab0, tab1 AS cor0
----
-87

query II rowsort
SELECT col0, col1 AS col2 FROM tab0 WHERE NOT col2 + - col1 <= - col1 - + + col0 * - col1 - ( + col1 )
----
97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT col1 DIV - 90 + 59 DIV col1 - + 43 FROM tab0
----
-41
-43
16

skipif mysql # not compatible
query I rowsort label-796
SELECT col1 / - 90 + 59 / col1 - + 43 FROM tab0
----
-41
-43
16

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 + col2 col1 FROM tab0 cor0
----
115
26
63

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 8 IS NULL
----

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

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

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

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

query I rowsort
SELECT ALL - col1 - + 69 + - + ( + ( - col2 ) ) FROM tab0
----
-103
-80
29

query I rowsort
SELECT - col2 + 10 FROM tab0
----
-37
-89
0

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT ALL + MIN( ALL - ( - col1 ) ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL + MIN ( ALL - ( - col1 ) ) AS col2 FROM tab2
----
51

query I rowsort
SELECT DISTINCT 0 - - 60 - - - col0 * 60 * col2 FROM tab2
----
-153540
-260940
-63420

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-807
SELECT + CAST ( NULL AS INTEGER ) + - 23 - COUNT ( * ) col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ALL MIN( + 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL MIN ( + 83 ) FROM tab2
----
83

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

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

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT + 51 IS NOT NULL
----

query II rowsort
SELECT + - col0, 90 AS col2 FROM tab2 WHERE NULL < - 27
----

onlyif mysql # aggregate syntax: 
query II rowsort label-812
SELECT ALL 54 * - COUNT( * ) AS col0, 10 AS col2 FROM tab0
----
-162
10

skipif mysql # not compatible
query II rowsort label-812
SELECT ALL 54 * - COUNT ( * ) AS col0, 10 AS col2 FROM tab0
----
-162
10

query II rowsort
SELECT DISTINCT + 11, + 76 + + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + 19 AND - col0 + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-814
SELECT + 32 + - + col2 AS col0, col1 DIV col1 FROM tab0
----
-15
1
-67
1
22
1

skipif mysql # not compatible
query II rowsort label-814
SELECT + 32 + - + col2 AS col0, col1 / col1 FROM tab0
----
-15
1
-67
1
22
1

onlyif mysql # aggregate syntax: 
query II rowsort label-815
SELECT ALL + + MIN( ALL + - col0 ) + - MAX( + col0 ) AS col1, COUNT( * ) FROM tab1 cor0
----
-182
3

skipif mysql # not compatible
query II rowsort label-815
SELECT ALL + + MIN ( ALL + - col0 ) + - MAX ( + col0 ) AS col1, COUNT ( * ) FROM tab1 cor0
----
-182
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-816
SELECT 46 DIV + COUNT( * ) AS col1 FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-816
SELECT 46 / + COUNT ( * ) AS col1 FROM tab1 cor0
----
15

query II rowsort
SELECT - + 62, 87 * + 14 AS col2 FROM tab2 AS cor0
----
-62
1218
-62
1218
-62
1218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 96, + col0 + col1 col0 FROM tab0 AS cor0
----
-96
108
-96
96
-96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-819
SELECT ALL - col0 - col1 DIV 27 + - col2 * - col1 * - 27 FROM tab0
----
-102807
-2770
-5757

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL - col0 - col1 / 27 + - col2 * - col1 * - 27 FROM tab0
----
-102807
-2770
-5757

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-820
SELECT ALL - - 28 DIV COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
3

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL - - 28 / COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
3

query I rowsort
SELECT ALL col0 * - - col0 FROM tab0
----
225
7569
9409

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

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

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

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

skipif mysql # not compatible
query I rowsort label-824
SELECT - col2 / + - CAST ( NULL AS INTEGER ) * - 63 + + 30 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 1 * - + col1 + - + col1 + - + 0 FROM tab1 AS cor0 WHERE NOT 7 >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT - - MAX( DISTINCT + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-827
SELECT - - MAX ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
58

query II rowsort
SELECT 19 * + col1, col0 AS col0 FROM tab2 cor0
----
1273
75
1463
64
969
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-829
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN col2 AND + col2 * + + CAST( NULL AS SIGNED ) + + - col2
----

skipif mysql # not compatible
query III rowsort label-829
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN col2 AND + col2 * + + CAST ( NULL AS INTEGER ) + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT ALL SUM( DISTINCT + 75 ) AS col2 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL SUM ( DISTINCT + 75 ) AS col2 FROM tab0
----
75

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + 20 + + - 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 19 - - 86 AS col1, + col1 * + + col1 / + col1 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT ALL 91 * COUNT( + + col2 ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL 91 * COUNT ( + + col2 ) FROM tab1
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-834
SELECT ALL col1 DIV col1 * - - 68 FROM tab0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL col1 / col1 * - - 68 FROM tab0
----
68
68
68

query I rowsort
SELECT DISTINCT + col2 * - 89 FROM tab1
----
-5251
-6052
-8544

onlyif mysql # DIV for integer division: 
query I rowsort label-836
SELECT DISTINCT 45 DIV + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT 45 / + col0 FROM tab2
----
0

query I rowsort
SELECT + col2 + - 83 AS col2 FROM tab1 WHERE NOT + + col2 * - col1 / + col1 IS NOT NULL
----

query I rowsort
SELECT 97 * + + 95 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 27 + + col0 FROM tab2 AS cor0
----
102
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT + + SUM( col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-840
SELECT + + SUM ( col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL 64 * col1 AS col0 FROM tab2
----
3264
4288
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-842
SELECT DISTINCT - 79 DIV col1 + + + col1 col2 FROM tab0
----
-78
18
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-842
SELECT DISTINCT - 79 / col1 + + + col1 col2 FROM tab0
----
-78
18
81

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT DISTINCT - ( - col2 ) DIV - col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-843
SELECT DISTINCT - ( - col2 ) / - col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT ALL 84 * 2 + + COUNT( * ) AS col1 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL 84 * 2 + + COUNT ( * ) AS col1 FROM tab2
----
171

query I rowsort
SELECT ALL + + col1 + + - 39 FROM tab1 AS cor0
----
-25
-34
8

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

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * 79 * 11 + col1 >= - 1
----

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + - 6 + - col1 FROM tab2 AS cor0
----
-57
-73
-83

query I rowsort
SELECT + 17 * + ( + 10 ) AS col2 FROM tab1
----
170
170
170

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-853
SELECT + col0 DIV col1 - + - col1 FROM tab2
----
51
68
77

skipif mysql # not compatible
query I rowsort label-853
SELECT + col0 / col1 - + - col1 FROM tab2
----
51
68
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 31 * col1 / - 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0, 47 AS col2 FROM tab2
----
46
47
64
47
75
47

query II rowsort
SELECT DISTINCT 68 AS col1, - 31 FROM tab2
----
68
-31

query II rowsort
SELECT ALL - - 64, col2 FROM tab1 AS cor0
----
64
59
64
68
64
96

query II rowsort
SELECT DISTINCT - col1, - col2 * - 4 AS col1 FROM tab0 AS cor0
----
-1
396
-21
40
-81
188

onlyif mysql # aggregate syntax: 
query II rowsort label-859
SELECT ALL - COUNT( * ) AS col1, - COUNT( * ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-859
SELECT ALL - COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
-3
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / - - 80 NOT IN ( 71 )
----

query I rowsort
SELECT ALL - 72 * + col2 FROM tab0 AS cor0
----
-3384
-7128
-720

query I rowsort
SELECT DISTINCT col2 * - - ( - - 29 ) AS col2 FROM tab0
----
1363
2871
290

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 IN ( - col1, 19 * - + col1, + - col1, - col1, - col0, + 5 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-864
SELECT ALL + col1 * - CAST( - 18 AS SIGNED ) AS col2 FROM tab0
----
1458
18
378

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL + col1 * - CAST ( - 18 AS INTEGER ) AS col2 FROM tab0
----
1458
18
378

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT DISTINCT 45 + + 46 + - 77 + + 33 + - 39 - 72 * COUNT( * ) FROM tab1 WHERE 47 IS NOT NULL
----
-208

skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT 45 + + 46 + - 77 + + 33 + - 39 - 72 * COUNT ( * ) FROM tab1 WHERE 47 IS NOT NULL
----
-208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col2 FROM tab1 WHERE NOT - col0 + + col0 / + - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-867
SELECT - col1 DIV + 82 AS col2, col0 DIV 57 FROM tab0
----
0
0
0
1
0
1

skipif mysql # not compatible
query II rowsort label-867
SELECT - col1 / + 82 AS col2, col0 / 57 FROM tab0
----
0
0
0
1
0
1

query I rowsort
SELECT ALL col2 / 11 FROM tab0 WHERE + col0 * 25 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 12 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT ALL col2 DIV 29 + - col0 AS col2 FROM tab2 AS cor0
----
-46
-63
-73

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL col2 / 29 + - col0 AS col2 FROM tab2 AS cor0
----
-46
-63
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-872
SELECT - MAX( ALL + col1 ) DIV + 55 * - - COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-872
SELECT - MAX ( ALL + col1 ) / + 55 * - - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT ALL - col1 DIV - + col0 AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - col1 / - + col0 AS col1 FROM tab0
----
0
0
5

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-874
SELECT + COUNT ( * ) col2 FROM tab2 WHERE - col2 * + col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > + col1 + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-876
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = + - 11 * - + CAST( NULL AS DECIMAL ) + - col0
----

skipif mysql # not compatible
query III rowsort label-876
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = + - 11 * - + CAST ( NULL AS REAL ) + - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-877
SELECT + col1 AS col0, + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-877
SELECT + col1 AS col0, + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT ALL + 37 - - ( + col2 ) FROM tab1 AS cor0
----
105
133
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-879
SELECT DISTINCT ( - col1 ) + ( - + CAST( + col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT ( - col1 ) + ( - + CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-110
-115
-64

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

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

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

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

query I rowsort
SELECT 63 - 83 AS col1 FROM tab0 AS cor0
----
-20
-20
-20

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

query I rowsort
SELECT DISTINCT + col1 * + 52 + ( - 51 ) FROM tab0
----
1
1041
4161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 - - col0 col2 FROM tab1
----
102
136
142

query I rowsort
SELECT + ( - col1 ) + + - col1 - + col1 AS col0 FROM tab0
----
-243
-3
-63

query I rowsort
SELECT 36 + - 81 AS col0 FROM tab2
----
-45
-45
-45

query I rowsort
SELECT ALL + col2 - + col0 + - col1 + col1 + ( - 62 ) FROM tab0
----
-139
-30
-60

query I rowsort
SELECT ALL col1 * col1 * - col0 FROM tab2 WHERE NOT ( col0 ) IS NULL
----
-119646
-336675
-379456

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 <> - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-891
SELECT - 93 / + CAST( NULL AS DECIMAL ) * + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-891
SELECT - 93 / + CAST ( NULL AS REAL ) * + COUNT ( * ) FROM tab2
----
NULL

query II rowsort
SELECT + 91, - col2 + + ( - 73 ) AS col2 FROM tab0
----
91
-120
91
-172
91
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

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

query I rowsort
SELECT DISTINCT - - 32 AS col2 FROM tab2 AS cor0
----
32

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

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

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

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

query I rowsort
SELECT ALL - col0 / + col1 FROM tab2 AS cor0 WHERE NOT - ( col2 ) <= - + col2 + 85
----

query II rowsort
SELECT ALL - col1 * + col0 + + 99, col1 AS col2 FROM tab0 AS cor0
----
-1116
81
-1728
21
2
1

query I rowsort
SELECT - 25 + - col1 FROM tab1 AS cor0
----
-30
-39
-72

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE + 26 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT 7 DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-902
SELECT 7 / col0 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + 43 + - - col2 ) NOT BETWEEN ( NULL ) AND col0 * col1 * col2 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT ( + MIN( ALL + col1 ) ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-904
SELECT ( + MIN ( ALL + col1 ) ) AS col1 FROM tab1
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + 39 / 60 - + col1 AND + - 72
----

query II rowsort
SELECT DISTINCT ( + - col2 ), col0 AS col1 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-907
SELECT CAST( ( col0 ) AS SIGNED ) + col2 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-907
SELECT CAST ( ( col0 ) AS INTEGER ) + col2 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-908
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( - 72, col1, col1 * - 13 * + CAST( NULL AS SIGNED ) + - 49 + + 87 )
----
0

skipif mysql # not compatible
query I rowsort label-908
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( - 72, col1, col1 * - 13 * + CAST ( NULL AS INTEGER ) + - 49 + + 87 )
----
0

query I rowsort
SELECT ALL 7 + + 64 * + + col1 AS col1 FROM tab2 AS cor0
----
3271
4295
4935

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT DISTINCT + 50 + - - MIN( DISTINCT - ( + 39 ) ) col1 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-910
SELECT DISTINCT + 50 + - - MIN ( DISTINCT - ( + 39 ) ) col1 FROM tab0 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL + COUNT( * ) + - 92 + MIN( - col1 ) * COUNT( ALL + 72 ) FROM tab2 AS cor0
----
-320

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + COUNT ( * ) + - 92 + MIN ( - col1 ) * COUNT ( ALL + 72 ) FROM tab2 AS cor0
----
-320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 3 col0 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( - + col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-913
SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( - + col2 ) IS NOT NULL
----
3

query II rowsort
SELECT ALL - col1 AS col2, + 56 * ( - col0 ) AS col2 FROM tab1 WHERE + ( - - 93 ) BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL 56 + - 75 AS col1 FROM tab0
----
-19
-19
-19

query I rowsort
SELECT 88 * col1 * + col1 * + - col2 * + col1 FROM tab1
----
-23181312
-621276832
-649000

query I rowsort
SELECT col1 * - + col0 * - 69 * - col0 FROM tab1
----
-2492625
-2512566
-26855283

query I rowsort
SELECT ALL col2 * - 96 * 34 FROM tab1
----
-192576
-221952
-313344

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

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL 56 / + 55 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT 29 * - col1 AS col0 FROM tab1
----
-1363
-145
-406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-921
SELECT col1 * - CAST( 54 AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
-1113
-4293
-53

skipif mysql # not compatible
query I rowsort label-921
SELECT col1 * - CAST ( 54 AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
-1113
-4293
-53

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-922
SELECT + ( - - COUNT ( * ) ) AS col2, COUNT ( * ) col2 FROM tab2
----
3
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT DISTINCT + 37 * - COUNT( * ) + 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-283

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT + 37 * - COUNT ( * ) + 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-283

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

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL - COUNT ( DISTINCT col2 ) + COUNT ( * ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL + ( 89 ) AS col1, - col0 * col1 FROM tab2 AS cor0
----
89
-2346
89
-4928
89
-5025

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> ( + col1 )
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT 4 IS NULL
----
-59
-68
-96

query I rowsort
SELECT - - ( - + col2 ) * col1 * + col0 * col2 AS col0 FROM tab0 AS cor0
----
-182700
-2683935
-950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col1 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT ( - 6 ) FROM tab1
----
-6
-6
-6

query I rowsort
SELECT + col1 * - 15 AS col1 FROM tab1
----
-210
-705
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT ALL MAX( + + 52 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL MAX ( + + 52 ) FROM tab1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT ALL SUM( + - 65 ) FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL SUM ( + - 65 ) FROM tab0
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-935
SELECT col1 DIV - 67 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-935
SELECT col1 / - 67 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT + - SUM( - 98 ) AS col2 FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-936
SELECT + - SUM ( - 98 ) AS col2 FROM tab1 AS cor0
----
294

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

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT ( - col1 ) * col0 - + - CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-938
SELECT DISTINCT - 40 * ( col0 ) + - col2 * - CAST( 98 AS SIGNED ) AS col2 FROM tab2 cor0
----
1360
2684
414

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT - 40 * ( col0 ) + - col2 * - CAST ( 98 AS INTEGER ) AS col2 FROM tab2 cor0
----
1360
2684
414

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

query I rowsort
SELECT 75 + - - ( col1 ) FROM tab0 cor0
----
156
76
96

query I rowsort
SELECT ALL 14 + - 99 * - + ( col2 ) + + 69 FROM tab1 cor0
----
5924
6815
9587

query II rowsort
SELECT DISTINCT + 13 - + col2 AS col2, + col0 AS col2 FROM tab0 AS cor0
----
-34
15
-86
97
3
87

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT ALL 86 - col1 DIV + - 29 AS col0 FROM tab2 AS cor0
----
87
88
88

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL 86 - col1 / + - 29 AS col0 FROM tab2 AS cor0
----
87
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT - - MAX( + 56 ) * 89 FROM tab0 AS cor0
----
4984

skipif mysql # not compatible
query I rowsort label-944
SELECT - - MAX ( + 56 ) * 89 FROM tab0 AS cor0
----
4984

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-945
SELECT + - CAST( col0 AS SIGNED ) DIV + 59 + 3 FROM tab0 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-945
SELECT + - CAST ( col0 AS INTEGER ) / + 59 + 3 FROM tab0 AS cor0
----
2
2
3

query I rowsort
SELECT DISTINCT - 29 * + 84 FROM tab2
----
-2436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 74 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 74 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - ( + - 53 ) AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - ( + - 53 ) AND + col1
----
0

query II rowsort
SELECT col2 * + - col0 AS col1, - 90 + col2 * col1 AS col0 FROM tab2 AS cor0
----
-1058
1083
-2560
2990
-4350
3796

onlyif mysql # DIV for integer division: 
query I rowsort label-950
SELECT ALL - col1 DIV - - 76 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL - col1 / - - 76 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-951
SELECT + 26, + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
26
NULL
26
NULL
26
NULL

skipif mysql # not compatible
query II rowsort label-951
SELECT + 26, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
26
NULL
26
NULL
26
NULL

query II rowsort
SELECT col2, - 12 FROM tab1 AS cor0
----
59
-12
68
-12
96
-12

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 62 + + col0 col1 FROM tab0 AS cor0
----
1389
159
5037

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

query I rowsort
SELECT DISTINCT 77 + + 25 + - + col2 + - 20 + - ( col2 ) * col2 FROM tab0 AS cor0
----
-2174
-28
-9818

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

skipif mysql # not compatible
query I rowsort label-957
SELECT - - COUNT ( * ) + COUNT ( CAST ( 79 AS INTEGER ) ) FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-958
SELECT ( - 6 ) col0, + col0 DIV + col2 + - 2 FROM tab1
----
-6
-1
-6
-1
-6
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-958
SELECT ( - 6 ) col0, + col0 / + col2 + - 2 FROM tab1
----
-6
-1
-6
-1
-6
-2

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

query I rowsort
SELECT ALL ( + - 23 ) FROM tab2
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT ALL + COUNT( * ) + + 80 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL + COUNT ( * ) + + 80 FROM tab1
----
83

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

query I rowsort
SELECT ALL 44 * + col1 FROM tab0
----
3564
44
924

query III rowsort
SELECT * FROM tab2 WHERE + 64 BETWEEN NULL AND - - 33 * - col2
----

query I rowsort
SELECT DISTINCT - + 80 + - - 18 * 79 * - ( - col0 ) AS col1 FROM tab1 AS cor0
----
120790
129322
72442

query I rowsort
SELECT DISTINCT - col1 * - - 14 AS col1 FROM tab1 AS cor0
----
-196
-658
-70

query I rowsort
SELECT + 68 + - 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT - 14 * - 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( 8 ) IS NULL
----
9 values hashing to d9a63473249310eee3104d48de5e5a07

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE - 84 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT COUNT( * ) FROM tab1 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-971
SELECT COUNT ( * ) FROM tab1 WHERE ( NOT NULL IS NULL )
----
0

query I rowsort
SELECT ALL - 55 * - - col1 FROM tab1 AS cor0
----
-2585
-275
-770

query I rowsort
SELECT - + 85 * + col1 AS col1 FROM tab0 AS cor0
----
-1785
-6885
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT + ( + COUNT( * ) ) col1 FROM tab2 AS cor0 WHERE NOT NULL < - col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-974
SELECT + ( + COUNT ( * ) ) col1 FROM tab2 AS cor0 WHERE NOT NULL < - col0
----
0

query I rowsort
SELECT ALL - + ( + 36 ) AS col2 FROM tab1 cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col2 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT col1, 13 FROM tab0
----
1
13
21
13
81
13

query II rowsort
SELECT 27 AS col1, + col1 * + - col0 * 12 FROM tab0
----
27
-1164
27
-14580
27
-21924

query I rowsort
SELECT ALL 63 * + col1 * + col0 * ( 74 ) FROM tab2
----
10937052
22974336
23426550

query I rowsort
SELECT DISTINCT + 96 * + - col1 AS col1 FROM tab1
----
-1344
-4512
-480

query II rowsort
SELECT col0, - 26 AS col2 FROM tab0
----
15
-26
87
-26
97
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-982
SELECT - col1 * + col2 / - col1 * - 6 / - + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-982
SELECT - col1 * + col2 / - col1 * - 6 / - + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL - col1 / - 84 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 - + col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT DISTINCT MAX( - col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT MAX ( - col1 ) AS col1 FROM tab0
----
-1

query II rowsort
SELECT - 28, col0 AS col0 FROM tab0
----
-28
15
-28
87
-28
97

onlyif mysql # aggregate syntax: 
query II rowsort label-987
SELECT DISTINCT 40 AS col0, COUNT( ALL + + 53 ) FROM tab2
----
40
3

skipif mysql # not compatible
query II rowsort label-987
SELECT DISTINCT 40 AS col0, COUNT ( ALL + + 53 ) FROM tab2
----
40
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * 95, col2 col0 FROM tab2
----
2185
23
3800
40
5510
58

query I rowsort
SELECT DISTINCT - + col1 * - col2 * col0 FROM tab1 cor0
----
25075
290836
68544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-990
SELECT ALL 16 / COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL 16 / COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-991
SELECT DISTINCT + COUNT( * ) + 41 + 83 DIV - - 10 AS col0 FROM tab2 cor0
----
52

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT + COUNT ( * ) + 41 + 83 / - - 10 AS col0 FROM tab2 cor0
----
52

query I rowsort
SELECT + 73 FROM tab1 cor0 WHERE - col1 = NULL
----

query I rowsort
SELECT ALL + 68 + + + col1 + + + 38 AS col1 FROM tab0 cor0
----
107
127
187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-994
SELECT DISTINCT - + 82 * + MIN( CAST( col0 AS DECIMAL ) ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT - + 82 * + MIN ( CAST ( col0 AS REAL ) ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ALL 52 * - COUNT( * ) + - COUNT( * ) FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL 52 * - COUNT ( * ) + - COUNT ( * ) FROM tab2
----
-159

query I rowsort
SELECT - ( - - col2 ) * - col2 + 64 AS col2 FROM tab1
----
3545
4688
9280

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE + + 14 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT DISTINCT COUNT( * ) + - 65 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT COUNT ( * ) + - 65 FROM tab1
----
-62

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN 37 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1001
SELECT col0 DIV + 42 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-1001
SELECT col0 / + 42 FROM tab1
----
1
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1002
SELECT - 79 DIV col1 FROM tab0
----
-3
-79
0

skipif mysql # not compatible
query I rowsort label-1002
SELECT - 79 / col1 FROM tab0
----
-3
-79
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT ( + 6 ) DIV - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1003
SELECT ( + 6 ) / - col1 AS col1 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT - MIN( ALL col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - MIN ( ALL col1 ) AS col1 FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) col1 FROM tab1 WHERE 70 * + col0 + 19 * + col0 IS NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE ( + ( - col1 ) ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 50 * col0 NOT BETWEEN + col1 + 2 AND 64
----

query I rowsort
SELECT col2 + 52 * - col2 AS col2 FROM tab2
----
-1173
-2040
-2958

query III rowsort
SELECT * FROM tab1 WHERE NOT + 84 * - 43 = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT ALL SUM( ALL - col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL SUM ( ALL - col1 ) AS col1 FROM tab0
----
-103

query I rowsort
SELECT + 51 - 66 FROM tab0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab0 WHERE NOT 42 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1015
SELECT ALL - col0 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL - col0 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE 62 NOT IN ( col1 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT DISTINCT COUNT( ALL 42 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1018
SELECT DISTINCT COUNT ( ALL 42 ) col0 FROM tab0 cor0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT 2 * ( COUNT( * ) ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1020
SELECT 2 * ( COUNT ( * ) ) AS col1 FROM tab1
----
6

query IIIIII rowsort
SELECT * FROM tab1 cor0 JOIN tab1 ON NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT + 65 * - 94 + - col2 AS col0 FROM tab1 AS cor0
----
-6169
-6178
-6206

query I rowsort
SELECT 22 + 68 FROM tab1 AS cor0
----
90
90
90

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

query I rowsort
SELECT + - 4 + col1 * col1 FROM tab0 AS cor0
----
-3
437
6557

query I rowsort
SELECT ALL 61 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
61
61
61

query I rowsort
SELECT + col2 + 94 AS col0 FROM tab2 AS cor0
----
117
134
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1028
SELECT DISTINCT col0 * + col2 + - col0 * CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1410
1740
19206

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT col0 * + col2 + - col0 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1410
1740
19206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 * ( col1 * + col1 ) + 51 col2 FROM tab2 AS cor0
----
130489
57273
98809

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT + COUNT( * ) + + SUM( DISTINCT + 11 + - 87 ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-1030
SELECT + COUNT ( * ) + + SUM ( DISTINCT + 11 + - 87 ) FROM tab1 AS cor0
----
-73

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

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL - COUNT ( * ) + ( + MIN ( col2 ) ) AS col2 FROM tab2 AS cor0
----
20

query I rowsort
SELECT + - col1 + 7 FROM tab1 AS cor0
----
-40
-7
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT - 46 + + COUNT( * ) col2 FROM tab2 AS cor0
----
-43

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

query I rowsort
SELECT ALL + col0 * + col1 + + 55 * - col2 FROM tab2 AS cor0
----
1081
1835
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT + - MAX( col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1036
SELECT + - MAX ( col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-94

query I rowsort
SELECT ALL + 91 + + 40 AS col2 FROM tab1 cor0
----
131
131
131

query I rowsort
SELECT + 77 AS col1 FROM tab0 AS cor0 WHERE 40 IS NOT NULL
----
77
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1039
SELECT DISTINCT + - 42 DIV COUNT( * ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT + - 42 / COUNT ( * ) FROM tab0 AS cor0
----
-14

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 87 <= - col2 * + 5
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 WHERE - 97 IS NULL
----

query I rowsort
SELECT + ( col2 ) * col0 FROM tab1 WHERE NULL IS NULL
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1043
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT DISTINCT SUM( + - 49 ) + - COUNT( * ) FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT SUM ( + - 49 ) + - COUNT ( * ) FROM tab2
----
-150

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + col2 BETWEEN NULL AND ( col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT + 28 * COUNT( * ) col2 FROM tab0 AS cor0 WHERE ( 35 ) BETWEEN + 81 AND col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1046
SELECT + 28 * COUNT ( * ) col2 FROM tab0 AS cor0 WHERE ( 35 ) BETWEEN + 81 AND col0
----
0

query I rowsort
SELECT ALL + - 87 - - - ( - col0 ) FROM tab2 AS cor0
----
-12
-23
-41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 / 14 AND 58 * col0 + - col1
----

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

query I rowsort
SELECT DISTINCT ( 31 ) / 39 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT col1 * + + 63 * col0 FROM tab1
----
26775
269451
44982

query I rowsort
SELECT 54 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1054
SELECT ALL - - col2 AS col1, - col1 DIV + col2 * col0 + - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

skipif mysql # not compatible
query II rowsort label-1054
SELECT ALL - - col2 AS col1, - col1 / + col2 * col0 + - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT DISTINCT - COUNT( DISTINCT - 86 ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT - COUNT ( DISTINCT - 86 ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT + col2 DIV col1 * - 65 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6435
0
0

skipif mysql # not compatible
query I rowsort label-1056
SELECT + col2 / col1 * - 65 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6435
0
0

query I rowsort
SELECT + ( + 16 ) AS col1 FROM tab2 AS cor0
----
16
16
16

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

query II rowsort
SELECT - ( 79 ), - 85 AS col1 FROM tab0
----
-79
-85
-79
-85
-79
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1060
SELECT - col2 * - CAST( + 16 AS SIGNED ) AS col1 FROM tab0
----
1584
160
752

skipif mysql # not compatible
query I rowsort label-1060
SELECT - col2 * - CAST ( + 16 AS INTEGER ) AS col1 FROM tab0
----
1584
160
752

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / - + 5 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 90 * col1 AS col1 FROM tab2
----
4590
6030
6930

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 IN ( + - 64 / col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 / + + 18 + ( - 38 ) * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1065
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT 44 + MIN( + 53 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1066
SELECT 44 + MIN ( + 53 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT 56 * - col1 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 12 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT SUM( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-1068
SELECT SUM ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
227

query I rowsort
SELECT col0 * + col2 * 89 + - - col1 AS col1 FROM tab0
----
62826
77451
854668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1070
SELECT DISTINCT + + CAST( 19 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
19

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT + + CAST ( 19 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
19

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

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

query I rowsort
SELECT - 4 * - - col0 * col0 FROM tab2
----
-16384
-22500
-8464

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT DISTINCT - MAX( 21 ) FROM tab2 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT - MAX ( 21 ) FROM tab2 cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1074
SELECT ALL + - 69 * - + col2 - + CAST( col1 AS SIGNED ) * col1 + col2 AS col0 FROM tab1 AS cor0
----
2551
4105
6524

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL + - 69 * - + col2 - + CAST ( col1 AS INTEGER ) * col1 + col2 AS col0 FROM tab1 AS cor0
----
2551
4105
6524

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 82 + - + col1 AS col0 FROM tab2 AS cor0
----
15
31
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT DISTINCT COUNT( * ) + + 37 col2 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1077
SELECT DISTINCT COUNT ( * ) + + 37 col2 FROM tab0 AS cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 47 + - - col1 col1 FROM tab1 AS cor0
----
-33
-42
0

query II rowsort
SELECT DISTINCT col2, col1 AS col2 FROM tab0 AS cor0 WHERE 93 IS NOT NULL
----
10
21
47
81
99
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL + 13 + - COUNT( * ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL + 13 + - COUNT ( * ) FROM tab2 AS cor0
----
10

query I rowsort
SELECT + 15 - col1 FROM tab0 AS cor0
----
-6
-66
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1084
SELECT + col2 * col0 * - - ( col2 ) + + col0 + - ( - 3 ) * CAST( col0 AS SIGNED ) FROM tab0
----
33195
9048
951085

skipif mysql # not compatible
query I rowsort label-1084
SELECT + col2 * col0 * - - ( col2 ) + + col0 + - ( - 3 ) * CAST ( col0 AS INTEGER ) FROM tab0
----
33195
9048
951085

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 * 58 - - col0 col0 FROM tab0
----
769
841
851

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT MIN( + col2 ) + - - COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-1087
SELECT MIN ( + col2 ) + - - COUNT ( * ) FROM tab0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1088
SELECT ALL - 96 + 58 * + 23 FROM tab1 WHERE NOT ( NULL < CAST( + + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - 96 + 58 * + 23 FROM tab1 WHERE NOT ( NULL < CAST ( + + col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT DISTINCT + 69 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-1089
SELECT DISTINCT + 69 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1090
SELECT ALL + COUNT( * ) * - 18 AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-1090
SELECT ALL + COUNT ( * ) * - 18 AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-54
NULL

query I rowsort
SELECT - col2 * + col0 * - 7 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
17920
30450
7406

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 INNER JOIN tab0 AS cor1 ON ( NOT ( NULL IS NULL ) )
----

query I rowsort
SELECT DISTINCT - 85 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-85

query I rowsort
SELECT + 88 FROM tab1 WHERE NOT NULL = 6
----

query I rowsort
SELECT - ( - 33 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1096
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( - + col1 AS SIGNED ) BETWEEN + 93 - - - 95 + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1096
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( - + col1 AS INTEGER ) BETWEEN + 93 - - - 95 + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 BETWEEN + + 18 AND - 96
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1098
SELECT DISTINCT + col1 DIV col2 AS col2, CAST( NULL AS SIGNED ) + + 55 col0 FROM tab1 AS cor0
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1098
SELECT DISTINCT + col1 / col2 AS col2, CAST ( NULL AS INTEGER ) + + 55 col0 FROM tab1 AS cor0
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 16 AND - col0 * + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1099
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 16 AND - col0 * + CAST ( + col1 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 60 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1101
SELECT DISTINCT + MIN( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT + MIN ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + 54 IS NULL
----
14
47
5

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT - - 16 IS NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 94 col2 FROM tab0 WHERE NOT - 0 IS NULL
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT DISTINCT - MIN( DISTINCT - col2 ) col0 FROM tab2
----
58

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

query I rowsort
SELECT ALL - + col2 FROM tab1 WHERE - 86 >= - + col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT - COUNT( * ) FROM tab0 WHERE NOT col2 * 77 / - + 27 + - 21 >= col0
----
-3

skipif mysql # not compatible
query I rowsort label-1108
SELECT - COUNT ( * ) FROM tab0 WHERE NOT col2 * 77 / - + 27 + - 21 >= col0
----
-3

query II rowsort
SELECT ALL + 15 AS col0, col2 AS col1 FROM tab0
----
15
10
15
47
15
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL COUNT( * ) + ( + + MAX( - + col1 ) ) AS col1 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL COUNT ( * ) + ( + + MAX ( - + col1 ) ) AS col1 FROM tab2
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE NOT NULL < 83 * 22
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 AS col0, - ( + col1 ) col2 FROM tab1 AS cor0 WHERE + 77 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, 91 * - - col1 col2 FROM tab2 AS cor0
----
-51
4641
-67
6097
-77
7007

query II rowsort
SELECT ALL - 29 AS col2, col2 + 57 FROM tab0 AS cor0
----
-29
104
-29
156
-29
67

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

skipif mysql # not compatible
query I rowsort label-1116
SELECT - MAX ( DISTINCT ( 32 ) ) AS col2 FROM tab2 AS cor0
----
-32

query II rowsort
SELECT DISTINCT - col1, - col2 AS col0 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1118
SELECT ALL + MAX( + 48 ), + SUM( DISTINCT 24 ) AS col2 FROM tab1
----
48
24

skipif mysql # not compatible
query II rowsort label-1118
SELECT ALL + MAX ( + 48 ), + SUM ( DISTINCT 24 ) AS col2 FROM tab1
----
48
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1119
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col2 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1121
SELECT + - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1121
SELECT + - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 + col2 - + 7 * + 59 * - 13 + + + 69 * + col1 NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col0 * + col0 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 * + col1 + + col2 - + + 41 + - - 40 ) NOT IN ( 78 )
----

query I rowsort
SELECT + 93 + 62 FROM tab0 AS cor0
----
155
155
155

onlyif mysql # aggregate syntax: 
query II rowsort label-1126
SELECT 72 + + 25, COUNT( * ) col2 FROM tab1 AS cor0
----
97
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1126
SELECT 72 + + 25, COUNT ( * ) col2 FROM tab1 AS cor0
----
97
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1127
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 88 + - col0 * + col1 + col0 NOT IN ( - + CAST( + col0 AS SIGNED ) + + 17 )
----

skipif mysql # not compatible
query III rowsort label-1127
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 88 + - col0 * + col1 + col0 NOT IN ( - + CAST ( + col0 AS INTEGER ) + + 17 )
----

query I rowsort
SELECT ALL 2 + - + col0 - + 76 FROM tab2 AS cor0
----
-120
-138
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT - - MAX( - + 19 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-19

skipif mysql # not compatible
query I rowsort label-1129
SELECT - - MAX ( - + 19 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-19

query I rowsort
SELECT DISTINCT + col2 + + col0 * 13 FROM tab2 AS cor0
----
1033
621
872

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT DISTINCT + 2 + - - COUNT( * ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT + 2 + - - COUNT ( * ) FROM tab1 cor0
----
5

query I rowsort
SELECT ALL 53 * - col2 - + col0 AS col1 FROM tab2
----
-1265
-2184
-3149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1133
SELECT DISTINCT COUNT( * ) DIV 49 + + 6 AS col2 FROM tab2 WHERE - - 43 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT COUNT ( * ) / 49 + + 6 AS col2 FROM tab2 WHERE - - 43 IS NULL
----
6

query II rowsort
SELECT ALL col1 * 19 * - - 1 * + col1 * + 97, + col1 FROM tab1
----
361228
14
4071187
47
46075
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1135
SELECT DISTINCT CAST( + ( 24 ) AS SIGNED ) * col0 AS col2 FROM tab0
----
2088
2328
360

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT CAST ( + ( 24 ) AS INTEGER ) * col0 AS col2 FROM tab0
----
2088
2328
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1136
SELECT - 70 - SUM( col2 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1136
SELECT - 70 - SUM ( col2 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > NULL AND - + col1 IS NULL
----

query I rowsort
SELECT ALL 58 * + - ( col1 ) AS col2 FROM tab2
----
-2958
-3886
-4466

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1140
SELECT COUNT( * ) DIV + 21 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1140
SELECT COUNT ( * ) / + 21 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1141
SELECT ALL - ( + + 4 ) DIV + col2 AS col1, col2 col2 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1141
SELECT ALL - ( + + 4 ) / + col2 AS col1, col2 col2 FROM tab1
----
0
59
0
68
0
96

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

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

query I rowsort
SELECT - - col1 * + 37 + + col0 FROM tab2 AS cor0
----
1933
2554
2913

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT DISTINCT - - SUM( 88 ) FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT - - SUM ( 88 ) FROM tab2 AS cor0
----
264

query I rowsort
SELECT DISTINCT + col2 * col1 + + col1 AS col0 FROM tab0 cor0
----
100
231
3888

query I rowsort
SELECT + 78 * - - col2 FROM tab0
----
3666
7722
780

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT DISTINCT COUNT( * ) * - 9 AS col2 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT COUNT ( * ) * - 9 AS col2 FROM tab1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT - COUNT( * ) * + + MIN( ALL + 64 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-576

skipif mysql # not compatible
query I rowsort label-1148
SELECT - COUNT ( * ) * + + MIN ( ALL + 64 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1149
SELECT DISTINCT + - COUNT( * ) DIV + MAX( DISTINCT + 39 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT + - COUNT ( * ) / + MAX ( DISTINCT + 39 ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col1 ) col1, + 74 FROM tab1 AS cor0
----
-14
74
-47
74
-5
74

query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab0 cor0
----
46

query II rowsort
SELECT ALL + col0, ( col1 ) - - ( + ( + + col2 ) ) * + 8 FROM tab2 AS cor0
----
46
235
64
397
75
531

onlyif mysql # DIV for integer division: 
query I rowsort label-1153
SELECT col0 DIV - col0 - + 76 - - col2 FROM tab1 AS cor0
----
-18
-9
19

skipif mysql # not compatible
query I rowsort label-1153
SELECT col0 / - col0 - + 76 - - col2 FROM tab1 AS cor0
----
-18
-9
19

query I rowsort
SELECT ALL + 35 * + col0 + 40 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col2 ) AND + col1 / col0
----

query I rowsort
SELECT ALL - 18 * 29 AS col1 FROM tab0
----
-522
-522
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT - COUNT( * ) FROM tab2 WHERE NOT col0 * + 99 <= col0 * - col1 + + col0
----
-3

skipif mysql # not compatible
query I rowsort label-1156
SELECT - COUNT ( * ) FROM tab2 WHERE NOT col0 * + 99 <= col0 * - col1 + + col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT MAX( ALL - + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1157
SELECT MAX ( ALL - + col0 ) FROM tab1
----
-51

query I rowsort
SELECT col0 + 2 - - 7 FROM tab1
----
100
60
94

onlyif mysql # DIV for integer division: 
query II rowsort label-1159
SELECT ALL + col1 DIV 70 * - col2 AS col1, 7 AS col2 FROM tab1
----
0
7
0
7
0
7

skipif mysql # not compatible
query II rowsort label-1159
SELECT ALL + col1 / 70 * - col2 AS col1, 7 AS col2 FROM tab1
----
0
7
0
7
0
7

query I rowsort
SELECT 28 * - col2 * + - 15 + + + col1 AS col1 FROM tab2
----
16877
24427
9711

query II rowsort
SELECT DISTINCT - - ( 64 ) + + col0 + col0 + + col1, - 89 AS col2 FROM tab2 AS cor0
----
207
-89
269
-89
281
-89

query I rowsort
SELECT - - 18 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col1 <> col2 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 66 * + - 88 FROM tab1 AS cor0
----
-5808
-5808
-5808

query I rowsort
SELECT - col1 * + col1 - - + col2 AS col0 FROM tab2 AS cor0
----
-2578
-4431
-5889

query I rowsort
SELECT ALL + - 54 + - - 33 AS col1 FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL + + ( + col1 ) * 16 + + col2 - 94 FROM tab1 AS cor0
----
226
45
726

query I rowsort
SELECT col1 + + - 87 AS col0 FROM tab1 AS cor0
----
-40
-73
-82

query I rowsort
SELECT DISTINCT + - col1 + - 51 FROM tab1 AS cor0
----
-56
-65
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1170
SELECT DISTINCT * FROM tab1 cor0 WHERE 86 NOT IN ( col2 * CAST( - col2 AS SIGNED ) + - col2 + + - col2 + - - 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1170
SELECT DISTINCT * FROM tab1 cor0 WHERE 86 NOT IN ( col2 * CAST ( - col2 AS INTEGER ) + - col2 + + - col2 + - - 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-1171
SELECT - col1 + + - col0 * col0 AS col1, + col2 DIV - 7 + - col0 AS col0 FROM tab2 AS cor0
----
-2167
-49
-4173
-69
-5692
-83

skipif mysql # not compatible
query II rowsort label-1171
SELECT - col1 + + - col0 * col0 AS col1, + col2 / - 7 + - col0 AS col0 FROM tab2 AS cor0
----
-2167
-49
-4173
-69
-5692
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 57 * - col1 col2 FROM tab2
----
-175560
-221502
-66861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1173
SELECT ALL COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1175
SELECT - 55 DIV + ( + - ( COUNT( * ) ) ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-1175
SELECT - 55 / + ( + - ( COUNT ( * ) ) ) FROM tab2
----
18

query I rowsort
SELECT ALL + col1 * - - col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT 68 * + + col0 * - + col0 AS col0 FROM tab2
----
-143888
-278528
-382500

query I rowsort
SELECT col1 + + col1 + col1 * + col1 FROM tab2 AS cor0
----
2703
4623
6083

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

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT - 61 * COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1180
SELECT + + col1 + - col1 + + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT + + col1 + - col1 + + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT SUM( + col1 ) * - 52 FROM tab0 AS cor0
----
-5356

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT SUM ( + col1 ) * - 52 FROM tab0 AS cor0
----
-5356

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1185
SELECT ALL 59 DIV - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL 59 / - col0 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 14 col1 FROM tab2 WHERE NULL IS NULL
----
-14
-14
-14

query II rowsort
SELECT DISTINCT 97, + col0 FROM tab1
----
97
51
97
85
97
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1188
SELECT DISTINCT - 89 * 59 DIV + CAST( col1 AS SIGNED ) + col1 FROM tab0
----
-229
-5250
17

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT - 89 * 59 / + CAST ( col1 AS INTEGER ) + col1 FROM tab0
----
-229
-5250
17

query I rowsort
SELECT DISTINCT ( + 86 ) AS col1 FROM tab2
----
86

query II rowsort
SELECT + col2 AS col2, - 62 AS col1 FROM tab1
----
59
-62
68
-62
96
-62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1192
SELECT ALL - col2 FROM tab1 WHERE col1 * CAST( NULL AS SIGNED ) + - - 14 - - - col0 IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - col2 FROM tab1 WHERE col1 * CAST ( NULL AS INTEGER ) + - - 14 - - - col0 IS NULL
----
-59
-68
-96

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1194
SELECT ALL - CAST( NULL AS DECIMAL ) - + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL - CAST ( NULL AS REAL ) - + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - 0, + col1 AS col1 FROM tab2 AS cor0 WHERE NULL < + col1 + - + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1196
SELECT DISTINCT - 79 DIV + + col1 AS col2, 80 * - - col0 FROM tab0
----
-3
6960
-79
7760
0
1200

skipif mysql # not compatible
query II rowsort label-1196
SELECT DISTINCT - 79 / + + col1 AS col2, 80 * - - col0 FROM tab0
----
-3
6960
-79
7760
0
1200

onlyif mysql # DIV for integer division: 
query I rowsort label-1197
SELECT col1 DIV - - ( + ( + 85 ) ) * + - col2 + + 50 + + - col1 + 62 - 82 + - 10 * + col2 FROM tab0
----
-521
-91
-961

skipif mysql # not compatible
query I rowsort label-1197
SELECT col1 / - - ( + ( + 85 ) ) * + - col2 + + 50 + + - col1 + 62 - 82 + - 10 * + col2 FROM tab0
----
-521
-91
-961

query I rowsort
SELECT - col2 + - + 24 FROM tab0
----
-123
-34
-71

query I rowsort
SELECT DISTINCT col0 + col0 + - ( + col2 ) / + 77 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 + + col2 * - - 20 AS col1 FROM tab1 AS cor0
----
1175
1313
1906

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = 32 * + 4
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1203
SELECT - ( - col1 ) * 35 col0 FROM tab2 WHERE NOT col1 NOT BETWEEN + - col0 AND CAST( + col0 AS SIGNED )
----
2345

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1203
SELECT - ( - col1 ) * 35 col0 FROM tab2 WHERE NOT col1 NOT BETWEEN + - col0 AND CAST ( + col0 AS INTEGER )
----
2345

onlyif mysql # aggregate syntax: 
query II rowsort label-1204
SELECT DISTINCT COUNT( * ) col1, COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1204
SELECT DISTINCT COUNT ( * ) col1, COUNT ( * ) AS col0 FROM tab2
----
3
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - 41 * col2 IS NULL
----

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

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

query I rowsort
SELECT col2 * ( + + 37 ) * col0 FROM tab2
----
160950
39146
94720

query I rowsort
SELECT ALL - + col0 + - col0 + 9 AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT ALL 23 AS col1, 28 FROM tab1
----
23
28
23
28
23
28

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 <> - + ( + col0 ) + 74 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1211
SELECT ALL + CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL + CAST ( NULL AS REAL ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1212
SELECT DISTINCT + 88 * - CAST( + 12 AS SIGNED ) col0, - col2 FROM tab1 cor0
----
-1056
-59
-1056
-68
-1056
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1212
SELECT DISTINCT + 88 * - CAST ( + 12 AS INTEGER ) col0, - col2 FROM tab1 cor0
----
-1056
-59
-1056
-68
-1056
-96

query I rowsort
SELECT ALL + col0 / - col2 / + - col0 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL ( COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + col2 * col2 * + + col1 FROM tab2 AS cor0
----
123200
225388
26979

query I rowsort
SELECT ALL 7 + 13 + + col0 + + - col2 + - col0 FROM tab0 cor0
----
-27
-79
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT 33 DIV col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1217
SELECT 33 / col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
0
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1218
SELECT ALL 49 * - 65 + + col1 - + col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL 49 * - 65 + + col1 - + col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT + + COUNT( * ) FROM tab0 WHERE + 10 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1219
SELECT + + COUNT ( * ) FROM tab0 WHERE + 10 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 * + + col0 AS col0 FROM tab0 WHERE NOT + + 47 NOT IN ( + col0 + col0, + 36, - + col1 / + - col2 * + col1 + - ( - 39 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT ALL - MIN( ALL - 94 ) AS col0 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL - MIN ( ALL - 94 ) AS col0 FROM tab2
----
94

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

skipif mysql # not compatible
query I rowsort label-1222
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL > 81
----

query I rowsort
SELECT DISTINCT - col1 - 14 AS col2 FROM tab2 AS cor0
----
-65
-81
-91

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

query I rowsort
SELECT ALL + 80 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1227
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1228
SELECT ALL MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 39 * + col2 AS col2 FROM tab0 cor0
----
1833
3861
390

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

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

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE col2 * + 68 > ( - - col0 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1232
SELECT + - 69 AS col1, 88 * + - MIN( DISTINCT - 84 ) AS col2 FROM tab1 cor0
----
-69
7392

skipif mysql # not compatible
query II rowsort label-1232
SELECT + - 69 AS col1, 88 * + - MIN ( DISTINCT - 84 ) AS col2 FROM tab1 cor0
----
-69
7392

onlyif mysql # aggregate syntax: 
query II rowsort label-1233
SELECT - SUM( ALL + - col1 ) col1, + 84 AS col2 FROM tab2 AS cor0
----
195
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1233
SELECT - SUM ( ALL + - col1 ) col1, + 84 AS col2 FROM tab2 AS cor0
----
195
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * - col2 / ( + col2 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 32 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1, - 19, + col2, - - 18 * col0 + col1, + 55 * col2 )
----

query II rowsort
SELECT ALL + 56, - 90 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 7686430408178812fc677ba6ea3b3961

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1239
SELECT + 0 + - - CAST( NULL AS DECIMAL ) + col2 - 56 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1239
SELECT + 0 + - - CAST ( NULL AS REAL ) + col2 - 56 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 2 + 17 AS col0 FROM tab1 AS cor0
----
15
15
15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT + + 6 + - col1 + - col0 + - - CAST( NULL AS SIGNED ) / + col0 + + 14 * - 99 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT + + 6 + - col1 + - col0 + - - CAST ( NULL AS INTEGER ) / + col0 + + 14 * - 99 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 83 NOT BETWEEN - col2 * - + col1 - + 1 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT - COUNT( * ) + + + 42 AS col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1244
SELECT - COUNT ( * ) + + + 42 AS col1 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ( - SUM( DISTINCT - col0 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1245
SELECT ( - SUM ( DISTINCT - col0 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1247
SELECT + + CAST( col2 AS SIGNED ) AS col1, col2 + + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1247
SELECT + + CAST ( col2 AS INTEGER ) AS col1, col2 + + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1248
SELECT ALL + col2 + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL + col2 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT DISTINCT - + MIN( ALL - + col2 ) FROM tab1 WHERE NOT + - col2 - + + 0 * - 26 + + + col1 * + + ( 75 ) * - col0 / - col1 IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT - + MIN ( ALL - + col2 ) FROM tab1 WHERE NOT + - col2 - + + 0 * - 26 + + + col1 * + + ( 75 ) * - col0 / - col1 IS NULL
----
96

query II rowsort
SELECT + col0 * - + col1 * - col0 * + 11 * - 99, - col0 * + 28 AS col2 FROM tab0
----
-10246401
-2716
-173095461
-2436
-19847025
-420

query I rowsort
SELECT 64 * - col0 AS col0 FROM tab1
----
-3264
-5440
-5824

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

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - CAST ( NULL AS REAL ) * - + COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( NOT + 58 IS NULL )
----

query II rowsort
SELECT DISTINCT + col0 + + - 77, col2 + - + 78 AS col1 FROM tab2 AS cor0
----
-13
-38
-2
-20
-31
-55

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 17 * - - col0 + col0 * col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1256
SELECT DISTINCT - - COUNT( * ) + - - ( CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT - - COUNT ( * ) + - - ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT MAX( - ( - + col2 ) ) + - 3 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-1257
SELECT MAX ( - ( - + col2 ) ) + - 3 FROM tab2 AS cor0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1258
SELECT DISTINCT - col1 * CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT - col1 * CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT + + COUNT( * ) * - - MIN( ALL + + 66 ) col2 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1259
SELECT + + COUNT ( * ) * - - MIN ( ALL + + 66 ) col2 FROM tab0 AS cor0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-1260
SELECT DISTINCT - 52 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT - 52 / col0 AS col2 FROM tab1 AS cor0
----
-1
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1262
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 47 NOT BETWEEN - ( + + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1262
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 47 NOT BETWEEN - ( + + CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT + - MAX( DISTINCT - col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1263
SELECT + - MAX ( DISTINCT - col0 ) FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT ALL - MIN( DISTINCT + + 59 ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL - MIN ( DISTINCT + + 59 ) FROM tab2
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, - 19 col2 FROM tab0
----
15
-19
87
-19
97
-19

query II rowsort
SELECT 38 AS col1, + col1 * - + col2 AS col0 FROM tab1
----
38
-1344
38
-295
38
-3196

query II rowsort
SELECT - ( + col1 ) AS col0, - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-23
-67
-58
-77
-40

query II rowsort
SELECT + col2 * col2 * - 22 + + col2, col1 AS col2 FROM tab1 AS cor0
----
-101660
47
-202656
14
-76523
5

query I rowsort
SELECT 6 * col0 * - 55 FROM tab0
----
-28710
-32010
-4950

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 - col2 + 13 / + - 24 IS NOT NULL
----

query I rowsort
SELECT ALL + 87 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT COUNT( ALL - 83 ) AS col0 FROM tab2 cor0 WHERE NULL IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1272
SELECT COUNT ( ALL - 83 ) AS col0 FROM tab2 cor0 WHERE NULL IN ( col2 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * 99 * + 12 * 57 * + col0 IN ( + col1 / + + 24, col0 * col2 + - col0 * - 98 * - + col2 * - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT ALL + 39 + - COUNT( * ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL + 39 + - COUNT ( * ) FROM tab2 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT DISTINCT - col0 DIV + col1 + + - col2 + - col2 FROM tab2 AS cor0
----
-117
-46
-80

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT - col0 / + col1 + + - col2 + - col2 FROM tab2 AS cor0
----
-117
-46
-80

query I rowsort
SELECT ( - + 2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT ALL - + 82 * + COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL - + 82 * + COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1278
SELECT + ( - col1 ) + - CAST( NULL AS SIGNED ) + - col1 / - col1 * + - col0 + + + 22 AS col2 FROM tab1 AS cor0 WHERE ( 69 IS NOT NULL ) OR NULL > - - col2 * - + 44
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1278
SELECT + ( - col1 ) + - CAST ( NULL AS INTEGER ) + - col1 / - col1 * + - col0 + + + 22 AS col2 FROM tab1 AS cor0 WHERE ( 69 IS NOT NULL ) OR NULL > - - col2 * - + 44
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - 34 AS col1 FROM tab1
----
-20
-29
13

query I rowsort
SELECT 43 + - col0 AS col0 FROM tab0
----
-44
-54
28

query I rowsort
SELECT DISTINCT 64 * - - ( + - 94 ) AS col1 FROM tab0
----
-6016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1282
SELECT - COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab0 WHERE - 65 + + col0 NOT IN ( col0, - col0 )
----
-1

skipif mysql # not compatible
query I rowsort label-1282
SELECT - COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab0 WHERE - 65 + + col0 NOT IN ( col0, - col0 )
----
-1

query I rowsort
SELECT col0 + - ( ( - col0 ) ) * 8 AS col1 FROM tab1
----
459
765
819

query II rowsort
SELECT DISTINCT - 74, col2 AS col2 FROM tab2
----
-74
23
-74
40
-74
58

query I rowsort
SELECT col2 + + 59 FROM tab1 AS cor0
----
118
127
155

query I rowsort
SELECT DISTINCT - 85 + - - 72 FROM tab2 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT MIN( ALL 51 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1287
SELECT MIN ( ALL 51 ) AS col2 FROM tab2
----
51

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT - + 8 / - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT DISTINCT - col0 DIV - ( + - 98 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT - col0 / - ( + - 98 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <> + col1
----

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT + col0 <= - - col1 / - - col0
----
1
21
81

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

query II rowsort
SELECT 98 AS col2, col1 AS col2 FROM tab0
----
98
1
98
21
98
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1294
SELECT DISTINCT 82 * + 17 * CAST( - 17 AS SIGNED ) AS col2 FROM tab2
----
-23698

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT 82 * + 17 * CAST ( - 17 AS INTEGER ) AS col2 FROM tab2
----
-23698

query III rowsort
SELECT * FROM tab1 WHERE NOT + 29 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1296
SELECT + 61 DIV - COUNT( * ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-1296
SELECT + 61 / - COUNT ( * ) AS col2 FROM tab1
----
-20

query I rowsort
SELECT DISTINCT - col0 * + - col1 AS col2 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1298
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN - - CAST( NULL AS SIGNED ) AND + col0 / - - col1
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-1298
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN - - CAST ( NULL AS INTEGER ) AND + col0 / - - col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1299
SELECT DISTINCT + col0 col1, + 40 * + CAST( NULL AS SIGNED ) - + 9 + + 46 AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1299
SELECT DISTINCT + col0 col1, + 40 * + CAST ( NULL AS INTEGER ) - + 9 + + 46 AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT DISTINCT + 84 * - - COUNT( + 85 ) + + - COUNT( * ) AS col1 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT + 84 * - - COUNT ( + 85 ) + + - COUNT ( * ) AS col1 FROM tab1
----
249

query I rowsort
SELECT + col0 * + 15 FROM tab0 cor0
----
1305
1455
225

query I rowsort
SELECT ALL - col2 + 89 AS col0 FROM tab0 AS cor0
----
-10
42
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT - SUM( ALL + + 94 ) AS col2 FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-1303
SELECT - SUM ( ALL + + 94 ) AS col2 FROM tab1 AS cor0
----
-282

query I rowsort
SELECT - 23 * + col0 AS col0 FROM tab2 AS cor0
----
-1058
-1472
-1725

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

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

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT - COUNT( + 28 ) FROM tab0 AS cor0 WHERE NULL > + 27
----
0

skipif mysql # not compatible
query I rowsort label-1307
SELECT - COUNT ( + 28 ) FROM tab0 AS cor0 WHERE NULL > + 27
----
0

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

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

query I rowsort
SELECT DISTINCT col2 + + - 21 FROM tab0 AS cor0
----
-11
26
78

query I rowsort
SELECT DISTINCT - col2 + + col2 - + + col2 + - + col0 * + col0 FROM tab1 AS cor0
----
-2697
-7284
-8349

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT DISTINCT + + col1 + - 19 - + 46 + col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
-40
16
33

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT + + col1 + - 19 - + 46 + col0 / + col1 AS col2 FROM tab0 AS cor0
----
-40
16
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1312
SELECT + 93 AS col2, ( + - CAST( - col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
93
10
93
47
93
99

skipif mysql # not compatible
query II rowsort label-1312
SELECT + 93 AS col2, ( + - CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
93
10
93
47
93
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT - SUM( ALL - - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1314
SELECT - SUM ( ALL - - col0 ) FROM tab0 AS cor0
----
-199

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1316
SELECT ALL col1 - CAST( NULL AS DECIMAL ) / + ( + col2 ) * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL col1 - CAST ( NULL AS REAL ) / + ( + col2 ) * - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 FROM tab2 WHERE col2 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL - COUNT( * ) + - SUM( ALL - col1 ) AS col1 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - COUNT ( * ) + - SUM ( ALL - col1 ) AS col1 FROM tab0
----
100

query I rowsort
SELECT col0 * + + col1 - - + col0 AS col1 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT - 17 + + col0 FROM tab2 AS cor0
----
29
47
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT DISTINCT - + COUNT( DISTINCT + 42 ) col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1321
SELECT DISTINCT - + COUNT ( DISTINCT + 42 ) col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + col0 - 95 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-8
-80
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * col2 + ( - - 58 ) + - col0 >= NULL
----

query II rowsort
SELECT + 32, + 75 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 2c68ec1786c8e8b9b048b8ed4eaebdbf

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1325
SELECT CAST( NULL AS SIGNED ) AS col2, col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-1325
SELECT CAST ( NULL AS INTEGER ) AS col2, col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1327
SELECT DISTINCT - - CAST( + + AVG ( - 53 ) AS SIGNED ) FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT - - CAST ( + + AVG ( - 53 ) AS INTEGER ) FROM tab0 AS cor0
----
-53

query I rowsort
SELECT DISTINCT + - 36 AS col1 FROM tab2 cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT - MIN( + 22 ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1329
SELECT - MIN ( + 22 ) FROM tab0 AS cor0
----
-22

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1331
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND - 45 * + col2 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1331
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND - 45 * + col2 / + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 54 = NULL
----

query I rowsort
SELECT DISTINCT - - col1 * - 4 AS col0 FROM tab0 AS cor0
----
-324
-4
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1334
SELECT - ( + + COUNT( * ) ) DIV - - 84 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1334
SELECT - ( + + COUNT ( * ) ) / - - 84 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 * + + col0 * - 84 col1 FROM tab2
----
162288
225792
264600

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT + COUNT( * ) * 9 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-1336
SELECT + COUNT ( * ) * 9 FROM tab2
----
27

query I rowsort
SELECT + ( - 86 ) AS col0 FROM tab2
----
-86
-86
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-1338
SELECT DISTINCT - col2 * - ( - ( + 74 ) ) DIV + 74 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT - col2 * - ( - ( + 74 ) ) / + 74 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT DISTINCT - COUNT( ALL - 84 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT - COUNT ( ALL - 84 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL col1 * + col0 * + - col0 FROM tab1
----
-36125
-36414
-389207

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 92 + ( col1 ) * - - 88 col1, - col2 + + col0 AS col0 FROM tab2
----
4580
23
5988
17
6868
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1343
SELECT DISTINCT - COUNT( * ) + - - AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1345
SELECT col0 DIV col0 + - - ( col0 ) FROM tab1 cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-1345
SELECT col0 / col0 + - - ( col0 ) FROM tab1 cor0
----
52
86
92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 >= - ( + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1347
SELECT DISTINCT + 21 DIV - + MIN( - col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT + 21 / - + MIN ( - col1 ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1348
SELECT DISTINCT + col2 DIV - + 96 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1348
SELECT DISTINCT + col2 / - + 96 FROM tab0
----
-1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + 71 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT ALL + + ( + MAX( ALL col0 ) ) + + ( 98 ) AS col1 FROM tab2 AS cor0
----
173

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL + + ( + MAX ( ALL col0 ) ) + + ( 98 ) AS col1 FROM tab2 AS cor0
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT ALL + COUNT( + 43 ) + - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL + COUNT ( + 43 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - 30 - + col1 AS col1 FROM tab1 cor0
----
-17
16
25

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 = col1 * - col0 - - + 14 - - - 90
----

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

query I rowsort
SELECT - 26 + + col2 * - + 8 AS col0 FROM tab1 AS cor0
----
-498
-570
-794

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT DISTINCT ( + + MIN( DISTINCT + col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT ( + + MIN ( DISTINCT + col2 ) ) AS col2 FROM tab0
----
10

query I rowsort
SELECT DISTINCT col1 + + + col1 AS col1 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1359
SELECT - CAST( - + col1 AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1359
SELECT - CAST ( - + col1 AS INTEGER ) FROM tab1
----
14
47
5

query II rowsort
SELECT - 62 + - - ( + col1 ) - col1 * col0 / col0 + + 51, 81 FROM tab0 WHERE NOT ( NOT col1 IS NULL )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 80 ) NOT BETWEEN + 26 AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1363
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT + 65 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1366
SELECT ALL + col0 * - - CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL + col0 * - - CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT - - 52 + + + col0 AS col0 FROM tab0 AS cor0
----
139
149
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1368
SELECT - col0 DIV + 71 col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1368
SELECT - col0 / + 71 col0 FROM tab0
----
-1
-1
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT + CAST( NULL AS SIGNED ) / - 5 * - - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT + CAST ( NULL AS INTEGER ) / - 5 * - - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1371
SELECT 60 + MAX( + col1 ) AS col0, - 92 AS col0 FROM tab1 AS cor0
----
107
-92

skipif mysql # not compatible
query II rowsort label-1371
SELECT 60 + MAX ( + col1 ) AS col0, - 92 AS col0 FROM tab1 AS cor0
----
107
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col2 FROM tab1 WHERE NOT col0 + col0 IS NULL
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL - + COUNT( + 48 ) * 78 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-6318

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - + COUNT ( + 48 ) * 78 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-6318

query I rowsort
SELECT DISTINCT - 37 FROM tab1, tab1 cor0
----
-37

query I rowsort
SELECT ALL - 2 + - - col2 FROM tab0 AS cor0
----
45
8
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT 30 DIV - col0 AS col1 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1376
SELECT 30 / - col0 AS col1 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL + - col0 * - 26 AS col1 FROM tab1 AS cor0
----
1326
2210
2366

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1379
SELECT ALL + 93 + + 1 + ( - CAST( col1 AS SIGNED ) ), + col2 FROM tab1 AS cor0
----
47
68
80
96
89
59

skipif mysql # not compatible
query II rowsort label-1379
SELECT ALL + 93 + + 1 + ( - CAST ( col1 AS INTEGER ) ), + col2 FROM tab1 AS cor0
----
47
68
80
96
89
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND - + 6 - + + 46
----

query I rowsort
SELECT ALL + + 70 + + ( + + 10 ) * col0 FROM tab1 AS cor0
----
580
920
980

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1383
SELECT DISTINCT - - COUNT( DISTINCT - col0 ) * + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT - - COUNT ( DISTINCT - col0 ) * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + - col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT - + MIN( DISTINCT - col1 ) AS col1 FROM tab2 WHERE NOT col2 * - 45 + - col2 IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-1385
SELECT - + MIN ( DISTINCT - col1 ) AS col1 FROM tab2 WHERE NOT col2 * - 45 + - col2 IS NULL
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT + COUNT( * ) * - 56 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-1386
SELECT + COUNT ( * ) * - 56 FROM tab1 AS cor0
----
-168

query I rowsort
SELECT DISTINCT + col1 * + + col1 * col0 * - + col0 - + col0 FROM tab2 AS cor0
----
-24285248
-25250700
-5503762

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 95 ) NOT IN ( 53, col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT 50 DIV + - 47 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1390
SELECT 50 / + - 47 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 + - col0 + + + 42 + + col1 + + 44 * - col0 * + col1 FROM tab1 AS cor0
----
-18653
-188099
-31360

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1392
SELECT DISTINCT + 58 / col1 * - + col2, 76 + - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, col0 * + col0 / CAST( NULL AS DECIMAL ) + + 83 * - col2, 11, - col2, + + ( + col2 ) )
----

skipif mysql # not compatible
query II rowsort label-1392
SELECT DISTINCT + 58 / col1 * - + col2, 76 + - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, col0 * + col0 / CAST ( NULL AS REAL ) + + 83 * - col2, 11, - col2, + + ( + col2 ) )
----

query I rowsort
SELECT 14 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IN ( - col2 * - col2, + col0, col1, col2, 59, - col2 )
----

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

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE NOT col2 IN ( + col1 * + col2, col0 )
----
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT + - SUM( col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-1396
SELECT + - SUM ( col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-1397
SELECT 47 DIV - 24 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1397
SELECT 47 / - 24 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1398
SELECT - 86 / + + MIN( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1398
SELECT - 86 / + + MIN ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 col0 FROM tab0
----
78
78
78

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1401
SELECT + ( - COUNT ( DISTINCT - col2 ) ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT DISTINCT COUNT( * ) - - - 5 AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT COUNT ( * ) - - - 5 AS col0 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT DISTINCT + col2 + + + col0 + + col2 FROM tab0
----
107
109
295

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

query I rowsort
SELECT - col2 - ( + + col2 ) + col2 * - col0 * + col1 AS col0 FROM tab2
----
-197200
-291566
-54004

query I rowsort
SELECT DISTINCT + 84 * 23 FROM tab2 AS cor0
----
1932

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - 11 col2 FROM tab2 cor0
----
506
704
825

query I rowsort
SELECT DISTINCT - - 30 + ( - - col2 ) AS col2 FROM tab1 cor0
----
126
89
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1410
SELECT ALL COUNT( * ) + - ( + MAX( ALL - col0 ) ) + CAST( NULL AS SIGNED ) + + 31 + - COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1410
SELECT ALL COUNT ( * ) + - ( + MAX ( ALL - col0 ) ) + CAST ( NULL AS INTEGER ) + + 31 + - COUNT ( DISTINCT CAST ( NULL AS REAL ) ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 36 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT ALL + MAX( 66 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL + MAX ( 66 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT SUM( ALL - - 86 ) * - 47 AS col0 FROM tab2
----
-12126

skipif mysql # not compatible
query I rowsort label-1413
SELECT SUM ( ALL - - 86 ) * - 47 AS col0 FROM tab2
----
-12126

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT col2 AS col0, 35 AS col1 FROM tab0 WHERE NOT + + col1 - + + col2 NOT BETWEEN + + 86 + + col1 - - - col0 AND + 14
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < col2 * col0
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - 37 + 23 = + col2 * + ( + col1 ) * col2 * + col0 * + col0 + + 50 * ( - col2 )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT COUNT( * ) FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-1418
SELECT COUNT ( * ) FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1420
SELECT 97 AS col2, + col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
97
NULL
97
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1420
SELECT 97 AS col2, + col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
97
NULL
97
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT - 60 + - + COUNT( * ) * + MIN( DISTINCT + - col2 ) FROM tab1 cor0
----
228

skipif mysql # not compatible
query I rowsort label-1421
SELECT - 60 + - + COUNT ( * ) * + MIN ( DISTINCT + - col2 ) FROM tab1 cor0
----
228

query I rowsort
SELECT ALL - col1 + - + ( ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 + - + ( + col2 ) FROM tab0 AS cor0
----
0
0
0

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

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

query II rowsort
SELECT DISTINCT + 83, col0 AS col2 FROM tab0
----
83
15
83
87
83
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 15 col2, col0 * + + col0 FROM tab0
----
15
225
15
7569
15
9409

query I rowsort
SELECT - + 31 AS col1 FROM tab1 WHERE + col2 - - col2 IS NOT NULL
----
-31
-31
-31

query II rowsort
SELECT ALL - 72, + ( + + 27 ) AS col2 FROM tab0
----
-72
27
-72
27
-72
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 40 + + col2 col1 FROM tab0 AS cor0
----
-20
158
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT + MAX( DISTINCT - ( - col2 ) ) - + SUM( + ( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
253

skipif mysql # not compatible
query I rowsort label-1432
SELECT + MAX ( DISTINCT - ( - col2 ) ) - + SUM ( + ( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT DISTINCT + 20 * - - COUNT( ALL + 4 ) + - MIN( ALL col2 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT + 20 * - - COUNT ( ALL + 4 ) + - MIN ( ALL col2 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + ( - 35 ) + col0 AS col0 FROM tab0 AS cor0
----
-20
52
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1435
SELECT + SUM( ALL - col0 ) AS col0, - SUM( - col1 ) DIV + COUNT( * ) + - ( - 82 ) FROM tab2
----
-185
147

skipif mysql # not compatible
query II rowsort label-1435
SELECT + SUM ( ALL - col0 ) AS col0, - SUM ( - col1 ) / + COUNT ( * ) + - ( - 82 ) FROM tab2
----
-185
147

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT ALL - + 49 DIV 93 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL - + 49 / 93 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * - 76 FROM tab1 AS cor0
----
4484
5168
7296

query I rowsort
SELECT DISTINCT ( + + 59 ) FROM tab2 AS cor0
----
59

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

skipif mysql # not compatible
query III rowsort label-1439
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1440
SELECT ALL - MIN( DISTINCT + - col2 ) * + + COUNT( * ) AS col2, MIN( + + 2 ) * COUNT( * ) + COUNT( * ) FROM tab1
----
288
9

skipif mysql # not compatible
query II rowsort label-1440
SELECT ALL - MIN ( DISTINCT + - col2 ) * + + COUNT ( * ) AS col2, MIN ( + + 2 ) * COUNT ( * ) + COUNT ( * ) FROM tab1
----
288
9

query I rowsort
SELECT col0 * + - 72 AS col0 FROM tab2
----
-3312
-4608
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT COUNT( * ) * - - 65 AS col0 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-1442
SELECT COUNT ( * ) * - - 65 AS col0 FROM tab1
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 82 col1 FROM tab1 AS cor0
----
-82

query I rowsort
SELECT DISTINCT col0 / 18 AS col2 FROM tab0 WHERE + col0 BETWEEN col1 + + col1 * col1 AND - 25 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT DISTINCT COUNT( * ) + 47 AS col1 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT COUNT ( * ) + 47 AS col1 FROM tab0
----
50

query III rowsort
SELECT ALL * FROM tab2 WHERE + 42 NOT IN ( ( - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + 12 ) AS col2 FROM tab1
----
12

query I rowsort
SELECT ALL - col0 * col0 + - col0 FROM tab1
----
-2652
-7310
-8372

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

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT - COUNT ( DISTINCT 77 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

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

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

query I rowsort
SELECT DISTINCT 25 * col0 AS col2 FROM tab1
----
1275
2125
2275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col2 FROM tab2 WHERE NOT ( - col2 * 33 ) IN ( 12 * col2 )
----
55
55
55

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1453
SELECT ALL col1 + col1 col0 FROM tab0 WHERE NOT - CAST ( - col0 AS INTEGER ) * + col1 <= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col0 * - col2 FROM tab1 WHERE ( NULL ) <> 21
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT - COUNT( * ) * 18 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-1456
SELECT - COUNT ( * ) * 18 FROM tab1
----
-54

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

query I rowsort
SELECT DISTINCT - col0 * 16 + col1 AS col2 FROM tab0
----
-1371
-1551
-159

query I rowsort
SELECT DISTINCT + 36 AS col1 FROM tab0 WHERE col0 * 12 NOT IN ( + col0 + - col1 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT - 12 * - COUNT( * ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-1460
SELECT - 12 * - COUNT ( * ) FROM tab0
----
36

query I rowsort
SELECT + col0 * col1 + + 12 * + 12 FROM tab1
----
4421
569
858

query I rowsort
SELECT ALL - col0 * ( ( + 11 ) ) + + col1 * 87 FROM tab2 WHERE ( ( 50 ) + col1 ) <= col0 * - col1
----

query I rowsort
SELECT 51 * col0 AS col2 FROM tab2
----
2346
3264
3825

query I rowsort
SELECT + col1 * - 74 FROM tab0 WHERE NOT - 59 > - col0 * - col2
----
-1554
-5994
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT ALL - MAX( col1 ) AS col0 FROM tab1 WHERE 84 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL - MAX ( col1 ) AS col0 FROM tab1 WHERE 84 IS NULL
----
NULL

query I rowsort
SELECT + col2 * + 3 AS col1 FROM tab0 WHERE NOT ( - col1 ) = - col2 * 31 + + col2
----
141
297
30

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 + - col2 * 90 ) BETWEEN col1 / + 88 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 51
----

query I rowsort
SELECT DISTINCT + col1 - col1 * - col1 AS col1 FROM tab0 cor0
----
2
462
6642

query I rowsort
SELECT DISTINCT - 75 + - 84 FROM tab0 AS cor0
----
-159

query I rowsort
SELECT ALL + 42 - col1 AS col1 FROM tab0 AS cor0
----
-39
21
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT DISTINCT - COUNT( * ) * COUNT( DISTINCT col0 ) - - SUM( DISTINCT col1 - 91 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT - COUNT ( * ) * COUNT ( DISTINCT col0 ) - - SUM ( DISTINCT col1 - 91 ) FROM tab2
----
-87

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE ( NULL ) > + col1 * + col1
----

query I rowsort
SELECT 98 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT ALL 79 * + ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
237

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL 79 * + ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
237

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1478
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1478
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <= ( - col2 * + 31 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1480
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-1480
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT col1 DIV 30 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1481
SELECT col1 / 30 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - 27 * 39 FROM tab1 AS cor0
----
-1053
-1053
-1053

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT + MIN( 32 ) * + 36 FROM tab1 AS cor0
----
1152

skipif mysql # not compatible
query I rowsort label-1483
SELECT + MIN ( 32 ) * + 36 FROM tab1 AS cor0
----
1152

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

skipif mysql # not compatible
query I rowsort label-1484
SELECT MAX ( ( col1 ) ) AS col1 FROM tab2 cor0
----
77

query I rowsort
SELECT col2 * - 93 FROM tab0 AS cor0
----
-4371
-9207
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT - 5 + - ( + COUNT( * ) + 73 ) FROM tab1 WHERE NOT col1 BETWEEN ( col1 ) AND + 35
----
-79

skipif mysql # not compatible
query I rowsort label-1486
SELECT - 5 + - ( + COUNT ( * ) + 73 ) FROM tab1 WHERE NOT col1 BETWEEN ( col1 ) AND + 35
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT ALL - col1 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 / - col0 AND - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL - col1 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 / - col0 AND - CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 64 * + col0 AS col0 FROM tab0
----
5568
6208
960

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT + SUM( + 10 ) + + 89 FROM tab2 WHERE NOT - col1 NOT IN ( 51 + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1489
SELECT + SUM ( + 10 ) + + 89 FROM tab2 WHERE NOT - col1 NOT IN ( 51 + 72 )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1491
SELECT DISTINCT CAST( - col1 AS SIGNED ) * col2 AS col2 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * col2 AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + col1 * + 2 - - 27 AS col1 FROM tab1 WHERE + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE col0 * col1 - col2 * col0 IS NULL
----

query I rowsort
SELECT ALL 37 * - col1 AS col1 FROM tab1
----
-1739
-185
-518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col2 ) col2 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN ( + 45 * - 44 ) AND NULL
----

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col0 + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT DISTINCT + COUNT( * ) * + 52 + 48 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT + COUNT ( * ) * + 52 + 48 FROM tab1 AS cor0
----
204

query I rowsort
SELECT DISTINCT - - ( - 55 ) FROM tab0 AS cor0
----
-55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-1502
SELECT + COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT 22 + + + 5 * - SUM( - col2 ) FROM tab0 AS cor0
----
802

skipif mysql # not compatible
query I rowsort label-1504
SELECT 22 + + + 5 * - SUM ( - col2 ) FROM tab0 AS cor0
----
802

query I rowsort
SELECT DISTINCT + - col2 + + + col1 * + 22 + + col0 AS col2 FROM tab0 AS cor0
----
1750
20
539

query I rowsort
SELECT col0 * col0 + - col2 + + col0 AS col1 FROM tab1 AS cor0
----
2556
7251
8304

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT + 14 + - + SUM( - col1 ) FROM tab2 AS cor0
----
209

skipif mysql # not compatible
query I rowsort label-1507
SELECT + 14 + - + SUM ( - col1 ) FROM tab2 AS cor0
----
209

query I rowsort
SELECT ALL 64 * col1 AS col1 FROM tab1 cor0 WHERE + col2 IN ( + col1 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 / ( - ( col0 ) ) * col2 <> ( + ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + col0 ) FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----

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

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

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

query I rowsort
SELECT + 67 * - col0 FROM tab0 WHERE - 12 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1515
SELECT - 53 * 78 - - col2 + + col1 DIV - col1 AS col1 FROM tab2
----
-4077
-4095
-4112

skipif mysql # not compatible
query I rowsort label-1515
SELECT - 53 * 78 - - col2 + + col1 / - col1 AS col1 FROM tab2
----
-4077
-4095
-4112

query I rowsort
SELECT col1 - col1 + + col1 AS col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT - - MIN( - + 91 ) - + - ( 86 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1517
SELECT - - MIN ( - + 91 ) - + - ( 86 ) FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT - - COUNT( ALL + - col0 ) + - + 62 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1518
SELECT - - COUNT ( ALL + - col0 ) + - + 62 FROM tab2 AS cor0
----
-59

query I rowsort
SELECT + - col0 + + col2 * - - col0 AS col0 FROM tab0 AS cor0
----
690
783
9506

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

query I rowsort
SELECT ALL - ( - 80 ) AS col2 FROM tab0 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1522
SELECT COUNT( * ) DIV - - 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1522
SELECT COUNT ( * ) / - - 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1523
SELECT ALL - COUNT( DISTINCT + - ( - - CAST( - col0 AS SIGNED ) ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL - COUNT ( DISTINCT + - ( - - CAST ( - col0 AS INTEGER ) ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL col2 * - 85 FROM tab0
----
-3995
-8415
-850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1525
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 WHERE col1 + - - 54 NOT IN ( - col0 * 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE col1 + - - 54 NOT IN ( - col0 * 38 )
----
NULL

query II rowsort
SELECT ALL + - 95 AS col0, col1 FROM tab2 AS cor0
----
-95
51
-95
67
-95
77

query I rowsort
SELECT DISTINCT + col1 + col0 + - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query II rowsort
SELECT DISTINCT - - col1 AS col0, 8 FROM tab1 AS cor0
----
14
8
47
8
5
8

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

query II rowsort
SELECT DISTINCT + - 7 AS col0, + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-7
1
-7
21
-7
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1531
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( + - CAST( + col1 AS SIGNED ) AS SIGNED ) / - col2 * col1 - - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1531
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( + - CAST ( + col1 AS INTEGER ) AS INTEGER ) / - col2 * col1 - - col0 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab1 AS cor0 WHERE - 90 * + 48 * col0 / - col0 > col1
----
-21
-54
-82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 94 IS NOT NULL
----

query I rowsort
SELECT - col1 * + col1 * + col2 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT DISTINCT - MAX( + 96 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT - MAX ( + 96 ) FROM tab0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT col1 DIV + + ( - + col2 ) col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1537
SELECT col1 / + + ( - + col2 ) col1 FROM tab2
----
-1
-1
-2

query II rowsort
SELECT col1 AS col2, - col0 FROM tab2
----
51
-46
67
-75
77
-64

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col0 FROM tab2 WHERE + col2 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT col1 * - col1 FROM tab2 cor0 WHERE NOT NULL = - col0
----

query I rowsort
SELECT - 46 + + col1 - + 85 * 74 AS col2 FROM tab1 AS cor0
----
-6289
-6322
-6331

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL 27 * COUNT( ALL + col0 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL 27 * COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
81

query I rowsort
SELECT DISTINCT - - col0 * 55 FROM tab1 cor0
----
2805
4675
5005

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) * + + col2 / + col1 + col2 * col1 BETWEEN ( col1 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1545
SELECT ALL col1 DIV - 63 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL col1 / - 63 FROM tab2
----
-1
-1
0

query I rowsort
SELECT - - 14 FROM tab2 WHERE NULL <= col2
----

query I rowsort
SELECT DISTINCT - + col0 * + + col1 * col0 + - + col0 FROM tab1 AS cor0
----
-36210
-36465
-389298

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

query I rowsort
SELECT DISTINCT col0 * + col1 AS col0 FROM tab0 AS cor0 WHERE ( NOT - 6 NOT IN ( - col0 ) )
----

query I rowsort
SELECT DISTINCT - col0 - + 77 FROM tab2 AS cor0
----
-123
-141
-152

query II rowsort
SELECT + - col1 + + col1 AS col2, ( - - 86 ) FROM tab0 AS cor0
----
0
86
0
86
0
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT + + 67 + + + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-1552
SELECT + + 67 + + + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
67

query I rowsort
SELECT 37 * - col1 * col0 + 91 FROM tab2
----
-182245
-185834
-86711

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT + col2 DIV col0 + ( col0 ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1554
SELECT + col2 / col0 + ( col0 ) FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + col1 * 16 AS col2 FROM tab1
----
224
752
80

query II rowsort
SELECT ALL - col2 AS col0, - 88 AS col1 FROM tab1
----
-59
-88
-68
-88
-96
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT + MIN( DISTINCT ( + col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1557
SELECT + MIN ( DISTINCT ( + col2 ) ) FROM tab2
----
23

query I rowsort
SELECT ALL + 49 FROM tab0 WHERE NOT + - 73 NOT IN ( + - col0 / - - 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT 61 / col2 = 44
----
3

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT 61 / col2 = 44
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 - - col1 + + + col1 * + + col0 * - - 64 + 52 IS NOT NULL
----

query I rowsort
SELECT ALL - - 75 * - col2 FROM tab2 AS cor0
----
-1725
-3000
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT DISTINCT + 42 DIV + ( + col1 ) FROM tab1 AS cor0
----
0
3
8

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT + 42 / + ( + col1 ) FROM tab1 AS cor0
----
0
3
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 / col0 col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1565
SELECT DISTINCT + MIN( ALL col0 ), + COUNT( * ) AS col1 FROM tab1
----
51
3

skipif mysql # not compatible
query II rowsort label-1565
SELECT DISTINCT + MIN ( ALL col0 ), + COUNT ( * ) AS col1 FROM tab1
----
51
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + - 41 + + col0 + col2 * + col0 / - 30 <> - col2 * + col0 - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 * - + 66, col2 FROM tab2
----
-3036
23
-4224
40
-4950
58

query I rowsort
SELECT + col1 * - + col1 * 69 FROM tab2 AS cor0
----
-179469
-309741
-409101

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 3 - + + 21 BETWEEN - col1 AND - - col0 + - col1
----
51
14
96
85
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1570
SELECT - 50 DIV - + col2 * 85 * ( col0 ) * 5 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1570
SELECT - 50 / - + col2 * 85 * ( col0 ) * 5 FROM tab1 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT - col0 * + 67 AS col2 FROM tab1
----
-3417
-5695
-6097

query I rowsort
SELECT ( ( + + 25 ) ) FROM tab1
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col1 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT DISTINCT col2 + + 75 AS col1 FROM tab1 AS cor0
----
134
143
171

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

query I rowsort
SELECT + 20 * + + col0 FROM tab2 AS cor0
----
1280
1500
920

query I rowsort
SELECT ALL - - 67 FROM tab2 AS cor0 WHERE NOT 80 IS NULL
----
67
67
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 26 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, 4 AS col1 FROM tab2
----
46
4
64
4
75
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1582
SELECT ALL + 27 * CAST( NULL AS SIGNED ) 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-1582
SELECT ALL + 27 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col2 + - 92 + + + ( col2 ) FROM tab2 AS cor0
----
-12
-46
24

onlyif mysql # aggregate syntax: 
query II rowsort label-1585
SELECT + COUNT( * ) AS col2, - 82 * ( + + 65 ) FROM tab2 AS cor0
----
3
-5330

skipif mysql # not compatible
query II rowsort label-1585
SELECT + COUNT ( * ) AS col2, - 82 * ( + + 65 ) FROM tab2 AS cor0
----
3
-5330

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 91 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 10 * col0 AND + 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT ALL - COUNT( * ) - + MIN( 47 ) AS col1 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL - COUNT ( * ) - + MIN ( 47 ) AS col1 FROM tab0 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT DISTINCT - 45 - + COUNT( ALL + col1 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT - 45 - + COUNT ( ALL + col1 ) FROM tab2 AS cor0
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT DISTINCT + MAX( + - 67 ) FROM tab1 WHERE 17 IN ( + 96 * + 4 - col2 + col0 + - 71 * + + 69 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT + MAX ( + - 67 ) FROM tab1 WHERE 17 IN ( + 96 * + 4 - col2 + col0 + - 71 * + + 69 * + col0 )
----
NULL

query I rowsort
SELECT DISTINCT col1 * 55 AS col0 FROM tab0
----
1155
4455
55

query I rowsort
SELECT ALL 50 * col1 * + col1 * + col1 FROM tab2
----
15038150
22826650
6632550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT - col1 - 55 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT - col1 - 55 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + col2 AND + ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - col0 AND - col2 + + 5
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1599
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + + 67 + - - CAST( NULL AS SIGNED ) / - 36 <= NULL
----

skipif mysql # not compatible
query III rowsort label-1599
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + + 67 + - - CAST ( NULL AS INTEGER ) / - 36 <= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 * - ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT - 57 * + - 83 AS col2 FROM tab0 AS cor0
----
4731
4731
4731

query II rowsort
SELECT ALL - col1, col2 + col2 AS col1 FROM tab1 AS cor0
----
-14
192
-47
136
-5
118

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

query I rowsort
SELECT - ( + col1 ) * - 30 FROM tab1
----
1410
150
420

query I rowsort
SELECT DISTINCT - 12 - - col2 AS col2 FROM tab2 WHERE NOT col0 BETWEEN - col1 * + - 18 AND ( 61 * col2 + + 75 * + col1 / col1 )
----
11
28
46

query I rowsort
SELECT DISTINCT - 75 * - 96 FROM tab2
----
7200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1607
SELECT + COUNT( * ) DIV + MAX( + 56 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1607
SELECT + COUNT ( * ) / + MAX ( + 56 ) AS col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + - 14 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1609
SELECT - 15 DIV - 51 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1609
SELECT - 15 / - 51 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT 86 + + COUNT( ALL + col2 ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-1610
SELECT 86 + + COUNT ( ALL + col2 ) FROM tab1
----
89

query I rowsort
SELECT col1 + - + col2 * col2 FROM tab0
----
-2128
-79
-9800

query I rowsort
SELECT 27 + + + 69 + - col0 FROM tab1
----
11
45
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - col0 col1, + col0 + + ( - + 36 ) + col1 FROM tab0
----
-66
72
-96
62
66
60

query I rowsort
SELECT + 98 FROM tab2, tab0 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1616
SELECT DISTINCT + + 13 DIV - ( + ( + col2 ) ) - - - col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT + + 13 / - ( + ( + col2 ) ) - - - col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + 22 + 86 FROM tab0 AS cor0
----
108
108
108

query I rowsort
SELECT ALL + 27 + + 67 + col0 FROM tab1 AS cor0
----
145
179
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT ALL - - COUNT( * ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT DISTINCT COUNT( * ) * - 40 AS col0 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-1621
SELECT DISTINCT COUNT ( * ) * - 40 AS col0 FROM tab2
----
-120

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT ALL ( + SUM( - 89 ) ) FROM tab1
----
-267

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL ( + SUM ( - 89 ) ) FROM tab1
----
-267

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

query I rowsort
SELECT ALL + + col0 * - - 50 * - - 43 AS col2 FROM tab2 AS cor0
----
137600
161250
98900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 72 col0, col2 AS col2 FROM tab0 cor0
----
-72
10
-72
47
-72
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT DISTINCT + COUNT( * ) - - 96 - 13 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
92

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT + COUNT ( * ) - - 96 - 13 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
92

query I rowsort
SELECT ALL + col1 * + - 89 FROM tab0 AS cor0
----
-1869
-7209
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-1629
SELECT col2 DIV - col2 + 40 AS col2, - 57 AS col1 FROM tab2 cor0
----
39
-57
39
-57
39
-57

skipif mysql # not compatible
query II rowsort label-1629
SELECT col2 / - col2 + 40 AS col2, - 57 AS col1 FROM tab2 cor0
----
39
-57
39
-57
39
-57

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

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

query I rowsort
SELECT 4 * + col0 + - col1 AS col1 FROM tab0 AS cor0
----
-21
327
387

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT - MAX( DISTINCT - 50 ) + + COUNT( + col2 ) AS col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-1632
SELECT - MAX ( DISTINCT - 50 ) + + COUNT ( + col2 ) AS col1 FROM tab1 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT - 32 * - + COUNT( * ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1633
SELECT - 32 * - + COUNT ( * ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT ALL 42 * - COUNT( * ) col0 FROM tab0 WHERE NULL = + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1634
SELECT ALL 42 * - COUNT ( * ) col0 FROM tab0 WHERE NULL = + col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1636
SELECT ALL - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1637
SELECT ALL 51 DIV - - COUNT( * ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL 51 / - - COUNT ( * ) FROM tab0
----
17

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * 28 * - 32 = - + col0 * - + col1
----

query I rowsort
SELECT 89 * + col2 AS col1 FROM tab0
----
4183
8811
890

query I rowsort
SELECT DISTINCT + col1 * + + col2 + - col2 * 57 FROM tab1
----
-3068
-4128
-680

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

query I rowsort
SELECT 67 - + + col0 * - 77 FROM tab2 AS cor0
----
3609
4995
5842

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT COUNT( * ) FROM tab1 WHERE + + 75 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1643
SELECT COUNT ( * ) FROM tab1 WHERE + + 75 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT ALL - 79 * col1 + - 35 * + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL - 79 * col1 + - 35 * + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * - 60 AS col0 FROM tab1 AS cor0
----
3060
5100
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT MAX( 12 ) AS col0 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-1646
SELECT MAX ( 12 ) AS col0 FROM tab2 cor0
----
12

query I rowsort
SELECT - 30 * + + col1 AS col2 FROM tab0 AS cor0
----
-2430
-30
-630

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

query II rowsort
SELECT ALL + col2 + + col2 AS col1, 67 FROM tab1 AS cor0
----
118
67
136
67
192
67

query I rowsort
SELECT ALL col1 * + - col0 + + 67 + - col0 FROM tab0 cor0
----
-1163
-127
-1847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1651
SELECT + - col2 * - col2 + - col0 + col1 FROM tab1 AS cor0 WHERE NOT NULL <= + CAST( - col0 AS SIGNED ) + col1 + col0 + 92 / + - col2
----

skipif mysql # not compatible
query I rowsort label-1651
SELECT + - col2 * - col2 + - col0 + col1 FROM tab1 AS cor0 WHERE NOT NULL <= + CAST ( - col0 AS INTEGER ) + col1 + col0 + 92 / + - col2
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1653
SELECT * FROM tab0 WHERE NOT col0 <= - CAST( col1 AS DECIMAL ) * - col2
----

skipif mysql # not compatible
query III rowsort label-1653
SELECT * FROM tab0 WHERE NOT col0 <= - CAST ( col1 AS REAL ) * - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - - col1 ) IS NOT NULL
----

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

query II rowsort
SELECT DISTINCT 65, col1 AS col1 FROM tab2
----
65
51
65
67
65
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT - COUNT( col0 ) * - 23 AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-1658
SELECT - COUNT ( col0 ) * - 23 AS col2 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-1659
SELECT ( + - COUNT( * ) ) * + 30 * - MIN( + col1 ) AS col0, + COUNT( * ) AS col1 FROM tab2
----
4590
3

skipif mysql # not compatible
query II rowsort label-1659
SELECT ( + - COUNT ( * ) ) * + 30 * - MIN ( + col1 ) AS col0, + COUNT ( * ) AS col1 FROM tab2
----
4590
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN + + col0 * + + col1 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-1660
SELECT + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN + + col0 * + + col1 AND - col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1661
SELECT + 59 AS col0, - col1 DIV col1 col2 FROM tab2
----
59
-1
59
-1
59
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1661
SELECT + 59 AS col0, - col1 / col1 col2 FROM tab2
----
59
-1
59
-1
59
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1662
SELECT DISTINCT CAST( 49 AS SIGNED ) * - 35 AS col0 FROM tab1
----
-1715

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT CAST ( 49 AS INTEGER ) * - 35 AS col0 FROM tab1
----
-1715

query I rowsort
SELECT ALL 74 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query II rowsort
SELECT + + col1 AS col2, col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 72 AND + col1
----

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

query II rowsort
SELECT DISTINCT + col0 * + - col2 * - 96 + + 88 AS col1, - 24 FROM tab2 AS cor0
----
101656
-24
245848
-24
417688
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1668
SELECT - COUNT( - 70 ) * + - COUNT( * ) / + CAST( NULL AS SIGNED ) * - SUM( + 72 ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1668
SELECT - COUNT ( - 70 ) * + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) * - SUM ( + 72 ) AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1669
SELECT DISTINCT + col0 * + CAST( - + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT + col0 * + CAST ( - + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT 61 + - - col2 AS col1 FROM tab0
----
108
160
71

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

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

query I rowsort
SELECT ALL - ( col1 ) * col2 AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT 93 * - 58 + + + 41 * + - col2 AS col1 FROM tab1
----
-7813
-8182
-9330

query I rowsort
SELECT 61 + - + 57 FROM tab0
----
4
4
4

query III rowsort
SELECT ( + col0 ) * - + 11 + - + col1 - - 89 * - + col1 * - 11 AS col2, - col1 AS col1, - col1 FROM tab1
----
9 values hashing to b208e45b38fc87a3830e713d13821568

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT col2 DIV - 13 + col2 AS col0 FROM tab2
----
22
37
54

skipif mysql # not compatible
query I rowsort label-1676
SELECT col2 / - 13 + col2 AS col0 FROM tab2
----
22
37
54

query I rowsort
SELECT + col2 * ( col0 ) * + ( + col2 ) + - 65 FROM tab1
----
295820
420719
469951

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - + col0 col1 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT - COUNT( DISTINCT + 41 ) AS col1 FROM tab0 AS cor0 WHERE 5 + - - 53 < col2
----
-1

skipif mysql # not compatible
query I rowsort label-1679
SELECT - COUNT ( DISTINCT + 41 ) AS col1 FROM tab0 AS cor0 WHERE 5 + - - 53 < col2
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT DISTINCT - 33 + 33 DIV + 23 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT - 33 + 33 / + 23 FROM tab2 AS cor0
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1682
SELECT ALL 86 + + CAST( NULL AS DECIMAL ) + - 97 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL 86 + + CAST ( NULL AS REAL ) + - 97 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 - - + col1 * - 77 FROM tab1
----
-326
-3551
-982

query I rowsort
SELECT + col0 - - ( + col1 ) * + col0 * + 66 AS col1 FROM tab0
----
120669
6499
80205

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + - col0 + + 1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 * - - col2 - 31, 83 AS col0 FROM tab2
----
1142
83
3049
83
3855
83

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT NULL IN ( + 22, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL - + MIN( DISTINCT col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL - + MIN ( DISTINCT col2 ) FROM tab2 AS cor0
----
-23

query II rowsort
SELECT 25 AS col2, 36 AS col1 FROM tab0 AS cor0
----
25
36
25
36
25
36

onlyif mysql # aggregate syntax: 
query II rowsort label-1690
SELECT 33 AS col0, - SUM( - - col2 ) * + 95 AS col0 FROM tab0 AS cor0
----
33
-14820

skipif mysql # not compatible
query II rowsort label-1690
SELECT 33 AS col0, - SUM ( - - col2 ) * + 95 AS col0 FROM tab0 AS cor0
----
33
-14820

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1691
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * + col0 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT + col1 DIV - + col1 + - ( - 48 ) * + col0 FROM tab1 AS cor0
----
2447
4079
4367

skipif mysql # not compatible
query I rowsort label-1692
SELECT + col1 / - + col1 + - ( - 48 ) * + col0 FROM tab1 AS cor0
----
2447
4079
4367

onlyif mysql # DIV for integer division: 
query II rowsort label-1693
SELECT ALL + col0 DIV col1 + + - col0 AS col2, col0 - + - col2 FROM tab0 AS cor0
----
-15
62
-83
97
0
196

skipif mysql # not compatible
query II rowsort label-1693
SELECT ALL + col0 / col1 + + - col0 AS col2, col0 - + - col2 FROM tab0 AS cor0
----
-15
62
-83
97
0
196

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE - col0 * col2 * 64 * + - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT ALL - SUM( ALL ( + 5 ) ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL - SUM ( ALL ( + 5 ) ) FROM tab1
----
-15

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT DISTINCT COUNT( * ) + - - 72 AS col0 FROM tab2 AS cor0 WHERE - col2 * + + 31 BETWEEN NULL AND + - col0 + col2 OR NOT 23 * - + 23 - + - col0 IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT COUNT ( * ) + - - 72 AS col0 FROM tab2 AS cor0 WHERE - col2 * + + 31 BETWEEN NULL AND + - col0 + col2 OR NOT 23 * - + 23 - + - col0 IS NULL
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT DISTINCT - MAX( ALL - 96 ) + + COUNT( * ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT - MAX ( ALL - 96 ) + + COUNT ( * ) FROM tab1 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1702
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 37 * ( - CAST( NULL AS SIGNED ) ) / - - col0 + + col1 + + 90 + 26 / col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1702
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 37 * ( - CAST ( NULL AS INTEGER ) ) / - - col0 + + col1 + + 90 + 26 / col2 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1703
SELECT + CAST( 14 AS SIGNED ) + col0, - 43 * - 28 AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
101
1204
111
1204
29
1204

skipif mysql # not compatible
query II rowsort label-1703
SELECT + CAST ( 14 AS INTEGER ) + col0, - 43 * - 28 AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
101
1204
111
1204
29
1204

query II rowsort
SELECT - col0 * - col1 * - - 45 AS col1, - col0 AS col1 FROM tab2 AS cor0
----
105570
-46
221760
-64
226125
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - col1 * 29 * col0 col2 FROM tab0
----
2912
35282
52993

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT DISTINCT - MIN( 5 ) AS col0 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT - MIN ( 5 ) AS col0 FROM tab0
----
-5

query I rowsort
SELECT DISTINCT + col2 * col1 * + 37 AS col1 FROM tab1
----
10915
118252
49728

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

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

query II rowsort
SELECT DISTINCT 4 AS col2, + col0 AS col2 FROM tab1
----
4
51
4
85
4
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT ALL - col2 + + + 67 / 70 + + + CAST( NULL AS SIGNED ) + col1 + - col2 + - + col2 - - + col1 * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL - col2 + + + 67 / 70 + + + CAST ( NULL AS INTEGER ) + col1 + - col2 + - + col2 - - + col1 * + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT - - 39 - - + COUNT( * ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1711
SELECT - - 39 - - + COUNT ( * ) FROM tab1 AS cor0
----
42

query II rowsort
SELECT - 53 - 43, 56 AS col1 FROM tab0 AS cor0
----
-96
56
-96
56
-96
56

query I rowsort
SELECT ALL + col0 * - + 82 - + col1 FROM tab2 AS cor0
----
-3823
-5325
-6217

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT DISTINCT - + MAX( ALL - 55 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
55

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT - + MAX ( ALL - 55 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT col0 * + + CAST( + col2 AS SIGNED ) FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-1715
SELECT col0 * + + CAST ( + col2 AS INTEGER ) FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1716
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( + 17 ) * - col1 - CAST( 86 AS SIGNED ) + ( 19 ) / col0, - col2 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-1716
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( + 17 ) * - col1 - CAST ( 86 AS INTEGER ) + ( 19 ) / col0, - col2 * - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 90 * + col0 BETWEEN - 50 AND + col0 + - col2 OR NULL NOT IN ( + col1 + + 30 )
----

query I rowsort
SELECT + 71 * - - col0 * + col0 AS col2 FROM tab1 AS cor0
----
184671
512975
587951

query I rowsort
SELECT + ( + 98 ) AS col1 FROM tab2 AS cor0
----
98
98
98

query II rowsort
SELECT + 98, 28 + + 78 AS col1 FROM tab0
----
98
106
98
106
98
106

onlyif mysql # aggregate syntax: 
query II rowsort label-1721
SELECT - COUNT( * ) AS col1, - MAX( DISTINCT - - col1 ) FROM tab1
----
-3
-47

skipif mysql # not compatible
query II rowsort label-1721
SELECT - COUNT ( * ) AS col1, - MAX ( DISTINCT - - col1 ) FROM tab1
----
-3
-47

query II rowsort
SELECT + 88, + col0 AS col2 FROM tab0
----
88
15
88
87
88
97

query II rowsort
SELECT DISTINCT - 21, + 25 AS col0 FROM tab1
----
-21
25

query I rowsort
SELECT DISTINCT - ( - ( - col2 ) ) * - + col1 * - 4 + + + ( + - col2 ) FROM tab0
----
-15275
-495
-850

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + ( - - col0 ) FROM tab0 cor0 WHERE NOT col2 IS NULL
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT ALL - COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1727
SELECT ALL - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1729
SELECT DISTINCT - col2 * 91 * + col2 - + + col2 - + col1 DIV + col0 AS col1, - col2 AS col0 FROM tab1 AS cor0
----
-316830
-59
-420852
-68
-838752
-96

skipif mysql # not compatible
query II rowsort label-1729
SELECT DISTINCT - col2 * 91 * + col2 - + + col2 - + col1 / + col0 AS col1, - col2 AS col0 FROM tab1 AS cor0
----
-316830
-59
-420852
-68
-838752
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT + ( + - 23 ) DIV 70 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1730
SELECT + ( + - 23 ) / 70 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 83 + - 40 FROM tab0
----
43

query I rowsort
SELECT + + col2 - + 45 FROM tab1 AS cor0
----
14
23
51

query II rowsort
SELECT ALL 12 * - - 85 + + col2 - + col1 AS col1, col2 FROM tab0 cor0
----
1009
10
1118
99
986
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT DISTINCT 56 + - 43 - - COUNT( * ) AS col2 FROM tab1 cor0
----
16

skipif mysql # not compatible
query I rowsort label-1734
SELECT DISTINCT 56 + - 43 - - COUNT ( * ) AS col2 FROM tab1 cor0
----
16

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - - col2 - col0 col1 FROM tab2 AS cor0
----
-1104
-2624
-4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1737
SELECT + col1 + + CAST( + col1 AS SIGNED ) FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-1737
SELECT + col1 + + CAST ( + col1 AS INTEGER ) FROM tab1
----
10
28
94

query I rowsort
SELECT 20 + - col2 AS col2 FROM tab2
----
-20
-3
-38

query I rowsort
SELECT ALL col1 * - col1 * 6 FROM tab1
----
-1176
-13254
-150

query I rowsort
SELECT col1 * col2 + + col0 + - + col2 AS col0 FROM tab2
----
1196
3104
3903

onlyif mysql # DIV for integer division: 
query II rowsort label-1741
SELECT col2 + + + col0 - - + 13 AS col0, + col1 DIV col2 FROM tab0
----
110
2
209
0
75
1

skipif mysql # not compatible
query II rowsort label-1741
SELECT col2 + + + col0 - - + 13 AS col0, + col1 / col2 FROM tab0
----
110
2
209
0
75
1

query I rowsort
SELECT DISTINCT col2 + + - col2 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT DISTINCT MAX( - col2 ) * 30 * + + 60 FROM tab1 AS cor0
----
-106200

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT MAX ( - col2 ) * 30 * + + 60 FROM tab1 AS cor0
----
-106200

query I rowsort
SELECT DISTINCT - + col1 * + - 63 + + col2 + - - col2 FROM tab0 AS cor0
----
1343
261
5197

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

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

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

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

query I rowsort
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1748
SELECT ALL - col1, + col1 DIV - col2 * + + col2 AS col1 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-1748
SELECT ALL - col1, + col1 / - col2 * + + col2 AS col1 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

query I rowsort
SELECT + + col0 * + 45 AS col0 FROM tab0 AS cor0
----
3915
4365
675

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

skipif mysql # not compatible
query I rowsort label-1750
SELECT + - CAST ( NULL AS INTEGER ) * - ( 82 ) - + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 53 * + + 40 AS col2 FROM tab1
----
2120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT ALL - SUM( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL - SUM ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-156

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

skipif mysql # not compatible
query II rowsort label-1754
SELECT DISTINCT + COUNT ( * ) AS col2, 91 FROM tab2 AS cor0
----
3
91

query I rowsort
SELECT ALL + + col2 * 84 - + 50 FROM tab2 AS cor0
----
1882
3310
4822

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

query I rowsort
SELECT - + col2 AS col0 FROM tab1 WHERE NOT col0 < - col2 * - 69 + + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT MIN( - 44 ) col1 FROM tab2
----
-44

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

query I rowsort
SELECT 1 FROM tab2 WHERE NOT + col0 + - col0 IS NULL
----
1
1
1

query II rowsort
SELECT ALL 88 + + col1 AS col1, - col2 FROM tab0 cor0
----
109
-10
169
-47
89
-99

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

query I rowsort
SELECT DISTINCT - + ( 83 ) * + - 82 * - - col1 + col0 FROM tab2 AS cor0
----
347152
456077
524126

query II rowsort
SELECT ALL col0 AS col1, + 61 FROM tab1
----
51
61
85
61
91
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 + ( - 78 ) col1 FROM tab2
----
-54
-55
-61

query I rowsort
SELECT + - col1 + + 59 FROM tab0 cor0
----
-22
38
58

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

query I rowsort
SELECT DISTINCT col2 - - col0 + + 47 FROM tab1 AS cor0
----
191
194
206

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT ALL - 71 + + + COUNT( * ) FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL - 71 + + + COUNT ( * ) FROM tab2 AS cor0
----
-68

query I rowsort
SELECT DISTINCT + - 45 + + + col2 AS col1 FROM tab1 AS cor0
----
14
23
51

query II rowsort
SELECT - col2 * ( - col2 ), - col1 AS col1 FROM tab2 cor0
----
1600
-77
3364
-67
529
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT - - MIN( 56 ) FROM tab0 WHERE + col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1771
SELECT - - MIN ( 56 ) FROM tab0 WHERE + col0 <= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 >= + ( + - 77 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col1 FROM tab2
----
-63
-63
-63

query I rowsort
SELECT DISTINCT ( - col0 ) - + 57 AS col2 FROM tab2
----
-103
-121
-132

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

skipif mysql # not compatible
query I rowsort label-1775
SELECT 78 - + - COUNT ( * ) * - + COUNT ( * ) FROM tab2
----
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1776
SELECT - 95 * + + 16 - 61 + - + CAST( NULL AS DECIMAL ) * - COUNT( * ) * + COUNT( * ) * + 70 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1776
SELECT - 95 * + + 16 - 61 + - + CAST ( NULL AS REAL ) * - COUNT ( * ) * + COUNT ( * ) * + 70 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 - - col2 col2 FROM tab2
----
-10
-27
8

query I rowsort
SELECT col1 + + col0 * - 12 FROM tab2 AS cor0
----
-501
-691
-833

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL - + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL > ( - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL > ( - + col1 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + col1
----

query I rowsort
SELECT 18 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT + - COUNT( * ) * + - SUM( - col2 ) FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-1783
SELECT + - COUNT ( * ) * + - SUM ( - col2 ) FROM tab0 AS cor0
----
-468

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 93 / + 80 + + + 1 < - 35
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + 18 = NULL
----

query II rowsort
SELECT ALL 37 AS col1, col2 AS col1 FROM tab2
----
37
23
37
40
37
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT DISTINCT + ( + - col2 ) DIV + col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT + ( + - col2 ) / + col0 FROM tab0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( + col0 ) ) col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + 11 * + + col2 * - + 57 + - - col1 AS col1 FROM tab0
----
-29388
-62072
-6249

query I rowsort
SELECT ALL col0 + - ( + col1 ) FROM tab2
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 + - col0 IS NOT NULL )
----

query I rowsort
SELECT - 74 * - col2 + - + ( - + 56 ) AS col1 FROM tab2
----
1758
3016
4348

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1795
SELECT + COUNT( * ) * + COUNT( * ) + - COUNT( - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1795
SELECT + COUNT ( * ) * + COUNT ( * ) + - COUNT ( - - CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1797
SELECT + + CAST( NULL AS SIGNED ) AS col0, + 76 AS col2 FROM tab0 AS cor0
----
NULL
76
NULL
76
NULL
76

skipif mysql # not compatible
query II rowsort label-1797
SELECT + + CAST ( NULL AS INTEGER ) AS col0, + 76 AS col2 FROM tab0 AS cor0
----
NULL
76
NULL
76
NULL
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT - 69 DIV 59 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1798
SELECT - 69 / 59 FROM tab1
----
-1
-1
-1

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

query I rowsort
SELECT ALL - + col1 + - ( - - col2 ) FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL + MIN( - col1 ) * 55 + - 78 AS col1 FROM tab0 AS cor0
----
-4533

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL + MIN ( - col1 ) * 55 + - 78 AS col1 FROM tab0 AS cor0
----
-4533

query I rowsort
SELECT col0 * + 50 + + col1 + + 54 FROM tab0 AS cor0
----
4425
4905
885

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT - 89 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-1803
SELECT - 89 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-86

query I rowsort
SELECT - col0 + + col2 AS col2 FROM tab0 AS cor0 WHERE 18 = - 48 * + col1 + - + col1
----

query I rowsort
SELECT - ( + col1 ) + 51 * 93 + - col0 FROM tab1 AS cor0
----
4605
4653
4678

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

query I rowsort
SELECT 43 + - - 24 AS col2 FROM tab0
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1808
SELECT ALL - CAST( NULL AS SIGNED ) + - 5 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL - CAST ( NULL AS INTEGER ) + - 5 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 66 - col2 FROM tab0
----
-113
-165
-76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 7 BETWEEN NULL AND - 60 + col2 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 14, col1 FROM tab2 AS cor0
----
14
51
14
67
14
77

query I rowsort
SELECT - col2 * - ( + col1 ) AS col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT DISTINCT - 85 + 85 + - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT - 85 + 85 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1814
SELECT + COUNT( ALL - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + - col2 > CAST( + col1 AS DECIMAL )
----
3

skipif mysql # not compatible
query I rowsort label-1814
SELECT + COUNT ( ALL - col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + - col2 > CAST ( + col1 AS REAL )
----
3

query I rowsort
SELECT - col1 * + ( + - col2 ) FROM tab2 cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT DISTINCT 13 * - COUNT( * ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT 13 * - COUNT ( * ) FROM tab2 AS cor0
----
-39

query I rowsort
SELECT - 80 + + - 75 AS col1 FROM tab2 AS cor0
----
-155
-155
-155

query I rowsort
SELECT 31 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
2632
7256
8312

query I rowsort
SELECT DISTINCT 94 * - + 28 AS col2 FROM tab0
----
-2632

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

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

query I rowsort
SELECT ALL + col1 * - col0 * - 43 + - 79 * + + col0 FROM tab2
----
206848
210150
97244

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT + SUM( 24 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1822
SELECT + SUM ( 24 ) FROM tab2 AS cor0
----
72

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 89 >= col2
----

query I rowsort
SELECT ALL + col1 + + col2 + + 43 + + 97 * + + col0 AS col2 FROM tab0 AS cor0
----
1626
8513
9552

query I rowsort
SELECT - + 10 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND - 38
----
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN ( NULL ) AND - 38
----
0

query I rowsort
SELECT 58 + col1 * 72 + + + col0 FROM tab1
----
1117
3533
503

query I rowsort
SELECT ALL - col2 * + col0 * + 84 FROM tab1
----
-411264
-421260
-519792

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT + MAX( ALL + + 46 ) col2 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1829
SELECT + MAX ( ALL + + 46 ) col2 FROM tab1 AS cor0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1830
SELECT - COUNT( * ) * - 14 DIV + + SUM( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1830
SELECT - COUNT ( * ) * - 14 / + + SUM ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT 10 * col0 AS col0 FROM tab0 AS cor0
----
150
870
970

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

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

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

query I rowsort
SELECT DISTINCT + 2 - - + 27 FROM tab0 AS cor0
----
29

query II rowsort
SELECT ALL 4 * - col1 AS col1, ( + col0 ) FROM tab2
----
-204
46
-268
75
-308
64

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NULL ) BETWEEN NULL AND NULL )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1838
SELECT ALL - ( + ( - - COUNT ( * ) ) ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 34 AS col1 FROM tab0 cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1840
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - ( + CAST( + col2 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1840
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - ( + CAST ( + col2 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 53 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - + ( + + 73 )
----

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

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

query II rowsort
SELECT - col2, 27 * ( + col1 ) AS col2 FROM tab1 AS cor0
----
-59
135
-68
1269
-96
378

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT DISTINCT + MAX( ALL + + ( + 18 ) ) AS col1 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT + MAX ( ALL + + ( + 18 ) ) AS col1 FROM tab1
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL + MIN( DISTINCT col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL + MIN ( DISTINCT col0 ) AS col0 FROM tab2
----
46

query I rowsort
SELECT + col0 / col0 FROM tab0 WHERE NULL BETWEEN NULL AND + col1
----

query I rowsort
SELECT - col1 + + 40 FROM tab1
----
-7
26
35

query I rowsort
SELECT ALL - ( 97 ) FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT col1 + + + ( - 32 ) FROM tab0 AS cor0
----
-11
-31
49

query II rowsort
SELECT ( + col1 ) * + col0 - - 70 AS col1, col0 FROM tab0 AS cor0
----
1285
15
167
97
1897
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1854
SELECT ALL - col1 - + col0 + + CAST( NULL AS SIGNED ) + + 66 / + col2 + + col2 * col2 + + 58 * + - 56 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL - col1 - + col0 + + CAST ( NULL AS INTEGER ) + + 66 / + col2 + + col2 * col2 + + 58 * + - 56 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - + 25 ) FROM tab0
----
25
25
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT ALL 16 AS col0, 8 * 39 * + 4 - - + 26 * SUM( DISTINCT - + col1 ) AS col1 FROM tab1
----
16
-468

skipif mysql # not compatible
query II rowsort label-1856
SELECT ALL 16 AS col0, 8 * 39 * + 4 - - + 26 * SUM ( DISTINCT - + col1 ) AS col1 FROM tab1
----
16
-468

query I rowsort
SELECT ALL + 73 * + ( + 19 ) AS col0 FROM tab2
----
1387
1387
1387

query I rowsort
SELECT DISTINCT + 7 * - + col2 FROM tab2 cor0
----
-161
-280
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT DISTINCT COUNT( * ) * 48 AS col2 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT COUNT ( * ) * 48 AS col2 FROM tab1 AS cor0
----
144

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1861
SELECT ALL - ( 94 ) * - col0 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - ( 94 ) * - col0 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT DISTINCT - MAX( - col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT - MAX ( - col0 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT - 82 * + col0 FROM tab0
----
-1230
-7134
-7954

query I rowsort
SELECT ALL col1 * ( + col0 ) FROM tab0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 40 - col2 NOT BETWEEN - col0 AND - col2 + + col2 - - + col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT + MIN( + 9 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1866
SELECT + MIN ( + 9 ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT - col2 * + + col0 AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - 71 * - col2 AS col0 FROM tab0
----
3337
7029
710

query I rowsort
SELECT ALL + 44 * col0 FROM tab1
----
2244
3740
4004

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 4 NOT BETWEEN + col2 + - 58 - - col0 AND + col2 / - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1871
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1871
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT + col0 * ( - + col1 ) FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT - - ( + col1 ) AS col0, 96 FROM tab0 AS cor0
----
1
96
21
96
81
96

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - 92 * - + col0
----

query I rowsort
SELECT DISTINCT - col1 + 9 * + ( 60 ) * + col1 + + col2 FROM tab0
----
11329
43706
638

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1876
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1876
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT 45 * col0 FROM tab1 AS cor0 WHERE NOT col0 + + 64 IS NULL
----
2295
3825
4095

query I rowsort
SELECT DISTINCT col0 * + col0 * + + col0 + col0 FROM tab0 AS cor0
----
3390
658590
912770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1879
SELECT + CAST( - - COUNT( col0 ) AS SIGNED ) + 56 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1879
SELECT + CAST ( - - COUNT ( col0 ) AS INTEGER ) + 56 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
62

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

query I rowsort
SELECT ALL 49 + - ( - - 57 ) FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT + CAST( NULL AS SIGNED ) / + col1 * - + 79 + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1882
SELECT + CAST ( NULL AS INTEGER ) / + col1 * - + 79 + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + - MAX( + 98 ) AS col0 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-1883
SELECT + - MAX ( + 98 ) AS col0 FROM tab1 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-1884
SELECT DISTINCT + MAX( + - col1 ) + - 8, 82 AS col0 FROM tab1 AS cor0
----
-13
82

skipif mysql # not compatible
query II rowsort label-1884
SELECT DISTINCT + MAX ( + - col1 ) + - 8, 82 AS col0 FROM tab1 AS cor0
----
-13
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + col0 col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL + MAX( ( + col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL + MAX ( ( + col0 ) ) FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1887
SELECT + col0 DIV 98 * - + 77 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1887
SELECT + col0 / 98 * - + 77 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + - col2 - - 41 FROM tab2 AS cor0
----
-17
1
18

query I rowsort
SELECT 20 FROM tab0 WHERE NULL NOT IN ( + 57 / col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1890
SELECT DISTINCT - COUNT( * ) DIV - 65 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1890
SELECT DISTINCT - COUNT ( * ) / - 65 col0 FROM tab1
----
0

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

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * col1 ) NOT BETWEEN 18 / - col1 AND NULL
----

query I rowsort
SELECT col0 * - 90 AS col0 FROM tab1
----
-4590
-7650
-8190

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

query I rowsort
SELECT 19 + - col2 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-21
-39
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1896
SELECT col0 DIV - col1 + col0 FROM tab0
----
0
15
83

skipif mysql # not compatible
query I rowsort label-1896
SELECT col0 / - col1 + col0 FROM tab0
----
0
15
83

query I rowsort
SELECT DISTINCT 95 + 3 FROM tab1
----
98

query I rowsort
SELECT DISTINCT + 81 - - col0 FROM tab1
----
132
166
172

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT - 56 + SUM( col1 + - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1899
SELECT - 56 + SUM ( col1 + - col0 ) FROM tab2
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1900
SELECT ALL CAST( col1 AS DECIMAL ) AS col0 FROM tab2 WHERE ( 9 * col1 ) BETWEEN ( - col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL CAST ( col1 AS REAL ) AS col0 FROM tab2 WHERE ( 9 * col1 ) BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1901
SELECT CAST( - SUM( DISTINCT 38 ) AS SIGNED ) AS col1 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-1901
SELECT CAST ( - SUM ( DISTINCT 38 ) AS INTEGER ) AS col1 FROM tab2
----
-38

query I rowsort
SELECT ALL + ( ( 46 ) ) + - ( col2 ) * - col2 FROM tab0
----
146
2255
9847

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1903
SELECT 71 + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT 71 + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 43 * col2 + 15 ) IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT - CAST( 39 AS SIGNED ) FROM tab2
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-1905
SELECT - CAST ( 39 AS INTEGER ) FROM tab2
----
-39
-39
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1906
SELECT - col0 + + CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1906
SELECT - col0 + + CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 78 * 44 FROM tab1
----
3437
3446
3479

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT ALL COUNT( * ) - + AVG ( col1 ) FROM tab1 WHERE NOT NULL < ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL COUNT ( * ) - + AVG ( col1 ) FROM tab1 WHERE NOT NULL < ( col0 )
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT - col0 >= - col2
----
47
5

query I rowsort
SELECT DISTINCT col2 + col1 * + 33 FROM tab0 WHERE NOT - col0 > + col2
----
132
2720
703

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1912
SELECT * FROM tab1 WHERE 91 >= CAST( - 33 AS SIGNED ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1912
SELECT * FROM tab1 WHERE 91 >= CAST ( - 33 AS INTEGER ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 2 AS col1 FROM tab1 WHERE ( - col2 ) / + col0 NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + MIN( ( 10 ) ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-1914
SELECT + MIN ( ( 10 ) ) FROM tab2
----
10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 BETWEEN col1 AND - 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT 38 - - ( COUNT( * ) ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-1916
SELECT 38 - - ( COUNT ( * ) ) FROM tab2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT ALL col0 * - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0 WHERE NOT + 30 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL col0 * - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0 WHERE NOT + 30 IS NULL
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1920
SELECT CAST( NULL AS SIGNED ) / 77 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT CAST ( NULL AS INTEGER ) / 77 FROM tab2 cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1922
SELECT DISTINCT * FROM tab1 WHERE + col1 NOT BETWEEN + CAST( col1 AS SIGNED ) AND ( - col0 + + col2 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-1922
SELECT DISTINCT * FROM tab1 WHERE + col1 NOT BETWEEN + CAST ( col1 AS INTEGER ) AND ( - col0 + + col2 * + col2 )
----

query I rowsort
SELECT ALL + col1 * + 81 + + ( 7 ) FROM tab1 AS cor0
----
1141
3814
412

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

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

query I rowsort
SELECT DISTINCT + 70 * 25 + col2 FROM tab0 cor0
----
1760
1797
1849

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT DISTINCT + - 47 + - COUNT( * ) FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-1927
SELECT DISTINCT + - 47 + - COUNT ( * ) FROM tab0 AS cor0
----
-50

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN ( col2 ) AND 24 - 62
----
-17
-23
-24

query I rowsort
SELECT ALL 23 + 19 AS col2 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - 90 * + col2 + 6 AS col2 FROM tab2 AS cor0
----
-2064
-3594
-5214

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1932
SELECT ALL - 4 DIV col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL - 4 / col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT DISTINCT + col2 DIV + - col2 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT + col2 / + - col2 AS col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - 83 + - COUNT( * ) AS col1 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-1934
SELECT - 83 + - COUNT ( * ) AS col1 FROM tab2
----
-86

query I rowsort
SELECT col0 * - + col1 + col1 FROM tab2
----
-2295
-4851
-4958

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 BETWEEN + ( col2 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 26 + + 69 + col0 AS col1 FROM tab0
----
110
182
192

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( col2 ) AND - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 40 * + 76 ) IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + + ( SUM( ( 64 ) ) ) - + COUNT( * ) col0 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1942
SELECT + + ( SUM ( ( 64 ) ) ) - + COUNT ( * ) col0 FROM tab1 AS cor0
----
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 - col1 * + col1 col2 FROM tab0 AS cor0
----
-371
-6491
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1944
SELECT ALL + col2 + - CAST( - col1 AS SIGNED ) col0 FROM tab2 AS cor0 WHERE - 37 + col0 > NULL AND + col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1944
SELECT ALL + col2 + - CAST ( - col1 AS INTEGER ) col0 FROM tab2 AS cor0 WHERE - 37 + col0 > NULL AND + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1945
SELECT - 68 - - col2 DIV - 61 col1 FROM tab2
----
-68
-68
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1945
SELECT - 68 - - col2 / - 61 col1 FROM tab2
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT 55 * 32 * - COUNT( * ) col2 FROM tab1
----
-5280

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1946
SELECT DISTINCT 55 * 32 * - COUNT ( * ) col2 FROM tab1
----
-5280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, col0 + col1 * - 46 AS col0 FROM tab1 AS cor0
----
-14
-593
-47
-2071
-5
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-1948
SELECT DISTINCT 80 AS col2, + SUM( + 41 ) * 90 AS col2 FROM tab2 cor0
----
80
11070

skipif mysql # not compatible
query II rowsort label-1948
SELECT DISTINCT 80 AS col2, + SUM ( + 41 ) * 90 AS col2 FROM tab2 cor0
----
80
11070

query I rowsort
SELECT DISTINCT col0 - col1 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - col2 )
----

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

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

skipif mysql # not compatible
query I rowsort label-1951
SELECT MAX ( ALL 30 ) FROM tab2 AS cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( + col2 + col2 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT ALL + ( 52 ) + - CAST( + col1 AS SIGNED ) FROM tab0 cor0 WHERE NOT 6 * - col2 * - col2 IN ( + col1 )
----
-29
31
51

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL + ( 52 ) + - CAST ( + col1 AS INTEGER ) FROM tab0 cor0 WHERE NOT 6 * - col2 * - col2 IN ( + col1 )
----
-29
31
51

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL AND NOT ( NULL BETWEEN ( col2 + + 68 ) AND col0 * + 8 )
----

query I rowsort
SELECT DISTINCT col1 * + ( - + col1 ) FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1957
SELECT + CAST( NULL AS DECIMAL ) * + + 9 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1957
SELECT + CAST ( NULL AS REAL ) * + + 9 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( + - ( + col0 ) ) col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT + - col1 * + col2 + + 3 * - 8 + - ( - 8 ) FROM tab1 AS cor0
----
-1360
-311
-3212

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL - - ( - 57 ) * + MAX( - col2 ) col0 FROM tab2 AS cor0
----
1311

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1960
SELECT ALL - - ( - 57 ) * + MAX ( - col2 ) col0 FROM tab2 AS cor0
----
1311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT + - SUM( - 77 ) * - - 38 * + + 27 * - CAST( 59 AS SIGNED ) FROM tab2 AS cor0
----
-13983354

skipif mysql # not compatible
query I rowsort label-1961
SELECT + - SUM ( - 77 ) * - - 38 * + + 27 * - CAST ( 59 AS INTEGER ) FROM tab2 AS cor0
----
-13983354

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

query I rowsort
SELECT DISTINCT - col0 * + - 25 AS col0 FROM tab1 AS cor0
----
1275
2125
2275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1964
SELECT ALL CAST( col2 AS SIGNED ) + 99 FROM tab1
----
158
167
195

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL CAST ( col2 AS INTEGER ) + 99 FROM tab1
----
158
167
195

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NOT NULL WHERE 59 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + + col2 + 85 + + col1 + - 74 * + col0 FROM tab1 AS cor0
----
-3565
-6136
-6487

query I rowsort
SELECT 2 + - 24 * + + col0 FROM tab2 AS cor0
----
-1102
-1534
-1798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT ALL CAST( col2 AS SIGNED ) * - col1 FROM tab1 AS cor0 WHERE - ( - + 17 ) * col1 < + - 1
----

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL CAST ( col2 AS INTEGER ) * - col1 FROM tab1 AS cor0 WHERE - ( - + 17 ) * col1 < + - 1
----

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

query I rowsort
SELECT DISTINCT col2 + + - 82 + + col1 + col2 * 12 FROM tab1 AS cor0
----
1180
690
849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1971
SELECT DISTINCT SUM( - CAST( - col0 AS SIGNED ) ) * - - COUNT( + col0 ) - + COUNT( * ) * COUNT( * ) AS col0 FROM tab0 cor0
----
588

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT SUM ( - CAST ( - col0 AS INTEGER ) ) * - - COUNT ( + col0 ) - + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 cor0
----
588

query I rowsort
SELECT DISTINCT + col0 + + 42 * - 23 FROM tab1 AS cor0 WHERE ( - 24 ) BETWEEN 12 AND - - col1 * - col0 + - 51
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) >= - col2 * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT MAX( DISTINCT - - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1975
SELECT MAX ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1976
SELECT CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE 32 IN ( + ( 76 ) )
----

skipif mysql # not compatible
query I rowsort label-1976
SELECT CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE 32 IN ( + ( 76 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1977
SELECT ALL - 94 DIV + + MIN( ALL - col2 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - 94 / + + MIN ( ALL - col2 ) FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN col2 AND ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1979
SELECT CAST( NULL AS DECIMAL ) - + col0 AS col2, - col0 col1 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1979
SELECT CAST ( NULL AS REAL ) - + col0 AS col2, - col0 col1 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

query I rowsort
SELECT DISTINCT - 24 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-24

query I rowsort
SELECT + 23 * + + col2 - + col0 + + col1 FROM tab2
----
1326
534
933

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1982
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 + - 43 * ( + 79 ) IN ( CAST( NULL AS SIGNED ) / col2 )
----

skipif mysql # not compatible
query III rowsort label-1982
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 + - 43 * ( + 79 ) IN ( CAST ( NULL AS INTEGER ) / col2 )
----

query I rowsort
SELECT - col0 + + col1 * col1 AS col0 FROM tab0 WHERE ( + ( + 92 ) < NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 2 * + col0 NOT BETWEEN col1 AND - col2
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE + 62 * col1 - - col1 * + - col2 <> ( + - col2 )
----
51
85
91

query I rowsort
SELECT DISTINCT - 21 + - ( 1 ) + + - 73 AS col0 FROM tab2 AS cor0
----
-95

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

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

skipif mysql # not compatible
query I rowsort label-1988
SELECT - COUNT ( 57 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 NOT BETWEEN - - col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 97 * col2, + 63 * - + col2 col1 FROM tab2
----
2231
-1449
3880
-2520
5626
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT + MIN( ALL + 15 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1991
SELECT + MIN ( ALL + 15 ) AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT 89 * - + COUNT( * ) AS col0 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-1992
SELECT 89 * - + COUNT ( * ) AS col0 FROM tab2
----
-267

onlyif mysql # DIV for integer division: 
query I rowsort label-1993
SELECT - ( - 91 ) DIV ( - 15 ) DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1993
SELECT - ( - 91 ) / ( - 15 ) / + col1 FROM tab2 AS cor0
----
0
0
0

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 >= - col0 + - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1996
SELECT ALL - ( col1 ) AS col0, CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

skipif mysql # not compatible
query II rowsort label-1996
SELECT ALL - ( col1 ) AS col0, CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - + ( 35 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT + SUM( ALL col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2000
SELECT + SUM ( ALL col1 ) AS col2 FROM tab0
----
103

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * - - col2 * + col2 <> 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT - ( - COUNT( + 15 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2002
SELECT - ( - COUNT ( + 15 ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT col1 + + col1 * + ( col0 ) * 29 AS col2 FROM tab1
----
12330
124080
20720

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2004
SELECT * FROM tab1 WHERE ( NOT + CAST( NULL AS SIGNED ) > + - col1 )
----

skipif mysql # not compatible
query III rowsort label-2004
SELECT * FROM tab1 WHERE ( NOT + CAST ( NULL AS INTEGER ) > + - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2005
SELECT DISTINCT - CAST( + col2 AS DECIMAL ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( 92, 23 )
----

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT - CAST ( + col2 AS REAL ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( 92, 23 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2006
SELECT ALL - CAST( NULL AS SIGNED ) * col2 + 84 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 + 84 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 ) <> ( - - col0 * - col1 + + col1 + - 83 * - + ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL + 45 * COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
135

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL + 45 * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT ALL 67 - COUNT( * ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL 67 - COUNT ( * ) FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT 33 + COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-2010
SELECT 33 + COUNT ( * ) FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT 77 + SUM( DISTINCT + ( + col0 ) ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-2011
SELECT 77 + SUM ( DISTINCT + ( + col0 ) ) FROM tab0
----
276

query I rowsort
SELECT - - ( 83 ) FROM tab0 WHERE 34 IS NOT NULL
----
83
83
83

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

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

query I rowsort
SELECT DISTINCT col1 - 93 AS col0 FROM tab2
----
-16
-26
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT DISTINCT MAX( col2 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2015
SELECT DISTINCT MAX ( col2 ) col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT ( COUNT( * ) ) col2 FROM tab1 WHERE NULL IS NULL
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 AS col2, + col1 + + col0 col1 FROM tab2 WHERE col0 * col2 + + col0 * - col2 = + col2
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * col0 * - + col2 - - 34 <= col1 * + 50 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 * col1 col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2020
SELECT DISTINCT 75 * + + col1 DIV - col1, + col1 AS col0 FROM tab0
----
-75
1
-75
21
-75
81

skipif mysql # not compatible
query II rowsort label-2020
SELECT DISTINCT 75 * + + col1 / - col1, + col1 AS col0 FROM tab0
----
-75
1
-75
21
-75
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - MIN( + 11 ) col1 FROM tab1 AS cor0 WHERE NOT ( NOT + col1 NOT BETWEEN - col2 AND NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2021
SELECT - MIN ( + 11 ) col1 FROM tab1 AS cor0 WHERE NOT ( NOT + col1 NOT BETWEEN - col2 AND NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL + - MAX( + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + - MAX ( + col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT 65 DIV - col2 col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2023
SELECT 65 / - col2 col0 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + - 92 + - 97 <> + + 38 * col0
----

query II rowsort
SELECT - 28, - 1 * + + col2 AS col0 FROM tab2
----
-28
-23
-28
-40
-28
-58

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

query I rowsort
SELECT DISTINCT - ( - 52 ) FROM tab0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2028
SELECT ALL + CAST( 26 AS SIGNED ) FROM tab1 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL + CAST ( 26 AS INTEGER ) FROM tab1 AS cor0
----
26
26
26

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

skipif mysql # not compatible
query I rowsort label-2029
SELECT - MIN ( ALL + - 91 ) FROM tab2 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > + 71 * + - 3 + + col2 + + - ( + col0 ) + - + col1
----

query I rowsort
SELECT + 19 FROM tab0 AS cor0 WHERE NOT ( + + 28 ) * - col1 IS NOT NULL
----

query I rowsort
SELECT - 96 * col0 * + 24 AS col2 FROM tab0 WHERE NOT - + col2 BETWEEN NULL AND + + col0 / 21
----

query I rowsort
SELECT ALL - 34 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

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

query I rowsort
SELECT DISTINCT + 80 + col0 FROM tab2 AS cor0
----
126
144
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2036
SELECT + - 20 DIV 80 * + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2036
SELECT + - 20 / 80 * + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT SUM( - col0 ) AS col2 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2037
SELECT SUM ( - col0 ) AS col2 FROM tab2 cor0
----
-185

query I rowsort
SELECT DISTINCT - 7 + - + col0 + - + 89 * - 78 AS col2 FROM tab0 AS cor0
----
6838
6848
6920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - + 8 + col0 col0 FROM tab1
----
152
155
167

query I rowsort
SELECT ALL - col1 - - + col2 + - 29 - - col2 - - col2 + ( + + ( + 93 ) ) * + + 94 * - col2 * + 31 FROM tab1
----
-15988975
-18428008
-26015947

query I rowsort
SELECT + col1 * - col1 - - col0 * 83 * + col1 - col1 - - + ( - - col1 ) FROM tab2
----
192117
403095
412586

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL 73 * - 76 * + - COUNT( * ) AS col2 FROM tab2
----
16644

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL 73 * - 76 * + - COUNT ( * ) AS col2 FROM tab2
----
16644

query I rowsort
SELECT 75 AS col0 FROM tab2 WHERE NOT NULL < + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2045
SELECT DISTINCT + ( + CAST( + col1 AS SIGNED ) ) DIV col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT + ( + CAST ( + col1 AS INTEGER ) ) / col1 FROM tab0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - 50 * - col0 + - - 76 + - col0 + - - col0 - - 27 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 94 + - col0 IN ( col2, col0, + - 2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 5 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
5

query I rowsort
SELECT DISTINCT - 12 * - col2 FROM tab2 AS cor0
----
276
480
696

query I rowsort
SELECT ALL - 72 + 29 - - ( - col1 ) * col2 FROM tab0 AS cor0
----
-142
-253
-3850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT DISTINCT + col0 + + - ( + 24 ) - 57 * - ( + 5 ) * col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL OR NOT NULL BETWEEN NULL AND ( CAST( - - col0 AS SIGNED ) + - col2 + - - col0 )
----

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT + col0 + + - ( + 24 ) - 57 * - ( + 5 ) * col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL OR NOT NULL BETWEEN NULL AND ( CAST ( - - col0 AS INTEGER ) + - col2 + - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2052
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + CAST( + 45 AS SIGNED ) + + 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2052
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + CAST ( + 45 AS INTEGER ) + + 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 / - col2 < NULL
----

query I rowsort
SELECT DISTINCT + 33 * - col1 AS col1 FROM tab2
----
-1683
-2211
-2541

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT DISTINCT 64 + COUNT( - - col1 ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT 64 + COUNT ( - - col1 ) FROM tab1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2058
SELECT - COUNT( * ) DIV ( - SUM( DISTINCT col0 ) ) + COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2058
SELECT - COUNT ( * ) / ( - SUM ( DISTINCT col0 ) ) + COUNT ( * ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT + COUNT( * ) + + 96 * + 55 AS col0 FROM tab1
----
5283

skipif mysql # not compatible
query I rowsort label-2059
SELECT + COUNT ( * ) + + 96 * + 55 AS col0 FROM tab1
----
5283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col1, col1 col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2061
SELECT DISTINCT + COUNT( * ), CAST( ( + 99 ) AS SIGNED ) + + - SUM( - ( - col2 ) ) AS col0 FROM tab0 WHERE + 78 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2061
SELECT DISTINCT + COUNT ( * ), CAST ( ( + 99 ) AS INTEGER ) + + - SUM ( - ( - col2 ) ) AS col0 FROM tab0 WHERE + 78 IS NULL
----
0
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT ALL - 1 DIV + col2 + - ( col0 ) + + 80 FROM tab2 AS cor0
----
16
34
5

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - 1 / + col2 + - ( col0 ) + + 80 FROM tab2 AS cor0
----
16
34
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2065
SELECT ALL - - CAST( + col0 AS SIGNED ) AS col2, - 15 AS col1 FROM tab1 cor0
----
51
-15
85
-15
91
-15

skipif mysql # not compatible
query II rowsort label-2065
SELECT ALL - - CAST ( + col0 AS INTEGER ) AS col2, - 15 AS col1 FROM tab1 cor0
----
51
-15
85
-15
91
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2066
SELECT ALL + COUNT( * ) - - 65, + COUNT( * ) AS col1 FROM tab1
----
68
3

skipif mysql # not compatible
query II rowsort label-2066
SELECT ALL + COUNT ( * ) - - 65, + COUNT ( * ) AS col1 FROM tab1
----
68
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT ALL - col0 + + col2 AS col2 FROM tab2 WHERE NOT col1 IS NULL
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2070
SELECT col0 - + col0 AS col2, - ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-2070
SELECT col0 - + col0 AS col2, - ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT ALL - col0 + - + 27 + + 70 AS col1 FROM tab1 AS cor0
----
-42
-48
-8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - ( - + col0 ) * + + 25 * + - col2 + + - 87 ) < NULL
----

query II rowsort
SELECT 2 AS col1, col1 * - 74 FROM tab0
----
2
-1554
2
-5994
2
-74

query II rowsort
SELECT ALL + 90 AS col0, + col2 * + 61 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( - + 5 ) FROM tab2
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT COUNT( 62 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2076
SELECT COUNT ( 62 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + COUNT( * ) * + SUM( + col0 ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-2077
SELECT + COUNT ( * ) * + SUM ( + col0 ) FROM tab0
----
597

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 4 + col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + + col0, col2 * + col1 + + col2 FROM tab2 cor0
----
46
1196
64
3120
75
3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT DISTINCT ( + ( - CAST( - col0 AS SIGNED ) ) ) * - - 79 * - 88 col1 FROM tab0
----
-104280
-604824
-674344

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2080
SELECT DISTINCT ( + ( - CAST ( - col0 AS INTEGER ) ) ) * - - 79 * - 88 col1 FROM tab0
----
-104280
-604824
-674344

query I rowsort
SELECT DISTINCT - + ( + + 9 ) AS col2 FROM tab1 AS cor0
----
-9

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

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

query I rowsort
SELECT + col0 + + col2 FROM tab1 AS cor0 WHERE NOT col0 * - col1 + + col2 * - 11 * - col2 IS NULL
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT ALL + col2 + - - col0 + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
198
229
250

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL + col2 + - - col0 + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
198
229
250

query I rowsort
SELECT ALL - - 14 AS col0 FROM tab0 cor0
----
14
14
14

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

query I rowsort
SELECT - + 12 * + 13 * - 15 FROM tab2 AS cor0
----
2340
2340
2340

query I rowsort
SELECT ALL 25 FROM tab1 WHERE NOT + 10 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL col2 / - 78 AS col0 FROM tab0
----
-1
0
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2092
SELECT ALL col0 * - - CAST( ( 88 ) AS SIGNED ) * + col0 FROM tab2 WHERE + 82 NOT BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL col0 * - - CAST ( ( 88 ) AS INTEGER ) * + col0 FROM tab2 WHERE + 82 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - + 4 FROM tab1 WHERE 58 IS NOT NULL
----
-4
-4
-4

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2095
SELECT + COUNT ( * ) col0, 4 AS col2 FROM tab2
----
3
4

query I rowsort
SELECT + 60 + - - col1 FROM tab0 AS cor0
----
141
61
81

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( col0 ) > 3
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 + col0 col2 FROM tab0 cor0
----
169
179
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT + COUNT( * ) * + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
81

skipif mysql # not compatible
query I rowsort label-2101
SELECT + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
81

query I rowsort
SELECT - 60 * - col1 FROM tab2
----
3060
4020
4620

query II rowsort
SELECT ALL + col2 + - col0 + 91 * 64, - col1 AS col2 FROM tab1
----
5798
-5
5801
-47
5869
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, - col2 col0 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

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

query I rowsort
SELECT - - col2 * - col1 * col2 FROM tab0 AS cor0
----
-178929
-2100
-9801

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * + col2 < + col0
----
59
68
96

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

query I rowsort
SELECT ALL - + col1 FROM tab1 AS cor0 WHERE col0 > + col2
----
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2110
SELECT ALL + ( + CAST( + SUM( ALL col2 ) AS SIGNED ) ), - COUNT( * ) * 92 col1 FROM tab1 cor0
----
223
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2110
SELECT ALL + ( + CAST ( + SUM ( ALL col2 ) AS INTEGER ) ), - COUNT ( * ) * 92 col1 FROM tab1 cor0
----
223
-276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, col1 AS col2 FROM tab1 cor0
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT ALL ( - - MIN( col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL ( - - MIN ( col2 ) ) AS col2 FROM tab0
----
10

query I rowsort
SELECT DISTINCT ( - 54 ) * + col0 * - col2 - col2 AS col1 FROM tab2
----
138200
234842
57109

query III rowsort
SELECT ALL - col0 * 90, - col1 AS col2, + ( 84 ) * + ( + 31 ) AS col2 FROM tab1
----
9 values hashing to 940bd26ba3002d5b037f2e8ed6c52ef3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2115
SELECT ALL CAST( - 34 AS SIGNED ), col2 * - 19 AS col0 FROM tab0
----
-34
-1881
-34
-190
-34
-893

skipif mysql # not compatible
query II rowsort label-2115
SELECT ALL CAST ( - 34 AS INTEGER ), col2 * - 19 AS col0 FROM tab0
----
-34
-1881
-34
-190
-34
-893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col1 FROM tab0
----
60

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 90 * 37 - 28 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + + 81 FROM tab2 AS cor0
----
-3726
-5184
-6075

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2120
SELECT DISTINCT col0, CAST( col2 AS SIGNED ) * - 62 + + col2 AS col0 FROM tab1 AS cor0
----
51
-5856
85
-3599
91
-4148

skipif mysql # not compatible
query II rowsort label-2120
SELECT DISTINCT col0, CAST ( col2 AS INTEGER ) * - 62 + + col2 AS col0 FROM tab1 AS cor0
----
51
-5856
85
-3599
91
-4148

query I rowsort
SELECT ALL - 18 + - + col0 FROM tab2 AS cor0
----
-64
-82
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2122
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2122
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 64 + - 7 + + 34 * - + 19 AS col1 FROM tab2 AS cor0
----
-717
-717
-717

query I rowsort
SELECT + 19 + + 96 * col1 AS col2 FROM tab2
----
4915
6451
7411

onlyif mysql # DIV for integer division: 
query I rowsort label-2125
SELECT DISTINCT 98 DIV 16 AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT 98 / 16 AS col2 FROM tab2
----
6

query II rowsort
SELECT col1 + col2 AS col1, 8 AS col0 FROM tab0
----
100
8
128
8
31
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2127
SELECT - col2 + - ( col0 ) DIV col1 AS col1 FROM tab2
----
-23
-40
-59

skipif mysql # not compatible
query I rowsort label-2127
SELECT - col2 + - ( col0 ) / col1 AS col1 FROM tab2
----
-23
-40
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT + COUNT( * ) + - SUM( ALL ( + + 51 ) ) AS col1 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-2128
SELECT + COUNT ( * ) + - SUM ( ALL ( + + 51 ) ) AS col1 FROM tab0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT 16 + SUM( DISTINCT - col2 ) * + ( - COUNT( * ) ) FROM tab2
----
379

skipif mysql # not compatible
query I rowsort label-2129
SELECT 16 + SUM ( DISTINCT - col2 ) * + ( - COUNT ( * ) ) FROM tab2
----
379

query II rowsort
SELECT ALL ( 69 ) AS col1, col2 AS col0 FROM tab0
----
69
10
69
47
69
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * + col2 + - 24 col0 FROM tab1
----
3988
4600
6504

query I rowsort
SELECT DISTINCT - col0 + ( - 67 ) FROM tab0 AS cor0
----
-154
-164
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2133
SELECT * FROM tab0 AS cor0 WHERE 88 * 43 + + col0 - CAST( NULL AS SIGNED ) = - 48
----

skipif mysql # not compatible
query III rowsort label-2133
SELECT * FROM tab0 AS cor0 WHERE 88 * 43 + + col0 - CAST ( NULL AS INTEGER ) = - 48
----

query I rowsort
SELECT DISTINCT + - 28 + + - 41 * + col2 AS col0 FROM tab0 cor0
----
-1955
-4087
-438

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT 84 DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2135
SELECT 84 / col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 + 90 AS col2 FROM tab0 AS cor0
----
111
171
91

query I rowsort
SELECT DISTINCT 15 - 79 FROM tab1 AS cor0
----
-64

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2140
SELECT col2 AS col1, CAST( - 65 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
59
-5525
68
-5915
96
-3315

skipif mysql # not compatible
query II rowsort label-2140
SELECT col2 AS col1, CAST ( - 65 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
59
-5525
68
-5915
96
-3315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col0 FROM tab0 cor0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 55 col1 FROM tab2 AS cor0
----
55

query I rowsort
SELECT ( + 96 ) FROM tab2 AS cor0
----
96
96
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - 43 NOT BETWEEN NULL AND - col1 * 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT - ( - COUNT( col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2145
SELECT - ( - COUNT ( col2 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL + COUNT( ALL - - 17 ) col1 FROM tab0 WHERE + + 53 <> + - col0 * - + col1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2146
SELECT ALL + COUNT ( ALL - - 17 ) col1 FROM tab0 WHERE + + 53 <> + - col0 * - + col1
----
3

query II rowsort
SELECT ALL + ( + - 82 ), + col0 FROM tab0
----
-82
15
-82
87
-82
97

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

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

query II rowsort
SELECT DISTINCT col1 AS col2, 98 FROM tab0 AS cor0
----
1
98
21
98
81
98

query I rowsort
SELECT ALL 92 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
92
92
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2152
SELECT - 6 * - - COUNT( * ) DIV + + COUNT( * ) + 9, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2152
SELECT - 6 * - - COUNT ( * ) / + + COUNT ( * ) + 9, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
NULL

query I rowsort
SELECT DISTINCT 38 + - 26 * 26 FROM tab1, tab0 AS cor0
----
-638

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * - ( col2 ) = NULL
----

query I rowsort
SELECT col1 + + ( - col2 ) AS col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT - + 46 + - 38 AS col1 FROM tab1 cor0
----
-84
-84
-84

query I rowsort
SELECT + 75 + col1 * + + col2 * - 54 AS col0 FROM tab2 AS cor0
----
-166245
-209769
-63267

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * 34 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT DISTINCT MIN( + 83 ) - - ( + + 90 ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2159
SELECT DISTINCT MIN ( + 83 ) - - ( + + 90 ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE 22 + col2 * + - col2 / + 13 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE 22 + col2 * + - col2 / + 13 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT - SUM( + 67 ) AS col2 FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-2161
SELECT - SUM ( + 67 ) AS col2 FROM tab0 AS cor0
----
-201

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

query I rowsort
SELECT DISTINCT + ( + - col0 ) AS col2 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col1 FROM tab2 WHERE NOT NULL >= + col0 - + - col0 - - - col0 * + - col0
----

query II rowsort
SELECT + col0, - 42 - - col0 - + + col1 + + - col0 FROM tab2
----
46
-93
64
-119
75
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2166
SELECT CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) - + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT col2 - + - 44 FROM tab2
----
102
67
84

query I rowsort
SELECT + 29 - + + col1 FROM tab1
----
-18
15
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT COUNT( * ) AS col0 FROM tab0 WHERE - col1 BETWEEN NULL AND ( - + col0 * - 40 )
----
0

skipif mysql # not compatible
query I rowsort label-2169
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE - col1 BETWEEN NULL AND ( - + col0 * - 40 )
----
0

query I rowsort
SELECT ALL 16 * col1 + - col2 AS col2 FROM tab0 AS cor0
----
-83
1249
326

query I rowsort
SELECT DISTINCT - 97 * - + col0 FROM tab2 AS cor0
----
4462
6208
7275

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT - - ( + 69 ) + + COUNT( ALL + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
69

skipif mysql # not compatible
query I rowsort label-2173
SELECT - - ( + 69 ) + + COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
69

query I rowsort
SELECT DISTINCT - - 2 * + + col2 AS col0 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2175
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( - + ( - col2 ) AS SIGNED ) * + + col0 NOT IN ( - - 23, - col0 )
----

skipif mysql # not compatible
query III rowsort label-2175
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( - + ( - col2 ) AS INTEGER ) * + + col0 NOT IN ( - - 23, - col0 )
----

query I rowsort
SELECT + 70 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ( 81 ) * + col0 + - - col2 + + + col1 + - ( - 17 ) FROM tab0 AS cor0 WHERE NOT 23 IS NOT NULL
----

query I rowsort
SELECT col0 * - col2 - - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1012
-2496
-4275

query III rowsort
SELECT * FROM tab2 WHERE NOT 96 - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2180
SELECT ALL - + 51 * CAST( NULL AS SIGNED ), col1 col2 FROM tab2 WHERE + + 36 * - + 90 IS NOT NULL
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2180
SELECT ALL - + 51 * CAST ( NULL AS INTEGER ), col1 col2 FROM tab2 WHERE + + 36 * - + 90 IS NOT NULL
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + ( 13 ) AS col0, col0 col0 FROM tab0
----
1287
97
130
87
611
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT - CAST( + 80 AS SIGNED ) AS col2 FROM tab2
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-2182
SELECT - CAST ( + 80 AS INTEGER ) AS col2 FROM tab2
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2183
SELECT DISTINCT 71 + - + col2 FROM tab2 WHERE - col2 - + CAST( - col1 AS SIGNED ) = + - 38
----

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT 71 + - + col2 FROM tab2 WHERE - col2 - + CAST ( - col1 AS INTEGER ) = + - 38
----

query I rowsort
SELECT - 16 + - - col1 FROM tab2 cor0
----
35
51
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL MAX( ALL - 34 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL MAX ( ALL - 34 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2186
SELECT + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT + - CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 * - + col0, + col1 AS col2 FROM tab2
----
-2346
51
-4928
77
-5025
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN 79 AND NULL
----

query I rowsort
SELECT + - col0 AS col0 FROM tab1 cor0 WHERE - 52 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE col1 / 25 IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 <= + + 71
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 69 + - col2 + + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 - - col2 + - - 72 - - + col2 * + col0 FROM tab0 cor0
----
871
962
9873

query I rowsort
SELECT ALL - 58 * col0 + - 76 FROM tab0 cor0
----
-5122
-5702
-946

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= - 54
----

query I rowsort
SELECT 51 * - - col1 + 13 AS col0 FROM tab2 AS cor0
----
2614
3430
3940

query I rowsort
SELECT ALL + - 88 - 20 + col0 FROM tab2 AS cor0
----
-33
-44
-62

query I rowsort
SELECT col2 * col2 * 32 + - + 78 FROM tab1 AS cor0
----
111314
147890
294834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT ALL + 19 * + col1 * CAST( + 79 AS SIGNED ) FROM tab1
----
21014
70547
7505

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + 19 * + col1 * CAST ( + 79 AS INTEGER ) FROM tab1
----
21014
70547
7505

query I rowsort
SELECT ALL 91 - 73 AS col2 FROM tab1
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT DISTINCT + - col1 - 72 + + 76 + - 50 * + col2 + + CAST( NULL AS SIGNED ) / + - col2 col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 * + + col0 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2201
SELECT DISTINCT + - col1 - 72 + + 76 + - 50 * + col2 + + CAST ( NULL AS INTEGER ) / + - col2 col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 * + + col0 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT - + 49 FROM tab1 cor0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2204
SELECT ALL + - col1 DIV col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL + - col1 / col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT - 11 * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2205
SELECT - 11 * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + 84 - - col0 col2 FROM tab1 AS cor0
----
1227
4039
505

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

skipif mysql # not compatible
query I rowsort label-2207
SELECT - - ( - ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 1 * col1 * col2 * - + 53 FROM tab0 AS cor0
----
-11130
-201771
-5247

onlyif mysql # DIV for integer division: 
query I rowsort label-2209
SELECT - 79 DIV - 13 FROM tab1
----
6
6
6

skipif mysql # not compatible
query I rowsort label-2209
SELECT - 79 / - 13 FROM tab1
----
6
6
6

query I rowsort
SELECT DISTINCT 74 + - col1 AS col2 FROM tab1 WHERE - + 49 * ( - - col1 ) + - 86 + + col1 - 63 IS NOT NULL
----
27
60
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2211
SELECT ALL + col2 DIV - col0 AS col0, + CAST( NULL AS SIGNED ) FROM tab1
----
-1
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-2211
SELECT ALL + col2 / - col0 AS col0, + CAST ( NULL AS INTEGER ) FROM tab1
----
-1
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2212
SELECT MAX( ALL col1 ), COUNT( * ) * - 1 AS col2 FROM tab2
----
77
-3

skipif mysql # not compatible
query II rowsort label-2212
SELECT MAX ( ALL col1 ), COUNT ( * ) * - 1 AS col2 FROM tab2
----
77
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + col2 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT - - COUNT( * ) * - MIN( ALL - 61 ) FROM tab2 cor0
----
183

skipif mysql # not compatible
query I rowsort label-2214
SELECT - - COUNT ( * ) * - MIN ( ALL - 61 ) FROM tab2 cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT + MIN( - col0 ) AS col0 FROM tab1 AS cor0 WHERE - col2 + - 87 * + 88 IS NOT NULL
----
-91

skipif mysql # not compatible
query I rowsort label-2215
SELECT + MIN ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE - col2 + - 87 * + 88 IS NOT NULL
----
-91

query II rowsort
SELECT ALL col0, + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT + 41 + 2 + ( col2 ) * - col0 - + col2 AS col2 FROM tab2 AS cor0 WHERE + 78 IS NOT NULL
----
-1038
-2557
-4365

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL - 91 + + - COUNT( * ) col0 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2218
SELECT ALL - 91 + + - COUNT ( * ) col0 FROM tab1 AS cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 AS col0, col2 * col0 col0 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2221
SELECT DISTINCT + col0 DIV - col2 + col0 AS col0, - col1 * + 93 * 87 FROM tab2 cor0
----
44
-412641
63
-623007
74
-542097

skipif mysql # not compatible
query II rowsort label-2221
SELECT DISTINCT + col0 / - col2 + col0 AS col0, - col1 * + 93 * 87 FROM tab2 cor0
----
44
-412641
63
-623007
74
-542097

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col2 ) NOT BETWEEN col2 + - col2 + + ( + 72 ) * - - col0 + col2 * + 34 AND - 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT - + col0 * - col2 + - - col2 + - + ( col2 ) AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL - ( ( 91 ) ) FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - 28 - - col1 AS col2 FROM tab2
----
-1043
-1557
-593

query I rowsort
SELECT ALL - 63 - - 73 FROM tab1
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2228
SELECT 85 + + 29 + CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
119
128
161

skipif mysql # not compatible
query I rowsort label-2228
SELECT 85 + + 29 + CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
119
128
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2229
SELECT ALL COUNT( DISTINCT - + col1 ) * COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

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

query III rowsort
SELECT + col1 AS col1, + col2, + - col1 * + col1 * + + col0 * + col0 AS col0 FROM tab2 cor0
----
9 values hashing to e8e310ee07ec0ce67bdab37747d0ba60

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

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT + + col1 * + col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2234
SELECT + - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2234
SELECT + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2235
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN + + CAST( - col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2235
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN + + CAST ( - col0 AS INTEGER ) AND NULL
----

query I rowsort
SELECT - ( + - 61 ) AS col2 FROM tab0 AS cor0
----
61
61
61

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> + 75
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 77 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
77

query I rowsort
SELECT ALL + col0 * 19 AS col1 FROM tab2
----
1216
1425
874

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT - COUNT( * ) + SUM( ALL - col2 ) AS col2 FROM tab2 WHERE NOT + + 59 >= + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2241
SELECT - COUNT ( * ) + SUM ( ALL - col2 ) AS col2 FROM tab2 WHERE NOT + + 59 >= + 58
----
NULL

query II rowsort
SELECT 62 AS col2, col2 * - - 46 AS col2 FROM tab0
----
62
2162
62
4554
62
460

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT - COUNT( ALL + 23 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2244
SELECT - COUNT ( ALL + 23 ) col1 FROM tab0
----
-3

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

query I rowsort
SELECT DISTINCT - col2 + - 65 FROM tab2 AS cor0
----
-105
-123
-88

query I rowsort
SELECT + 2 FROM tab1 AS cor0 WHERE col0 >= + col1 * + col0
----

query I rowsort
SELECT ALL - 6 + + 54 + - + 58 * + + col0 FROM tab1 AS cor0
----
-2910
-4882
-5230

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 88 IS NOT NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab1 WHERE ( col2 * - + col0 - - col0 + - col2 * col2 + + col2 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 + + + 96 col1 FROM tab2 WHERE NOT ( NOT col0 IS NULL )
----

query I rowsort
SELECT DISTINCT + 37 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2253
SELECT DISTINCT + CAST( - + ( + COUNT( * ) ) AS SIGNED ) * - 14 * - - MAX( col0 ) + - 40 FROM tab2
----
3110

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT + CAST ( - + ( + COUNT ( * ) ) AS INTEGER ) * - 14 * - - MAX ( col0 ) + - 40 FROM tab2
----
3110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 17 - + - col0 col0 FROM tab0 AS cor0
----
-1392
-1552
-240

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

query I rowsort
SELECT ALL + + col2 - 16 FROM tab2 AS cor0
----
24
42
7

query I rowsort
SELECT DISTINCT + 11 + - + 80 * + + col2 FROM tab0 AS cor0
----
-3749
-789
-7909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT ALL + CAST( NULL AS SIGNED ) * 45 + - - 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL + CAST ( NULL AS INTEGER ) * 45 + - - 37 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2259
SELECT 60 + - col1 + 52 DIV - - col1 FROM tab0
----
-21
111
41

skipif mysql # not compatible
query I rowsort label-2259
SELECT 60 + - col1 + 52 / - - col1 FROM tab0
----
-21
111
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - 65 * - MIN( + col0 ) FROM tab2
----
2990

skipif mysql # not compatible
query I rowsort label-2260
SELECT - 65 * - MIN ( + col0 ) FROM tab2
----
2990

query II rowsort
SELECT DISTINCT 0 AS col2, col2 FROM tab2
----
0
23
0
40
0
58

query I rowsort
SELECT - + col0 FROM tab0 WHERE NOT - col1 IS NULL
----
-15
-87
-97

query I rowsort
SELECT - ( + + col2 ) * col0 AS col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL - 90 + - - 97 FROM tab2 WHERE NOT NULL NOT BETWEEN + ( col2 ) AND 95
----

query I rowsort
SELECT ALL + 5 FROM tab1 AS cor0 WHERE NOT col1 / + - col0 <= NULL
----

query I rowsort
SELECT + 14 * + col2 FROM tab1 AS cor0
----
1344
826
952

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT - SUM( ALL + + col1 ) col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2267
SELECT - SUM ( ALL + + col1 ) col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT 59 AS col0 FROM tab0 WHERE NOT col0 * + + col2 - + col2 + + 73 - - + 22 IS NULL
----
59
59
59

query I rowsort
SELECT DISTINCT 35 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
35

query I rowsort
SELECT + 66 * - col0 AS col1 FROM tab0
----
-5742
-6402
-990

query I rowsort
SELECT DISTINCT - col1 * - 58 FROM tab0 cor0
----
1218
4698
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2272
SELECT DISTINCT - ( + ( - CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT - ( + ( - CAST ( NULL AS REAL ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 * - 88 * - 35 * 98 FROM tab0 AS cor0
----
-24449040
-301840
-6338640

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT - 6 * + COUNT( * ) - 3 FROM tab0 cor0 WHERE NOT - col2 * - col2 * - + col2 NOT IN ( + - col1, + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-2274
SELECT - 6 * + COUNT ( * ) - 3 FROM tab0 cor0 WHERE NOT - col2 * - col2 * - + col2 NOT IN ( + - col1, + col0 )
----
-3

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - ( + 7 )
----

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

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

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

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

query I rowsort
SELECT ALL - 63 AS col1 FROM tab0 AS cor0 WHERE NOT col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL MIN( ALL - 71 ) + + COUNT( * ) + + - 36 AS col0 FROM tab0
----
-104

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL MIN ( ALL - 71 ) + + COUNT ( * ) + + - 36 AS col0 FROM tab0
----
-104

query I rowsort
SELECT ( - col1 ) * - + 22 AS col2 FROM tab1
----
1034
110
308

query II rowsort
SELECT DISTINCT - col2 + - 53 AS col0, - ( col2 ) AS col1 FROM tab2 AS cor0
----
-111
-58
-76
-23
-93
-40

query I rowsort
SELECT + 25 + - ( col1 ) FROM tab1 AS cor0
----
-22
11
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT + COUNT( * ) + COUNT( * ) * - 72 FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND - 49 / + - col0
----
0

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) * - 72 FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND - 49 / + - col0
----
0

query I rowsort
SELECT 78 * col2 * - col0 + + + ( - col2 ) + - - col2 * + col2 + ( col2 ) AS col2 FROM tab1 cor0
----
-372672
-387689
-478040

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <> + 75
----

query I rowsort
SELECT + col2 + - 73 AS col2 FROM tab2 AS cor0
----
-15
-33
-50

query I rowsort
SELECT ALL - + 8 + + col2 - 69 FROM tab2 cor0
----
-19
-37
-54

query I rowsort
SELECT DISTINCT - 82 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-82

query I rowsort
SELECT ALL - + col1 + - 17 FROM tab0 AS cor0
----
-18
-38
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-2290
SELECT - col0 col1, + 41 DIV + - col0 AS col1 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2290
SELECT - col0 col1, + 41 / + - col0 AS col1 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 83 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 83 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2292
SELECT + CAST( NULL AS SIGNED ) * - + 8 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT + CAST ( NULL AS INTEGER ) * - + 8 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 1 + col0 + col2 FROM tab1 AS cor0
----
143
146
158

query I rowsort
SELECT - + 79 - col2 FROM tab1 AS cor0
----
-138
-147
-175

query I rowsort
SELECT 55 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 56 - + 88 AS col2 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT + 72 * col2 IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 28 col0 FROM tab0
----
2268
28
588

query I rowsort
SELECT + ( 20 ) * + - col2 FROM tab0
----
-1980
-200
-940

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= - 35 + - col1 + 38
----

query I rowsort
SELECT - ( 50 ) FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( 28 ) AS col0 FROM tab0 AS cor0
----
28

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

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

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

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

query I rowsort
SELECT DISTINCT + - ( + 86 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-86

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE 17 + - col0 >= + col0 + 3
----

query I rowsort
SELECT ALL col2 * col2 + + + 67 FROM tab2
----
1667
3431
596

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT - - 55 + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT - - 55 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 col1 FROM tab1 AS cor0
----
69

query I rowsort
SELECT DISTINCT - + col1 + + + col0 FROM tab2 AS cor0
----
-13
-5
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * - + col2 NOT BETWEEN + + 85 AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + + 27 NOT BETWEEN 74 AND ( + 81 * 66 ) OR NOT ( NULL ) IS NULL
----
51
14
96
85
5
59

query I rowsort
SELECT - col2 + + ( - col0 ) - - col2 / + - col1 * - 93 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 71
----

query II rowsort
SELECT ALL - - col1 AS col1, + 74 AS col1 FROM tab2 AS cor0
----
51
74
67
74
77
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT MIN( ALL col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2316
SELECT MIN ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
51

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2317
SELECT DISTINCT + 0 * + + col1 + - col0 - 60 * - col0 + CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT + 34 + + COUNT( * ) AS col1 FROM tab0 cor0
----
37

skipif mysql # not compatible
query I rowsort label-2318
SELECT + 34 + + COUNT ( * ) AS col1 FROM tab0 cor0
----
37

query I rowsort
SELECT - col1 * - col0 + + + col1 * col1 * + col2 AS col0 FROM tab2 WHERE - + ( - col2 ) * + ( + + 42 ) / ( - - col0 ) IS NOT NULL
----
242088
265387
62169

query I rowsort
SELECT - col0 FROM tab2 WHERE + - 73 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT DISTINCT MIN( - - ( + - col0 ) ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT MIN ( - - ( + - col0 ) ) AS col2 FROM tab0
----
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 IS NOT NULL AND + col1 * 61 IS NOT NULL
----

query I rowsort
SELECT col2 + + - col2 * + col2 AS col1 FROM tab1
----
-3422
-4556
-9120

onlyif mysql # DIV for integer division: 
query II rowsort label-2324
SELECT DISTINCT - col2 col0, + col1 DIV col1 + + - ( + ( + - ( - + col0 ) ) ) FROM tab2
----
-23
-45
-40
-63
-58
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2324
SELECT DISTINCT - col2 col0, + col1 / col1 + + - ( + ( + - ( - + col0 ) ) ) FROM tab2
----
-23
-45
-40
-63
-58
-74

query I rowsort
SELECT ( + + col0 ) + + col0 FROM tab0
----
174
194
30

query II rowsort
SELECT DISTINCT - 50, ( - - 64 ) * + + col2 - ( - 58 ) * - col1 AS col2 FROM tab2
----
-50
-1486
-50
-174
-50
-1906

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT 68 + - MIN( + col1 ) AS col2 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-2327
SELECT 68 + - MIN ( + col1 ) AS col2 FROM tab0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 + ( - col2 ) + + - col2 col1 FROM tab0
----
-118
-14
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT - - COUNT( * ) - + 93 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT - - COUNT ( * ) - + 93 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-276

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 + - 51 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2332
SELECT col1 * - ( col1 ) * - - 50 - col0 col2, col1 * CAST( NULL AS SIGNED ) * + + 68 + - col0 AS col1 FROM tab0
----
-147
NULL
-22137
NULL
-328065
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2332
SELECT col1 * - ( col1 ) * - - 50 - col0 col2, col1 * CAST ( NULL AS INTEGER ) * + + 68 + - col0 AS col1 FROM tab0
----
-147
NULL
-22137
NULL
-328065
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT - col2 - + col2 + - - col1 / + 32 * col1 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT - col2 - + col2 + - - col1 / + 32 * col1 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - 42 * col1 FROM tab2
----
-129360
-163212
-49266

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND ( NOT + col1 * 16 IS NOT NULL )
----

query II rowsort
SELECT ALL + - col0 * 37 AS col1, + 98 * - ( + col0 ) * + - col1 FROM tab1 AS cor0
----
-1887
69972
-3145
41650
-3367
419146

onlyif mysql # DIV for integer division: 
query I rowsort label-2337
SELECT ALL + col1 DIV 45 * - 46 AS col2 FROM tab2 cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL + col1 / 45 * - 46 AS col2 FROM tab2 cor0
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2338
SELECT + col2 DIV - - 62 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2338
SELECT + col2 / - - 62 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT - MAX( - col1 ) * 25 FROM tab0 cor0
----
25

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT - MAX ( - col1 ) * 25 FROM tab0 cor0
----
25

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2341
SELECT + 25 * + + col2 * - - col1 AS col1, col1 * + col1 + - col2 DIV + + col2 + col2 FROM tab1 AS cor0
----
33600
291
7375
83
79900
2276

skipif mysql # not compatible
query II rowsort label-2341
SELECT + 25 * + + col2 * - - col1 AS col1, col1 * + col1 + - col2 / + + col2 + col2 FROM tab1 AS cor0
----
33600
291
7375
83
79900
2276

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 25 * - 90 IS NOT NULL
----

query I rowsort
SELECT col2 * - + 47 AS col2 FROM tab2
----
-1081
-1880
-2726

query II rowsort
SELECT + col2 AS col0, col1 * + col2 * col2 FROM tab1
----
59
17405
68
217328
96
129024

query I rowsort
SELECT DISTINCT - - 80 AS col0 FROM tab2 cor0
----
80

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

skipif mysql # not compatible
query I rowsort label-2346
SELECT + MAX ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 8 / + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2348
SELECT DISTINCT ( + 50 ) DIV + + col1 FROM tab1 AS cor0
----
1
10
3

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT ( + 50 ) / + + col1 FROM tab1 AS cor0
----
1
10
3

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

query II rowsort
SELECT - + col0 * col2 + + - col1 + + col1 AS col2, - ( + 48 ) AS col2 FROM tab1 AS cor0
----
-4896
-48
-5015
-48
-6188
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col1 FROM tab2 cor0
----
-14
-14
-14

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT + 48 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN col2 AND + 54
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 62 col2 FROM tab1
----
3658
4216
5952

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 35 * + col0 ) IN ( + 24 * + 77 )
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE ( + col1 + col0 ) > + col0
----
51
85
91

query I rowsort
SELECT ALL - col0 * - 6 - 21 FROM tab1
----
285
489
525

query I rowsort
SELECT ALL + ( col1 ) * col2 + + col2 FROM tab0
----
198
220
3854

query III rowsort
SELECT * FROM tab2 WHERE NOT - 11 * + col0 NOT BETWEEN NULL AND ( - ( + col0 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + 89 AND NULL
----

query I rowsort
SELECT + col2 * col1 + 85 AS col2 FROM tab1
----
1429
3281
380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT DISTINCT 82 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT 82 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT col1 + + ( + 72 ) DIV col1 col2 FROM tab0
----
24
73
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2363
SELECT col1 + + ( + 72 ) / col1 col2 FROM tab0
----
24
73
81

query I rowsort
SELECT 89 + + col1 AS col0 FROM tab2
----
140
156
166

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT DISTINCT MAX( + ( col1 ) ) + + 17 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT MAX ( + ( col1 ) ) + + 17 FROM tab0
----
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 43 NOT IN ( 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT COUNT( * ) + + 4 AS col2 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-2367
SELECT COUNT ( * ) + + 4 AS col2 FROM tab2
----
7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT 36 DIV - 19 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2369
SELECT 36 / - 19 AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL - col0 * - ( - col1 * 73 ) AS col1 FROM tab1 AS cor0
----
-31025
-312221
-52122

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

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

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

query I rowsort
SELECT ALL 35 + + 47 AS col1 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2374
SELECT DISTINCT + 36 DIV 33 FROM tab2 AS cor0 CROSS JOIN tab2
----
1

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT + 36 / 33 FROM tab2 AS cor0 CROSS JOIN tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2375
SELECT DISTINCT 83 - SUM( + ( - col0 ) + col1 DIV col0 ) FROM tab2
----
266

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT 83 - SUM ( + ( - col0 ) + col1 / col0 ) FROM tab2
----
266

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT col0 DIV - 61 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2376
SELECT col0 / - 61 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT col1 * 5 + - col1 * + 21 FROM tab1 WHERE ( 36 / col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT ( 36 ) * - COUNT( * ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-2378
SELECT ( 36 ) * - COUNT ( * ) FROM tab2
----
-108

query I rowsort
SELECT ALL + 96 * - 48 FROM tab2
----
-4608
-4608
-4608

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

skipif mysql # not compatible
query I rowsort label-2380
SELECT CAST ( 10 AS INTEGER ) FROM tab2 AS cor0
----
10
10
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 81 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 84 - - col1 * - col2 ) BETWEEN + col0 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 40 * 55 FROM tab2 AS cor0
----
2200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 58 col1 FROM tab2 AS cor0
----
2668
3712
4350

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT ( ( 46 ) * col1 ) IN ( - 45 / col0 )
----
59
68
96

query I rowsort
SELECT DISTINCT + - col1 * - 57 FROM tab2 AS cor0
----
2907
3819
4389

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 63 > 93 + - col2
----
46
51
23

query I rowsort
SELECT DISTINCT + col2 + col2 * col0 FROM tab1 WHERE ( 81 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 + - ( col2 + col2 ) > ( ( col2 ) )
----
3

skipif mysql # not compatible
query I rowsort label-2390
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 + - ( col2 + col2 ) > ( ( col2 ) )
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + - 88 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT ALL ( + 73 ) * CAST( + 87 + 99 AS SIGNED ) FROM tab1
----
13578
13578
13578

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL ( + 73 ) * CAST ( + 87 + 99 AS INTEGER ) FROM tab1
----
13578
13578
13578

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT col1 * 57 DIV + col0 FROM tab0
----
0
13
307

skipif mysql # not compatible
query I rowsort label-2394
SELECT col1 * 57 / + col0 FROM tab0
----
0
13
307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT ALL col0 FROM tab2 WHERE - 2 NOT IN ( col2 + - CAST( NULL AS SIGNED ) * - 53 )
----

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL col0 FROM tab2 WHERE - 2 NOT IN ( col2 + - CAST ( NULL AS INTEGER ) * - 53 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT DISTINCT + col0 DIV + + 1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT + col0 / + + 1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT col1 * - 67 FROM tab0
----
-1407
-5427
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT MAX( - + 42 ) AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-2398
SELECT MAX ( - + 42 ) AS col2 FROM tab0
----
-42

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

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

query I rowsort
SELECT col2 * - 92 AS col2 FROM tab0
----
-4324
-9108
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT - MAX( ( - col0 ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2401
SELECT - MAX ( ( - col0 ) ) AS col1 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2402
SELECT + 27 AS col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
27
27
27

skipif mysql # not compatible
query I rowsort label-2402
SELECT + 27 AS col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
27
27
27

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT ALL - col2 DIV + 64 col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2404
SELECT ALL - col2 / + 64 col0 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2405
SELECT * FROM tab1 WHERE ( + - CAST( col2 AS SIGNED ) ) IN ( - 30 )
----

skipif mysql # not compatible
query III rowsort label-2405
SELECT * FROM tab1 WHERE ( + - CAST ( col2 AS INTEGER ) ) IN ( - 30 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2406
SELECT + MAX( - 88 ) DIV 6 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-14

skipif mysql # not compatible
query I rowsort label-2406
SELECT + MAX ( - 88 ) / 6 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-14

query I rowsort
SELECT ALL - 26 AS col0 FROM tab1 cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT + + 5 + + col1 + - col0 * 89 AS col1 FROM tab0 AS cor0
----
-1249
-7717
-8627

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

query I rowsort
SELECT ALL - 58 AS col0 FROM tab2 AS cor0 WHERE + col2 < ( col1 )
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > 1 + - col0 * col1
----
0

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) > 1 + - col0 * col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT - COUNT( - ( - col0 ) ) + 81 FROM tab1 cor0 WHERE - col2 <= NULL
----
81

skipif mysql # not compatible
query I rowsort label-2412
SELECT - COUNT ( - ( - col0 ) ) + 81 FROM tab1 cor0 WHERE - col2 <= NULL
----
81

query I rowsort
SELECT ALL 90 * col1 FROM tab1 AS cor0
----
1260
4230
450

query I rowsort
SELECT DISTINCT + - 72 + - col0 AS col0 FROM tab2 AS cor0
----
-118
-136
-147

query I rowsort
SELECT ALL + - 72 * + 85 AS col0 FROM tab1 AS cor0
----
-6120
-6120
-6120

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) BETWEEN ( + 96 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2417
SELECT CAST( NULL AS DECIMAL ) + 49 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT CAST ( NULL AS REAL ) + 49 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE + + col1 IN ( + 36 * 73 )
----

query I rowsort
SELECT - 7 + + 16 * col0 - + ( col1 ) + ( - ( col0 ) ) FROM tab2
----
1051
632
876

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) BETWEEN 41 - - 76 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT - MAX( - col0 ) + + COUNT( * ) + + + 45 * - MIN( ALL 0 ) * COUNT( * ) AS col0 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-2421
SELECT - MAX ( - col0 ) + + COUNT ( * ) + + + 45 * - MIN ( ALL 0 ) * COUNT ( * ) AS col0 FROM tab2
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2422
SELECT DISTINCT col0 * - col1 FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT col0 * - col1 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2423
SELECT CAST( col2 AS SIGNED ) DIV - + ( - - 5 ) FROM tab1
----
-11
-13
-19

skipif mysql # not compatible
query I rowsort label-2423
SELECT CAST ( col2 AS INTEGER ) / - + ( - - 5 ) FROM tab1
----
-11
-13
-19

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 WHERE NOT - col0 IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL 6 + + - col1 AS col1 FROM tab0
----
-15
-75
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 12 ) IN ( - ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2427
SELECT - col2 * 13 * col1 * - + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - 62 - + 8 * + 98 - col1 AS col0 FROM tab2 AS cor0
----
-2261
-3341
-4447

query I rowsort
SELECT - ( + 27 ) AS col0 FROM tab2
----
-27
-27
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2430
SELECT + 12 DIV + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-2430
SELECT + 12 / + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT + 89 FROM tab1 WHERE NOT NULL IS NOT NULL
----
89
89
89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + - col2 + 83 * + + col2 < ( + col1 + col1 / col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT + - COUNT( + col0 ) * + 37 + - SUM( col1 ) FROM tab0 AS cor0 WHERE NOT - col1 + + 72 / - 85 IS NULL
----
-214

skipif mysql # not compatible
query I rowsort label-2433
SELECT + - COUNT ( + col0 ) * + 37 + - SUM ( col1 ) FROM tab0 AS cor0 WHERE NOT - col1 + + 72 / - 85 IS NULL
----
-214

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2434
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN CAST( NULL AS SIGNED ) * - 61 AND - col1 / col0 + - col0
----

skipif mysql # not compatible
query III rowsort label-2434
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN CAST ( NULL AS INTEGER ) * - 61 AND - col1 / col0 + - col0
----

query I rowsort
SELECT ALL + + ( - + col1 ) AS col0 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT - - col2 * + + 49 AS col0 FROM tab0 AS cor0
----
2303
4851
490

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT SUM( DISTINCT - 50 ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2437
SELECT SUM ( DISTINCT - 50 ) FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL + COUNT( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL + COUNT ( ALL + - col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2439
SELECT + col1 DIV + 69 + col0 + 33 col0 FROM tab2 AS cor0
----
108
79
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2439
SELECT + col1 / + 69 + col0 + 33 col0 FROM tab2 AS cor0
----
108
79
98

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 + - col2 / col1 BETWEEN col0 AND col1 * + col0 - col0 * + 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT - col0 IS NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 50 col0, - col0 col1 FROM tab0
----
50
-15
50
-87
50
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2443
SELECT ALL CAST( NULL AS SIGNED ) + + col1 FROM tab0 WHERE col1 * - + col1 + col2 BETWEEN NULL AND - - 12
----

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 FROM tab0 WHERE col1 * - + col1 + col2 BETWEEN NULL AND - - 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2444
SELECT DISTINCT col1 * + CAST( - col0 AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT col1 * + CAST ( - col0 AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + col0 * col2 )
----

query II rowsort
SELECT - + 88 AS col1, + 3 FROM tab0 AS cor0
----
-88
3
-88
3
-88
3

query I rowsort
SELECT ALL - 7 * - 88 * - col1 AS col1 FROM tab2 AS cor0
----
-31416
-41272
-47432

query I rowsort
SELECT DISTINCT + col2 * col2 * + 49 FROM tab2 AS cor0
----
164836
25921
78400

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 <> col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2450
SELECT MAX( ALL + col0 ) + - 51 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-2450
SELECT MAX ( ALL + col0 ) + - 51 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
108

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 56 * + - col2 <= + 26 + - + col1 * - - col2
----

query I rowsort
SELECT DISTINCT + - col2 + + col1 + + + col2 - - 13 * - col2 AS col2 FROM tab1 AS cor0
----
-1234
-762
-837

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2454
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * 77 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2454
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * 77 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 59 + + col1 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + - col0 * - col1 IN ( - - 55 * 13 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT ALL - 21 DIV + col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL - 21 / + col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, + col2 AS col1 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT - 82 FROM tab2 AS cor0 WHERE NOT - 37 + - col1 = ( - col0 )
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL MIN( ALL - + col1 ) col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2461
SELECT ALL MIN ( ALL - + col1 ) col1 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT ALL + col0 * 94, + 12 * + col1 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL - - 18 AS col2 FROM tab2 cor0 WHERE - 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2464
SELECT SUM( ALL - col2 ) AS col1, COUNT( * ) AS col2 FROM tab0 cor0
----
-156
3

skipif mysql # not compatible
query II rowsort label-2464
SELECT SUM ( ALL - col2 ) AS col1, COUNT ( * ) AS col2 FROM tab0 cor0
----
-156
3

query I rowsort
SELECT - + 74 * - col0 + + ( + - 65 ) * - col0 AS col2 FROM tab2 cor0
----
10425
6394
8896

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2466
SELECT DISTINCT + CAST( 3 AS SIGNED ) AS col2, col2 + - - col0 FROM tab0 AS cor0
----
3
196
3
62
3
97

skipif mysql # not compatible
query II rowsort label-2466
SELECT DISTINCT + CAST ( 3 AS INTEGER ) AS col2, col2 + - - col0 FROM tab0 AS cor0
----
3
196
3
62
3
97

query I rowsort
SELECT - 43 * + ( - col1 ) FROM tab1 AS cor0
----
2021
215
602

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 > col2
----

query I rowsort
SELECT ALL ( - col2 ) AS col2 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT + + CAST( NULL AS SIGNED ) * - + ( - 8 ) - - 51 - 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT + + CAST ( NULL AS INTEGER ) * - + ( - 8 ) - - 51 - 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2472
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 * CAST( NULL AS SIGNED ), + col0, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2472
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 * CAST ( NULL AS INTEGER ), + col0, CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - col2 ) BETWEEN - col1 AND + col1
----
97
1
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( 19 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 37, 77 AS col2 FROM tab2
----
37
77

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

skipif mysql # not compatible
query I rowsort label-2476
SELECT - COUNT ( 90 ) AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT + CAST( NULL AS SIGNED ) + + 28 * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT + CAST ( NULL AS INTEGER ) + + 28 * + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 28 * col1 + - col0 FROM tab2 AS cor0
----
-1474
-1951
-2220

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT + col1 DIV - col1 + 19 FROM tab0 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-2479
SELECT + col1 / - col1 + 19 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + 42 * - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL MIN( ALL + col2 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL MIN ( ALL + col2 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
30

query I rowsort
SELECT ALL + - col1 + col2 + + col1 + + 34 FROM tab1 AS cor0
----
102
130
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT ALL COUNT( * ) * 68 * - MAX( - col1 ) FROM tab2 AS cor0
----
10404

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL COUNT ( * ) * 68 * - MAX ( - col1 ) FROM tab2 AS cor0
----
10404

query I rowsort
SELECT DISTINCT - 27 * - col1 * + 21 * + col1 * - - ( col2 ) FROM tab1 AS cor0
----
10668672
836325
85170204

query I rowsort
SELECT DISTINCT 49 * - col1 AS col2 FROM tab1
----
-2303
-245
-686

query I rowsort
SELECT 56 * - col1 AS col2 FROM tab1
----
-2632
-280
-784

query I rowsort
SELECT DISTINCT + 71 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2489
SELECT DISTINCT + col0 AS col1, ( col0 ) + - CAST( - + col1 AS SIGNED ) FROM tab2
----
46
97
64
141
75
142

skipif mysql # not compatible
query II rowsort label-2489
SELECT DISTINCT + col0 AS col1, ( col0 ) + - CAST ( - + col1 AS INTEGER ) FROM tab2
----
46
97
64
141
75
142

query I rowsort
SELECT + 17 + - 50 * - - 28 AS col2 FROM tab1 AS cor0 WHERE + ( - - 78 ) * 60 = col2 / 65 * - 32 + col1
----

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

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

query II rowsort
SELECT + ( - + col1 ) + + col0 * + col1 AS col1, 36 AS col1 FROM tab2 AS cor0
----
2295
36
4851
36
4958
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2493
SELECT - 3 DIV - col1 + 10 FROM tab2 AS cor0 WHERE 30 + 16 IS NOT NULL
----
10
10
10

skipif mysql # not compatible
query I rowsort label-2493
SELECT - 3 / - col1 + 10 FROM tab2 AS cor0 WHERE 30 + 16 IS NOT NULL
----
10
10
10

query I rowsort
SELECT + - col2 + + ( + - 5 ) AS col0 FROM tab1 cor0
----
-101
-64
-73

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( - col1 + + 62 + - col2 + - - 72, + 17 - - col2 * 11 / - col2 * + 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT ALL - + COUNT( * ) + + - 56 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL - + COUNT ( * ) + + - 56 FROM tab0 AS cor0
----
-59

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

query I rowsort
SELECT DISTINCT - col1 - + col2 + - 11 FROM tab0
----
-111
-139
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT 25 + + 30 + + COUNT( * ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-2500
SELECT 25 + + 30 + + COUNT ( * ) FROM tab1
----
58

query II rowsort
SELECT ALL col1 - + + 94, col1 - + 15 AS col0 FROM tab2
----
-17
62
-27
52
-43
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2502
SELECT + 81 * - 13 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE ( NOT - col0 = + + col2 )
----
-1053
NULL
-1053
NULL
-1053
NULL

skipif mysql # not compatible
query II rowsort label-2502
SELECT + 81 * - 13 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE ( NOT - col0 = + + col2 )
----
-1053
NULL
-1053
NULL
-1053
NULL

query I rowsort
SELECT ALL + ( - ( - 97 ) ) AS col0 FROM tab0
----
97
97
97

query I rowsort
SELECT 73 * - + col2 AS col0 FROM tab2
----
-1679
-2920
-4234

query I rowsort
SELECT ALL - + 79 AS col1 FROM tab2 WHERE NOT col2 NOT BETWEEN - + col2 AND - - col2
----
-79
-79
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT ALL - - col2 * + col1 DIV + + col1 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - - col2 * + col1 / + + col1 AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2507
SELECT - MAX( DISTINCT + col1 ) AS col2, + MAX( + - 3 ) FROM tab1 AS cor0
----
-47
-3

skipif mysql # not compatible
query II rowsort label-2507
SELECT - MAX ( DISTINCT + col1 ) AS col2, + MAX ( + - 3 ) FROM tab1 AS cor0
----
-47
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2508
SELECT - COUNT( * ) AS col1, 69 AS col2 FROM tab0
----
-3
69

skipif mysql # not compatible
query II rowsort label-2508
SELECT - COUNT ( * ) AS col1, 69 AS col2 FROM tab0
----
-3
69

query I rowsort
SELECT ALL 74 * + - 53 AS col2 FROM tab1
----
-3922
-3922
-3922

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2511
SELECT ALL CAST( NULL AS SIGNED ) * - MIN( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL CAST ( NULL AS INTEGER ) * - MIN ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT + 85 BETWEEN col2 AND NULL ) )
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col2 col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-2514
SELECT - + col2 DIV + 51 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT - + col2 / + 51 AS col1 FROM tab2 AS cor0
----
-1
0
0

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

query II rowsort
SELECT ALL 17, col0 FROM tab0 AS cor0
----
17
15
17
87
17
97

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

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

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

query I rowsort
SELECT - col1 * + + col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + - col1 + - 51 col0 FROM tab2 AS cor0
----
-1224
-3131
-3937

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + col2 col0, col0 - col0 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
116
0
46
0
80
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 31 BETWEEN - 94 AND - col2 - ( + 80 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + + - col2 AS col1 FROM tab1 WHERE + col2 >= NULL
----

query I rowsort
SELECT DISTINCT + - 72 + + - col0 AS col1 FROM tab0 AS cor0
----
-159
-169
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - 43 - + col0 col2 FROM tab0 AS cor0
----
-139
-141
-151

query I rowsort
SELECT ALL - 62 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT col2 DIV + col1 + + 14 * + - col2 FROM tab2
----
-322
-560
-812

skipif mysql # not compatible
query I rowsort label-2528
SELECT col2 / + col1 + + 14 * + - col2 FROM tab2
----
-322
-560
-812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2529
SELECT ALL + - COUNT( DISTINCT + col1 ) AS col2 FROM tab2 WHERE NOT ( - CAST( 35 AS SIGNED ) > col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL + - COUNT ( DISTINCT + col1 ) AS col2 FROM tab2 WHERE NOT ( - CAST ( 35 AS INTEGER ) > col2 )
----
-3

query I rowsort
SELECT col1 * - + 83 * col2 FROM tab0 AS cor0
----
-17430
-315981
-8217

query I rowsort
SELECT ( + - 59 ) FROM tab2 AS cor0
----
-59
-59
-59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL - 51 * - + COUNT( * ) - 1 AS col0 FROM tab0
----
152

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL - 51 * - + COUNT ( * ) - 1 AS col0 FROM tab0
----
152

query I rowsort
SELECT DISTINCT col1 - + 81 AS col0 FROM tab0
----
-60
-80
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2535
SELECT ALL - 97 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL - 97 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col1 * - + col1 AS col2 FROM tab0
----
-38367
-97
-98415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2537
SELECT ALL - COUNT( + CAST( + col0 AS SIGNED ) ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2537
SELECT ALL - COUNT ( + CAST ( + col0 AS INTEGER ) ) col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( 59 + + - col2, + col0, 91, + col1 * - col1 - col2 )
----

query I rowsort
SELECT 42 * + - 94 AS col2 FROM tab0
----
-3948
-3948
-3948

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2540
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + CAST( NULL AS DECIMAL ), - 66 * col1 + - col0 + + 49 + 93 )
----

skipif mysql # not compatible
query III rowsort label-2540
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + CAST ( NULL AS REAL ), - 66 * col1 + - col0 + + 49 + 93 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2541
SELECT * FROM tab0 AS cor0 WHERE NOT + 31 - + 99 NOT IN ( col0 * + - CAST( NULL AS SIGNED ) * - CAST( - - 76 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2541
SELECT * FROM tab0 AS cor0 WHERE NOT + 31 - + 99 NOT IN ( col0 * + - CAST ( NULL AS INTEGER ) * - CAST ( - - 76 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT - ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT col2 + - + col0 NOT BETWEEN 16 + - - col2 + + col2 AND - 70
----
0

skipif mysql # not compatible
query I rowsort label-2542
SELECT - ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT col2 + - + col0 NOT BETWEEN 16 + - - col2 + + col2 AND - 70
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 90 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT ALL COUNT( ALL - - col1 ) * - 41 AS col0 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL COUNT ( ALL - - col1 ) * - 41 AS col0 FROM tab0
----
-123

query I rowsort
SELECT DISTINCT + + 14 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
1195
1321
728

query I rowsort
SELECT ALL - 95 + - col1 * + - col1 * - col0 FROM tab0 AS cor0
----
-192
-38462
-98510

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

skipif mysql # not compatible
query I rowsort label-2547
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

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

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

query I rowsort
SELECT ALL + + 77 + - 20 AS col2 FROM tab0 AS cor0 WHERE NOT - 2 IS NULL
----
57
57
57

query I rowsort
SELECT ALL + + 99 AS col1 FROM tab1 cor0
----
99
99
99

query II rowsort
SELECT DISTINCT col0, - col0 * - 10 FROM tab0
----
15
150
87
870
97
970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 + + 1 + - col1 col2 FROM tab0
----
12
72
92

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2554
SELECT + ( + COUNT( * ) ) + COUNT( * ) * + - COUNT( * ), - 3 col2 FROM tab1
----
-6
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2554
SELECT + ( + COUNT ( * ) ) + COUNT ( * ) * + - COUNT ( * ), - 3 col2 FROM tab1
----
-6
-3

query I rowsort
SELECT 41 + - + col2 FROM tab1
----
-18
-27
-55

query II rowsort
SELECT - col1 AS col2, col0 AS col1 FROM tab2 cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2557
SELECT - - CAST( SUM( DISTINCT + + col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2557
SELECT - - CAST ( SUM ( DISTINCT + + col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2558
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2559
SELECT DISTINCT 56 + - 72, + MAX( ALL col1 ) AS col2 FROM tab1
----
-16
47

skipif mysql # not compatible
query II rowsort label-2559
SELECT DISTINCT 56 + - 72, + MAX ( ALL col1 ) AS col2 FROM tab1
----
-16
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT ALL COUNT( * ) + 84 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL COUNT ( * ) + 84 FROM tab0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT - CAST( NULL AS SIGNED ) + - 42 * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT - CAST ( NULL AS INTEGER ) + - 42 * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col0 + - col1 AS col2, + 27 * + col0 AS col1 FROM tab1 AS cor0
----
-138
2457
-65
1377
-90
2295

query I rowsort
SELECT 28 + + col0 + - ( + ( + col2 ) ) * 64 * - - col2 FROM tab1 AS cor0
----
-222671
-295817
-589745

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

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL SUM ( ALL - + col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT DISTINCT - + MAX( - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT - + MAX ( - col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2566
SELECT DISTINCT + + ( + - ( CAST( + + col1 AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT + + ( + - ( CAST ( + + col1 AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT MAX( - 78 ) col1 FROM tab1
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2567
SELECT MAX ( - 78 ) col1 FROM tab1
----
-78

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

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL ( + ( - + COUNT ( * ) ) ) * + - 69 FROM tab0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT DISTINCT + MIN( + col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT + MIN ( + col1 ) AS col0 FROM tab1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT + MIN( ALL - 41 ) + + + CAST( 28 AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( col2 ) BETWEEN CAST( NULL AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2570
SELECT + MIN ( ALL - 41 ) + + + CAST ( 28 AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( col2 ) BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----
NULL

query II rowsort
SELECT DISTINCT + - col2 AS col2, - col0 AS col2 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT COUNT( * ) DIV MIN( DISTINCT - 52 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2572
SELECT COUNT ( * ) / MIN ( DISTINCT - 52 ) AS col2 FROM tab2
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 76 + + 30 col0 FROM tab2 WHERE NOT - 2 = - col0
----
106
106
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2575
SELECT ALL - ( - MAX( - col2 ) ) DIV - COUNT( * ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2575
SELECT ALL - ( - MAX ( - col2 ) ) / - COUNT ( * ) col0 FROM tab0
----
3

query I rowsort
SELECT 8 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab2 AS cor1 ON NULL BETWEEN - ( + + 34 ) AND - 8, tab2 AS cor2
----

query I rowsort
SELECT ALL + 27 + - - col2 FROM tab2 AS cor0
----
50
67
85

query I rowsort
SELECT 72 + + col2 AS col2 FROM tab1 AS cor0
----
131
140
168

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 13 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT DISTINCT + - SUM( col0 ) col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2581
SELECT DISTINCT + - SUM ( col0 ) col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT 84 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col2 + 5 col2 FROM tab2 AS cor0
----
1063
2565
4355

query I rowsort
SELECT DISTINCT col0 * + col1 * - 88 FROM tab2 AS cor0
----
-206448
-433664
-442200

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

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

query I rowsort
SELECT - col0 * + + 65 AS col2 FROM tab2 AS cor0
----
-2990
-4160
-4875

onlyif mysql # DIV for integer division: 
query I rowsort label-2587
SELECT ALL col2 DIV 14 FROM tab0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL col2 / 14 FROM tab0
----
0
3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT COUNT( * ) * + - ( 37 ) AS col1 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-2588
SELECT COUNT ( * ) * + - ( 37 ) AS col1 FROM tab1
----
-111

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 19 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2590
SELECT 61 * + CAST( - SUM( - - col1 ) AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
-11895

skipif mysql # not compatible
query I rowsort label-2590
SELECT 61 * + CAST ( - SUM ( - - col1 ) AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
-11895

onlyif mysql # DIV for integer division: 
query I rowsort label-2591
SELECT ALL - col2 + + col1 DIV + 22 AS col2 FROM tab0
----
-10
-44
-99

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL - col2 + + col1 / + 22 AS col2 FROM tab0
----
-10
-44
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2592
SELECT - MIN( DISTINCT - col1 ) AS col1, COUNT( * ) col2 FROM tab2
----
77
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2592
SELECT - MIN ( DISTINCT - col1 ) AS col1, COUNT ( * ) col2 FROM tab2
----
77
3

query I rowsort
SELECT ALL + ( col1 ) FROM tab2 cor0 WHERE + 57 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2594
SELECT ALL * FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) > - - col1 / + - 17 * col2
----

skipif mysql # not compatible
query III rowsort label-2594
SELECT ALL * FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) > - - col1 / + - 17 * col2
----

query I rowsort
SELECT - col0 + + ( - - col1 ) * + col0 AS col0 FROM tab2 AS cor0
----
2300
4864
4950

query I rowsort
SELECT - col1 + - + ( + col2 ) FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL < col1 + 40
----
0

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL < col1 + 40
----
0

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

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + 86 + SUM ( ALL CAST ( NULL AS INTEGER ) ) + - 62 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 97 > - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT DISTINCT - MAX( + + 66 ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT - MAX ( + + 66 ) FROM tab0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2601
SELECT ALL CAST( NULL AS SIGNED ) + + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL CAST ( NULL AS INTEGER ) + + + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + 86 * + ( + + col2 ) * - - 70 - + - col2 FROM tab0 AS cor0
----
283002
596176
60297

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2605
SELECT ALL - + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL - + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - col1 * + - 28 AS col0 FROM tab2
----
1428
1876
2156

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

query I rowsort
SELECT DISTINCT - col1 * - 72 AS col2 FROM tab1
----
1008
3384
360

query I rowsort
SELECT - 86 * + + col2 FROM tab0
----
-4042
-8514
-860

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 65 AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2612
SELECT ALL - + CAST( - + col2 AS SIGNED ) FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - + CAST ( - + col2 AS INTEGER ) FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT DISTINCT + col0 * CAST( ( col1 ) AS SIGNED ) FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT + col0 * CAST ( ( col1 ) AS INTEGER ) FROM tab0
----
1215
1827
97

query I rowsort
SELECT - ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - - ( - col1 ) + - col2 FROM tab2 cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 + - + 37 >= NULL
----

query I rowsort
SELECT ALL 84 + - 92 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2618
SELECT ALL - COUNT( * ) + + MAX( - col0 ) AS col2, - SUM( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-18
156

skipif mysql # not compatible
query II rowsort label-2618
SELECT ALL - COUNT ( * ) + + MAX ( - col0 ) AS col2, - SUM ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-18
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT COUNT( * ) + 29 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-2619
SELECT COUNT ( * ) + 29 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
35

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2621
SELECT 92 + + col0 - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT 92 + + col0 - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 22 ) * + + ( + - col0 ) + - col0 + + + 25 * - col0 * + col1 FROM tab1
----
-109018
-12580
-19023

query I rowsort
SELECT - col2 + - 39 AS col0 FROM tab2
----
-62
-79
-97

query I rowsort
SELECT - 89 + - - col2 FROM tab1
----
-21
-30
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2625
SELECT ALL col2 DIV + + col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL col2 / + + col0 FROM tab0
----
0
1
3

query I rowsort
SELECT + ( + ( + - ( - ( col1 ) ) ) ) AS col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT col2 + + 23 + 46 FROM tab2 AS cor0
----
109
127
92

query II rowsort
SELECT - - 33 - + col2 * col1 + + col2 AS col0, col1 FROM tab1 AS cor0
----
-1215
14
-203
5
-3095
47

query I rowsort
SELECT - + 86 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT ALL + 40 * + 1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query II rowsort
SELECT ALL 19 / - + col0, + 72 + 44 * - col2 * - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - 30 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-30
-30
-30

query II rowsort
SELECT DISTINCT + + col2 * - 97 * 73, + ( + col0 ) * + col0 + 46 AS col2 FROM tab1 AS cor0
----
-417779
7271
-481508
8327
-679776
2647

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

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT - - ( MIN ( + + col1 ) ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 + + 95 ) <= col1
----

query I rowsort
SELECT ( - + 20 ) AS col1 FROM tab0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT + MIN( col1 ) col0 FROM tab2
----
51

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2638
SELECT - 44 col1, COUNT( * ) + MIN( ALL + + 0 ) FROM tab0
----
-44
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2638
SELECT - 44 col1, COUNT ( * ) + MIN ( ALL + + 0 ) FROM tab0
----
-44
3

query II rowsort
SELECT ALL col2, col1 + + col1 AS col1 FROM tab2
----
23
102
40
154
58
134

query II rowsort
SELECT ALL - col1, col0 * - - col2 AS col0 FROM tab0
----
-1
9603
-21
870
-81
705

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ALL MIN( - col2 ) FROM tab1 AS cor0 WHERE NOT ( + 75 ) IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL MIN ( - col2 ) FROM tab1 AS cor0 WHERE NOT ( + 75 ) IS NULL
----
-96

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

query I rowsort
SELECT - - 90 FROM tab0 WHERE NOT col1 * col2 BETWEEN col1 + + + col2 AND + + col1
----
90
90
90

query I rowsort
SELECT DISTINCT - col2 + - 92 + - ( col0 ) AS col1 FROM tab2
----
-161
-196
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL - COUNT( * ) + + - MAX( col1 ) AS col1 FROM tab1 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL - COUNT ( * ) + + - MAX ( col1 ) AS col1 FROM tab1 cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT + 33 + COUNT( * ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2646
SELECT + 33 + COUNT ( * ) FROM tab0 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT MIN( ALL - + 88 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT MIN ( ALL - + 88 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col2 + + col2 + + col0 FROM tab0 AS cor0
----
107
109
295

query II rowsort
SELECT DISTINCT + col1 * col1 - - 46 * 85 AS col2, col0 * - 78 * + col2 FROM tab2 AS cor0
----
6511
-82524
8399
-339300
9839
-199680

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL 56 + SUM( ALL + 14 ) + + 72 col0 FROM tab2 AS cor0
----
170

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2650
SELECT ALL 56 + SUM ( ALL + 14 ) + + 72 col0 FROM tab2 AS cor0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT DISTINCT + MAX( + 39 ) AS col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT + MAX ( + 39 ) AS col2 FROM tab0 AS cor0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2652
SELECT DISTINCT 71 DIV - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT 71 / - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-2653
SELECT DISTINCT - 13, + col2 DIV + - 75 col1 FROM tab2
----
-13
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2653
SELECT DISTINCT - 13, + col2 / + - 75 col1 FROM tab2
----
-13
0

query I rowsort
SELECT + + col2 * col1 + + - col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
1248
236
3128

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND - col0
----

query I rowsort
SELECT - 92 * + col1 AS col2 FROM tab0
----
-1932
-7452
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT - MIN( - - 18 ) * COUNT( * ) AS col1 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-2658
SELECT - MIN ( - - 18 ) * COUNT ( * ) AS col1 FROM tab0
----
-54

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2660
SELECT - col2 DIV 29 + - 21 FROM tab0 AS cor0
----
-21
-22
-24

skipif mysql # not compatible
query I rowsort label-2660
SELECT - col2 / 29 + - 21 FROM tab0 AS cor0
----
-21
-22
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col0 ) col1 FROM tab2 AS cor0
----
46
64
75

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2665
SELECT ALL + MIN ( - - col2 ) col0 FROM tab1
----
59

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE - col2 <> - 15
----
51
67
77

query I rowsort
SELECT 93 + + - 67 AS col1 FROM tab0
----
26
26
26

query I rowsort
SELECT - 99 * - col0 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT 15 / + - col0 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + + col0 + - - 94 FROM tab1 AS cor0
----
131
138
174

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT - MIN( ALL col0 ) AS col2 FROM tab1 cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT - MIN ( ALL col0 ) AS col2 FROM tab1 cor0 WHERE col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT ALL + MAX( ALL 11 ) AS col0 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL + MAX ( ALL 11 ) AS col0 FROM tab2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2672
SELECT 62 * ( MIN( - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT 62 * ( MIN ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - 57 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL col0 + - 48 + + col0 AS col2 FROM tab2 AS cor0
----
102
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL ( - SUM( DISTINCT - 72 ) ) + - + 18 FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL ( - SUM ( DISTINCT - 72 ) ) + - + 18 FROM tab2 cor0
----
54

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2677
SELECT ALL - CAST( + AVG ( ALL 1 ) AS SIGNED ) - + ( + MIN( ALL col2 ) ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL - CAST ( + AVG ( ALL 1 ) AS INTEGER ) - + ( + MIN ( ALL col2 ) ) FROM tab0 AS cor0
----
-11

query I rowsort
SELECT + - col1 - - col2 * - 43 + col0 * col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + + 12 * - col0 + - - 7 AS col1 FROM tab2 AS cor0 WHERE - 33 + + col1 * + - 54 + + 55 * + + 11 <> + + col0
----
-545
-761
-893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - 65 col2 FROM tab2 AS cor0
----
-14
12
2

query I rowsort
SELECT - 70 + - col2 FROM tab2
----
-110
-128
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL - 82 * - COUNT( * ) FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL - 82 * - COUNT ( * ) FROM tab2
----
246

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

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

query I rowsort
SELECT DISTINCT + 49 * col2 FROM tab1
----
2891
3332
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL MAX( ALL + - 83 ) * SUM( ALL + + col0 ) AS col2 FROM tab0 cor0
----
-16517

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL MAX ( ALL + - 83 ) * SUM ( ALL + + col0 ) AS col2 FROM tab0 cor0
----
-16517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 88 col1 FROM tab2
----
4048
5632
6600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 12 * col1 + - col2 col0, 25 FROM tab2 AS cor0
----
-635
25
-862
25
-964
25

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 80 )
----

query I rowsort
SELECT - - col2 * - 13 - + col1 * col0 AS col0 FROM tab1 AS cor0
----
-1192
-1962
-5161

query I rowsort
SELECT + 71 AS col2 FROM tab2 cor0
----
71
71
71

query II rowsort
SELECT ALL + - col2 AS col2, - ( col1 ) AS col0 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

query II rowsort
SELECT - + col2 AS col1, - 31 FROM tab0 AS cor0
----
-10
-31
-47
-31
-99
-31

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
15
87
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col1 FROM tab0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT COUNT( * ) FROM tab0 WHERE NOT col2 < + 2
----
3

skipif mysql # not compatible
query I rowsort label-2696
SELECT COUNT ( * ) FROM tab0 WHERE NOT col2 < + 2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2697
SELECT - 57 AS col2 FROM tab1 WHERE NOT - + CAST( - + col1 AS SIGNED ) NOT BETWEEN + ( 31 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2697
SELECT - 57 AS col2 FROM tab1 WHERE NOT - + CAST ( - + col1 AS INTEGER ) NOT BETWEEN + ( 31 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2698
SELECT ALL + + 60 + + + 69 * 22 DIV + 96 FROM tab1 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL + + 60 + + + 69 * 22 / + 96 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT ALL - - col1 + 14 AS col0 FROM tab2 AS cor0
----
65
81
91

query III rowsort
SELECT * FROM tab1 cor0 WHERE - ( - - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 19 IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 = NULL
----

query I rowsort
SELECT DISTINCT + col1 * col0 * + 13 AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2705
SELECT - ( + CAST( NULL AS SIGNED ) ), ( + ( + + 36 ) ) - - 55 AS col0 FROM tab2 AS cor0
----
NULL
91
NULL
91
NULL
91

skipif mysql # not compatible
query II rowsort label-2705
SELECT - ( + CAST ( NULL AS INTEGER ) ), ( + ( + + 36 ) ) - - 55 AS col0 FROM tab2 AS cor0
----
NULL
91
NULL
91
NULL
91

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2706
SELECT DISTINCT + COUNT ( * ) + + 33 + - - COUNT ( * ) col1 FROM tab1 AS cor0
----
39

query II rowsort
SELECT ALL 60 - col2, 95 AS col0 FROM tab0 AS cor0
----
-39
95
13
95
50
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT + col0 / CAST( NULL AS SIGNED ) - - 81 * + 95 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT + col0 / CAST ( NULL AS INTEGER ) - - 81 * + 95 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2709
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) / 10 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) / 10 AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2710
SELECT 28 - - MAX( DISTINCT + ( 43 ) ) DIV + COUNT( * ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-2710
SELECT 28 - - MAX ( DISTINCT + ( 43 ) ) / + COUNT ( * ) FROM tab0
----
42

query I rowsort
SELECT DISTINCT - 87 + col2 / + 70 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT DISTINCT - col0 DIV + - col1 - + col2 AS col0 FROM tab1
----
-42
-67
-93

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT - col0 / + - col1 - + col2 AS col0 FROM tab1
----
-42
-67
-93

query I rowsort
SELECT 46 + + col0 - + + 12 AS col1 FROM tab0
----
121
131
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ( COUNT( * ) ) + + MIN( + col1 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-2714
SELECT ( COUNT ( * ) ) + + MIN ( + col1 ) FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ALL - 90 * ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL - 90 * ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT DISTINCT - + COUNT( * ) * - COUNT( * ) + - - CAST( 5 AS SIGNED ) FROM tab0 cor0 WHERE NOT col0 <= + col1
----
9

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( * ) + - - CAST ( 5 AS INTEGER ) FROM tab0 cor0 WHERE NOT col0 <= + col1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 * - + col1 col2 FROM tab1 AS cor0
----
-2021
-215
-602

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

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

query I rowsort
SELECT + ( + col1 ) * - 0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2720
SELECT DISTINCT 99 DIV - + 4 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT 99 / - + 4 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT + - col0 * - + 29 FROM tab1 cor0
----
1479
2465
2639

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT ALL - COUNT( ALL + - 2 ) + - - 71 AS col0 FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL - COUNT ( ALL + - 2 ) + - - 71 AS col0 FROM tab1 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL - + MAX( DISTINCT + + 72 ) FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - + MAX ( DISTINCT + + 72 ) FROM tab0 AS cor0
----
-72

query I rowsort
SELECT col2 + + + 21 FROM tab2
----
44
61
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ALL + ( + MAX( + col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL + ( + MAX ( + col0 ) ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT + COUNT( * ) + - + 26 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2726
SELECT + COUNT ( * ) + - + 26 FROM tab2
----
-23

query I rowsort
SELECT col0 + - ( + col2 ) FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT ALL + col1 * + col2 DIV col2 * col0 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL + col1 * + col2 / col2 * col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - 20 * - 37 * col1 AS col2 FROM tab2
----
37740
49580
56980

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT - COUNT( DISTINCT 26 ) col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2730
SELECT - COUNT ( DISTINCT 26 ) col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 82 * + - col1 + + - 70 - - - 15 + - + col1 AS col2 FROM tab0 AS cor0
----
-4
1616
6476

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

query I rowsort
SELECT + - col2 * - - col0 * - col2 AS col1 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT + 37 - + col0 + + - ( - 39 ) + 53 * - 8 - - 48 * - col2 * + + ( - 57 ) AS col0 FROM tab0
----
128229
26925
270419

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT 30 * COUNT( * ) + + ( SUM( - ( col2 ) ) ) AS col1 FROM tab1
----
-133

skipif mysql # not compatible
query I rowsort label-2735
SELECT 30 * COUNT ( * ) + + ( SUM ( - ( col2 ) ) ) AS col1 FROM tab1
----
-133

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

query I rowsort
SELECT ALL col0 + 40 FROM tab0 AS cor0
----
127
137
55

query I rowsort
SELECT DISTINCT col1 * - col2 / - - col2 FROM tab1 AS cor0 WHERE NULL IN ( + 27 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 75 / + 93 * + + col1 * - 9 * - col0 - col1 + - 94 >= NULL
----

query I rowsort
SELECT ALL - + 57 - col0 AS col1 FROM tab1 AS cor0
----
-108
-142
-148

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 <> - ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 55 * col2 * - col2 AS col0 FROM tab2
----
-185020
-29095
-88000

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 AS cor0 WHERE NOT + col1 = + col2 * + + col2
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col2 NOT BETWEEN - col2 AND + - col2 / - - col0
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2748
SELECT - 22 - + col2 + + ( - col1 ), - CAST( NULL AS SIGNED ) / col2 col1 FROM tab1 cor0 WHERE NOT NULL > + col2 + - col0 + - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2748
SELECT - 22 - + col2 + + ( - col1 ), - CAST ( NULL AS INTEGER ) / col2 col1 FROM tab1 cor0 WHERE NOT NULL > + col2 + - col0 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2749
SELECT DISTINCT + col0 * ( + CAST( ( 95 ) AS SIGNED ) ) col1 FROM tab0
----
1425
8265
9215

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2749
SELECT DISTINCT + col0 * ( + CAST ( ( 95 ) AS INTEGER ) ) col1 FROM tab0
----
1425
8265
9215

query I rowsort
SELECT DISTINCT + col0 * + 78 AS col0 FROM tab0
----
1170
6786
7566

query I rowsort
SELECT DISTINCT + 4 FROM tab2 cor0
----
4

query I rowsort
SELECT ALL + - col0 * 80 AS col1 FROM tab1 AS cor0
----
-4080
-6800
-7280

query I rowsort
SELECT - col0 + + - ( col2 ) FROM tab2 AS cor0
----
-104
-133
-69

query II rowsort
SELECT + col2, 11 * - col0 FROM tab2 AS cor0
----
23
-506
40
-704
58
-825

query I rowsort
SELECT + 57 * - + 6 AS col2 FROM tab2 cor0
----
-342
-342
-342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT ALL - 80 * - col2 + + CAST( + + ( + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
4779
5508
7776

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - 80 * - col2 + + CAST ( + + ( + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
4779
5508
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col2 FROM tab1 WHERE - + col2 + + 74 BETWEEN + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2758
SELECT - col2 DIV 30 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2758
SELECT - col2 / 30 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT - col0 * - + col0 + col2 FROM tab2
----
2139
4136
5683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT DISTINCT - col2 * - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 WHERE + 36 IS NOT NULL
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT - col2 * - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 WHERE + 36 IS NOT NULL
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT + col1 * - - CAST( + 0 AS SIGNED ) + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2761
SELECT + col1 * - - CAST ( + 0 AS INTEGER ) + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT - 93 + + - COUNT( * ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2762
SELECT - 93 + + - COUNT ( * ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2763
SELECT ALL + - CAST( ( col0 ) AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + - CAST ( ( col0 ) AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + 68 * 33 + + + 41 col0, col0 FROM tab2 cor0
----
2336
46
2352
75
2362
64

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2765
SELECT ALL + MAX ( - col2 ) col0 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT DISTINCT - - MIN( DISTINCT - 78 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT - - MIN ( DISTINCT - 78 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT DISTINCT - + COUNT( * ) col2 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-2767
SELECT DISTINCT - + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 / - 70 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 11 ) * + - col0 AS col1 FROM tab2
----
-506
-704
-825

query I rowsort
SELECT DISTINCT 66 + + 54 AS col2 FROM tab2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT col2 DIV - 45 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2771
SELECT col2 / - 45 FROM tab2 AS cor0
----
-1
0
0

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

query I rowsort
SELECT + col0 * + ( + - col1 ) + + + col2 * + 18 - + 19 FROM tab1 AS cor0
----
-3072
618
995

query I rowsort
SELECT - col2 - 15 FROM tab0 cor0
----
-114
-25
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2775
SELECT DISTINCT MAX( - + CAST( - 6 AS DECIMAL ) ) + - 50 * - 87 AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT MAX ( - + CAST ( - 6 AS REAL ) ) + - 50 * - 87 AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 33 BETWEEN - 47 + col0 AND ( - 74 + - 84 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT col2 * - col1 AS col1, 8 FROM tab2
----
-1173
8
-3080
8
-3886
8

query I rowsort
SELECT + 6 * 58 * + - 30 AS col0 FROM tab2
----
-10440
-10440
-10440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2780
SELECT - CAST( - SUM( DISTINCT col2 ) AS SIGNED ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2780
SELECT - CAST ( - SUM ( DISTINCT col2 ) AS INTEGER ) FROM tab1
----
223

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL - MAX( ALL + + 67 ) FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL - MAX ( ALL + + 67 ) FROM tab1 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 + 45
----
0

skipif mysql # not compatible
query I rowsort label-2783
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 + 45
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2784
SELECT DISTINCT - - ( + 0 ) AS col0, SUM( - + col1 ) FROM tab0 cor0
----
0
-103

skipif mysql # not compatible
query II rowsort label-2784
SELECT DISTINCT - - ( + 0 ) AS col0, SUM ( - + col1 ) FROM tab0 cor0
----
0
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT + - SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2785
SELECT + - SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - 30 * + + 77 + 6 FROM tab2 cor0
----
-2304
-2304
-2304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - + col1 + + 42 col0 FROM tab1 AS cor0 WHERE - 94 * - - col2 / + col2 * + 80 > NULL
----

query I rowsort
SELECT DISTINCT - 32 + + - col1 FROM tab1 AS cor0
----
-37
-46
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT - 93 * + MAX( ALL - 59 ) AS col0 FROM tab2 cor0
----
5487

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - 93 * + MAX ( ALL - 59 ) AS col0 FROM tab2 cor0
----
5487

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT ALL col1 DIV - - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL col1 / - - col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT DISTINCT + SUM( + col1 ) AS col2 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT + SUM ( + col1 ) AS col2 FROM tab0 cor0
----
103

query I rowsort
SELECT ( - col1 ) + - 11 * col1 - - col0 FROM tab1 cor0
----
-117
-473
25

query I rowsort
SELECT col1 * - 67 + col2 AS col0 FROM tab2
----
-3394
-4431
-5119

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

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

query I rowsort
SELECT DISTINCT - 87 + - col0 FROM tab1
----
-138
-172
-178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT ALL - col1 + - - 71 * + + CAST( - + 1 AS SIGNED ) FROM tab0
----
-152
-72
-92

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL - col1 + - - 71 * + + CAST ( - + 1 AS INTEGER ) FROM tab0
----
-152
-72
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 + 15 col0 FROM tab1
----
-78
-78
-78

query II rowsort
SELECT DISTINCT - col2 AS col2, - col2 AS col2 FROM tab1
----
-59
-59
-68
-68
-96
-96

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

query I rowsort
SELECT + ( ( - - 2 ) ) + + 73 * col1 AS col2 FROM tab2
----
3725
4893
5623

query II rowsort
SELECT + ( ( - col0 ) ) AS col2, + 29 AS col1 FROM tab0 AS cor0
----
-15
29
-87
29
-97
29

query I rowsort
SELECT ALL - col0 + + col1 + 53 * + 64 - - + 92 FROM tab2 cor0
----
3476
3489
3497

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2805
SELECT + 75 DIV + MIN( + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2805
SELECT + 75 / + MIN ( + col2 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT DISTINCT + COUNT( * ) - - MIN( DISTINCT col1 + col0 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT + COUNT ( * ) - - MIN ( DISTINCT col1 + col0 ) FROM tab1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2807
SELECT - 65 DIV col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2807
SELECT - 65 / col0 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2808
SELECT DISTINCT + CAST( SUM( CAST( ( 87 ) AS SIGNED ) ) AS SIGNED ) FROM tab0 WHERE + col0 * col1 + 68 IS NOT NULL
----
261

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT + CAST ( SUM ( CAST ( ( 87 ) AS INTEGER ) ) AS INTEGER ) FROM tab0 WHERE + col0 * col1 + 68 IS NOT NULL
----
261

query I rowsort
SELECT ( col1 ) AS col0 FROM tab2 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT - 55 AS col1 FROM tab2 WHERE NOT + ( col1 ) IS NULL
----
-55
-55
-55

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2813
SELECT - ( COUNT ( * ) ) * + 12 AS col2 FROM tab2
----
-36

query I rowsort
SELECT ALL - 10 + - col0 * col2 AS col1 FROM tab2
----
-1068
-2570
-4360

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT ALL 23 DIV - col2 + 85 * - col0 FROM tab0
----
-1275
-7397
-8245

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL 23 / - col2 + 85 * - col0 FROM tab0
----
-1275
-7397
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT SUM( 1 ) + 0 AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2816
SELECT SUM ( 1 ) + 0 AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL + col2 * 96 AS col0 FROM tab2 WHERE NOT - col1 IS NULL
----
2208
3840
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT - COUNT( * ) FROM tab0 WHERE NULL >= + col2 * col2
----
0

skipif mysql # not compatible
query I rowsort label-2818
SELECT - COUNT ( * ) FROM tab0 WHERE NULL >= + col2 * col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2819
SELECT - col1 AS col2 FROM tab1 WHERE NOT 99 BETWEEN - CAST( + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2819
SELECT - col1 AS col2 FROM tab1 WHERE NOT 99 BETWEEN - CAST ( + col0 AS INTEGER ) AND NULL
----

query I rowsort
SELECT + col1 + - col0 * + col2 AS col1 FROM tab2
----
-1007
-2483
-4283

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2822
SELECT - 38 + col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2822
SELECT - 38 + col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + 75 FROM tab1
----
122
80
89

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 <= col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2825
SELECT DISTINCT col2 + - ( - CAST( 32 AS SIGNED ) ) AS col1 FROM tab1
----
100
128
91

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT col2 + - ( - CAST ( 32 AS INTEGER ) ) AS col1 FROM tab1
----
100
128
91

query I rowsort
SELECT col1 * col2 FROM tab2 WHERE + col0 NOT IN ( 26 - - col1 )
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - 83 + - col0 FROM tab2 WHERE + 83 NOT BETWEEN - col0 AND col0
----
-129
-147
-158

onlyif mysql # DIV for integer division: 
query I rowsort label-2828
SELECT DISTINCT - col1 DIV + 43 + col2 AS col2 FROM tab1
----
59
67
96

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT - col1 / + 43 + col2 AS col2 FROM tab1
----
59
67
96

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

query I rowsort
SELECT ALL - 80 + col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT - col2 * 55 AS col2 FROM tab2 AS cor0
----
-1265
-2200
-3190

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

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 51 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT + SUM( 74 ) AS col0 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-2834
SELECT + SUM ( 74 ) AS col0 FROM tab2 AS cor0
----
222

query I rowsort
SELECT col0 * col2 + col0 * - 38 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 )
----

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 * + 85 - - 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL + ( COUNT( * ) ) + - 98 * 48 FROM tab2 AS cor0
----
-4701

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL + ( COUNT ( * ) ) + - 98 * 48 FROM tab2 AS cor0
----
-4701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2840
SELECT DISTINCT - 25 + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-121
-84
-93

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT - 25 + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-121
-84
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT ALL - COUNT( * ) * + 14 + 99 col1 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2841
SELECT ALL - COUNT ( * ) * + 14 + 99 col1 FROM tab2 AS cor0
----
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 57 IS NULL
----

query I rowsort
SELECT - - 11 AS col0 FROM tab2 cor0
----
11
11
11

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 93 + - 65 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 * col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2846
SELECT DISTINCT + col2 DIV + ( 52 ) + + col1 AS col0 FROM tab0 AS cor0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT + col2 / + ( 52 ) + + col1 AS col0 FROM tab0 AS cor0
----
2
21
81

query I rowsort
SELECT DISTINCT - - ( 46 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT 1 FROM tab2 cor0 WHERE + col2 * + 69 IS NOT NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1 + - col2
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT 20 + col1 IN ( - 87 )
----
14
47
5

query I rowsort
SELECT ALL + 80 AS col1 FROM tab1 WHERE NOT ( - 64 ) BETWEEN - col1 * col0 AND NULL
----

query I rowsort
SELECT col0 + - 67 AS col1 FROM tab2 WHERE NULL > col2
----

query I rowsort
SELECT DISTINCT ( - 53 ) AS col2 FROM tab0
----
-53

query III rowsort
SELECT * FROM tab1 WHERE - 81 BETWEEN - col1 + - col1 AND + 59
----
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - 41 - col0 + - col1 FROM tab2
----
-138
-182
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT + col1 * col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( 79 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2857
SELECT + col1 * col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN ( 79 ) AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 51 FROM tab0 WHERE NULL IN ( col0 * 18 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2859
SELECT col2 + - 58 DIV ( + col0 ) FROM tab0
----
10
44
99

skipif mysql # not compatible
query I rowsort label-2859
SELECT col2 + - 58 / ( + col0 ) FROM tab0
----
10
44
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN ( - col1 ) AND 93
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2861
SELECT DISTINCT + 63 DIV + 99 - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT + 63 / + 99 - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 - - col2 col1 FROM tab2
----
112
77
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2863
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 NOT BETWEEN - col1 * + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2863
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 NOT BETWEEN - col1 * + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT - SUM( - col0 ) + - 36 FROM tab1 WHERE NOT NULL IS NOT NULL
----
191

skipif mysql # not compatible
query I rowsort label-2864
SELECT - SUM ( - col0 ) + - 36 FROM tab1 WHERE NOT NULL IS NOT NULL
----
191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2865
SELECT ALL COUNT( * ) DIV - CAST( + + 33 AS SIGNED ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2865
SELECT ALL COUNT ( * ) / - CAST ( + + 33 AS INTEGER ) col1 FROM tab2
----
0

query I rowsort
SELECT ALL 8 FROM tab1 AS cor0 WHERE NOT col1 <= + + col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT + 3 DIV + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2868
SELECT + 3 / + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT col2 DIV col0 * + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2869
SELECT col2 / col0 * + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 91 < + ( + col1 ) / - 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, col0 * 27 FROM tab2 cor0
----
51
1242
67
2025
77
1728

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * + col0 * + 18 + 97 / col1 NOT BETWEEN NULL AND ( 75 * + col1 - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + ( - MIN( - 26 ) ) * + - ( + MAX( + 74 ) ) AS col2 FROM tab1
----
-1924

skipif mysql # not compatible
query I rowsort label-2875
SELECT + ( - MIN ( - 26 ) ) * + - ( + MAX ( + 74 ) ) AS col2 FROM tab1
----
-1924

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( 60 )
----

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

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT + col1 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT ALL + 41 + - COUNT( * ) AS col1 FROM tab2 WHERE + + 55 IS NOT NULL
----
38

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL + 41 + - COUNT ( * ) AS col1 FROM tab2 WHERE + + 55 IS NOT NULL
----
38

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> 24
----

query I rowsort
SELECT - 46 * + - col1 * - col0 AS col0 FROM tab2
----
-107916
-226688
-231150

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2882
SELECT - CAST( NULL AS DECIMAL ) + - - COUNT( DISTINCT + 9 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT - CAST ( NULL AS REAL ) + - - COUNT ( DISTINCT + 9 ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2883
SELECT ( + - 20 ) DIV MIN( + - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2883
SELECT ( + - 20 ) / MIN ( + - col1 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT col2 DIV - - 64 * - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2884
SELECT col2 / - - 64 * - col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2885
SELECT DISTINCT + 15 DIV + - COUNT( DISTINCT col1 ) col0 FROM tab0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2885
SELECT DISTINCT + 15 / + - COUNT ( DISTINCT col1 ) col0 FROM tab0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 92 >= 6 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2, - 75 AS col0 FROM tab0 cor0
----
10
-75
47
-75
99
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL + COUNT( * ) + - SUM( + 36 ) AS col2 FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL + COUNT ( * ) + - SUM ( + 36 ) AS col2 FROM tab0 AS cor0
----
-105

onlyif mysql # DIV for integer division: 
query II rowsort label-2889
SELECT ALL - + col1 * - col1 + - 62 AS col0, - col2 DIV - - 90 FROM tab1 AS cor0
----
-37
0
134
-1
2147
0

skipif mysql # not compatible
query II rowsort label-2889
SELECT ALL - + col1 * - col1 + - 62 AS col0, - col2 / - - 90 FROM tab1 AS cor0
----
-37
0
134
-1
2147
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2890
SELECT ALL + 48 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * + + col0 * + CAST( NULL AS SIGNED ) - + col1 * col1 = NULL AND + col1 * + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL + 48 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * + + col0 * + CAST ( NULL AS INTEGER ) - + col1 * col1 = NULL AND + col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + + + col0 + col2 AS col0 FROM tab2 WHERE NOT ( col0 ) IS NULL
----
144
191
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - 51 + - COUNT( * ) * + + 35 * COUNT( * ) FROM tab1
----
-366

skipif mysql # not compatible
query I rowsort label-2892
SELECT - 51 + - COUNT ( * ) * + + 35 * COUNT ( * ) FROM tab1
----
-366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + - 41 - - col0 * - 47 * col1 col2 FROM tab2
----
-110272
-231652
-236201

query II rowsort
SELECT ALL 76 AS col0, 8 + col0 AS col0 FROM tab2
----
76
54
76
72
76
83

query I rowsort
SELECT + ( - - col2 ) + - - col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT 66 * + - COUNT( * ) AS col1 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT 66 * + - COUNT ( * ) AS col1 FROM tab1
----
-198

onlyif mysql # aggregate syntax: 
query II rowsort label-2897
SELECT DISTINCT 93 AS col1, - COUNT( * ) FROM tab1
----
93
-3

skipif mysql # not compatible
query II rowsort label-2897
SELECT DISTINCT 93 AS col1, - COUNT ( * ) FROM tab1
----
93
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2898
SELECT + COUNT( * ) AS col1, + ( - + 6 ) DIV + COUNT( * ) AS col1 FROM tab2
----
3
-2

skipif mysql # not compatible
query II rowsort label-2898
SELECT + COUNT ( * ) AS col1, + ( - + 6 ) / + COUNT ( * ) AS col1 FROM tab2
----
3
-2

query I rowsort
SELECT DISTINCT - col1 + + - 54 FROM tab2
----
-105
-121
-131

query I rowsort
SELECT ALL - col2 * + col2 + - - col0 FROM tab2
----
-1536
-3289
-483

query I rowsort
SELECT - col0 - - 42 FROM tab2 WHERE ( - 35 ) IS NOT NULL
----
-22
-33
-4

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

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

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

skipif mysql # not compatible
query I rowsort label-2904
SELECT + col1 * + col1 - CAST ( NULL AS INTEGER ) / - col0 * + 44 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2905
SELECT - col1 - 9 DIV - 56 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2905
SELECT - col1 - 9 / - 56 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2906
SELECT ALL col2 * + col1 + - 12 AS col2 FROM tab2 AS cor0 WHERE + 26 IN ( - col0 * + 49 * + CAST( + - col0 AS SIGNED ) - - col1 * col2 )
----

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL col2 * + col1 + - 12 AS col2 FROM tab2 AS cor0 WHERE + 26 IN ( - col0 * + 49 * + CAST ( + - col0 AS INTEGER ) - - col1 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2907
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 - + - col2 + + - 18 + 78 / + - col0 + CAST( NULL AS SIGNED ) * + col2 BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2907
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 - + - col2 + + - 18 + 78 / + - col0 + CAST ( NULL AS INTEGER ) * + col2 BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT - 72 AS col0, col2 * + col1 FROM tab2 AS cor0
----
-72
1173
-72
3080
-72
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL ( - SUM( ALL + col0 ) ) AS col1 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL ( - SUM ( ALL + col0 ) ) AS col1 FROM tab2 cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT + - MAX( + col0 ) * - 81 AS col2 FROM tab0 AS cor0
----
7857

skipif mysql # not compatible
query I rowsort label-2910
SELECT + - MAX ( + col0 ) * - 81 AS col2 FROM tab0 AS cor0
----
7857

query I rowsort
SELECT ALL + ( + - ( + 27 ) ) FROM tab2 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT MIN( col0 ) col0 FROM tab0 cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2912
SELECT MIN ( col0 ) col0 FROM tab0 cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, col2 AS col0 FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT + col2 DIV - 74 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2914
SELECT + col2 / - 74 FROM tab1
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 > + 91 * col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT COUNT( - - col0 ) col2 FROM tab1
----
3

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

query I rowsort
SELECT ALL - col1 * + 91 FROM tab1
----
-1274
-4277
-455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, - col0 col1 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2920
SELECT COUNT( * ) * + ( + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT + - col2 * + col1 IS NOT NULL
----
NULL

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

query I rowsort
SELECT - ( + + 87 ) FROM tab0 cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT DISTINCT MAX( DISTINCT - - 0 ) * - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT MAX ( DISTINCT - - 0 ) * - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 71 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT COUNT( * ) * + + 21 + 76 FROM tab0 WHERE + col2 IS NOT NULL
----
139

skipif mysql # not compatible
query I rowsort label-2924
SELECT COUNT ( * ) * + + 21 + 76 FROM tab0 WHERE + col2 IS NOT NULL
----
139

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( 63 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT + + MAX( 58 ) AS col1 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2927
SELECT + + MAX ( 58 ) AS col1 FROM tab1 AS cor0
----
58

query I rowsort
SELECT + col1 * + 12 * col1 FROM tab0 AS cor0
----
12
5292
78732

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 48 + + + 77 * - 80 = NULL
----

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

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

query II rowsort
SELECT ALL + col2 AS col1, ( + 56 ) AS col0 FROM tab1
----
59
56
68
56
96
56

query I rowsort
SELECT - 13 + - + col0 FROM tab1 AS cor0
----
-104
-64
-98

query I rowsort
SELECT + 19 + 17 + - col2 * - 34 FROM tab1 AS cor0
----
2042
2348
3300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT col0 col2 FROM tab1 AS cor0 WHERE NOT ( col2 = CAST( + + col0 AS SIGNED ) )
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2934
SELECT col0 col2 FROM tab1 AS cor0 WHERE NOT ( col2 = CAST ( + + col0 AS INTEGER ) )
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - - col2 <= + - 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT - AVG ( - + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NOT - col1 IN ( + - col1 * - 43, ( + - col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT - AVG ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NOT - col1 IN ( + - col1 * - 43, ( + - col2 ) )
----
NULL

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

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

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

query I rowsort
SELECT ( - 84 ) * - col2 FROM tab2 cor0
----
1932
3360
4872

query I rowsort
SELECT - col1 * col2 + - - col0 AS col0 FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2941
SELECT - COUNT( * ) DIV - 53 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2941
SELECT - COUNT ( * ) / - 53 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 44 * + + col1 FROM tab0 AS cor0
----
3564
44
924

query I rowsort
SELECT ALL ( - + 45 ) FROM tab0 AS cor0
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 * ( - col1 ) col2 FROM tab1 AS cor0
----
2021
215
602

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

query I rowsort
SELECT DISTINCT 30 * - col2 + + col2 FROM tab1 AS cor0
----
-1711
-1972
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT ALL + + col0 * + CAST( + col0 AS SIGNED ) * + - col2 AS col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL + + col0 * + CAST ( + col0 AS INTEGER ) * + - col2 AS col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2948
SELECT ALL + 34 DIV - COUNT( * ) AS col1 FROM tab0 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + 34 / - COUNT ( * ) AS col1 FROM tab0 cor0
----
-11

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col2 BETWEEN col1 AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2950
SELECT ALL - + col2 DIV - col2 + - 68 FROM tab2 WHERE + ( - + col2 ) * + col2 DIV - col0 - + col0 + - CAST( NULL AS SIGNED ) + col0 IS NULL
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL - + col2 / - col2 + - 68 FROM tab2 WHERE + ( - + col2 ) * + col2 / - col0 - + col0 + - CAST ( NULL AS INTEGER ) + col0 IS NULL
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2951
SELECT * FROM tab1 WHERE NOT - CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2951
SELECT * FROM tab1 WHERE NOT - CAST ( col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL ( + 41 ) * - COUNT( * ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL ( + 41 ) * - COUNT ( * ) FROM tab2
----
-123

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT NULL IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2954
SELECT * FROM tab1 WHERE NOT - col0 - - CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2954
SELECT * FROM tab1 WHERE NOT - col0 - - CAST ( - col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 68 * - 49 AS col2 FROM tab1
----
-3332

query I rowsort
SELECT 99 FROM tab1, tab0 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT - 61 DIV - col1 + col2 AS col1 FROM tab0
----
12
160
47

skipif mysql # not compatible
query I rowsort label-2957
SELECT - 61 / - col1 + col2 AS col1 FROM tab0
----
12
160
47

query I rowsort
SELECT 66 + + ( + col0 ) + - + col1 FROM tab0
----
0
132
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - - 28 col0 FROM tab2
----
103
74
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2960
SELECT - - col1 / CAST( NULL AS SIGNED ) + + col2 * - - 15 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT - - col1 / CAST ( NULL AS INTEGER ) + + col2 * - - 15 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + col1 - + col2 FROM tab1 cor0
----
-49
-68
26

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + col1 - + col2 FROM tab1 cor0
----
-49
-68
26

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

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

query II rowsort
SELECT DISTINCT 65 AS col2, 87 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
65
87

onlyif mysql # DIV for integer division: 
query II rowsort label-2964
SELECT DISTINCT col2 + 69 DIV col2, col1 FROM tab2 AS cor0
----
26
51
41
77
59
67

skipif mysql # not compatible
query II rowsort label-2964
SELECT DISTINCT col2 + 69 / col2, col1 FROM tab2 AS cor0
----
26
51
41
77
59
67

query I rowsort
SELECT ALL col1 - + - 97 AS col1 FROM tab1 cor0
----
102
111
144

query I rowsort
SELECT DISTINCT + + 92 + + col0 AS col1 FROM tab0 AS cor0
----
107
179
189

query I rowsort
SELECT DISTINCT col1 * col2 - - col0 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT DISTINCT - col1 - col1 + + - col2 AS col0 FROM tab2
----
-125
-192
-194

query I rowsort
SELECT DISTINCT + col0 * + col1 * - col1 * - col0 * - + col1 AS col0 FROM tab0
----
-119574225
-70096509
-9409

query I rowsort
SELECT ALL 59 - - 45 * col2 AS col1 FROM tab0
----
2174
4514
509

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL COUNT( * ) * + + 77 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL COUNT ( * ) * + + 77 FROM tab2
----
231

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2972
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + ( + ( - + col0 ) ), 83 * - 30 * - 40, CAST( NULL AS DECIMAL ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-2972
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + ( + ( - + col0 ) ), 83 * - 30 * - 40, CAST ( NULL AS REAL ) + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2973
SELECT + CAST( NULL AS SIGNED ), 92 * + 92 + 83 FROM tab2 WHERE - col2 * + col2 + ( col0 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-2973
SELECT + CAST ( NULL AS INTEGER ), 92 * + 92 + 83 FROM tab2 WHERE - col2 * + col2 + ( col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + 51 * + 3 * - 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2975
SELECT ALL + CAST( + 43 AS SIGNED ) FROM tab2
----
43
43
43

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL + CAST ( + 43 AS INTEGER ) FROM tab2
----
43
43
43

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

query I rowsort
SELECT DISTINCT ( - 20 ) FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT + col2 > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2978
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT + col2 > NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2979
SELECT MIN( ALL + - col1 ) AS col2 FROM tab1 cor0 WHERE NOT - 45 - + - CAST( NULL AS SIGNED ) + col0 + + - col2 * + 42 >= ( - ( 87 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2979
SELECT MIN ( ALL + - col1 ) AS col2 FROM tab1 cor0 WHERE NOT - 45 - + - CAST ( NULL AS INTEGER ) + col0 + + - col2 * + 42 >= ( - ( 87 ) )
----
NULL

query I rowsort
SELECT DISTINCT - 19 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-19

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 10 / - + col0 / col0 < + 86
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT - col2 DIV + ( + 82 ) - - col1 FROM tab0 AS cor0
----
0
21
81

skipif mysql # not compatible
query I rowsort label-2984
SELECT - col2 / + ( + 82 ) - - col1 FROM tab0 AS cor0
----
0
21
81

query I rowsort
SELECT + - 6 * - 60 FROM tab2 AS cor0
----
360
360
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2986
SELECT DISTINCT - 32 AS col1 FROM tab0 cor0 WHERE NOT + col2 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
-32

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT - 32 AS col1 FROM tab0 cor0 WHERE NOT + col2 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2987
SELECT - + COUNT( * ) * - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2987
SELECT - + COUNT ( * ) * - - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 31 * + col1 FROM tab1 AS cor0
----
1457
155
434

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT - COUNT( * ) AS col2, 2 FROM tab0
----
-3
2

skipif mysql # not compatible
query II rowsort label-2990
SELECT - COUNT ( * ) AS col2, 2 FROM tab0
----
-3
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL + + MIN( DISTINCT - 56 ) FROM tab0 WHERE + + col1 IS NOT NULL
----
-56

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL + + MIN ( DISTINCT - 56 ) FROM tab0 WHERE + + col1 IS NOT NULL
----
-56

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2994
SELECT ALL - ( col2 ) + - 2 + 88 * col2 - + 41 AS col2, 83 + + + col1 * + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
1958
NULL
3437
NULL
5003
NULL

skipif mysql # not compatible
query II rowsort label-2994
SELECT ALL - ( col2 ) + - 2 + 88 * col2 - + 41 AS col2, 83 + + + col1 * + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
1958
NULL
3437
NULL
5003
NULL

query I rowsort
SELECT - col0 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2996
SELECT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT 74 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT DISTINCT - + 2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 68 + - 61 * col0 - ( + - 54 ) AS col1 FROM tab1
----
-2989
-5063
-5429

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + - + col2 col0, col2 AS col0 FROM tab0 AS cor0
----
-2
99
-32
47
77
10

query I rowsort
SELECT DISTINCT - col2 * + 72 - - ( ( - ( - col1 ) ) ) FROM tab2 AS cor0
----
-1605
-2803
-4109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3004
SELECT DISTINCT - 58 - - + CAST( NULL AS SIGNED ) AS col2, MAX( ALL - - col1 ) FROM tab1 AS cor0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-3004
SELECT DISTINCT - 58 - - + CAST ( NULL AS INTEGER ) AS col2, MAX ( ALL - - col1 ) FROM tab1 AS cor0
----
NULL
47

query I rowsort
SELECT ALL - ( - 39 ) + - 41 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT col0 - - col0 * col0 FROM tab1 AS cor0
----
2652
7310
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE 40 <= + + 78
----
3

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE 40 <= + + 78
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL ( + MAX( - - 46 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL ( + MAX ( - - 46 ) ) FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + 70 col2 FROM tab1 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

query I rowsort
SELECT DISTINCT + col1 * - ( + col1 ) * - 68 * 74 AS col0 FROM tab1
----
11115688
125800
986272

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT DISTINCT SUM( DISTINCT + 6 ) AS col0 FROM tab1, tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT SUM ( DISTINCT + 6 ) AS col0 FROM tab1, tab1 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 * + - 22 col2 FROM tab2
----
-242
-242
-242

onlyif mysql # aggregate syntax: 
query II rowsort label-3013
SELECT DISTINCT 79 col1, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
79
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3013
SELECT DISTINCT 79 col1, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
79
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3014
SELECT DISTINCT + 87 DIV - col0 col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3014
SELECT DISTINCT + 87 / - col0 col1 FROM tab1 AS cor0
----
-1
0

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

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NULL <> col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 52 > NULL
----

query I rowsort
SELECT + + 73 * 57 FROM tab0 AS cor0
----
4161
4161
4161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT ALL col2 + - col1 + + CAST( + 68 AS SIGNED ) * - col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-3230
-6634
-691

skipif mysql # not compatible
query I rowsort label-3020
SELECT ALL col2 + - col1 + + CAST ( + 68 AS INTEGER ) * - col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-3230
-6634
-691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3021
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3021
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT - COUNT( * ) + + - ( + + COUNT( * ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3022
SELECT - COUNT ( * ) + + - ( + + COUNT ( * ) ) FROM tab0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3023
SELECT COUNT( * ) + - CAST( NULL AS DECIMAL ) + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT COUNT ( * ) + - CAST ( NULL AS REAL ) + COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + col0 + + 9 AS col0 FROM tab0
----
106
24
96

query I rowsort
SELECT col2 + + 62 FROM tab2
----
102
120
85

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3026
SELECT ALL COUNT ( * ), + COUNT ( * ) col0 FROM tab2
----
3
3

query I rowsort
SELECT ALL - 83 + col2 AS col2 FROM tab1 AS cor0
----
-15
-24
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 + - col2 col2 FROM tab0 AS cor0
----
-25
27
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT ALL MAX( + + col2 ) col1 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3031
SELECT ALL MAX ( + + col2 ) col1 FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3032
SELECT ALL + col1 + + - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3033
SELECT ALL - - CAST( NULL AS DECIMAL ) col0, ( + + 71 ) FROM tab2 cor0
----
NULL
71
NULL
71
NULL
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3033
SELECT ALL - - CAST ( NULL AS REAL ) col0, ( + + 71 ) FROM tab2 cor0
----
NULL
71
NULL
71
NULL
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3034
SELECT DISTINCT col2 DIV - col0 + + 5 + - 51 + + col2 DIV + + col1 + - col1 FROM tab1 AS cor0
----
-40
-55
-92

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT col2 / - col0 + + 5 + - 51 + + col2 / + + col1 + - col1 FROM tab1 AS cor0
----
-40
-55
-92

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 col0, + col2 * col0 AS col1 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT + MIN( DISTINCT - - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3037
SELECT + MIN ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3038
SELECT ALL - col1 col2 FROM tab1 WHERE - ( + CAST( - col1 AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3038
SELECT ALL - col1 col2 FROM tab1 WHERE - ( + CAST ( - col1 AS INTEGER ) ) <= NULL
----

query II rowsort
SELECT DISTINCT - col2 * + 61, col1 AS col0 FROM tab0
----
-2867
81
-6039
1
-610
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT ALL + COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN + col2 * + - col1 * - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN + col2 * + - col1 * - col2 AND NULL
----
0

query II rowsort
SELECT DISTINCT col2 * - + col2, + col0 AS col2 FROM tab2
----
-1600
64
-3364
75
-529
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT DISTINCT + COUNT( - ( - col2 ) ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT + COUNT ( - ( - col2 ) ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT ALL col2 DIV + ( - col2 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL col2 / + ( - col2 ) FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - + ( + col2 ) * - ( col1 ) AS col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3045
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST( - - 88 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3045
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST ( - - 88 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3046
SELECT DISTINCT col1 DIV + + 46 - + col2 FROM tab0 AS cor0 WHERE NOT 93 * col1 IS NULL
----
-10
-46
-99

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT col1 / + + 46 - + col2 FROM tab0 AS cor0 WHERE NOT 93 * col1 IS NULL
----
-10
-46
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 99 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT ALL col1 * + 15 + - 95 + - CAST( + col0 AS SIGNED ) * + col2 + - + CAST( col0 AS SIGNED ) * - 40 + + col0 FROM tab0 AS cor0
----
-5706
1030
2917

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL col1 * + 15 + - 95 + - CAST ( + col0 AS INTEGER ) * + col2 + - + CAST ( col0 AS INTEGER ) * - 40 + + col0 FROM tab0 AS cor0
----
-5706
1030
2917

query I rowsort
SELECT - 53 * ( + 99 ) FROM tab1 AS cor0
----
-5247
-5247
-5247

query II rowsort
SELECT DISTINCT - 13 AS col0, + col2 FROM tab1 AS cor0
----
-13
59
-13
68
-13
96

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

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

query I rowsort
SELECT ALL col0 FROM tab0 WHERE col2 * col0 IS NULL
----

query I rowsort
SELECT ALL + ( - - col1 ) AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT 19 + + col0 AS col1 FROM tab1 AS cor0
----
104
110
70

query I rowsort
SELECT + - 70 * - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-29
1460
5623

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT - - 7 + + SUM( ALL - - 52 ) AS col2 FROM tab0 AS cor0
----
163

skipif mysql # not compatible
query I rowsort label-3056
SELECT - - 7 + + SUM ( ALL - - 52 ) AS col2 FROM tab0 AS cor0
----
163

query I rowsort
SELECT DISTINCT 8 + col1 FROM tab0 AS cor0
----
29
89
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT - 62 * ( - SUM( DISTINCT - 88 ) ) FROM tab0
----
-5456

skipif mysql # not compatible
query I rowsort label-3058
SELECT - 62 * ( - SUM ( DISTINCT - 88 ) ) FROM tab0
----
-5456

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + - 94 BETWEEN - 12 AND - - col1 * + col1 * 81 * 89
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3060
SELECT - ( + - ( 20 ) ) * - 66 * + col0 * + col2, CAST( + 51 AS SIGNED ) AS col1 FROM tab2 cor0
----
-1396560
51
-3379200
51
-5742000
51

skipif mysql # not compatible
query II rowsort label-3060
SELECT - ( + - ( 20 ) ) * - 66 * + col0 * + col2, CAST ( + 51 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1396560
51
-3379200
51
-5742000
51

query I rowsort
SELECT + + 77 FROM tab1 cor0
----
77
77
77

query II rowsort
SELECT + 27 AS col0, 86 FROM tab2 AS cor0
----
27
86
27
86
27
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3063
SELECT + col1 * col0 * + - 78 col2 FROM tab2 AS cor0 WHERE NOT - col2 * + - col1 < CAST( col1 AS SIGNED )
----
-182988
-384384
-391950

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3063
SELECT + col1 * col0 * + - 78 col2 FROM tab2 AS cor0 WHERE NOT - col2 * + - col1 < CAST ( col1 AS INTEGER )
----
-182988
-384384
-391950

query II rowsort
SELECT - 47 AS col1, col0 + ( 42 ) FROM tab1 AS cor0
----
-47
127
-47
133
-47
93

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) = - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT - 76 * + - COUNT( * ) AS col0 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-3067
SELECT - 76 * + - COUNT ( * ) AS col0 FROM tab0
----
228

query II rowsort
SELECT col1 AS col2, 80 AS col0 FROM tab0
----
1
80
21
80
81
80

query II rowsort
SELECT DISTINCT + + 72 * + 32, - 24 * - + col0 AS col2 FROM tab1 AS cor0
----
2304
1224
2304
2040
2304
2184

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT DISTINCT - col1 DIV - col2 col1 FROM tab2
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3070
SELECT DISTINCT - col1 / - col2 col1 FROM tab2
----
1
2

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * - col2 / - col1 NOT IN ( - + ( + 81 ), 39 * + col0 + + ( - + 74 ), col1, col1 / col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3072
SELECT DISTINCT - + SUM( ALL - + 25 ) + + 35 * - CAST( + COUNT( * ) AS SIGNED ) * COUNT( ALL + col2 ) FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT - + SUM ( ALL - + 25 ) + + 35 * - CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( ALL + col2 ) FROM tab2 AS cor0
----
-240

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <> - 28 / + ( col1 ) * + + col0 * - + col1 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= 29
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 6 * + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 80 * - 43 FROM tab2
----
-3440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3077
SELECT MIN( ALL + 1 ) + - CAST( NULL AS SIGNED ) AS col2, 92 col0 FROM tab1
----
NULL
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3077
SELECT MIN ( ALL + 1 ) + - CAST ( NULL AS INTEGER ) AS col2, 92 col0 FROM tab1
----
NULL
92

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

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT - col0 / 63 AS col2 FROM tab0
----
-1
0

query I rowsort
SELECT col2 + 81 AS col2 FROM tab0
----
128
180
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT DISTINCT col2 DIV 95 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3080
SELECT DISTINCT col2 / 95 AS col1 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT DISTINCT MIN( ( + + col2 ) ) + - 31 + + 12 AS col0 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT MIN ( ( + + col2 ) ) + - 31 + + 12 AS col0 FROM tab2
----
4

query III rowsort
SELECT ALL + 69, - col2 - + col0 - 22, 13 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3083
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 64 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3085
SELECT DISTINCT + - COUNT( * ) * - CAST( NULL AS SIGNED ) + - 75 * + ( + - ( 62 ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 75 * + ( + - ( 62 ) ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - col2 + + - col0 * col2, - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-752
-705
-880
-870
-9702
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL COUNT( * ) - COUNT( * ) + - SUM( ALL + col2 ) * - 87 FROM tab0 cor0
----
13572

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL COUNT ( * ) - COUNT ( * ) + - SUM ( ALL + col2 ) * - 87 FROM tab0 cor0
----
13572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 + + 58 col1 FROM tab0 AS cor0
----
140

query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-89

query I rowsort
SELECT ALL - - 90 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT ALL - + 60 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT DISTINCT + - col1 * - - 69 * + col0 * - col0 AS col1 FROM tab1 AS cor0
----
2492625
2512566
26855283

query II rowsort
SELECT 31, 45 * - col2 AS col1 FROM tab1
----
31
-2655
31
-3060
31
-4320

query I rowsort
SELECT col2 * + + ( + + 34 ) FROM tab0
----
1598
3366
340

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3096
SELECT ALL col2, + col1 + + col2 + col2 DIV 17 * - 81 FROM tab1
----
59
-179
68
-209
96
-295

skipif mysql # not compatible
query II rowsort label-3096
SELECT ALL col2, + col1 + + col2 + col2 / 17 * - 81 FROM tab1
----
59
-179
68
-209
96
-295

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT DISTINCT MIN( - col1 ) * + 94 FROM tab2 AS cor0
----
-7238

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT MIN ( - col1 ) * + 94 FROM tab2 AS cor0
----
-7238

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - + 7, col1, + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 26 + - 21 IS NULL
----

query I rowsort
SELECT ALL - + col2 + 92 FROM tab0 AS cor0
----
-7
45
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT - - MAX( 91 ) AS col2 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-3101
SELECT - - MAX ( 91 ) AS col2 FROM tab1 cor0
----
91

query I rowsort
SELECT - col1 * + + col1 AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

query II rowsort
SELECT + 50 AS col2, 32 * + 69 AS col2 FROM tab2 AS cor0
----
50
2208
50
2208
50
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT - 58 - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT - 58 - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-55

query II rowsort
SELECT DISTINCT + + col1, 96 - + + 8 * - 3 AS col0 FROM tab2 AS cor0
----
51
120
67
120
77
120

query I rowsort
SELECT ALL - col1 - + col2 + + col0 FROM tab0
----
-113
-3
56

query II rowsort
SELECT 94 * + col0 * - - 31 * - - col0 - + - col1, col0 AS col0 FROM tab0
----
22056087
87
27417827
97
655731
15

query III rowsort
SELECT * FROM tab0 WHERE - + col1 * + 57 NOT IN ( - 89 - col1 + - 37 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0 - + + col1 * + 97, - col2 AS col2 FROM tab2
----
-4901
-23
-6424
-58
-7405
-40

query I rowsort
SELECT 71 + ( + col2 ) FROM tab1
----
130
139
167

onlyif mysql # DIV for integer division: 
query I rowsort label-3111
SELECT ( col2 ) DIV col1 * + col2 + + + col2 + + ( + col2 ) AS col1 FROM tab1
----
204
767
768

skipif mysql # not compatible
query I rowsort label-3111
SELECT ( col2 ) / col1 * + col2 + + + col2 + + ( + col2 ) AS col1 FROM tab1
----
204
767
768

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

query I rowsort
SELECT + + 67 + + + 2 AS col1 FROM tab1 cor0
----
69
69
69

query I rowsort
SELECT + 65 + 4 + + col2 AS col0 FROM tab0 AS cor0
----
116
168
79

query II rowsort
SELECT DISTINCT + + col1 + - - ( - - 17 ), col0 FROM tab2 AS cor0
----
68
46
84
75
94
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3116
SELECT + - COUNT( * ) DIV + - 23 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3116
SELECT + - COUNT ( * ) / + - 23 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT DISTINCT 77 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
77

query I rowsort
SELECT + + col1 * + + 4 FROM tab1 AS cor0
----
188
20
56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 64 + - col2 + - 38 + ( + ( col0 ) ) * col1 / + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab2 WHERE NULL > + ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT + CAST( + 54 AS SIGNED ) + + 25 AS col0 FROM tab2
----
79
79
79

skipif mysql # not compatible
query I rowsort label-3124
SELECT + CAST ( + 54 AS INTEGER ) + + 25 AS col0 FROM tab2
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 47 col0 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT - 84 + + + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT - 84 + + + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + ( 74 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 7 <> NULL
----

query I rowsort
SELECT - 47 * - col2 FROM tab2 AS cor0
----
1081
1880
2726

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 2
----

query I rowsort
SELECT + col2 * 77 FROM tab2
----
1771
3080
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT DISTINCT SUM( + - 96 ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT SUM ( + - 96 ) FROM tab1
----
-288

query I rowsort
SELECT + 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT DISTINCT - + COUNT( ( - col0 ) ) + - COUNT( - 48 ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT - + COUNT ( ( - col0 ) ) + - COUNT ( - 48 ) AS col0 FROM tab1 AS cor0
----
-6

query II rowsort
SELECT DISTINCT + col2, + 73 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT - - 56 * - 40 * + 57 + 91 + - + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-124393
-126245
-127294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3137
SELECT ALL MIN( - + CAST( NULL AS SIGNED ) ) + + 21 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL MIN ( - + CAST ( NULL AS INTEGER ) ) + + 21 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 37 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3139
SELECT ALL + col0 * + col1, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
2346
NULL
4928
NULL
5025
NULL

skipif mysql # not compatible
query II rowsort label-3139
SELECT ALL + col0 * + col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
2346
NULL
4928
NULL
5025
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT MAX( ALL + 5 ) * - COUNT( * ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3140
SELECT MAX ( ALL + 5 ) * - COUNT ( * ) AS col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3141
SELECT DISTINCT - 7 * + 67 * - COUNT( * ) * - + 77, 44 + - COUNT( * ) col0 FROM tab1
----
-108339
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3141
SELECT DISTINCT - 7 * + 67 * - COUNT ( * ) * - + 77, 44 + - COUNT ( * ) col0 FROM tab1
----
-108339
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3142
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) + AVG ( ALL col2 ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3142
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + AVG ( ALL col2 ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT ALL - MAX( + + 80 ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL - MAX ( + + 80 ) FROM tab2 AS cor0
----
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-3145
SELECT 87 * - - col0 AS col0, + 60 DIV col2 AS col1 FROM tab0 AS cor0
----
1305
1
7569
6
8439
0

skipif mysql # not compatible
query II rowsort label-3145
SELECT 87 * - - col0 AS col0, + 60 / col2 AS col1 FROM tab0 AS cor0
----
1305
1
7569
6
8439
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT DISTINCT - + col0 DIV + 74 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT - + col0 / + 74 FROM tab0 cor0
----
-1
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT - + COUNT( DISTINCT - ( - 42 ) ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3148
SELECT - + COUNT ( DISTINCT - ( - 42 ) ) FROM tab1 AS cor0
----
-1

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

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

skipif mysql # not compatible
query I rowsort label-3150
SELECT - - COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT DISTINCT - - MIN( col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT - - MIN ( col1 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + 20 * col1 + col0 <> + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT DISTINCT - + MIN( - col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT - + MIN ( - col2 ) FROM tab0 cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 73 * - 90 + + + col0 col0, + col2 + - col2 FROM tab1 AS cor0
----
-6479
0
-6485
0
-6519
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT MIN( ( + ( + - 55 ) ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT MIN ( ( + ( + - 55 ) ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL BETWEEN NULL AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) + - MIN( + col1 ) col1 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3157
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) + - MIN ( + col1 ) col1 FROM tab0
----
-10

query I rowsort
SELECT ALL - col2 * - - 8 FROM tab1
----
-472
-544
-768

query I rowsort
SELECT DISTINCT - 21 * col1 * col2 FROM tab2 WHERE - + 8 < - + col0 * + col2
----

query I rowsort
SELECT ALL - ( - - col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ALL - - 32 + COUNT( * ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL - - 32 + COUNT ( * ) FROM tab0 AS cor0
----
35

query I rowsort
SELECT ALL 33 + - 67 AS col0 FROM tab0 AS cor0
----
-34
-34
-34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 34 * - col1 NOT BETWEEN NULL AND - - 67 AND NOT + col1 IS NOT NULL
----

query I rowsort
SELECT 32 / + + 42 * - col0 + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE + - col2 NOT BETWEEN NULL AND + 1 / + - col0
----

query II rowsort
SELECT - col1 * 58, col0 * + - col0 / - - col0 AS col0 FROM tab2 AS cor0 WHERE 31 IS NULL
----

query I rowsort
SELECT 81 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - - col0 AND + 88 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT 48 * - - 40 * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-5760

skipif mysql # not compatible
query I rowsort label-3169
SELECT 48 * - - 40 * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-5760

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + 2 ) IS NULL
----

query I rowsort
SELECT + + 38 - + + col0 + + col1 FROM tab1 cor0
----
-42
-6
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 4 - + + ( - + col0 ) col1 FROM tab2 AS cor0
----
42
60
71

query I rowsort
SELECT + col1 - - + ( col1 ) FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT CAST( - 41 AS SIGNED ) AS col2 FROM tab1
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-3174
SELECT CAST ( - 41 AS INTEGER ) AS col2 FROM tab1
----
-41
-41
-41

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 * + + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( - 64 ) + - 60 / + 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL >= col0 + - + col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT + SUM( ALL col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3178
SELECT + SUM ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) * - col2 - - col0 col2 FROM tab1
----
-1293
-210
-3105

query I rowsort
SELECT ALL + 23 * + col0 AS col2 FROM tab1
----
1173
1955
2093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3181
SELECT DISTINCT 44 DIV - + COUNT( ALL + 4 ) AS col0 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT 44 / - + COUNT ( ALL + 4 ) AS col0 FROM tab0
----
-14

query I rowsort
SELECT 47 * + + 22 * - - col2 FROM tab1
----
61006
70312
99264

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 96 + 65 * - col1 < col2
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3185
SELECT + COUNT( * ) * 4 * + MIN( DISTINCT col1 ) + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT + COUNT ( * ) * 4 * + MIN ( DISTINCT col1 ) + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col2, 51 col0 FROM tab0 AS cor0
----
-10
51
-47
51
-99
51

query I rowsort
SELECT - col1 FROM tab0 WHERE ( NOT - col1 * col1 IS NULL )
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT BETWEEN NULL AND + col1 )
----

query I rowsort
SELECT ALL + 78 * col2 AS col1 FROM tab2
----
1794
3120
4524

query II rowsort
SELECT ALL col2 + + - col1 AS col1, - col2 AS col1 FROM tab1
----
21
-68
54
-59
82
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT DISTINCT + 45 DIV + col1 FROM tab1
----
0
3
9

skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT + 45 / + col1 FROM tab1
----
0
3
9

query I rowsort
SELECT - + 79 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT DISTINCT COUNT( DISTINCT - + 27 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT COUNT ( DISTINCT - + 27 ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT 1 + col2 AS col0 FROM tab1 cor0
----
60
69
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT ALL - col2 * + col0 * - col0 + - col0 FROM tab0 AS cor0
----
10560
75603
931394

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL + COUNT( * ) + ( 5 ) col0 FROM tab0 cor0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3197
SELECT ALL + COUNT ( * ) + ( 5 ) col0 FROM tab0 cor0
----
8

query III rowsort
SELECT * FROM tab0 WHERE - + 83 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3199
SELECT DISTINCT + COUNT( * ) AS col1, 52 FROM tab0
----
3
52

skipif mysql # not compatible
query II rowsort label-3199
SELECT DISTINCT + COUNT ( * ) AS col1, 52 FROM tab0
----
3
52

query I rowsort
SELECT ALL - 99 + - col0 AS col1 FROM tab0 WHERE + col1 BETWEEN NULL AND NULL AND NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT ALL COUNT( * ) + - + 0 AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL COUNT ( * ) + - + 0 AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT col1, + col2 + 41 FROM tab1 cor0
----
14
137
47
109
5
100

query I rowsort
SELECT - col0 + - - col1 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL + MAX( + col0 ) - + 41 + - 37 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL + MAX ( + col0 ) - + 41 + - 37 FROM tab1 AS cor0
----
13

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 48 * - col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + col0 / - + col2 NOT BETWEEN NULL AND + 12 + 96 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ( + MIN( ALL - - col1 ) ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3208
SELECT ( + MIN ( ALL - - col1 ) ) AS col1 FROM tab2
----
51

query I rowsort
SELECT + 36 + + ( + 77 ) FROM tab0 WHERE NOT - col0 * - - 96 IS NULL
----
113
113
113

query I rowsort
SELECT ALL + 12 * col0 * + - 42 FROM tab0
----
-43848
-48888
-7560

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * 4 + 28 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 * - 75, + col0 FROM tab0 AS cor0
----
1575
87
6075
15
75
97

query I rowsort
SELECT ALL 14 * + + col0 FROM tab1
----
1190
1274
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 col0 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query II rowsort
SELECT 23 AS col2, 92 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 004ed8b86721378ecdfc39e351a6ca3f

query I rowsort
SELECT DISTINCT + 22 * - 6 FROM tab2
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT DISTINCT COUNT( * ) + - 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-15

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT COUNT ( * ) + - 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - - 38 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3219
SELECT + col2 * - CAST( NULL AS SIGNED ) / + + col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3219
SELECT + col2 * - CAST ( NULL AS INTEGER ) / + + col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - SUM( ( - - col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3220
SELECT - SUM ( ( - - col0 ) ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT - col0 * + 61 - col1 FROM tab0 AS cor0
----
-5328
-5918
-996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3222
SELECT ALL + + CAST( + col0 AS SIGNED ) + + col2 * + col2 * - + 65 FROM tab1 AS cor0
----
-226180
-300469
-598989

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL + + CAST ( + col0 AS INTEGER ) + + col2 * + col2 * - + 65 FROM tab1 AS cor0
----
-226180
-300469
-598989

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 * - - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3224
SELECT + 27 DIV SUM( - col0 ), COUNT( DISTINCT - 50 ) + + 20 + + + 35 AS col0 FROM tab0 AS cor0
----
0
56

skipif mysql # not compatible
query II rowsort label-3224
SELECT + 27 / SUM ( - col0 ), COUNT ( DISTINCT - 50 ) + + 20 + + + 35 AS col0 FROM tab0 AS cor0
----
0
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ( + + COUNT( * ) ) col2 FROM tab0 AS cor0
----
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3226
SELECT DISTINCT MAX( - - col0 ) AS col0, COUNT( * ) FROM tab0
----
97
3

skipif mysql # not compatible
query II rowsort label-3226
SELECT DISTINCT MAX ( - - col0 ) AS col0, COUNT ( * ) FROM tab0
----
97
3

query I rowsort
SELECT ALL col2 * + col0 * col1 * - - col0 FROM tab1
----
2131375
26466076
3495744

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

query I rowsort
SELECT DISTINCT col1 + + 91 + + 92 FROM tab2
----
234
250
260

onlyif mysql # DIV for integer division: 
query I rowsort label-3230
SELECT + col0 DIV - col0 + + col1 col1 FROM tab1
----
13
4
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3230
SELECT + col0 / - col0 + + col1 col1 FROM tab1
----
13
4
46

query II rowsort
SELECT 57 * - col2 + col2 - col1, col0 AS col1 FROM tab2
----
-1339
46
-2317
64
-3315
75

query I rowsort
SELECT ALL - 52 + col2 FROM tab1
----
16
44
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
72

query I rowsort
SELECT - col2 + - 9 * + + col0 FROM tab0 AS cor0
----
-182
-793
-972

query I rowsort
SELECT 42 FROM tab0 AS cor0 WHERE + 54 = NULL
----

query I rowsort
SELECT - col0 + + 29 AS col1 FROM tab1 AS cor0
----
-22
-56
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3237
SELECT - - col0 + - 69 DIV + col0 AS col1 FROM tab2 AS cor0
----
45
63
75

skipif mysql # not compatible
query I rowsort label-3237
SELECT - - col0 + - 69 / + col0 AS col1 FROM tab2 AS cor0
----
45
63
75

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

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

query I rowsort
SELECT 54 * + + col2 + - col2 AS col1 FROM tab2
----
1219
2120
3074

query I rowsort
SELECT 8 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT ALL - COUNT( DISTINCT + ( - col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL - COUNT ( DISTINCT + ( - col2 ) ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 - - + col1 * + col0 col2 FROM tab0 AS cor0
----
108
1226
1838

query I rowsort
SELECT - + col2 * + + 62 AS col2 FROM tab2 AS cor0
----
-1426
-2480
-3596

query II rowsort
SELECT col2 * col1, ( - col2 ) AS col2 FROM tab0 AS cor0
----
210
-10
3807
-47
99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3245
SELECT ALL col1 DIV + 81 * col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL col1 / + 81 * col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( col2 ) ) / col1 + col0 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3247
SELECT + col1, - CAST( - + ( col0 ) AS SIGNED ) * + 6 FROM tab1
----
14
306
47
546
5
510

skipif mysql # not compatible
query II rowsort label-3247
SELECT + col1, - CAST ( - + ( col0 ) AS INTEGER ) * + 6 FROM tab1
----
14
306
47
546
5
510

query I rowsort
SELECT col2 * + col0 * + col0 FROM tab0
----
10575
75690
931491

query II rowsort
SELECT - 31 AS col2, + 33 AS col2 FROM tab2
----
-31
33
-31
33
-31
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col2 - col0 col1 FROM tab0 WHERE NOT NULL = - 36
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3251
SELECT + 43 DIV + - COUNT( * ) AS col2 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-3251
SELECT + 43 / + - COUNT ( * ) AS col2 FROM tab1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT DISTINCT + MAX( col2 ) AS col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT + MAX ( col2 ) AS col1 FROM tab1 cor0
----
96

query I rowsort
SELECT - 64 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = col0 / + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT + MAX( ALL + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3254
SELECT + MAX ( ALL + col1 ) FROM tab2
----
77

query I rowsort
SELECT DISTINCT ( + col0 ) + ( 18 ) FROM tab0
----
105
115
33

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * col0 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT - CAST( 30 AS SIGNED ) + col2 AS col0 FROM tab1
----
29
38
66

skipif mysql # not compatible
query I rowsort label-3257
SELECT - CAST ( 30 AS INTEGER ) + col2 AS col0 FROM tab1
----
29
38
66

query I rowsort
SELECT - col1 + + col1 * col0 AS col0 FROM tab2
----
2295
4851
4958

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 99 < ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3260
SELECT + col2 * 43 FROM tab2 WHERE 32 IN ( col0 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3260
SELECT + col2 * 43 FROM tab2 WHERE 32 IN ( col0 + + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - 83 / col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col1 * col1 FROM tab0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT col0 + - 70 * - 73 FROM tab2
----
5156
5174
5185

query I rowsort
SELECT col1 + + 3 FROM tab1
----
17
50
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col2 col2 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT 24 + MIN( ALL + col0 ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-3267
SELECT 24 + MIN ( ALL + col0 ) FROM tab2
----
70

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

query I rowsort
SELECT 61 * col1 AS col2 FROM tab0
----
1281
4941
61

query I rowsort
SELECT ALL + col0 * - 5 AS col2 FROM tab2
----
-230
-320
-375

query I rowsort
SELECT DISTINCT 90 + + 28 FROM tab0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT DISTINCT 10 * - COUNT( * ) col0 FROM tab0 WHERE NULL IS NULL
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3272
SELECT DISTINCT 10 * - COUNT ( * ) col0 FROM tab0 WHERE NULL IS NULL
----
-30

query I rowsort
SELECT - 35 * + 6 AS col2 FROM tab2
----
-210
-210
-210

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 <> col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 9 + - ( 49 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 76 + 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 41 - col1 FROM tab2
----
-108
-118
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3278
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE - col0 < + CAST( - 98 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE - col0 < + CAST ( - 98 AS REAL )
----
0

query I rowsort
SELECT - 25 * 43 FROM tab2
----
-1075
-1075
-1075

query I rowsort
SELECT DISTINCT col1 + 92 FROM tab2
----
143
159
169

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT + MIN( ALL col1 ) + + 82 * 16 FROM tab1
----
1317

skipif mysql # not compatible
query I rowsort label-3281
SELECT + MIN ( ALL col1 ) + + 82 * 16 FROM tab1
----
1317

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 NOT BETWEEN - col2 AND ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT ( col2 ) + - col1 / - col0 < + 38
----
40
58

query I rowsort
SELECT ALL + 56 * + col0 FROM tab0
----
4872
5432
840

query III rowsort
SELECT * FROM tab0 WHERE - col0 < 13 * + ( + ( col2 ) * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL - SUM( 37 ) AS col0 FROM tab2 WHERE NOT ( ( - col1 ) * col1 ) <= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - SUM ( 37 ) AS col0 FROM tab2 WHERE NOT ( ( - col1 ) * col1 ) <= + col0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 46 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3289
SELECT ( col1 ) * + col1 FROM tab0 AS cor0 WHERE ( col1 ) BETWEEN 2 * - CAST( col2 AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query I rowsort label-3289
SELECT ( col1 ) * + col1 FROM tab0 AS cor0 WHERE ( col1 ) BETWEEN 2 * - CAST ( col2 AS INTEGER ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE col1 NOT BETWEEN col1 AND ( 4 )
----
3

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE col1 NOT BETWEEN col1 AND ( 4 )
----
3

query I rowsort
SELECT + col0 - 82 AS col0 FROM tab1 AS cor0
----
-31
3
9

query I rowsort
SELECT + col1 * 67 - + col2 FROM tab0
----
-32
1397
5380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT ALL col1 FROM tab0 WHERE NOT NULL > CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL col1 FROM tab0 WHERE NOT NULL > CAST ( - col0 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 54 <= NULL
----

query I rowsort
SELECT 88 AS col1 FROM tab2 WHERE ( + col1 - - col2 ) = NULL
----

query I rowsort
SELECT ALL 88 * + 17 AS col0 FROM tab1
----
1496
1496
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL - SUM( DISTINCT col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL - SUM ( DISTINCT col2 ) FROM tab2 cor0
----
-121

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3299
SELECT ALL - col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL - col2 * CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * col1 col1 FROM tab0 AS cor0
----
-1848
-7128
-88

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3302
SELECT + + col2 DIV col1 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3302
SELECT + + col2 / col1 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL ( MAX( + col2 ) ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL ( MAX ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 2 IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE + col2 IS NULL OR NOT - col1 * 66 IN ( + 3 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 16 * ( 62 ) FROM tab0
----
992
992
992

query I rowsort
SELECT DISTINCT col1 * - + 54 * - col2 AS col1 FROM tab1
----
15930
172584
72576

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 63 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 83 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3310
SELECT + col2 / col1 + CAST( col1 + + CAST( NULL AS SIGNED ) AS SIGNED ) * 79 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3310
SELECT + col2 / col1 + CAST ( col1 + + CAST ( NULL AS INTEGER ) AS INTEGER ) * 79 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 90 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( NULL ) > col2 + + 83 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ( + MAX( ALL - col2 ) ) + 23 * - 90 AS col2 FROM tab2
----
-2093

skipif mysql # not compatible
query I rowsort label-3313
SELECT ( + MAX ( ALL - col2 ) ) + 23 * - 90 AS col2 FROM tab2
----
-2093

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3314
SELECT DISTINCT 41 AS col0, COUNT( * ) * - + ( COUNT( * ) ) DIV 48 FROM tab0 AS cor0
----
41
0

skipif mysql # not compatible
query II rowsort label-3314
SELECT DISTINCT 41 AS col0, COUNT ( * ) * - + ( COUNT ( * ) ) / 48 FROM tab0 AS cor0
----
41
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3315
SELECT ALL + - ( + col1 ) + - col0 DIV + col2 AS col1 FROM tab2 AS cor0
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL + - ( + col1 ) + - col0 / + col2 AS col1 FROM tab2 AS cor0
----
-53
-68
-78

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
59
68
96

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - + col0 + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 - 82 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT DISTINCT 88 DIV - 43 + - - col2 FROM tab2 AS cor0
----
21
38
56

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT 88 / - 43 + - - col2 FROM tab2 AS cor0
----
21
38
56

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 32 / + col0 + 50 <= - 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NOT + ( - col0 ) * col2 - - 67 IS NULL
----
1
21
81

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL AND NOT + col0 * col0 NOT IN ( ( + 95 ) + 12 )
----

query I rowsort
SELECT col1 * - 34 AS col0 FROM tab0 WHERE ( + col1 ) = NULL
----

query I rowsort
SELECT ALL col1 + + - 71 FROM tab0
----
-50
-70
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 * col1 ) NOT BETWEEN ( col0 * col1 ) AND ( col0 + 96 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT + COUNT( * ) col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3327
SELECT + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3328
SELECT DISTINCT + 64 - col0 DIV + ( + - col0 ) AS col0 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT + 64 - col0 / + ( + - col0 ) AS col0 FROM tab0 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT ALL 19 - + - COUNT( * ) + - COUNT( * ) * + 79 FROM tab0 AS cor0
----
-215

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL 19 - + - COUNT ( * ) + - COUNT ( * ) * + 79 FROM tab0 AS cor0
----
-215

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3330
SELECT * FROM tab2 WHERE ( NULL ) >= col1 / + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3330
SELECT * FROM tab2 WHERE ( NULL ) >= col1 / + CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 38 * - 35 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-1330

query I rowsort
SELECT DISTINCT col2 * + - col0 AS col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
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-3333
SELECT MAX ( DISTINCT - - col1 ) col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + 29 * + col0 + - col0 + - - col2 FROM tab1 AS cor0
----
1524
2439
2616

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT - ( - MAX( DISTINCT - col2 ) ) * + COUNT( * ) - + - ( 79 ) col0 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3337
SELECT - ( - MAX ( DISTINCT - col2 ) ) * + COUNT ( * ) - + - ( 79 ) col0 FROM tab1 AS cor0
----
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 7 + - col0 + - - col1 * - 11 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3339
SELECT ALL + + CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL - ( 1 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 71 + - 72 FROM tab1, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3342
SELECT + 91 AS col1, CAST( NULL AS SIGNED ) + + + 4 / col1 * + + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
91
NULL
91
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-3342
SELECT + 91 AS col1, CAST ( NULL AS INTEGER ) + + + 4 / col1 * + + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
91
NULL
91
NULL
91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT ALL col1 * + ( + col0 ) DIV + col0 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL col1 * + ( + col0 ) / + col0 AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT 23 AS col0 FROM tab0 WHERE NOT - + col1 NOT BETWEEN - 68 AND ( - 65 * col1 + + col2 )
----
23

query I rowsort
SELECT + 4 + - 65 * - 50 FROM tab1
----
3254
3254
3254

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( ( NULL ) IN ( 16 ) ) )
----

query I rowsort
SELECT + 18 + - - col1 AS col1 FROM tab0
----
19
39
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT 83 + - COUNT( * ) AS col0 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-3348
SELECT 83 + - COUNT ( * ) AS col0 FROM tab0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3349
SELECT DISTINCT COUNT( * ) DIV 54 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT COUNT ( * ) / 54 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3350
SELECT - col0 AS col1, col2 + + - CAST( col0 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

skipif mysql # not compatible
query II rowsort label-3350
SELECT - col0 AS col1, col2 + + - CAST ( col0 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT DISTINCT + + SUM( 52 ) AS col0 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT + + SUM ( 52 ) AS col0 FROM tab2 AS cor0
----
156

query I rowsort
SELECT 77 * + col1 * col1 FROM tab1 AS cor0
----
15092
170093
1925

query III rowsort
SELECT * FROM tab2 WHERE col1 * + col2 NOT BETWEEN ( - + col1 ) AND NULL
----

query I rowsort
SELECT + 66 + ( col1 ) + 12 FROM tab2 AS cor0
----
129
145
155

query I rowsort
SELECT DISTINCT + col2 + + col0 * + 70 - 22 FROM tab0 AS cor0
----
1075
6078
6867

query I rowsort
SELECT DISTINCT + col2 * + 19 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1121
1292
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT DISTINCT 32 / - MIN( DISTINCT + col1 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT 32 / - MIN ( DISTINCT + col1 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----
NULL

query I rowsort
SELECT + 10 + - col1 - ( + col2 ) FROM tab0
----
-118
-21
-90

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + col0 + + - 94 BETWEEN ( 7 ) * 74 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 * - col1 * 80 col2 FROM tab0
----
-16790
-304513
-7821

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 - + 39 + + col2 * + 17 col0 FROM tab1
----
1146
1622
993

query I rowsort
SELECT ALL + 67 + - - 81 + - ( + ( ( + col0 ) ) ) FROM tab2
----
102
73
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( col0 ) col0 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3368
SELECT + 9 DIV + col1 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3368
SELECT + 9 / + col1 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL ( + - col2 ) * col2 * ( - - col1 ) * 66 * + col2 AS col0 FROM tab2
----
-325248000
-40954122
-862785264

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

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

query I rowsort
SELECT DISTINCT col1 * - - 15 FROM tab2
----
1005
1155
765

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL COUNT( DISTINCT + col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL COUNT ( DISTINCT + col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT 15 * - col0 FROM tab2 WHERE NOT col2 * + col0 - - col1 NOT IN ( - ( - 24 ) )
----

query I rowsort
SELECT ALL - + 65 AS col0 FROM tab2 AS cor0 WHERE NOT - 43 * + ( - col1 ) IS NULL
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col2 col0, + 8 AS col1 FROM tab2 AS cor0
----
1173
8
3080
8
3886
8

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT + col2 * CAST( 83 AS SIGNED ) FROM tab1 AS cor0
----
4897
5644
7968

skipif mysql # not compatible
query I rowsort label-3380
SELECT + col2 * CAST ( 83 AS INTEGER ) FROM tab1 AS cor0
----
4897
5644
7968

query I rowsort
SELECT DISTINCT + - 76 * + + col0 FROM tab2 AS cor0
----
-3496
-4864
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL - COUNT( * ) * - - 38 AS col0 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - COUNT ( * ) * - - 38 AS col0 FROM tab1 AS cor0
----
-114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT MIN( ALL 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-3384
SELECT MIN ( ALL 83 ) FROM tab2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL 81 * - COUNT( * ) col2 FROM tab0
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3385
SELECT ALL 81 * - COUNT ( * ) col2 FROM tab0
----
-243

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

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

query I rowsort
SELECT ALL + col2 * + - 46 FROM tab2
----
-1058
-1840
-2668

query I rowsort
SELECT ALL ( col2 ) + - - col0 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT DISTINCT - col1 DIV + 73 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT - col1 / + 73 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT DISTINCT - 78 + - COUNT( + - 31 ) col0 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3390
SELECT DISTINCT - 78 + - COUNT ( + - 31 ) col0 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT col2 + - 36 FROM tab2 AS cor0
----
-13
22
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3392
SELECT + CAST( NULL AS SIGNED ) + - 98 + + - ( + 34 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT + CAST ( NULL AS INTEGER ) + - 98 + + - ( + 34 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE - col2 * + - col2 NOT BETWEEN - 51 AND col2 / col1 * + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT MAX( DISTINCT + col0 ) * - COUNT( * ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-3395
SELECT MAX ( DISTINCT + col0 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 16 + + col2 col1 FROM tab1 cor0
----
112
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT ( - - COUNT( * ) ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT ( - - COUNT ( * ) ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT - + MIN( - - col0 ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3398
SELECT - + MIN ( - - col0 ) FROM tab2 cor0
----
-46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - 58 / - 95, - col1 / 36 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL + - ( MAX( col2 ) ) - - + 85 * + - COUNT( * ) FROM tab2 AS cor0
----
-313

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL + - ( MAX ( col2 ) ) - - + 85 * + - COUNT ( * ) FROM tab2 AS cor0
----
-313

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

skipif mysql # not compatible
query I rowsort label-3401
SELECT + - MIN ( 92 ) FROM tab1 AS cor0
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-3402
SELECT col1 col2, + ( - + ( + - col1 ) ) DIV - 88 * - + col2 + + + 42 + + col1 FROM tab0 AS cor0
----
1
43
21
63
81
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3402
SELECT col1 col2, + ( - + ( + - col1 ) ) / - 88 * - + col2 + + + 42 + + col1 FROM tab0 AS cor0
----
1
43
21
63
81
123

query I rowsort
SELECT ALL - 9 - + col1 AS col0 FROM tab2 AS cor0
----
-60
-76
-86

query I rowsort
SELECT DISTINCT + - 36 - + col0 FROM tab1 AS cor0
----
-121
-127
-87

query I rowsort
SELECT - + col0 - 79 FROM tab2 AS cor0
----
-125
-143
-154

query I rowsort
SELECT - col0 - + ( 57 ) * 30 AS col0 FROM tab2 AS cor0
----
-1756
-1774
-1785

onlyif mysql # DIV for integer division: 
query II rowsort label-3407
SELECT DISTINCT + col1 DIV + col0 - + ( + col1 ) * + - col2, col1 FROM tab0
----
210
21
3812
81
99
1

skipif mysql # not compatible
query II rowsort label-3407
SELECT DISTINCT + col1 / + col0 - + ( + col1 ) * + - col2, col1 FROM tab0
----
210
21
3812
81
99
1

query III rowsort
SELECT * FROM tab1 WHERE ( ( - col1 ) * + col0 + + col0 - + 18 ) NOT IN ( 99 - col2 * 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT DISTINCT SUM( + 27 ) col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3409
SELECT DISTINCT SUM ( + 27 ) col1 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ALL ( - MAX( ALL + col0 ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL ( - MAX ( ALL + col0 ) ) FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3411
SELECT COUNT( * ) AS col1, COUNT( * ) / - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3411
SELECT COUNT ( * ) AS col1, COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT DISTINCT + MIN( DISTINCT 83 ) FROM tab1 WHERE + col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT + MIN ( DISTINCT 83 ) FROM tab1 WHERE + col2 <> NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3414
SELECT + + ( + - MAX( ALL + col1 ) ) col2, COUNT( * ) FROM tab0 AS cor0
----
-81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3414
SELECT + + ( + - MAX ( ALL + col1 ) ) col2, COUNT ( * ) FROM tab0 AS cor0
----
-81
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL COUNT( ALL + + col2 ) * - 64 * 18 FROM tab2 AS cor0
----
-3456

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL COUNT ( ALL + + col2 ) * - 64 * 18 FROM tab2 AS cor0
----
-3456

query I rowsort
SELECT + col1 * + 11 FROM tab2 cor0
----
561
737
847

query I rowsort
SELECT 93 - + ( + + 99 ) FROM tab0 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3418
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-3418
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 11 col0 FROM tab2
----
-561
-737
-847

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

query I rowsort
SELECT ALL col2 * + col1 * - + ( - - col2 ) * + + ( - - col0 ) AS col0 FROM tab1
----
-1479425
-19776848
-6580224

query I rowsort
SELECT ALL col1 + + - 76 + col0 AS col2 FROM tab0
----
20
22
32

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> + 2
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT COUNT( DISTINCT - + 57 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3426
SELECT COUNT ( DISTINCT - + 57 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT 70 * + 43 FROM tab2 AS cor0
----
3010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3428
SELECT ALL - COUNT( * ) / + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL - COUNT ( * ) / + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - col2 + - - col1 + + col2 AS col0 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT DISTINCT ( - col1 ) * 29 * col1 * + 65, + col2 AS col0, col0 FROM tab2
----
9 values hashing to 737ad0eaea4ec6e3d24c7dee89524804

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT 11 - COUNT( * ) + + COUNT( * ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-3431
SELECT 11 - COUNT ( * ) + + COUNT ( * ) FROM tab1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3432
SELECT CAST( NULL AS SIGNED ) * SUM( DISTINCT - 30 ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT CAST ( NULL AS INTEGER ) * SUM ( DISTINCT - 30 ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 61 + + + col1 + 67 FROM tab1 cor0
----
133
142
175

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

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT + 92 + + - CAST ( - - 15 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + - 50 col0 FROM tab0 AS cor0
----
137
147
65

query I rowsort
SELECT ALL + col0 - + - 34 FROM tab2 AS cor0
----
109
80
98

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 + 37 IS NULL
----

query II rowsort
SELECT DISTINCT + col0 + - + col1, col0 AS col0 FROM tab2
----
-13
64
-5
46
8
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * + 9 col2 FROM tab2
----
504
504
504

query I rowsort
SELECT ALL + col2 - 39 FROM tab1
----
20
29
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT DISTINCT + col0 DIV + col2 - + col1 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT + col0 / + col2 - + col1 FROM tab1
----
-14
-4
-46

query I rowsort
SELECT ALL 69 - + col1 FROM tab0
----
-12
48
68

query I rowsort
SELECT - ( - 85 ) FROM tab0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT - COUNT( ALL + col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT - COUNT ( ALL + col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3445
SELECT ALL - 15 col1, COUNT( * ) FROM tab2
----
-15
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3445
SELECT ALL - 15 col1, COUNT ( * ) FROM tab2
----
-15
3

query II rowsort
SELECT ALL + col0, + col0 + - + col0 FROM tab0
----
15
0
87
0
97
0

query II rowsort
SELECT ALL col0, + col2 + col0 AS col2 FROM tab1
----
51
147
85
144
91
159

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT - - 2 DIV + col0 + + 81 AS col1 FROM tab1 cor0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-3448
SELECT - - 2 / + col0 + + 81 AS col1 FROM tab1 cor0
----
81
81
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 41 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 <= - + col1
----
-14
-47
-5

query I rowsort
SELECT col0 * col2 * 17 FROM tab0 AS cor0
----
11985
14790
163251

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT + 52 * COUNT( * ) FROM tab2 cor0 WHERE NOT - ( - col0 ) IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-3453
SELECT + 52 * COUNT ( * ) FROM tab2 cor0 WHERE NOT - ( - col0 ) IS NULL
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT 70 * + + MIN( ALL col1 ) AS col1 FROM tab1
----
350

skipif mysql # not compatible
query I rowsort label-3454
SELECT 70 * + + MIN ( ALL col1 ) AS col1 FROM tab1
----
350

query II rowsort
SELECT - col1 AS col1, - col2 * + col1 FROM tab2
----
-51
-1173
-67
-3886
-77
-3080

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

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + + ( + 24 ) * col2 * + - col0 + col0 FROM tab1 AS cor0
----
-117453
-120275
-148421

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

query I rowsort
SELECT - 14 AS col0 FROM tab2 AS cor0 WHERE - ( + col0 ) IS NOT NULL
----
-14
-14
-14

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 25 * - + 1 + + 22 - + col2 - - 34 * 58 * + ( - - col2 ) - + 38 * - col1 * - - ( + + col1 )
----

query I rowsort
SELECT DISTINCT + 7 * col1 + - col0 FROM tab0
----
-90
552
60

query I rowsort
SELECT ALL col1 + 88 * - + col0 FROM tab0 AS cor0
----
-1239
-7635
-8535

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT col2 DIV col2 * - col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3463
SELECT col2 / col2 * - col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL 0 * - col2 * + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 6 * + col2 * + - col1 + + ( col1 ) + + col1 * - col1 FROM tab0 AS cor0
----
-1680
-29322
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT - 85 - - - ( + COUNT( * ) ) + - - MAX( DISTINCT - + 3 ) * + + 88 FROM tab2 AS cor0
----
-352

skipif mysql # not compatible
query I rowsort label-3466
SELECT - 85 - - - ( + COUNT ( * ) ) + - - MAX ( DISTINCT - + 3 ) * + + 88 FROM tab2 AS cor0
----
-352

query I rowsort
SELECT + + 22 * col0 - + + col2 * - col0 * - + col1 * + + col0 FROM tab0 cor0
----
-1587576
-856245
-929357

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

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

query I rowsort
SELECT - col0 - + ( - + col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * - ( col2 ) AS col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT 74 * col2 FROM tab0
----
3478
7326
740

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3473
SELECT DISTINCT CAST( - + 82 AS SIGNED ) DIV + col0 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT CAST ( - + 82 AS INTEGER ) / + col0 AS col0 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3474
SELECT - - 64 * + col2 - - col1 DIV - - col0 AS col0 FROM tab1 AS cor0
----
3776
4352
6144

skipif mysql # not compatible
query I rowsort label-3474
SELECT - - 64 * + col2 - - col1 / - - col0 AS col0 FROM tab1 AS cor0
----
3776
4352
6144

query I rowsort
SELECT DISTINCT - 67 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-67

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE 43 * 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT SUM( ALL 81 ) + - SUM( ALL - 50 ) * + COUNT( * ) AS col0 FROM tab1
----
693

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT SUM ( ALL 81 ) + - SUM ( ALL - 50 ) * + COUNT ( * ) AS col0 FROM tab1
----
693

query II rowsort
SELECT ALL + col1, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1, col2 * + 79 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3480
SELECT + col0 DIV 68 + - - col2 AS col1 FROM tab2
----
23
40
59

skipif mysql # not compatible
query I rowsort label-3480
SELECT + col0 / 68 + - - col2 AS col1 FROM tab2
----
23
40
59

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + ( + col0 )
----

query I rowsort
SELECT - col2 + - - 90 AS col0 FROM tab1
----
-6
22
31

query I rowsort
SELECT + col0 + + + 67 AS col1 FROM tab1
----
118
152
158

onlyif mysql # DIV for integer division: 
query I rowsort label-3484
SELECT - col0 + + col0 DIV col0 AS col0 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-3484
SELECT - col0 + + col0 / col0 AS col0 FROM tab2
----
-45
-63
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT DISTINCT - 15 * - 43 / - ( + ( - CAST( NULL AS SIGNED ) ) ) + - + col0 + - 95 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT - 15 * - 43 / - ( + ( - CAST ( NULL AS INTEGER ) ) ) + - + col0 + - 95 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT - 99 DIV - 52 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3486
SELECT - 99 / - 52 FROM tab2
----
1
1
1

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

query I rowsort
SELECT DISTINCT 51 + + + ( - - col1 ) * col0 FROM tab0 AS cor0
----
1266
148
1878

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT - MAX( DISTINCT col0 ) - - COUNT( * ) AS col1 FROM tab2 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3490
SELECT - MAX ( DISTINCT col0 ) - - COUNT ( * ) AS col1 FROM tab2 cor0
----
-72

query I rowsort
SELECT ALL + col0 + + + col0 FROM tab0
----
174
194
30

query I rowsort
SELECT - col0 + 40 FROM tab0 AS cor0
----
-47
-57
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL + 21 + - COUNT( * ) FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL + 21 + - COUNT ( * ) FROM tab1 cor0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3494
SELECT DISTINCT 24 AS col1, - COUNT( * ) FROM tab0 AS cor0
----
24
-3

skipif mysql # not compatible
query II rowsort label-3494
SELECT DISTINCT 24 AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
24
-3

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE + 80 / - + 23 IS NOT NULL
----
-23
-40
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + MIN( ALL + - 98 ) AS col0 FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-3497
SELECT + MIN ( ALL + - 98 ) AS col0 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT ALL ( + col2 ) * col2 + col0 AS col1 FROM tab1 AS cor0
----
3566
4715
9267

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3500
SELECT * FROM tab2 WHERE NOT + + 68 * + - CAST( NULL AS SIGNED ) < - col0
----

skipif mysql # not compatible
query III rowsort label-3500
SELECT * FROM tab2 WHERE NOT + + 68 * + - CAST ( NULL AS INTEGER ) < - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * col1 BETWEEN - col2 AND col0
----
15
81
47
87
21
10

query I rowsort
SELECT ALL col0 * - ( - col1 ) AS col2 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT DISTINCT + col0 * - col1 AS col2, col1 FROM tab2
----
-2346
51
-4928
77
-5025
67

query I rowsort
SELECT ALL 70 * - 31 FROM tab2
----
-2170
-2170
-2170

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT COUNT( * ) * + 98 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
294

skipif mysql # not compatible
query I rowsort label-3505
SELECT COUNT ( * ) * + 98 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
294

query I rowsort
SELECT - 95 * - col1 * + + col0 FROM tab2 AS cor0
----
222870
468160
477375

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT SUM( DISTINCT - 57 ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3507
SELECT SUM ( DISTINCT - 57 ) FROM tab2 AS cor0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 * col1 col0 FROM tab2 AS cor0
----
-4080
-5360
-6160

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3510
SELECT ALL - + col1 + + - 12 - col1 DIV + 47 * - col0 DIV + + col0 FROM tab0 AS cor0 WHERE - 1 * - - 28 > - 56 + + ( col2 )
----
-33

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL - + col1 + + - 12 - col1 / + 47 * - col0 / + + col0 FROM tab0 AS cor0 WHERE - 1 * - - 28 > - 56 + + ( col2 )
----
-33

query I rowsort
SELECT - 74 * - + 56 FROM tab1 AS cor0
----
4144
4144
4144

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 / + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT + SUM( - 55 ) AS col0 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-3513
SELECT + SUM ( - 55 ) AS col0 FROM tab1 AS cor0
----
-165

query I rowsort
SELECT 47 * - col1 AS col0 FROM tab0 cor0
----
-3807
-47
-987

query I rowsort
SELECT DISTINCT col0 * + 3 + - 46 * - col0 FROM tab1 AS cor0
----
2499
4165
4459

query I rowsort
SELECT DISTINCT col2 * + + 65 AS col0 FROM tab2
----
1495
2600
3770

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT COUNT( * ) * + - 19 AS col0 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-3517
SELECT COUNT ( * ) * + - 19 AS col0 FROM tab1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT ALL + + 24 DIV - col1 FROM tab2 WHERE NOT + - col1 BETWEEN - col0 * - + 37 AND + + 78
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL + + 24 / - col1 FROM tab2 WHERE NOT + - col1 BETWEEN - col0 * - + 37 AND + + 78
----
0
0
0

query I rowsort
SELECT DISTINCT + 76 AS col2 FROM tab2 WHERE + col0 * 54 IS NOT NULL
----
76

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * col0 NOT IN ( + col2 / - + col2, + col1 * + 78 + - ( + - 61 ), - 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + col2 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3522
SELECT DISTINCT - COUNT( * ) DIV + + COUNT( * ) - - 15 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT - COUNT ( * ) / + + COUNT ( * ) - - 15 FROM tab0 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT - - col0 + + - col1 + col0 DIV + 9 FROM tab1 cor0
----
42
54
89

skipif mysql # not compatible
query I rowsort label-3523
SELECT - - col0 + + - col1 + col0 / + 9 FROM tab1 cor0
----
42
54
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL + 97 * + COUNT( * ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + 97 * + COUNT ( * ) FROM tab0
----
291

query I rowsort
SELECT + col2 * + + col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND - - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * + 34 FROM tab0 AS cor0
----
-306

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * + 34 FROM tab0 AS cor0
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3528
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col1 AND + col1
----

query II rowsort
SELECT ALL - col1 AS col2, col2 AS col0 FROM tab1
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT 52 * col1 FROM tab0
----
1092
4212
52

query I rowsort
SELECT ( 40 ) AS col2 FROM tab2
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 1 col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT + MIN( DISTINCT CAST( - 52 AS SIGNED ) ) AS col1 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-3534
SELECT + MIN ( DISTINCT CAST ( - 52 AS INTEGER ) ) AS col1 FROM tab1
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col0 col1 FROM tab0
----
225
7569
9409

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

skipif mysql # not compatible
query I rowsort label-3536
SELECT + 52 * + 12 * - + col0 * col1 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + + col2 + col0 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT DISTINCT col1 * - CAST( - col2 AS SIGNED ) * + col2 + - col2 * col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
127680
17110
214132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3538
SELECT DISTINCT col1 * - CAST ( - col2 AS INTEGER ) * + col2 + - col2 * col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
127680
17110
214132

query I rowsort
SELECT 59 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

query I rowsort
SELECT ALL col0 * - + 60 + col2 AS col2 FROM tab2 AS cor0
----
-2737
-3800
-4442

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= 5
----

query I rowsort
SELECT col1 * - + 97 * + + col0 + + - col0 AS col2 FROM tab0 AS cor0 WHERE col0 * + - 94 <> + + col2
----
-117870
-177306
-9506

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

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

query I rowsort
SELECT - col2 * - - 13 FROM tab2
----
-299
-520
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT + COUNT( ALL + 47 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3546
SELECT + COUNT ( ALL + 47 ) FROM tab0
----
3

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col0
----

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

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE - + col0 < + ( - col1 )
----
10
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, col2 AS col2 FROM tab2 cor0
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 61 * - - 17 + + 56 col0, - col0 + - + col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + - 82 >= - col2 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

skipif mysql # not compatible
query II rowsort label-3554
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

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

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

query I rowsort
SELECT ALL col1 * - + col2 AS col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT DISTINCT + MAX( ALL col1 ) AS col1, 80 AS col2 FROM tab0
----
81
80

skipif mysql # not compatible
query II rowsort label-3558
SELECT DISTINCT + MAX ( ALL col1 ) AS col1, 80 AS col2 FROM tab0
----
81
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + + col0 + - col2 > - col2 / - ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3560
SELECT * FROM tab0 WHERE NOT col0 <= - + col0 + - CAST( + - col2 AS SIGNED ) / + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3560
SELECT * FROM tab0 WHERE NOT col0 <= - + col0 + - CAST ( + - col2 AS INTEGER ) / + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col0 + 96, col2 FROM tab2
----
21
58
32
40
50
23

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

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

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

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

query I rowsort
SELECT - col2 + + + col0 * + ( + 24 ) + + col1 FROM tab2 AS cor0
----
1132
1573
1809

query I rowsort
SELECT DISTINCT - col0 * - - col0 + - col2 * 46 * col2 * col1 + col1 FROM tab0
----
-104148
-460254
-8230878

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col2 + - col0 * - col2 AND - + col1
----

query I rowsort
SELECT + - col2 * - 57 AS col1 FROM tab2 AS cor0
----
1311
2280
3306

query I rowsort
SELECT ALL - 20 + + 52 AS col1 FROM tab1 AS cor0
----
32
32
32

query II rowsort
SELECT - 23, + 45 AS col0 FROM tab1 AS cor0
----
-23
45
-23
45
-23
45

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

query I rowsort
SELECT ALL 11 * + 70 AS col1 FROM tab0 AS cor0 WHERE + + 4 < col0 OR NOT col1 <= col2 * + ( 24 ) / - 23 * col2 - - - 72
----
770
770
770

query I rowsort
SELECT ALL - 82 * + col2 - col1 FROM tab0 AS cor0
----
-3935
-8119
-841

query I rowsort
SELECT - - ( - 96 ) - - 40 * ( + - 75 ) FROM tab0 AS cor0
----
-3096
-3096
-3096

query I rowsort
SELECT DISTINCT - + 26 - + - 91 AS col0 FROM tab2 AS cor0
----
65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 9 BETWEEN col1 AND - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - col0 ) / + 52 IS NULL AND col2 * + 92 + 98 + - col1 > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT DISTINCT - MIN( 58 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT - MIN ( 58 ) FROM tab2
----
-58

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3580
SELECT 21 + - COUNT( * ) DIV - 69 FROM tab0 cor0
----
21

skipif mysql # not compatible
query I rowsort label-3580
SELECT 21 + - COUNT ( * ) / - 69 FROM tab0 cor0
----
21

query I rowsort
SELECT + col0 * + col2 + - col1 AS col2 FROM tab0 AS cor0
----
624
849
9602

query I rowsort
SELECT - ( 41 ) + - col0 + - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-4988
-5141
-6320

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT - col0 * + + 32 * 63 + 75 + - - ( + col1 ) + - 50 DIV col0 * + 38 + col1 * + col2 * - 66 AS col0 FROM tab2 AS cor0
----
-170066
-332152
-407534

skipif mysql # not compatible
query I rowsort label-3583
SELECT - col0 * + + 32 * 63 + 75 + - - ( + col1 ) + - 50 / col0 * + 38 + col1 * + col2 * - 66 AS col0 FROM tab2 AS cor0
----
-170066
-332152
-407534

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT + COUNT( ALL - - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3584
SELECT + COUNT ( ALL - - col1 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + + 19 - col2 * - 62 FROM tab2 AS cor0
----
1445
2499
3615

query I rowsort
SELECT DISTINCT 57 AS col0 FROM tab0 cor0 WHERE NULL < - col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT + 85 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 * + col0 * - CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query I rowsort label-3588
SELECT + 85 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 * + col0 * - CAST ( NULL AS INTEGER ) AND col1
----

query I rowsort
SELECT + - col0 * col1 * + 69 FROM tab1 AS cor0
----
-29325
-295113
-49266

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 + 3 IS NOT NULL
----

query II rowsort
SELECT col0 AS col1, col0 FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3593
SELECT * FROM tab1 WHERE NOT - col2 / + CAST( + - col2 AS SIGNED ) * - 8 + 48 * + col1 / + col1 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3593
SELECT * FROM tab1 WHERE NOT - col2 / + CAST ( + - col2 AS INTEGER ) * - 8 + 48 * + col1 / + col1 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + col0 + col0 + col0 AS col1 FROM tab2
----
161
232
283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col1 col2 FROM tab2
----
102
134
154

query I rowsort
SELECT DISTINCT - col1 * - col0 + + col0 + + 55 AS col0 FROM tab1
----
4423
565
820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3597
SELECT CAST( - - MIN( col2 ) AS SIGNED ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3597
SELECT CAST ( - - MIN ( col2 ) AS INTEGER ) FROM tab1
----
59

query I rowsort
SELECT DISTINCT - + col2 * + - col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL + - COUNT( DISTINCT - col2 ) + - 22 + - COUNT( * ) FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL + - COUNT ( DISTINCT - col2 ) + - 22 + - COUNT ( * ) FROM tab2 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL - 93 * + 70 + 40 * - MIN( + 16 ) FROM tab0 AS cor0
----
-7150

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL - 93 * + 70 + 40 * - MIN ( + 16 ) FROM tab0 AS cor0
----
-7150

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT DISTINCT - col2 * + + 74 + - col1 * + col2 + col1 + - + CAST( 83 AS SIGNED ) + 36 FROM tab0 AS cor0
----
-7251
-7471
-976

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT - col2 * + + 74 + - col1 * + col2 + col1 + - + CAST ( 83 AS INTEGER ) + 36 FROM tab0 AS cor0
----
-7251
-7471
-976

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NULL >= col0
----

query I rowsort
SELECT DISTINCT - - col0 + - col2 + 47 * + col2 AS col0 FROM tab0 AS cor0
----
2177
4651
547

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 20 + 93 IS NULL
----

query I rowsort
SELECT - - ( 25 ) + col0 AS col1 FROM tab2 AS cor0
----
100
71
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT DISTINCT + 52 + MAX( - col0 ) + + + 1 AS col1 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT + 52 + MAX ( - col0 ) + + + 1 AS col1 FROM tab0 AS cor0
----
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - 79 ) * - col2 AND - col0
----

query I rowsort
SELECT + - 61 + 84 AS col2 FROM tab2 AS cor0 WHERE col0 + + 54 NOT IN ( + ( + ( 64 ) ), - col1 + - col0, + col2 * - col1 )
----
23
23
23

query II rowsort
SELECT ALL + col1 + + - col1, + col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 84 col2 FROM tab1 AS cor0
----
135
169
175

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3612
SELECT * FROM tab0 WHERE - ( ( CAST( 7 AS SIGNED ) ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3612
SELECT * FROM tab0 WHERE - ( ( CAST ( 7 AS INTEGER ) ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT - col1 DIV + + col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3613
SELECT - col1 / + + col2 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL - 65 * - COUNT( * ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL - 65 * - COUNT ( * ) AS col2 FROM tab2
----
195

query I rowsort
SELECT 31 * + col2 AS col0 FROM tab2
----
1240
1798
713

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 ) + - + 96 + + 22 + - col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3619
SELECT ALL - ( + col2 ) DIV + 29 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL - ( + col2 ) / + 29 AS col2 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0, + col1 * - col2, 44 * + 12 )
----

skipif mysql # not compatible
query I rowsort label-3620
SELECT - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0, + col1 * - col2, 44 * + 12 )
----

query I rowsort
SELECT - 42 - + 26 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3622
SELECT 61 DIV - + CAST( col1 AS SIGNED ) FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3622
SELECT 61 / - + CAST ( col1 AS INTEGER ) FROM tab2
----
-1
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 col1 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT 76 * + col2 AS col2 FROM tab1
----
4484
5168
7296

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL + 63 + - - COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL + 63 + - - COUNT ( * ) FROM tab2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3627
SELECT + CAST( NULL AS SIGNED ) * + 86, - COUNT( ALL - 6 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3627
SELECT + CAST ( NULL AS INTEGER ) * + 86, - COUNT ( ALL - 6 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3628
SELECT COUNT( * ) AS col0, 29 AS col2 FROM tab0 AS cor0
----
3
29

skipif mysql # not compatible
query II rowsort label-3628
SELECT COUNT ( * ) AS col0, 29 AS col2 FROM tab0 AS cor0
----
3
29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 * + col0 + + 33 + + - col1 ) = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL - 95 * - COUNT( * ) * COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL - 95 * - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - + col2 * - 65 + + col2 FROM tab1 AS cor0
----
3894
4488
6336

query II rowsort
SELECT + col0 * 34 AS col2, - col1 - col2 + + 99 AS col1 FROM tab0 AS cor0
----
2958
68
3298
-1
510
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3634
SELECT + COUNT( * ) DIV + ( 56 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT + COUNT ( * ) / + ( 56 ) AS col0 FROM tab2 AS cor0
----
0

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

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - + 7
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * 75 col1 FROM tab2
----
4500
4500
4500

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + col0 / 7
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 54 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 11 NOT IN ( - + 19 + + col0, + col0, col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT + + COUNT( * ) * COUNT( * ) * + 37 + - + MAX( DISTINCT + - col1 ) FROM tab1 AS cor0
----
338

skipif mysql # not compatible
query I rowsort label-3641
SELECT + + COUNT ( * ) * COUNT ( * ) * + 37 + - + MAX ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
338

query I rowsort
SELECT DISTINCT - col2 * col1 - + - col2 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT ALL - + 31 * - + col1 FROM tab2 AS cor0
----
1581
2077
2387

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

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT - - col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 * + 22 / + - col2 IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3646
SELECT 43 col2, COUNT ( * ) FROM tab1
----
43
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT + COUNT( * ) * 34 AS col1 FROM tab0 cor0
----
102

skipif mysql # not compatible
query I rowsort label-3647
SELECT + COUNT ( * ) * 34 AS col1 FROM tab0 cor0
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 70 * col2 * + - 54 + ( + + col2 ) + + + col1 col2 FROM tab1 AS cor0
----
-222956
-256925
-362770

query I rowsort
SELECT DISTINCT + + col1 + - + 27 FROM tab2 AS cor0 WHERE NOT ( col2 + - col1 + + col0 * + col2 * - 95 ) IN ( + col0, - ( + - col1 ) )
----
24
40
50

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + + col2 + col0 BETWEEN NULL AND ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 92 + + - ( + 63 ) FROM tab2
----
29
29
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3652
SELECT DISTINCT - 3 DIV col0 DIV - col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT - 3 / col0 / - col1 AS col1 FROM tab2
----
0

query I rowsort
SELECT - col1 * - col1 + - col0 AS col2 FROM tab2
----
2555
4414
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT DISTINCT ( + 29 ) + - - COUNT( * ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT ( + 29 ) + - - COUNT ( * ) FROM tab0
----
32

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

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

query I rowsort
SELECT - 39 - col2 FROM tab2
----
-62
-79
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3657
SELECT + 5 + ( - COUNT( * ) ) * CAST( - - 70 AS SIGNED ) AS col1 FROM tab2
----
-205

skipif mysql # not compatible
query I rowsort label-3657
SELECT + 5 + ( - COUNT ( * ) ) * CAST ( - - 70 AS INTEGER ) AS col1 FROM tab2
----
-205

query I rowsort
SELECT col2 + + - ( - 30 ) FROM tab1
----
126
89
98

query I rowsort
SELECT col1 * + col0 + - - 45 * - + col0 AS col0 FROM tab0
----
-2088
-4268
540

query I rowsort
SELECT + 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # DIV for integer division: 
query I rowsort label-3661
SELECT ALL 86 DIV ( - 71 ) * 76 * - + 97 * - 97 + - col1 * + col0 + - + 99 FROM tab2 AS cor0
----
-717529
-720111
-720208

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL 86 / ( - 71 ) * 76 * - + 97 * - 97 + - col1 * + col0 + - + 99 FROM tab2 AS cor0
----
-717529
-720111
-720208

query II rowsort
SELECT ALL 6, + col1 AS col0 FROM tab0 AS cor0
----
6
1
6
21
6
81

query II rowsort
SELECT ALL + col2 AS col2, col1 + + 23 FROM tab0
----
10
44
47
104
99
24

onlyif mysql # DIV for integer division: 
query II rowsort label-3664
SELECT col1 AS col1, + col2 DIV col2 FROM tab2
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-3664
SELECT col1 AS col1, + col2 / col2 FROM tab2
----
51
1
67
1
77
1

query I rowsort
SELECT ( - 26 ) AS col2 FROM tab2
----
-26
-26
-26

query II rowsort
SELECT DISTINCT - 70 * - + 37, - 48 AS col0 FROM tab1
----
2590
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT - CAST( + + col0 AS SIGNED ) * 92 * - - 70 AS col2 FROM tab2
----
-296240
-412160
-483000

skipif mysql # not compatible
query I rowsort label-3667
SELECT - CAST ( + + col0 AS INTEGER ) * 92 * - - 70 AS col2 FROM tab2
----
-296240
-412160
-483000

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3669
SELECT ALL - col2 * - col1 AS col0, - 72 DIV - 52 FROM tab0
----
210
1
3807
1
99
1

skipif mysql # not compatible
query II rowsort label-3669
SELECT ALL - col2 * - col1 AS col0, - 72 / - 52 FROM tab0
----
210
1
3807
1
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3670
SELECT DISTINCT - 9 * col1 * + - 63, - CAST( NULL AS SIGNED ) / + 16 * + col0 AS col0 FROM tab0 WHERE - + 34 + 0 * - - ( - col1 ) <> NULL
----

skipif mysql # not compatible
query II rowsort label-3670
SELECT DISTINCT - 9 * col1 * + - 63, - CAST ( NULL AS INTEGER ) / + 16 * + col0 AS col0 FROM tab0 WHERE - + 34 + 0 * - - ( - col1 ) <> NULL
----

query II rowsort
SELECT DISTINCT 60 AS col2, ( + + col1 ) + - col0 AS col1 FROM tab2
----
60
-8
60
13
60
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3672
SELECT - COUNT( * ) col2, + COUNT( * ) AS col0 FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3672
SELECT - COUNT ( * ) col2, + COUNT ( * ) AS col0 FROM tab0
----
-3
3

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

query I rowsort
SELECT ALL + - 55 * + col1 AS col0 FROM tab0 AS cor0
----
-1155
-4455
-55

query I rowsort
SELECT 25 + 68 * - col0 * 82 - + ( - col0 ) FROM tab2
----
-256425
-356775
-418100

query I rowsort
SELECT ALL + - col0 + - - col0 + - - 15 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT + col0 * - - col1 * - col1 + ( 49 ) + + 71 * col2 AS col0 FROM tab2 AS cor0
----
-117964
-332508
-376567

query I rowsort
SELECT DISTINCT + + 99 AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT DISTINCT - col2 DIV 9 FROM tab1 AS cor0
----
-10
-6
-7

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT - col2 / 9 FROM tab1 AS cor0
----
-10
-6
-7

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 17 + ( col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 52 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT 59 IN ( 48 * col2 + col0 )
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3684
SELECT DISTINCT CAST( AVG ( 80 ) AS SIGNED ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT CAST ( AVG ( 80 ) AS INTEGER ) FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT MIN( DISTINCT col1 ) + COUNT( * ) col2 FROM tab2
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3685
SELECT MIN ( DISTINCT col1 ) + COUNT ( * ) col2 FROM tab2
----
54

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

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - COUNT ( * ) / 64 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT ALL 0 DIV - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL 0 / - col2 FROM tab2
----
0
0
0

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

query I rowsort
SELECT DISTINCT ( + col1 ) * ( col2 ) FROM tab2 WHERE NOT col1 IS NULL
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 50 >= ( + 55 )
----

query I rowsort
SELECT ALL + 88 - col1 FROM tab2
----
11
21
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT - 8 * - 27 + 44 * - COUNT( * ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-3692
SELECT - 8 * - 27 + 44 * - COUNT ( * ) AS col1 FROM tab1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3693
SELECT + COUNT( * ) DIV - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3693
SELECT + COUNT ( * ) / - COUNT ( * ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3694
SELECT + CAST( 99 AS SIGNED ) DIV - 93 col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3694
SELECT + CAST ( 99 AS INTEGER ) / - 93 col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT ALL COUNT( * ) FROM tab1 WHERE - col0 IN ( 44 / ( + col0 * 79 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL COUNT ( * ) FROM tab1 WHERE - col0 IN ( 44 / ( + col0 * 79 ) )
----
0

query I rowsort
SELECT 47 + - col0 * col0 AS col0 FROM tab0
----
-178
-7522
-9362

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

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

query I rowsort
SELECT + col0 + 86 FROM tab2 WHERE NULL BETWEEN - 4 AND ( + col1 ) + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT + MAX( DISTINCT - col2 ) - 74 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3699
SELECT + MAX ( DISTINCT - col2 ) - 74 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 )
----
NULL

query I rowsort
SELECT ALL 14 * col2 + 88 AS col0 FROM tab1
----
1040
1432
914

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * 43 + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * 43 + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 62 + 89 AS col1 FROM tab2
----
151
151
151

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

query I rowsort
SELECT ALL 67 + col1 AS col0 FROM tab0 WHERE NOT ( NULL ) <> col0
----

query I rowsort
SELECT - col2 + col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3707
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3708
SELECT * FROM tab1 WHERE ( col0 * - 84 ) NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3708
SELECT * FROM tab1 WHERE ( col0 * - 84 ) NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3709
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST( + ( - 56 ) AS SIGNED ) * col0 + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3709
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST ( + ( - 56 ) AS INTEGER ) * col0 + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * ( 77 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT COUNT( ALL 71 ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3711
SELECT COUNT ( ALL 71 ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + col1 )
----
0

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT ALL + MAX( 60 ) AS col0 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL + MAX ( 60 ) AS col0 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT DISTINCT COUNT( * ) * 79 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT COUNT ( * ) * 79 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( + col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT ALL + + col0 + + col2 DIV + 85 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL + + col0 + + col2 / + 85 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3716
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN CAST( NULL AS SIGNED ) AND + col0 * col1
----

skipif mysql # not compatible
query III rowsort label-3716
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN CAST ( NULL AS INTEGER ) AND + col0 * col1
----

query I rowsort
SELECT DISTINCT col0 + - ( - col0 ) FROM tab0 AS cor0
----
174
194
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col0 FROM tab2 AS cor0
----
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= - 71
----

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE ( col2 ) IS NOT NULL
----
10
47
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 28 * + col0 col1 FROM tab1 AS cor0
----
1428
2380
2548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col1 FROM tab0 AS cor0 WHERE 76 + col0 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT COUNT( * ) * - + 12 + 60 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-3724
SELECT COUNT ( * ) * - + 12 + 60 FROM tab2
----
24

query I rowsort
SELECT ALL 35 AS col1 FROM tab1 WHERE NOT ( - col2 ) <= 37
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT + ( + col0 ) DIV + col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3726
SELECT + ( + col0 ) / + col2 FROM tab0
----
0
0
8

query I rowsort
SELECT ALL - ( - 62 ) FROM tab1
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT DISTINCT col0 * ( + CAST( ( col0 ) AS SIGNED ) ) FROM tab1 WHERE NOT col0 IN ( 16 * + col0 + - col2 )
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT col0 * ( + CAST ( ( col0 ) AS INTEGER ) ) FROM tab1 WHERE NOT col0 IN ( 16 * + col0 + - col2 )
----
2601
7225
8281

query I rowsort
SELECT 22 * - col0 * col1 FROM tab2
----
-108416
-110550
-51612

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT - 61 DIV - - 15 FROM tab0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-3730
SELECT - 61 / - - 15 FROM tab0
----
-4
-4
-4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 + - col0 ) <> - col0 / 40
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3732
SELECT SUM( ALL - CAST( NULL AS DECIMAL ) ) * + 93 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT SUM ( ALL - CAST ( NULL AS REAL ) ) * + 93 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT 63 * ( col0 ) * - col1 AS col2 FROM tab2
----
-147798
-310464
-316575

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT MAX( + 46 ) AS col0 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-3734
SELECT MAX ( + 46 ) AS col0 FROM tab0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT DISTINCT - COUNT( * ) + - 94 AS col0 FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT - COUNT ( * ) + - 94 AS col0 FROM tab2
----
-97

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE ( NULL ) >= + 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3737
SELECT col0 * 8 AS col2 FROM tab1 AS cor0 WHERE col2 + + col2 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3737
SELECT col0 * 8 AS col2 FROM tab1 AS cor0 WHERE col2 + + col2 < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 9 + + col0 FROM tab2 AS cor0
----
37
55
66

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3740
SELECT DISTINCT col1 - + col1 + col2 * col1 DIV - 68 AS col2 FROM tab1 AS cor0
----
-19
-4
-47

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT col1 - + col1 + col2 * col1 / - 68 AS col2 FROM tab1 AS cor0
----
-19
-4
-47

query I rowsort
SELECT - + col0 - - 80 AS col2 FROM tab2 AS cor0
----
16
34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL + COUNT( * ) * - COUNT( * ) + 88 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
7

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + 88 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col0 FROM tab0 WHERE NULL IN ( 68 - col1 )
----

query I rowsort
SELECT ALL + col1 - - 2 FROM tab2
----
53
69
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT + COUNT( * ) * - - 31 * + 67 FROM tab0 cor0
----
6231

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT + COUNT ( * ) * - - 31 * + 67 FROM tab0 cor0
----
6231

onlyif mysql # DIV for integer division: 
query I rowsort label-3746
SELECT ALL col2 * col2 * - col2 + col0 DIV + col2 AS col1 FROM tab2 AS cor0
----
-12165
-195111
-63999

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL col2 * col2 * - col2 + col0 / + col2 AS col1 FROM tab2 AS cor0
----
-12165
-195111
-63999

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT ALL + CAST( - 50 AS SIGNED ) / ( - 42 ) * col2 + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL + CAST ( - 50 AS INTEGER ) / ( - 42 ) * col2 + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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

query I rowsort
SELECT col0 - + 56 / col2 FROM tab0 AS cor0 WHERE NOT + 88 NOT IN ( 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT - MIN( ALL - 24 ) AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3753
SELECT - MIN ( ALL - 24 ) AS col1 FROM tab0 AS cor0
----
24

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3755
SELECT ALL 78 * + + 0 * + - ( - ( + col2 ) ) DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL 78 * + + 0 * + - ( - ( + col2 ) ) / col1 FROM tab2
----
0
0
0

query II rowsort
SELECT + col1 * + - 71, - col2 AS col1 FROM tab1
----
-3337
-68
-355
-59
-994
-96

query I rowsort
SELECT DISTINCT + col0 * col2 AS col0 FROM tab0 WHERE ( NULL ) >= col1 * + + col2 * + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 99 ) < NULL
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 87 < ( - 92 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 14 AS col2 FROM tab1 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT - col0 * - + CAST( 84 AS SIGNED ) * col1 + + col0 FROM tab0
----
102075
153555
8245

skipif mysql # not compatible
query I rowsort label-3762
SELECT - col0 * - + CAST ( 84 AS INTEGER ) * col1 + + col0 FROM tab0
----
102075
153555
8245

query III rowsort
SELECT * FROM tab2 WHERE - col2 >= - - col0 + col2
----

query I rowsort
SELECT col2 / - 51 AS col0 FROM tab0 WHERE + - col2 >= + + 2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 > - col0
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT MIN( ALL - 8 ) FROM tab1 AS cor0 WHERE ( NULL ) IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT MIN ( ALL - 8 ) FROM tab1 AS cor0 WHERE ( NULL ) IN ( col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT + - MAX( - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3767
SELECT + - MAX ( - col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT ALL + ( + 11 ) + CAST( NULL AS SIGNED ) + 54 / col0 + 80 / + 77 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL + ( + 11 ) + CAST ( NULL AS INTEGER ) + 54 / col0 + 80 / + 77 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - SUM( + col0 ) col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3770
SELECT - SUM ( + col0 ) col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT 37 + 8 * - + col2 FROM tab2 cor0
----
-147
-283
-427

query I rowsort
SELECT - - 6 AS col0 FROM tab1 cor0
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3773
SELECT 85 * CAST( + + COUNT( * ) AS SIGNED ) - - + 24 + + 54 DIV - - 69 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-3773
SELECT 85 * CAST ( + + COUNT ( * ) AS INTEGER ) - - + 24 + + 54 / - - 69 FROM tab2
----
279

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + + + col2 + - - 46 * - col1 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT col0 * - col2 FROM tab0 WHERE - col1 * - col2 > NULL
----

query II rowsort
SELECT ALL col1 AS col2, - 52 AS col0 FROM tab2
----
51
-52
67
-52
77
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + 63 AS col1 FROM tab2
----
51
63
67
63
77
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT DISTINCT CAST( + col1 AS SIGNED ) FROM tab1 WHERE NOT - - 93 * - - 17 + - col1 = ( col2 )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT CAST ( + col1 AS INTEGER ) FROM tab1 WHERE NOT - - 93 * - - 17 + - col1 = ( col2 )
----
14
47
5

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE - col2 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + 2 )
----

query I rowsort
SELECT DISTINCT - 35 + + + col0 * + + col0 - - - col0 * + ( + 94 ) + col1 AS col1 FROM tab2 AS cor0
----
-1393
-1878
-2192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3782
SELECT - CAST( NULL AS SIGNED ) * - 65 * - col1 / col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT - CAST ( NULL AS INTEGER ) * - 65 * - col1 / col1 FROM tab1 cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3783
SELECT + - MIN ( ALL + col2 ) col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT + 31 * - col2 * + - col0 AS col0 FROM tab1
----
151776
155465
191828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT - 3 / CAST( NULL AS SIGNED ) - - col1 * col1 FROM tab1 WHERE NOT + - col0 < 12 + - col2 + + 76
----

skipif mysql # not compatible
query I rowsort label-3785
SELECT - 3 / CAST ( NULL AS INTEGER ) - - col1 * col1 FROM tab1 WHERE NOT + - col0 < 12 + - col2 + + 76
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3786
SELECT + + 21 * + 58, col1 DIV 69 AS col2 FROM tab0 AS cor0
----
1218
0
1218
0
1218
1

skipif mysql # not compatible
query II rowsort label-3786
SELECT + + 21 * + 58, col1 / 69 AS col2 FROM tab0 AS cor0
----
1218
0
1218
0
1218
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3787
SELECT DISTINCT + - 4 DIV 71 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT + - 4 / 71 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - 88 BETWEEN + 49 AND col2 * + + 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col2 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - 43 IN ( + 40 ) )
----

query I rowsort
SELECT ALL 74 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 22 / col2 IS NULL
----

query I rowsort
SELECT DISTINCT 75 * ( + 22 ) * col1 FROM tab1
----
23100
77550
8250

query I rowsort
SELECT + col0 * col1 * - - col1 FROM tab1
----
201019
2125
9996

onlyif mysql # DIV for integer division: 
query II rowsort label-3797
SELECT DISTINCT - col2 AS col1, - ( + ( col1 ) ) DIV + + col2 AS col0 FROM tab0
----
-10
-2
-47
-1
-99
0

skipif mysql # not compatible
query II rowsort label-3797
SELECT DISTINCT - col2 AS col1, - ( + ( col1 ) ) / + + col2 AS col0 FROM tab0
----
-10
-2
-47
-1
-99
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3798
SELECT ALL * FROM tab0 WHERE + col1 + - col1 * - - col0 BETWEEN ( col0 * + + col1 ) AND - CAST( NULL AS SIGNED ) OR NOT ( col0 * col1 - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3798
SELECT ALL * FROM tab0 WHERE + col1 + - col1 * - - col0 BETWEEN ( col0 * + + col1 ) AND - CAST ( NULL AS INTEGER ) OR NOT ( col0 * col1 - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3799
SELECT 31, CAST( + col0 AS SIGNED ) - 4 col0 FROM tab1
----
31
47
31
81
31
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3799
SELECT 31, CAST ( + col0 AS INTEGER ) - 4 col0 FROM tab1
----
31
47
31
81
31
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col1 FROM tab1 WHERE NOT - col2 NOT IN ( + 11 )
----

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

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

skipif mysql # not compatible
query I rowsort label-3802
SELECT - COUNT ( DISTINCT col2 ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3803
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 IN ( + col0 * - 40 + - CAST( NULL AS DECIMAL ) + - + 44 * col0 )
----

skipif mysql # not compatible
query III rowsort label-3803
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 IN ( + col0 * - 40 + - CAST ( NULL AS REAL ) + - + 44 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT 7 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 / + ( + CAST( NULL AS SIGNED ) ) * - 44 + + - 52 + - - CAST( + + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3804
SELECT 7 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 / + ( + CAST ( NULL AS INTEGER ) ) * - 44 + + - 52 + - - CAST ( + + col2 AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT + 86, col2 FROM tab1 cor0
----
86
59
86
68
86
96

query I rowsort
SELECT DISTINCT - col0 + - col1 AS col2 FROM tab0 WHERE NOT + 39 IS NULL
----
-108
-96
-98

query I rowsort
SELECT DISTINCT ( 53 ) + - 26 FROM tab2
----
27

query I rowsort
SELECT + col1 + 86 * - + col1 * + + 30 + + + col1 AS col0 FROM tab2 AS cor0
----
-131478
-172726
-198506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 + - - col0 col0, - col0 - + col0 FROM tab0 cor0
----
-66
-30
66
-174
96
-194

query I rowsort
SELECT + col0 * col1 + + 37 AS col1 FROM tab1 AS cor0
----
4314
462
751

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 - - 37 * + 64 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - 80 + + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - 80 * COUNT( * ) AS col1 FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-3814
SELECT - 80 * COUNT ( * ) AS col1 FROM tab2
----
-240

query I rowsort
SELECT DISTINCT + col2 + - + col2 + ( + - 11 ) AS col2 FROM tab1
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3816
SELECT ALL col2 * + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL col2 * + + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT MIN( - - 56 ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT MIN ( - - 56 ) FROM tab0
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, col1 col1 FROM tab0
----
-10
21
-47
81
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3819
SELECT ALL 39 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL 39 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - col1 * col1 AS col1 FROM tab0
----
-1
-531441
-9261

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3822
SELECT 53, - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 + + CAST( + - 66 AS SIGNED ) + + - col0 IS NULL
----
53
-3

skipif mysql # not compatible
query II rowsort label-3822
SELECT 53, - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 + + CAST ( + - 66 AS INTEGER ) + + - col0 IS NULL
----
53
-3

query I rowsort
SELECT ALL + + 14 AS col2 FROM tab1 cor0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3824
SELECT ALL 75 + + - col2 + + col2 * + + 21 FROM tab2 AS cor0 WHERE - CAST( - - 96 AS SIGNED ) BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL 75 + + - col2 + + col2 * + + 21 FROM tab2 AS cor0 WHERE - CAST ( - - 96 AS INTEGER ) BETWEEN - col2 AND NULL
----

query I rowsort
SELECT col2 * - 59 * - col2 AS col2 FROM tab2 AS cor0
----
198476
31211
94400

query I rowsort
SELECT ALL - 91 * + + 92 AS col2 FROM tab1 AS cor0
----
-8372
-8372
-8372

query I rowsort
SELECT DISTINCT col2 * - 59 FROM tab0
----
-2773
-5841
-590

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + 57 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT DISTINCT - col1 * CAST( - - col1 AS SIGNED ) AS col0 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT - col1 * CAST ( - - col1 AS INTEGER ) AS col0 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT 59 + - ( + col2 ) FROM tab0
----
-40
12
49

query I rowsort
SELECT DISTINCT + 15 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL - COUNT( ALL col0 ) + + 78 AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL - COUNT ( ALL col0 ) + + 78 AS col1 FROM tab2 AS cor0
----
75

query II rowsort
SELECT col2 + 63 * 80 * col0, ( + 5 ) * - col0 - + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT + ( ( - + SUM( DISTINCT - - 90 ) ) ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT + ( ( - + SUM ( DISTINCT - - 90 ) ) ) FROM tab2
----
-90

query II rowsort
SELECT + col0 AS col2, col1 + - col0 - - ( + col2 ) AS col0 FROM tab1
----
51
59
85
-21
91
24

query I rowsort
SELECT ALL - 91 - - col0 AS col0 FROM tab2 AS cor0
----
-16
-27
-45

query I rowsort
SELECT - col0 * 37 FROM tab2 AS cor0 WHERE + col2 * + - 27 IS NOT NULL
----
-1702
-2368
-2775

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3839
SELECT 37 * - CAST( - 37 AS SIGNED ) * + COUNT( * ) - - 18 AS col0 FROM tab2 AS cor0
----
4125

skipif mysql # not compatible
query I rowsort label-3839
SELECT 37 * - CAST ( - 37 AS INTEGER ) * + COUNT ( * ) - - 18 AS col0 FROM tab2 AS cor0
----
4125

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 50 <> + 87 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( - col2 ) - + 70, col1 AS col1 FROM tab0 AS cor0
----
-117
81
-169
1
-80
21

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 * + col0 * + col1 / - col2 <= + - col0 + + col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT 94 - + COUNT( * ) + 37 FROM tab1
----
128

skipif mysql # not compatible
query I rowsort label-3843
SELECT 94 - + COUNT ( * ) + 37 FROM tab1
----
128

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - 76, - col2 )
----

query I rowsort
SELECT - col2 + + + col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 29 * + + 80 * 38 * col0 AS col0 FROM tab0
----
1322400
7669920
8551520

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

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT + - MIN ( + 5 ) FROM tab2 AS cor0
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT + MAX( + 2 ) AS col2 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3849
SELECT + MAX ( + 2 ) AS col2 FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT 97 + + ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
106

skipif mysql # not compatible
query I rowsort label-3850
SELECT 97 + + ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-3851
SELECT ALL 34 col0, + COUNT( * ) * + 14 FROM tab0
----
34
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3851
SELECT ALL 34 col0, + COUNT ( * ) * + 14 FROM tab0
----
34
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3852
SELECT - col2 * - 44 - - CAST( NULL AS SIGNED ) + - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3852
SELECT - col2 * - 44 - - CAST ( NULL AS INTEGER ) + - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + ( col0 ) FROM tab2 AS cor0 WHERE NOT NULL = NULL OR NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * + ( + - 48 ) FROM tab0 AS cor0
----
-4176
-4656
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT col1 / col2 + + + 4 + + col1 * - - 88 * - - CAST( NULL AS SIGNED ) * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT col1 / col2 + + + 4 + + col1 * - - 88 * - - CAST ( NULL AS INTEGER ) * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3856
SELECT MIN( - col0 ) * + 22 AS col0, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-2134
-3

skipif mysql # not compatible
query II rowsort label-3856
SELECT MIN ( - col0 ) * + 22 AS col0, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-2134
-3

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 14 + + col1 col0, + col2 FROM tab0
----
15
99
35
10
95
47

query I rowsort
SELECT ALL 67 * + 44 AS col2 FROM tab0
----
2948
2948
2948

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT + MIN( ALL 94 ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-3861
SELECT + MIN ( ALL 94 ) FROM tab0
----
94

query I rowsort
SELECT DISTINCT + col1 + + 31 FROM tab1
----
36
45
78

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

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

skipif mysql # not compatible
query I rowsort label-3864
SELECT - col1 * col0 - col2 + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3866
SELECT DISTINCT + col2 DIV - + 68 * 85 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT + col2 / - + 68 * 85 AS col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 ) * - col2 / - + col2 + - 66 / + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL + SUM( DISTINCT - col0 ) + COUNT( ALL - - col2 ) FROM tab1 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL + SUM ( DISTINCT - col0 ) + COUNT ( ALL - - col2 ) FROM tab1 AS cor0
----
-224

query I rowsort
SELECT ALL - + col1 * 67 FROM tab2 AS cor0 WHERE + col1 + + col2 + - col0 IS NOT NULL
----
-3417
-4489
-5159

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

query I rowsort
SELECT ALL 60 - + 74 AS col0 FROM tab0
----
-14
-14
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, col2 + + - col0 + + + col0 * col2 * + col2 + - + col1 * col0 col2 FROM tab0
----
1
950602
21
6796
81
31952

onlyif mysql # aggregate syntax: 
query II rowsort label-3873
SELECT DISTINCT - COUNT( * ) AS col1, - COUNT( DISTINCT - col0 ) + - + ( - - 16 ) col2 FROM tab2
----
-3
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3873
SELECT DISTINCT - COUNT ( * ) AS col1, - COUNT ( DISTINCT - col0 ) + - + ( - - 16 ) col2 FROM tab2
----
-3
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3874
SELECT + 7 DIV - + COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-3874
SELECT + 7 / - + COUNT ( * ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3875
SELECT ALL - COUNT( * ), - COUNT( + - 70 ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3875
SELECT ALL - COUNT ( * ), - COUNT ( + - 70 ) FROM tab0 AS cor0
----
-3
-3

query I rowsort
SELECT DISTINCT - ( + 71 ) * 97 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 83 * + ( 67 ) AS col0 FROM tab1
----
5561
5561
5561

query I rowsort
SELECT 42 AS col1 FROM tab2 cor0
----
42
42
42

query I rowsort
SELECT ALL 4 + + col1 FROM tab1 cor0
----
18
51
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) * - - 79 col1 FROM tab2 AS cor0
----
-1817
-3160
-4582

query I rowsort
SELECT DISTINCT - + 40 * - 42 * - + col2 AS col1 FROM tab2 AS cor0
----
-38640
-67200
-97440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT + CAST( ( - col1 ) AS SIGNED ) * + 97 + - col2 * - - col0 FROM tab2 AS cor0
----
-10029
-10849
-6005

skipif mysql # not compatible
query I rowsort label-3882
SELECT + CAST ( ( - col1 ) AS INTEGER ) * + 97 + - col2 * - - col0 FROM tab2 AS cor0
----
-10029
-10849
-6005

query I rowsort
SELECT + 12 * 97 FROM tab2
----
1164
1164
1164

query I rowsort
SELECT DISTINCT - col0 * + + col0 FROM tab0
----
-225
-7569
-9409

query II rowsort
SELECT - col1 AS col0, - col2 FROM tab1
----
-14
-96
-47
-68
-5
-59

query II rowsort
SELECT DISTINCT - 46, 11 AS col1 FROM tab1
----
-46
11

query I rowsort
SELECT ALL + col2 + + 61 AS col1 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3888
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * col1 IS NULL AND + CAST( col0 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-3888
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * col1 IS NULL AND + CAST ( col0 AS INTEGER ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT DISTINCT - 44 DIV - 15 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
2

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT - 44 / - 15 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
2

query I rowsort
SELECT - - 22 + + col0 AS col2 FROM tab0 AS cor0
----
109
119
37

query II rowsort
SELECT ALL + 74, + col1 FROM tab1
----
74
14
74
47
74
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3892
SELECT ALL + + CAST( - - COUNT( DISTINCT - 80 ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL + + CAST ( - - COUNT ( DISTINCT - 80 ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - COUNT( * ) + + + 50 + 37 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
78

skipif mysql # not compatible
query I rowsort label-3893
SELECT - COUNT ( * ) + + + 50 + 37 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
78

query I rowsort
SELECT ALL 30 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL + 75 * col2 + - col2 + + - col2 AS col1 FROM tab0 AS cor0
----
3431
7227
730

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

query I rowsort
SELECT ALL - col1 * - 87 AS col2 FROM tab0 AS cor0
----
1827
7047
87

query I rowsort
SELECT ALL col0 + - - 64 FROM tab1 AS cor0
----
115
149
155

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

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

query I rowsort
SELECT ALL - + 0 + - 68 AS col1 FROM tab1 cor0
----
-68
-68
-68

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

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3903
SELECT ALL col2 DIV + + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL col2 / + + col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( + ( + - col0 ) - 26 * col2 ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( + ( + - col0 ) - 26 * col2 ) NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 BETWEEN - 91 AND + col0
----
87
21
10

query I rowsort
SELECT 11 AS col2 FROM tab0 WHERE NOT ( - col1 + + 13 ) IS NULL
----
11
11
11

query I rowsort
SELECT - col2 * + col0 * col0 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL - SUM( DISTINCT - 67 ) + + COUNT( * ) AS col1 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - SUM ( DISTINCT - 67 ) + + COUNT ( * ) AS col1 FROM tab0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL + - 46 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL + - 46 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-43

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

skipif mysql # not compatible
query I rowsort label-3910
SELECT + COUNT ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT COUNT( + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3911
SELECT COUNT ( + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3912
SELECT + col1 + - CAST( NULL AS DECIMAL ) + - 35 * - + 54 * + + col1 * + col0 / - CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT + col1 + - CAST ( NULL AS REAL ) + - 35 * - + 54 * + + col1 * + col0 / - CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 31
----

query I rowsort
SELECT col2 * + - col2 + - 55 AS col2 FROM tab1
----
-3536
-4679
-9271

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT 74 DIV - 45 col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3915
SELECT 74 / - 45 col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL 61 + + 48 FROM tab0
----
109
109
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT MIN( - col1 ) + + + 4 AS col0 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT MIN ( - col1 ) + + + 4 AS col0 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT - col2 + - + col0 * - col2 AS col2 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT + 26 + - - 0 FROM tab2
----
26
26
26

query I rowsort
SELECT - - col0 + + + col0 AS col2 FROM tab2 AS cor0
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 11 * + 32 col2 FROM tab1 AS cor0
----
352
352
352

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3923
SELECT ALL + CAST( NULL AS SIGNED ), + 61 + col1 AS col0 FROM tab2 AS cor0 WHERE ( - col1 ) = NULL
----

skipif mysql # not compatible
query II rowsort label-3923
SELECT ALL + CAST ( NULL AS INTEGER ), + 61 + col1 AS col0 FROM tab2 AS cor0 WHERE ( - col1 ) = NULL
----

query I rowsort
SELECT 9 * + - ( - col1 ) * 89 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
40851
53667
61677

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT DISTINCT + MAX( + 52 ) AS col0 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT + MAX ( + 52 ) AS col0 FROM tab0
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3926
SELECT ALL - col2 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL - col2 * - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 80 * + col2 FROM tab2
----
1840
3200
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT DISTINCT COUNT( DISTINCT col1 ) * - 53 FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT COUNT ( DISTINCT col1 ) * - 53 FROM tab1
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-3929
SELECT ALL + col1 DIV 6 AS col2 FROM tab0
----
0
13
3

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL + col1 / 6 AS col2 FROM tab0
----
0
13
3

query I rowsort
SELECT - 98 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3931
SELECT col2 * col2 DIV + + 24 FROM tab0
----
4
408
92

skipif mysql # not compatible
query I rowsort label-3931
SELECT col2 * col2 / + + 24 FROM tab0
----
4
408
92

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

query II rowsort
SELECT - col1 * + col1 AS col0, 16 FROM tab1 AS cor0
----
-196
16
-2209
16
-25
16

query I rowsort
SELECT - 74 * - - col2 / col0 FROM tab1 AS cor0 WHERE NOT 33 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 85 AS col0 FROM tab1 AS cor0
----
-85

query II rowsort
SELECT col1 * col1 * col1 + + col1 - 2, col0 FROM tab2
----
132700
46
300828
75
456608
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT - CAST( NULL AS SIGNED ) - + - 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3937
SELECT - CAST ( NULL AS INTEGER ) - + - 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-3938
SELECT DISTINCT - COUNT( * ) + + 63 AS col2, COUNT( * ) FROM tab2 cor0
----
60
3

skipif mysql # not compatible
query II rowsort label-3938
SELECT DISTINCT - COUNT ( * ) + + 63 AS col2, COUNT ( * ) FROM tab2 cor0
----
60
3

query I rowsort
SELECT - + ( - col1 ) * - col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL + - 41 + - - ( - 20 ) AS col0 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT 16 * - + ( + col1 ) * - 98 * + 30 + + col1 FROM tab0 AS cor0 WHERE NOT 1 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3942
SELECT ALL CAST( NULL AS SIGNED ) AS col2, CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3942
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT ALL - col1 + - + 92 AS col0 FROM tab0
----
-113
-173
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT MAX( + + 44 ) AS col2 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT MAX ( + + 44 ) AS col2 FROM tab1
----
44

onlyif mysql # DIV for integer division: 
query II rowsort label-3945
SELECT ALL + 92 AS col2, + 10 DIV + 32 FROM tab0
----
92
0
92
0
92
0

skipif mysql # not compatible
query II rowsort label-3945
SELECT ALL + 92 AS col2, + 10 / + 32 FROM tab0
----
92
0
92
0
92
0

query III rowsort
SELECT * FROM tab2 WHERE col1 + - 54 IN ( + 71 - + col2, col0, + col2 * 18 - 30, - 71 * + col2 )
----
75
67
58

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + - col1 < + 69 / 20 + - 65 - - ( + 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT - SUM( + 18 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3949
SELECT - SUM ( + 18 ) FROM tab0 AS cor0
----
-54

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

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

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

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

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

query I rowsort
SELECT - ( + 85 ) FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT ALL + + 12 AS col2 FROM tab1 AS cor0
----
12
12
12

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

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

query I rowsort
SELECT DISTINCT - 13 AS col2 FROM tab1 cor0
----
-13

query I rowsort
SELECT ALL col0 - + ( + 8 ) + - 98 FROM tab0 AS cor0 WHERE NOT NULL <= + 86
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE - 39 + col2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3959
SELECT * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) >= + 98 * - + col1
----

skipif mysql # not compatible
query III rowsort label-3959
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) >= + 98 * - + col1
----

query I rowsort
SELECT + 43 * col0 AS col0 FROM tab2
----
1978
2752
3225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 87 col2 FROM tab0 AS cor0
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT DISTINCT + - 70 AS col2 FROM tab2 WHERE - CAST( - col1 AS SIGNED ) BETWEEN - - col2 + + + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT + - 70 AS col2 FROM tab2 WHERE - CAST ( - col1 AS INTEGER ) BETWEEN - - col2 + + + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT + 3 + + + CAST( - + 61 AS SIGNED ) FROM tab1 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-3963
SELECT + 3 + + + CAST ( - + 61 AS INTEGER ) FROM tab1 AS cor0
----
-58
-58
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT - col2 DIV - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
11
6

skipif mysql # not compatible
query I rowsort label-3964
SELECT - col2 / - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
11
6

query I rowsort
SELECT ALL - col1 + 77 FROM tab0 cor0
----
-4
56
76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - 10 + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3967
SELECT ALL - col1, col2 + + CAST( 51 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col2 = - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query II rowsort label-3967
SELECT ALL - col1, col2 + + CAST ( 51 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col2 = - - CAST ( NULL AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 * + col0 + + col1 col1 FROM tab1 AS cor0
----
524
855
957

query I rowsort
SELECT + col1 * + col2 AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col0 FROM tab0 AS cor0 WHERE NOT 25 IS NULL
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL MIN( ALL col1 ) - + 52 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL MIN ( ALL col1 ) - + 52 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + ( col1 ) AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
1
21
81

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

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

query I rowsort
SELECT 49 * + 61 AS col0 FROM tab2
----
2989
2989
2989

query I rowsort
SELECT + 40 - - col0 * + col0 * + 52 FROM tab0 AS cor0
----
11740
393628
489308

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

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

query II rowsort
SELECT col1 AS col2, + 24 * - 80 FROM tab1
----
14
-1920
47
-1920
5
-1920

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 94 * col1 + col2
----

query II rowsort
SELECT + col0 AS col2, 19 FROM tab0 cor0
----
15
19
87
19
97
19

query I rowsort
SELECT ALL 19 AS col0 FROM tab2 cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT DISTINCT COUNT( * ) * - + 14 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT COUNT ( * ) * - + 14 FROM tab0 AS cor0
----
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT DISTINCT + 72 * MIN( ALL + col2 ) FROM tab0
----
720

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT + 72 * MIN ( ALL + col2 ) FROM tab0
----
720

query I rowsort
SELECT ALL 41 * - 97 * + col2 AS col0 FROM tab2
----
-159080
-230666
-91471

query I rowsort
SELECT DISTINCT 59 * - col2 FROM tab1
----
-3481
-4012
-5664

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + + col1 NOT BETWEEN NULL AND - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + col2 + - - col1 FROM tab2 AS cor0
----
1677
3431
580

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL <> - ( 90 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL <> - ( 90 ) )
----
0

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

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

query I rowsort
SELECT ALL + - col0 * + 6 * col0 - + - 41 AS col2 FROM tab2 AS cor0
----
-12655
-24535
-33709

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 + + 93 * + col1 + - ( col2 ) col2 FROM tab1 cor0
----
1156
356
4253

query I rowsort
SELECT DISTINCT + 73 * + 57 AS col0 FROM tab1 AS cor0
----
4161

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 92 BETWEEN NULL AND - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 39 >= - + col2 + - - col2 + - col2 / - + 71
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 AS cor0 WHERE 32 = + - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3997
SELECT DISTINCT col1 - CAST( + col1 AS SIGNED ) * - - col1 + - - col2 + + 39 DIV - + col0 + 93 AS col2 FROM tab1 AS cor0
----
-2001
132
7

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT col1 - CAST ( + col1 AS INTEGER ) * - - col1 + - - col2 + + 39 / - + col0 + 93 AS col2 FROM tab1 AS cor0
----
-2001
132
7

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

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL + COUNT ( * ) / + - MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - col1 * - - col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT col1 - + CAST( - 31 AS SIGNED ) FROM tab1 AS cor0
----
36
45
78

skipif mysql # not compatible
query I rowsort label-4000
SELECT col1 - + CAST ( - 31 AS INTEGER ) FROM tab1 AS cor0
----
36
45
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT ALL ( + 47 ) DIV + ( col1 ) - col1 FROM tab0 AS cor0
----
-19
-81
46

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL ( + 47 ) / + ( col1 ) - col1 FROM tab0 AS cor0
----
-19
-81
46

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

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

query I rowsort
SELECT + + col2 FROM tab0 WHERE + col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL 32 - + col2 + col2 FROM tab1
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT DISTINCT SUM( - + col0 ) col0 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4005
SELECT DISTINCT SUM ( - + col0 ) col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT + COUNT( * ) + - 28 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-4006
SELECT + COUNT ( * ) + - 28 FROM tab0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4007
SELECT col2 * - + ( col0 ) * - CAST( NULL AS SIGNED ) + CAST( + col1 AS SIGNED ) AS col1, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4007
SELECT col2 * - + ( col0 ) * - CAST ( NULL AS INTEGER ) + CAST ( + col1 AS INTEGER ) AS col1, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4008
SELECT + ( - 49 ) + - col2 DIV 36 FROM tab0
----
-49
-50
-51

skipif mysql # not compatible
query I rowsort label-4008
SELECT + ( - 49 ) + - col2 / 36 FROM tab0
----
-49
-50
-51

query I rowsort
SELECT + + ( + - col2 ) FROM tab1 WHERE - col0 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 69 AS col0 FROM tab0 cor0
----
116
168
79

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 95 + - ( col1 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL - SUM ( - col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4014
SELECT CAST( - MAX( ALL 19 ) AS SIGNED ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4014
SELECT CAST ( - MAX ( ALL 19 ) AS INTEGER ) FROM tab2 AS cor0
----
-19

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 + - col0 <= - + ( col0 ) + + col0 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * + - 9 AS col1 FROM tab1
----
-459
-765
-819

query I rowsort
SELECT DISTINCT + 82 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT 12 * COUNT( * ) * + - COUNT( * ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-4018
SELECT 12 * COUNT ( * ) * + - COUNT ( * ) FROM tab2
----
-108

query I rowsort
SELECT DISTINCT + + ( + - 99 ) AS col2 FROM tab2 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT + SUM( col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT + SUM ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4021
SELECT + - CAST( + col1 AS SIGNED ) * ( + 9 ) col0 FROM tab2 cor0
----
-459
-603
-693

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4021
SELECT + - CAST ( + col1 AS INTEGER ) * ( + 9 ) col0 FROM tab2 cor0
----
-459
-603
-693

query I rowsort
SELECT col1 * + col0 * + 3 AS col0 FROM tab0 cor0
----
291
3645
5481

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT ALL + + CAST( 57 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL + + CAST ( 57 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4026
SELECT ALL col2 AS col2, - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4026
SELECT ALL col2 AS col2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab1 WHERE + + col2 = NULL
----

query I rowsort
SELECT 9 * - + col0 FROM tab2
----
-414
-576
-675

query I rowsort
SELECT DISTINCT ( + col2 ) + + 90 AS col2 FROM tab0
----
100
137
189

query I rowsort
SELECT ALL 84 + + col1 + - 90 * - 57 FROM tab0
----
5215
5235
5295

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE 95 NOT IN ( 96, + 49 * - col1, col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-4031
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE 95 NOT IN ( 96, + 49 * - col1, col1 )
----
-3

query I rowsort
SELECT ALL 32 * + col2 AS col1 FROM tab1 AS cor0
----
1888
2176
3072

query II rowsort
SELECT + col2 AS col0, col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL - COUNT( * ) + - - 21 col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4034
SELECT ALL - COUNT ( * ) + - - 21 col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
18

query I rowsort
SELECT ALL 37 * col1 + + + 93 FROM tab2
----
1980
2572
2942

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT MAX( col2 ) + - COUNT( * ) * + COUNT( * ) col0 FROM tab2
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4036
SELECT MAX ( col2 ) + - COUNT ( * ) * + COUNT ( * ) col0 FROM tab2
----
49

query I rowsort
SELECT col1 + + col0 + - + 67 AS col2 FROM tab1 AS cor0
----
-2
23
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NULL <> col2 + + 75 + + + 40
----

skipif mysql # not compatible
query I rowsort label-4038
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NULL <> col2 + + 75 + + + 40
----

query I rowsort
SELECT 18 + 56 * - ( col2 ) FROM tab1 AS cor0
----
-3286
-3790
-5358

query I rowsort
SELECT DISTINCT - col2 * - 87 + col1 AS col0 FROM tab2 AS cor0
----
2052
3557
5113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4041
SELECT ALL - CAST( NULL AS SIGNED ) * 14 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL - CAST ( NULL AS INTEGER ) * 14 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT DISTINCT COUNT( * ) - SUM( - col1 ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT COUNT ( * ) - SUM ( - col1 ) FROM tab1 AS cor0
----
69

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

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

query I rowsort
SELECT ALL 76 - + col0 AS col1 FROM tab2
----
1
12
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT COUNT( * ) * - MAX( - 18 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-4045
SELECT COUNT ( * ) * - MAX ( - 18 ) FROM tab2
----
54

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT ALL 76 DIV - - 59 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL 76 / - - 59 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 + + col1 + + + col2 * + - col0 * 50 + - + col2 + col1 + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab2 cor0
----
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT + + MIN( DISTINCT 8 ) AS col0 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT + + MIN ( DISTINCT 8 ) AS col0 FROM tab0 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 * col0 col1 FROM tab1
----
2091
3485
3731

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

query II rowsort
SELECT ALL + col0, 18 * - col2 FROM tab0 AS cor0
----
15
-846
87
-180
97
-1782

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

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

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

query II rowsort
SELECT DISTINCT + col2, col2 - + 2 FROM tab0 AS cor0
----
10
8
47
45
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4058
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 83 FROM tab0 AS cor0
----
NULL
83
NULL
83
NULL
83

skipif mysql # not compatible
query II rowsort label-4058
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 83 FROM tab0 AS cor0
----
NULL
83
NULL
83
NULL
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4059
SELECT - COUNT( * ), CAST( NULL AS DECIMAL ) * COUNT( * ) * + ( - - 58 ) AS col0 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4059
SELECT - COUNT ( * ), CAST ( NULL AS REAL ) * COUNT ( * ) * + ( - - 58 ) AS col0 FROM tab2 AS cor0
----
-3
NULL

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

query II rowsort
SELECT - col2 - col0 AS col1, col1 - - + 49 FROM tab1 WHERE NOT 95 IS NULL
----
-144
54
-147
63
-159
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT - MAX( - - col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4062
SELECT - MAX ( - - col1 ) AS col2 FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT + 26 * + CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT + 26 * + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 5 + - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-112
-120
-69

query I rowsort
SELECT - 39 * col2 + ( + + col1 ) FROM tab0 AS cor0
----
-1752
-369
-3860

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL + MAX( 58 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL + MAX ( 58 ) FROM tab2
----
58

query III rowsort
SELECT * FROM tab1 WHERE + + ( - - 50 ) = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4068
SELECT * FROM tab0 AS cor0 INNER JOIN tab2 AS cor1 ON - CAST( + - 65 AS SIGNED ) <> - + 54
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif mysql # not compatible
query IIIIII rowsort label-4068
SELECT * FROM tab0 AS cor0 INNER JOIN tab2 AS cor1 ON - CAST ( + - 65 AS INTEGER ) <> - + 54
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL - 7 + - col1 FROM tab2 AS cor0
----
-58
-74
-84

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

query I rowsort
SELECT - 46 - - 91 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT col0 - 50 FROM tab0 AS cor0
----
-35
37
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT + 51 - + CAST( NULL AS SIGNED ) - - - 22 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT + 51 - + CAST ( NULL AS INTEGER ) - - - 22 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4074
SELECT + col1 - + + col0 * + + col2 + + CAST( + + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-543
-828
-9601

skipif mysql # not compatible
query I rowsort label-4074
SELECT + col1 - + + col0 * + + col2 + + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-543
-828
-9601

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4075
SELECT - CAST( - + col0 AS SIGNED ) - + col0 * CAST( NULL AS DECIMAL ) / - col2 - - ( 33 ) * + ( + + col1 ) + - + col2 * - 92 * + - 64 + - col2, 67 * - + 82 AS col0 FROM tab1 AS cor0
----
NULL
-5494
NULL
-5494
NULL
-5494

skipif mysql # not compatible
query II rowsort label-4075
SELECT - CAST ( - + col0 AS INTEGER ) - + col0 * CAST ( NULL AS REAL ) / - col2 - - ( 33 ) * + ( + + col1 ) + - + col2 * - 92 * + - 64 + - col2, 67 * - + 82 AS col0 FROM tab1 AS cor0
----
NULL
-5494
NULL
-5494
NULL
-5494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT + + 81 * CAST( NULL AS SIGNED ) - - col0 - 23 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT + + 81 * CAST ( NULL AS INTEGER ) - - col0 - 23 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4077
SELECT DISTINCT - - 90 + - SUM( ALL + - col2 ) col2, 69 FROM tab2 AS cor0
----
211
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4077
SELECT DISTINCT - - 90 + - SUM ( ALL + - col2 ) col2, 69 FROM tab2 AS cor0
----
211
69

query II rowsort
SELECT - col0 * - 58 + - 93 + + col0, 60 AS col2 FROM tab1
----
2916
60
4922
60
5276
60

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 7 ) <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 + - 10 < NULL
----

query I rowsort
SELECT DISTINCT + 61 * col0 AS col1 FROM tab2
----
2806
3904
4575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 * + col2 col2 FROM tab1
----
3953
4556
6432

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4083
SELECT 94 AS col2, + col0 * + - col1 * + col2 FROM tab1 WHERE NOT ( NULL ) >= CAST( NULL AS SIGNED ) * 51 OR NOT NULL IS NOT NULL
----
94
-25075
94
-290836
94
-68544

skipif mysql # not compatible
query II rowsort label-4083
SELECT 94 AS col2, + col0 * + - col1 * + col2 FROM tab1 WHERE NOT ( NULL ) >= CAST ( NULL AS INTEGER ) * 51 OR NOT NULL IS NOT NULL
----
94
-25075
94
-290836
94
-68544

query II rowsort
SELECT ( + ( 38 ) ) AS col0, + 7 FROM tab2
----
38
7
38
7
38
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL 43 * COUNT( * ) AS col2 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL 43 * COUNT ( * ) AS col2 FROM tab2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT SUM( ALL col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-4086
SELECT SUM ( ALL col0 ) FROM tab1 cor0
----
227

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( + ( + col0 ) ) ) col0 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0, - col1 * + + col0, + 74 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT ALL + CAST( - - MIN( + + 73 ) AS SIGNED ) FROM tab0 AS cor0
----
73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT - COUNT( * ) + + - ( - COUNT( * ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4091
SELECT - COUNT ( * ) + + - ( - COUNT ( * ) ) FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 54 NOT BETWEEN NULL AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT + ( 8 ) + MAX( + + 50 ) AS col2 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-4094
SELECT + ( 8 ) + MAX ( + + 50 ) AS col2 FROM tab1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT col2 + + CAST( - - col0 AS SIGNED ) FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-4095
SELECT col2 + + CAST ( - - col0 AS INTEGER ) FROM tab0
----
196
62
97

query I rowsort
SELECT col1 FROM tab1 WHERE 77 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT - col1 DIV - ( col1 ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4097
SELECT - col1 / - ( col1 ) AS col2 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - 27 * + col2 + + - 24 * col1, 65 / + + 94 - - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4099
SELECT ALL - col0 DIV + 83 + - - 21 FROM tab2
----
21
21
21

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL - col0 / + 83 + - - 21 FROM tab2
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) <= 43
----
0

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) <= 43
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT - MIN( + + 46 ) AS col1 FROM tab0 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4102
SELECT - MIN ( + + 46 ) AS col1 FROM tab0 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT 62 + - + COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-4103
SELECT 62 + - + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
53

query I rowsort
SELECT ALL - + 38 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT ALL + col1 * - col0 * + - col1 + - col2 FROM tab0 AS cor0
----
-2
38357
98368

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col0 * + 42 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 - - col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + 93 col0 FROM tab2 AS cor0
----
16
26
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4109
SELECT * FROM tab0 AS cor0 WHERE - 43 * + CAST( NULL AS SIGNED ) + - - 89 - + col1 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4109
SELECT * FROM tab0 AS cor0 WHERE - 43 * + CAST ( NULL AS INTEGER ) + - - 89 - + col1 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT DISTINCT ( - col1 ) DIV + 44 AS col1 FROM tab0 AS cor0 WHERE NOT 31 BETWEEN - col0 + + 73 AND - col0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT ( - col1 ) / + 44 AS col1 FROM tab0 AS cor0 WHERE NOT 31 BETWEEN - col0 + + 73 AND - col0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 49 + - col2 col0 FROM tab2 AS cor0
----
-107
-72
-89

query II rowsort
SELECT - - ( col0 ) AS col0, col2 * col1 * + - ( - col1 ) AS col2 FROM tab1 AS cor0
----
51
18816
85
1475
91
150212

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT + + MAX( + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT + + MAX ( + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, + col2 * col2 - + + col2 - + - 7 col2 FROM tab0
----
15
2169
87
97
97
9709

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

skipif mysql # not compatible
query I rowsort label-4116
SELECT MIN ( DISTINCT + col1 ) AS col2 FROM tab2
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 84 + + 86 + + + col2 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT DISTINCT col2 * - 87 * - ( col1 ) * + col2 + + 14 + - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT col2 * - 87 * - ( col1 ) * + col2 + + 14 + - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT DISTINCT - SUM( col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT - SUM ( col1 ) AS col0 FROM tab0
----
-103

query I rowsort
SELECT - 49 * col0 AS col0 FROM tab0
----
-4263
-4753
-735

query I rowsort
SELECT DISTINCT - col0 * 12 AS col0 FROM tab0
----
-1044
-1164
-180

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT ALL - - CAST( + 51 AS SIGNED ) col2 FROM tab2 cor0
----
51
51
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4123
SELECT ALL - - CAST ( + 51 AS INTEGER ) col2 FROM tab2 cor0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4124
SELECT CAST( ( - col0 ) AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4124
SELECT CAST ( ( - col0 ) AS INTEGER ) / col2 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT - 55 DIV - - COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4125
SELECT - 55 / - - COUNT ( * ) FROM tab0 AS cor0
----
-18

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 85 + - + col2 <> - col1
----

query I rowsort
SELECT DISTINCT 29 * col1 FROM tab0 WHERE 24 + col0 <> NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT MAX( ALL col0 ) * COUNT( * ) col2 FROM tab0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4130
SELECT MAX ( ALL col0 ) * COUNT ( * ) col2 FROM tab0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4131
SELECT CAST( + col1 AS SIGNED ) + + col0 AS col1 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-4131
SELECT CAST ( + col1 AS INTEGER ) + + col0 AS col1 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT SUM( 84 ) FROM tab0 WHERE NOT - col0 IN ( col0 )
----
252

skipif mysql # not compatible
query I rowsort label-4132
SELECT SUM ( 84 ) FROM tab0 WHERE NOT - col0 IN ( col0 )
----
252

query I rowsort
SELECT + col0 + 70 * 44 AS col0 FROM tab1
----
3131
3165
3171

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col2 AND + 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL + COUNT( * ) * 87 col1 FROM tab0
----
261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4135
SELECT ALL + COUNT ( * ) * 87 col1 FROM tab0
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT DISTINCT - 78 / - CAST( NULL AS SIGNED ) + 88 / + MAX( ALL 93 / + col1 + col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT - 78 / - CAST ( NULL AS INTEGER ) + 88 / + MAX ( ALL 93 / + col1 + col0 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - 73 + + col1 * col0 AS col0 FROM tab2
----
2273
4855
4952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4138
SELECT - 50 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4138
SELECT - 50 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4139
SELECT - COUNT( * ) * - 31 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT - COUNT ( * ) * - 31 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT - 56 + - 8 DIV - col0 FROM tab1
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-4141
SELECT - 56 + - 8 / - col0 FROM tab1
----
-56
-56
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4142
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE col2 * + CAST( + col1 AS SIGNED ) <> 66
----
3

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE col2 * + CAST ( + col1 AS INTEGER ) <> 66
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT - MAX( col2 ) + - MAX( + col1 ) FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-4143
SELECT - MAX ( col2 ) + - MAX ( + col1 ) FROM tab2
----
-135

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE ( - 52 ) IS NOT NULL
----
51
67
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 col1 FROM tab0 WHERE NOT ( NULL ) <= ( 50 )
----

query I rowsort
SELECT ALL col0 * - 50 FROM tab1
----
-2550
-4250
-4550

query I rowsort
SELECT ALL 2 FROM tab0 WHERE NOT + col0 <> ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - COUNT( * ) * 71 AS col2 FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - COUNT ( * ) * 71 AS col2 FROM tab0
----
-213

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + 13 IS NULL
----

query I rowsort
SELECT 40 + - col2 AS col2 FROM tab0
----
-59
-7
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT DISTINCT COUNT( * ) col0 FROM tab1 WHERE NOT ( - col2 + + col2 * + col0 ) IN ( 11 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4152
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 WHERE NOT ( - col2 + + col2 * + col0 ) IN ( 11 )
----
3

query I rowsort
SELECT ( col1 ) + - 7 AS col1 FROM tab2
----
44
60
70

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

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

query I rowsort
SELECT DISTINCT AVG ( ALL col2 ) / - 86 + 69 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
NULL

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

query I rowsort
SELECT - col0 * col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT col2 * 48 - - 93 * - 61 AS col0 FROM tab1
----
-1065
-2409
-2841

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT DISTINCT 33 + - COUNT( * ) * + SUM( - 44 ) FROM tab2
----
429

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT 33 + - COUNT ( * ) * + SUM ( - 44 ) FROM tab2
----
429

query III rowsort
SELECT * FROM tab1 WHERE NULL > - ( + 6 ) + + 26 * col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> - col1 + col2 * 96
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT 78 DIV col1 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
444
6561
79

skipif mysql # not compatible
query I rowsort label-4164
SELECT 78 / col1 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
444
6561
79

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 - + 2 / - col2 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 58 * col0 AND + col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 ) WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - col1 + 38 FROM tab1 WHERE NOT col1 / col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - ( - col2 ) * 30 ) >= ( NULL )
----

query I rowsort
SELECT 91 FROM tab1 AS cor0 WHERE NOT ( col0 ) <> + ( 68 ) + + col0 * + col2
----

query I rowsort
SELECT DISTINCT + col1 * 28 FROM tab1 AS cor0
----
1316
140
392

query I rowsort
SELECT ( 85 ) * col0 FROM tab2 cor0
----
3910
5440
6375

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4174
SELECT DISTINCT - COUNT( ALL col1 ) col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) = - col1 * col2 + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4174
SELECT DISTINCT - COUNT ( ALL col1 ) col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) = - col1 * col2 + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT DISTINCT 47 * COUNT( DISTINCT col1 ) col1 FROM tab0
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4175
SELECT DISTINCT 47 * COUNT ( DISTINCT col1 ) col1 FROM tab0
----
141

query I rowsort
SELECT col0 + 91 AS col2 FROM tab1 WHERE NOT ( 99 * col2 + - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT COUNT( ALL + col0 ) * - 10 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4177
SELECT COUNT ( ALL + col0 ) * - 10 FROM tab1
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col1 FROM tab0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT DISTINCT MIN( ALL 18 ) FROM tab0 WHERE NOT col0 + 71 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT MIN ( ALL 18 ) FROM tab0 WHERE NOT col0 + 71 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4180
SELECT + col1 DIV - + 1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4180
SELECT + col1 / - + 1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 > 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 61 * - 28 * col2 FROM tab0 AS cor0
----
-169092
-17080
-80276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT + - CAST( - - 65 AS SIGNED ) AS col0 FROM tab1 cor0
----
-65
-65
-65

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4184
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( + ( - 88 ) AS SIGNED ) BETWEEN 57 AND ( CAST( NULL AS DECIMAL ) / - 83 )
----

skipif mysql # not compatible
query III rowsort label-4184
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( + ( - 88 ) AS INTEGER ) BETWEEN 57 AND ( CAST ( NULL AS REAL ) / - 83 )
----

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

query I rowsort
SELECT + 32 * + 22 FROM tab2
----
704
704
704

query II rowsort
SELECT - col1 AS col0, ( - col0 ) FROM tab2
----
-51
-46
-67
-75
-77
-64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT MIN( + 62 ) AS col1 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT MIN ( + 62 ) AS col1 FROM tab2 AS cor0
----
62

query I rowsort
SELECT 10 + + - col2 FROM tab0 AS cor0
----
-37
-89
0

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

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

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

query I rowsort
SELECT DISTINCT 88 * + col1 + - col2 AS col2 FROM tab2 AS cor0
----
4465
5838
6736

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4194
SELECT + col0 / + CAST( + 75 AS DECIMAL ) FROM tab2 cor0 WHERE NULL NOT BETWEEN col1 AND - ( - 46 ) + + CAST( NULL AS SIGNED ) * + 57
----

skipif mysql # not compatible
query I rowsort label-4194
SELECT + col0 / + CAST ( + 75 AS REAL ) FROM tab2 cor0 WHERE NULL NOT BETWEEN col1 AND - ( - 46 ) + + CAST ( NULL AS INTEGER ) * + 57
----

query I rowsort
SELECT ALL - ( - + 45 ) + + col2 FROM tab1 AS cor0
----
104
113
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL ( SUM( DISTINCT 6 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + 45 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL ( SUM ( DISTINCT 6 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + 45 IS NULL
----
6

query I rowsort
SELECT DISTINCT - + col0 + + + col2 - 83 AS col2 FROM tab0 AS cor0
----
-160
-51
-81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4198
SELECT + CAST( NULL AS DECIMAL ) * + 56 * - CAST( NULL AS SIGNED ) * AVG ( DISTINCT + col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT + CAST ( NULL AS REAL ) * + 56 * - CAST ( NULL AS INTEGER ) * AVG ( DISTINCT + col2 ) AS col2 FROM tab0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= col1
----

query I rowsort
SELECT ALL + col2 * - 32 * - 28 + - col1 FROM tab1
----
52859
60881
86002

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT + COUNT( * ) + 46 FROM tab1 AS cor0 WHERE col0 + + col2 / col2 * 6 + + col1 * 79 <> col2
----
49

skipif mysql # not compatible
query I rowsort label-4204
SELECT + COUNT ( * ) + 46 FROM tab1 AS cor0 WHERE col0 + + col2 / col2 * 6 + + col1 * 79 <> col2
----
49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 53 + + - 70 * + col2 ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IN ( + 56 )
----

query I rowsort
SELECT - col0 * + col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 53 - - + 74 * - - col0 FROM tab0 AS cor0
----
1057
6385
7125

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE + col2 IS NOT NULL
----
-1
-21
-81

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

skipif mysql # not compatible
query I rowsort label-4210
SELECT - 31 * + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-279

query I rowsort
SELECT 23 * + 64 AS col1 FROM tab0
----
1472
1472
1472

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT ALL - col1 * col2 DIV + + 5 AS col2 FROM tab2
----
-234
-616
-777

skipif mysql # not compatible
query I rowsort label-4212
SELECT ALL - col1 * col2 / + + 5 AS col2 FROM tab2
----
-234
-616
-777

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + + col0 AND ( ( + 45 ) ) * + col1 - + col1
----
75
67
58

query I rowsort
SELECT ALL + 92 + + - col1 FROM tab0 AS cor0 WHERE NULL IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT - 60 * COUNT( - 93 ) FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-4215
SELECT - 60 * COUNT ( - 93 ) FROM tab0 AS cor0
----
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, - 80 FROM tab2 AS cor0
----
23
-80
40
-80
58
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4217
SELECT DISTINCT 40 DIV - ( col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT 40 / - ( col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE - 13 BETWEEN - - col1 + 8 AND col2 - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, col2 col0 FROM tab2
----
23
23
40
40
58
58

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 <= - - col1 * - - col0 + + + col0 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4223
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 33 * + col0 / CAST( 58 AS SIGNED ) * - col2 IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-4223
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 33 * + col0 / CAST ( 58 AS INTEGER ) * - col2 IN ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 12 BETWEEN col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col2 AS col2, + col0 FROM tab1 cor0
----
-59
85
-68
91
-96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + col1 + + col1 col1 FROM tab1 AS cor0
----
-23
-75
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab0 AS cor0 WHERE ( ( NOT ( - col0 + - col1 * - - 91 + - col1 ) IS NULL ) )
----
1
21
81

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE col2 <= + - 10
----

query I rowsort
SELECT ALL + 68 + + ( + col0 ) AS col0 FROM tab0 AS cor0
----
155
165
83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 82 BETWEEN 5 AND - col1 * - col2 * - 87 + col2 + - col0 * 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT - COUNT( ALL + + col1 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4231
SELECT - COUNT ( ALL + + col1 ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT DISTINCT - + 63 * COUNT( + col2 ) FROM tab1 cor0 WHERE NOT - col2 NOT BETWEEN - - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT - + 63 * COUNT ( + col2 ) FROM tab1 cor0 WHERE NOT - col2 NOT BETWEEN - - col1 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4233
SELECT COUNT( - + 59 ), - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4233
SELECT COUNT ( - + 59 ), - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
0

query II rowsort
SELECT DISTINCT + 69 + col2 AS col1, col2 * + col2 AS col1 FROM tab2 AS cor0
----
109
1600
127
3364
92
529

onlyif mysql # DIV for integer division: 
query II rowsort label-4235
SELECT - col1 - - col0 AS col0, 42 DIV col2 AS col1 FROM tab2 cor0
----
-13
1
-5
1
8
0

skipif mysql # not compatible
query II rowsort label-4235
SELECT - col1 - - col0 AS col0, 42 / col2 AS col1 FROM tab2 cor0
----
-13
1
-5
1
8
0

query I rowsort
SELECT 32 FROM tab2 AS cor0 WHERE + ( + col0 ) IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT + COUNT( + - 94 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT + COUNT ( + - 94 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + 89 * col2 - + - ( - col0 ) FROM tab0
----
4168
803
8714

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT COUNT( * ) * - + COUNT( * ) + + COUNT( ALL + col2 ) * - 58 AS col1 FROM tab0 WHERE + 95 * 70 <> col1
----
-183

skipif mysql # not compatible
query I rowsort label-4240
SELECT COUNT ( * ) * - + COUNT ( * ) + + COUNT ( ALL + col2 ) * - 58 AS col1 FROM tab0 WHERE + 95 * 70 <> col1
----
-183

query I rowsort
SELECT ALL + col0 + 16 + - - 93 AS col1 FROM tab0
----
124
196
206

onlyif mysql # DIV for integer division: 
query I rowsort label-4242
SELECT + 43 DIV - + 84 + + + 50 AS col0 FROM tab1
----
50
50
50

skipif mysql # not compatible
query I rowsort label-4242
SELECT + 43 / - + 84 + + + 50 AS col0 FROM tab1
----
50
50
50

query I rowsort
SELECT ALL + ( + + 80 ) AS col1 FROM tab0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT col0, 77 AS col2 FROM tab0
----
15
77
87
77
97
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT ALL CAST( - + col0 AS SIGNED ) * + col1 AS col2 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL CAST ( - + col0 AS INTEGER ) * + col1 AS col2 FROM tab0
----
-1215
-1827
-97

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

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + 63 FROM tab2 cor0
----
114
130
140

query I rowsort
SELECT DISTINCT col1 + - + 30 + ( + 49 ) FROM tab0 AS cor0
----
100
20
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT + ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4249
SELECT + ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col0 * + - col1 * + - 10 FROM tab2
----
23460
49280
50250

query II rowsort
SELECT ALL - + col2 * - col0 AS col1, - 44 FROM tab0 AS cor0
----
705
-44
870
-44
9603
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT - - SUM( DISTINCT - - ( + - col1 ) ) * MIN( ALL - 64 ) AS col2 FROM tab2 cor0
----
12480

skipif mysql # not compatible
query I rowsort label-4252
SELECT - - SUM ( DISTINCT - - ( + - col1 ) ) * MIN ( ALL - 64 ) AS col2 FROM tab2 cor0
----
12480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4253
SELECT + 38 DIV + MIN( + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4253
SELECT + 38 / + MIN ( + col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( - ( - + col1 ) * + - col2 * - - col2 + + 1 - - + ( - col1 ) )
----

query I rowsort
SELECT - col1 * col2 + - col0 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( + 84 ) + - ( - 40 ) * + 38 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4256
SELECT ALL - + col2 DIV - + col2 + + - 88 FROM tab2 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL - + col2 / - + col2 + + - 88 FROM tab2 AS cor0
----
-87
-87
-87

query II rowsort
SELECT DISTINCT - ( + 49 ) AS col2, 92 FROM tab0 AS cor0
----
-49
92

query I rowsort
SELECT + - col0 * - col1 * - - col1 FROM tab2 AS cor0
----
119646
336675
379456

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN col0 AND ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
198
220
3854

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

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

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

query I rowsort
SELECT ( ( - ( col2 ) ) ) FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ( ( + 98 ) ) AS col0 FROM tab1
----
98
98
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + col1 ) BETWEEN + col1 AND ( + 59 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ALL 59 * SUM( DISTINCT - 42 ) + - COUNT( * ) col1 FROM tab2
----
-2481

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4266
SELECT ALL 59 * SUM ( DISTINCT - 42 ) + - COUNT ( * ) col1 FROM tab2
----
-2481

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT + ( + COUNT( * ) ) * MIN( - col2 ) AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-4268
SELECT + ( + COUNT ( * ) ) * MIN ( - col2 ) AS col2 FROM tab1
----
-288

query I rowsort
SELECT ALL col0 + - + col0 * - col1 FROM tab1
----
4368
510
765

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4270
SELECT ( + + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4271
SELECT + ( ( CAST( NULL AS SIGNED ) ) ) / - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT + ( ( CAST ( NULL AS INTEGER ) ) ) / - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * + 83 + + col0 FROM tab0 cor0
----
-1656
-6708
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL + COUNT( * ) * + 2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL + COUNT ( * ) * + 2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
6

query I rowsort
SELECT + col2 + - + ( - col0 ) FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4275
SELECT * FROM tab2 AS cor0 WHERE ( - ( - + CAST( - + col1 AS SIGNED ) ) / + 64 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4275
SELECT * FROM tab2 AS cor0 WHERE ( - ( - + CAST ( - + col1 AS INTEGER ) ) / + 64 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 25 + - col2 + + + 18 FROM tab2 AS cor0
----
-15
20
3

query I rowsort
SELECT ALL 14 + + col2 FROM tab1 AS cor0
----
110
73
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4278
SELECT CAST( + CAST( MAX( ALL col2 ) AS DECIMAL ) AS SIGNED ) * + + 50 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE col2 + + ( - 92 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT CAST ( + CAST ( MAX ( ALL col2 ) AS REAL ) AS INTEGER ) * + + 50 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE col2 + + ( - 92 ) IS NOT NULL
----
NULL

query I rowsort
SELECT - + col2 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - - 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL - 97 + + SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - 97 + + SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT ALL 25 * - - 20 - col1 DIV + 65 FROM tab0
----
499
500
500

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL 25 * - - 20 - col1 / + 65 FROM tab0
----
499
500
500

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

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

query I rowsort
SELECT col2 * 69 FROM tab1
----
4071
4692
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT + COUNT( * ) - - 27 + - ( + COUNT( * ) ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-4287
SELECT + COUNT ( * ) - - 27 + - ( + COUNT ( * ) ) FROM tab2
----
27

query I rowsort
SELECT + 57 - + 48 AS col2 FROM tab0
----
9
9
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT 46 * - + MIN( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT 46 * - + MIN ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL > col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-4291
SELECT + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + + col1 IS NULL
----

query II rowsort
SELECT + 13 AS col2, - col1 * - 95 FROM tab2
----
13
4845
13
6365
13
7315

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4293
SELECT DISTINCT + 16 / + - CAST( NULL AS DECIMAL ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + 16 / + - CAST ( NULL AS REAL ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4294
SELECT ALL COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4294
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

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

query I rowsort
SELECT - 6 * + col2 FROM tab0 AS cor0
----
-282
-594
-60

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

skipif mysql # not compatible
query I rowsort label-4297
SELECT col2 / 51 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL col2 * 32 * + - col0 FROM tab1
----
-156672
-160480
-198016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * + 20 AS col1 FROM tab0
----
1740
1940
300

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * + 20 AS col1 FROM tab0
----
1740
1940
300

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT DISTINCT col2 DIV + - 81 * + 40 * - - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT col2 / + - 81 * + 40 * - - col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT + COUNT( * ) * + 82 AS col1 FROM tab0 WHERE NOT + - col1 + + - col2 = + + 80
----
246

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT + COUNT ( * ) * + 82 AS col1 FROM tab0 WHERE NOT + - col1 + + - col2 = + + 80
----
246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4302
SELECT CAST( - - 36 AS SIGNED ) FROM tab0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-4302
SELECT CAST ( - - 36 AS INTEGER ) FROM tab0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL + MIN( 5 ) + - COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + MIN ( 5 ) + - COUNT ( * ) FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL + MIN( ALL + - 16 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL + MIN ( ALL + - 16 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT - 5 * - MAX( + + col2 ) + 58 + + 12 FROM tab1 AS cor0
----
550

skipif mysql # not compatible
query I rowsort label-4305
SELECT - 5 * - MAX ( + + col2 ) + 58 + + 12 FROM tab1 AS cor0
----
550

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

query II rowsort
SELECT ALL ( + col1 ) AS col0, col0 AS col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT + col1 * + col1 + - col2 FROM tab2 cor0
----
2578
4431
5889

query I rowsort
SELECT + col0 * - - 42 FROM tab2
----
1932
2688
3150

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

query I rowsort
SELECT ALL col1 + ( + 51 ) + + col2 FROM tab0 AS cor0
----
151
179
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4312
SELECT ( + + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) - - 0 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4312
SELECT ( + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) - - 0 AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT - col0 * + ( + ( col2 ) ) - col0 AS col1, + 99 * + + 50 AS col0 FROM tab2 AS cor0
----
-1104
4950
-2624
4950
-4425
4950

query I rowsort
SELECT 38 - col0 AS col1 FROM tab0 cor0
----
-49
-59
23

query I rowsort
SELECT ALL 92 + - col2 FROM tab1 AS cor0
----
-4
24
33

query I rowsort
SELECT ALL col2 - + 17 * 61 FROM tab0
----
-1027
-938
-990

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT DISTINCT COUNT( * ) * - COUNT( * ), 37 AS col0 FROM tab2
----
-9
37

skipif mysql # not compatible
query II rowsort label-4317
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ), 37 AS col0 FROM tab2
----
-9
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT 68 - + COUNT( * ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT 68 - + COUNT ( * ) FROM tab1
----
65

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * 71 FROM tab0
----
1065
6177
6887

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NOT + - col0 + col0 IS NOT NULL
----

query I rowsort
SELECT 83 * + 48 FROM tab0
----
3984
3984
3984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4323
SELECT 1 * - 87 / + + CAST( NULL AS SIGNED ) * COUNT( ALL + col2 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT 1 * - 87 / + + CAST ( NULL AS INTEGER ) * COUNT ( ALL + col2 ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT col0 * + - col0, + ( col2 ) FROM tab0 AS cor0
----
-225
47
-7569
10
-9409
99

query II rowsort
SELECT ( - col2 ) * + - col0 * + col2 AS col0, 24 AS col2 FROM tab2 cor0
----
102400
24
24334
24
252300
24

query I rowsort
SELECT - ( + + 4 ) FROM tab1 AS cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 / - 67 < NULL
----

query II rowsort
SELECT + col2, 65 FROM tab2 cor0
----
23
65
40
65
58
65

query I rowsort
SELECT DISTINCT - col1 * + 94 * + 49 AS col1 FROM tab2
----
-234906
-308602
-354662

query I rowsort
SELECT + ( - + 68 ) AS col1 FROM tab0
----
-68
-68
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4332
SELECT + MAX( + 82 ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4332
SELECT + MAX ( + 82 ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT - - col2 DIV col1 * + + col0 FROM tab0 AS cor0
----
0
0
9603

skipif mysql # not compatible
query I rowsort label-4333
SELECT - - col2 / col1 * + + col0 FROM tab0 AS cor0
----
0
0
9603

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col1 * + 81 + + 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT - + COUNT( - col1 ) * + COUNT( * ) AS col2 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4335
SELECT - + COUNT ( - col1 ) * + COUNT ( * ) AS col2 FROM tab2 cor0
----
-9

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT + col2 + - - col2 + + 93 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4337
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) + col0 = + CAST( + + 95 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4337
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) + col0 = + CAST ( + + 95 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT DISTINCT + 31 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT + 31 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT 33 + - + col2 + + col2 + - col0 * + CAST( NULL AS SIGNED ) * + 65 * 93 * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT 33 + - + col2 + + col2 + - col0 * + CAST ( NULL AS INTEGER ) * + 65 * 93 * - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4340
SELECT ALL col0 DIV - CAST( - 75 AS SIGNED ) FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL col0 / - CAST ( - 75 AS INTEGER ) FROM tab0
----
0
1
1

query I rowsort
SELECT DISTINCT - 99 FROM tab0 WHERE - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL + 88 + - COUNT( * ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL + 88 + - COUNT ( * ) FROM tab2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4343
SELECT col0 col2, CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
51
96
85
59
91
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4343
SELECT col0 col2, CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4344
SELECT ALL col1 DIV - + col2 col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4344
SELECT ALL col1 / - + col2 col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + col0 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT + 23 + + - CAST( + col0 AS SIGNED ) AS col0 FROM tab0 WHERE 35 IS NOT NULL
----
-64
-74
8

skipif mysql # not compatible
query I rowsort label-4346
SELECT + 23 + + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 WHERE 35 IS NOT NULL
----
-64
-74
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4347
SELECT ALL - SUM( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL - SUM ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4348
SELECT ALL COUNT( DISTINCT - + CAST( + col2 AS SIGNED ) ) DIV 44 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL COUNT ( DISTINCT - + CAST ( + col2 AS INTEGER ) ) / 44 FROM tab2
----
0

query I rowsort
SELECT - col1 - + col1 * + + col1 AS col0 FROM tab1
----
-210
-2256
-30

query I rowsort
SELECT col2 * + col1 + 88 FROM tab0
----
187
298
3895

query I rowsort
SELECT ALL 24 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT - 80 * COUNT( * ) + + - 79 + + COUNT( * ) + COUNT( * ) * - MIN( - col2 ) AS col0 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-4352
SELECT - 80 * COUNT ( * ) + + - 79 + + COUNT ( * ) + COUNT ( * ) * - MIN ( - col2 ) AS col0 FROM tab1 AS cor0
----
-28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 31 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 * - + ( + col0 ) col0 FROM tab0 cor0
----
786
891
9604

query I rowsort
SELECT DISTINCT + col0 * 63 - - 42 FROM tab1 AS cor0
----
3255
5397
5775

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 < NULL
----

query II rowsort
SELECT DISTINCT + col1, col0 - + col2 AS col2 FROM tab2
----
51
23
67
17
77
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4358
SELECT DISTINCT - COUNT( ALL + + col0 ) AS col2 FROM tab2 WHERE + - CAST( 61 AS SIGNED ) < - 2
----
-3

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT - COUNT ( ALL + + col0 ) AS col2 FROM tab2 WHERE + - CAST ( 61 AS INTEGER ) < - 2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - ( + - 6 ) col2 FROM tab1
----
51
6
85
6
91
6

query III rowsort
SELECT * FROM tab1 WHERE NOT 44 + + - 35 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ALL - + MIN( col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL - + MIN ( col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4363
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT ( - 34 ) FROM tab1 AS cor0
----
-34

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) < col2 + - col1
----

query II rowsort
SELECT DISTINCT + - 76, - col1 AS col1 FROM tab2 AS cor0
----
-76
-51
-76
-67
-76
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4367
SELECT - 54 AS col1, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-54
3

skipif mysql # not compatible
query II rowsort label-4367
SELECT - 54 AS col1, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-54
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL + 59 * COUNT( ALL + col2 ) - + + 82 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + 59 * COUNT ( ALL + col2 ) - + + 82 FROM tab1 AS cor0
----
95

query I rowsort
SELECT ALL - - 36 AS col2 FROM tab0 AS cor0
----
36
36
36

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 <> NULL
----

query I rowsort
SELECT ALL + col1 * + - 15 AS col2 FROM tab2
----
-1005
-1155
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT ALL - CAST( NULL AS SIGNED ) * - + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL - CAST ( NULL AS INTEGER ) * - + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col1 FROM tab0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT - - col2 * + col1 + - col1 FROM tab1 AS cor0
----
1330
290
3149

query II rowsort
SELECT DISTINCT + col1 + col0, col1 AS col0 FROM tab1 cor0
----
138
47
65
14
90
5

query I rowsort
SELECT ALL - col1 + 8 * + col0 FROM tab0 AS cor0
----
39
675
775

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT + MAX( DISTINCT + col1 ) col2 FROM tab1 cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4378
SELECT + MAX ( DISTINCT + col1 ) col2 FROM tab1 cor0
----
47

query I rowsort
SELECT DISTINCT 61 * + + 45 AS col0 FROM tab2
----
2745

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT MIN( + 73 ) - - - 77 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-4380
SELECT MIN ( + 73 ) - - - 77 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

query I rowsort
SELECT ALL - col2 + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-18
-27
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT COUNT( * ) - - + 61 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-4382
SELECT COUNT ( * ) - - + 61 FROM tab0 AS cor0
----
64

query I rowsort
SELECT + col0 - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL + MAX( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL + MAX ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT ( 99 ) - - - 31 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

query II rowsort
SELECT + 66, + col1 FROM tab1 AS cor0
----
66
14
66
47
66
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4387
SELECT ALL CAST( 79 AS SIGNED ) AS col1, 41 FROM tab2
----
79
41
79
41
79
41

skipif mysql # not compatible
query II rowsort label-4387
SELECT ALL CAST ( 79 AS INTEGER ) AS col1, 41 FROM tab2
----
79
41
79
41
79
41

query I rowsort
SELECT DISTINCT + + col0 * col1 * + col1 FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4389
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 / + - col2, + col2 - - CAST( + + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4389
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 / + - col2, + col2 - - CAST ( + + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4390
SELECT ALL COUNT( - col0 ) AS col0, 93 FROM tab0 AS cor0
----
3
93

skipif mysql # not compatible
query II rowsort label-4390
SELECT ALL COUNT ( - col0 ) AS col0, 93 FROM tab0 AS cor0
----
3
93

query I rowsort
SELECT + 61 * - + 56 * col0 FROM tab1
----
-174216
-290360
-310856

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT COUNT( * ) + + - 72 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT COUNT ( * ) + + - 72 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT ( - 6 ) AS col2 FROM tab1 cor0
----
-6
-6
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN ( + col1 ) AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT + COUNT( * ) + 68 AS col1 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4395
SELECT + COUNT ( * ) + 68 AS col1 FROM tab2 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT DISTINCT 5 + MAX( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( - 61 * col0 IS NOT NULL ) )
----
86

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT 5 + MAX ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT ( - 61 * col0 IS NOT NULL ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT + COUNT( * ) + - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4397
SELECT + COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT 46 + - + col2 AS col0 FROM tab2 cor0
----
-12
23
6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> - 98 - 13 - - - col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT COUNT( * ) * 69 * + + 32 FROM tab1
----
6624

skipif mysql # not compatible
query I rowsort label-4400
SELECT COUNT ( * ) * 69 * + + 32 FROM tab1
----
6624

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * + col2 * - - col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 37 + + 98 col0 FROM tab2
----
112
128
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 col2 FROM tab1
----
48

query II rowsort
SELECT DISTINCT + - col2 - + col2, - col1 AS col0 FROM tab1 cor0
----
-118
-5
-136
-47
-192
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT - ( - COUNT( * ) ) - MIN( - ( col1 ) ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT - ( - COUNT ( * ) ) - MIN ( - ( col1 ) ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL col2 - + col0 + + col0 FROM tab0 cor0
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + + col2 IS NULL
----

query I rowsort
SELECT col1 * - 37 * + 73 + - col0 AS col0 FROM tab1
----
-127038
-13590
-37865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4409
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT DISTINCT + col0 * + + col1 * - - col0 * - - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-2131375
-26466076
-3495744

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT + col0 * + + col1 * - - col0 * - - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-2131375
-26466076
-3495744

onlyif mysql # DIV for integer division: 
query I rowsort label-4411
SELECT ALL 44 DIV + + col2 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL 44 / + + col2 FROM tab0 AS cor0
----
0
0
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4412
SELECT DISTINCT - CAST( + 43 AS SIGNED ) * + col0, col1 FROM tab2 AS cor0
----
-1978
51
-2752
77
-3225
67

skipif mysql # not compatible
query II rowsort label-4412
SELECT DISTINCT - CAST ( + 43 AS INTEGER ) * + col0, col1 FROM tab2 AS cor0
----
-1978
51
-2752
77
-3225
67

onlyif mysql # DIV for integer division: 
query II rowsort label-4413
SELECT - 35 DIV + + 34, col2 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
23
-1
40
-1
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4413
SELECT - 35 / + + 34, col2 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
23
-1
40
-1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL + 64 * 75 * - COUNT( * ) FROM tab1 AS cor0
----
-14400

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + 64 * 75 * - COUNT ( * ) FROM tab1 AS cor0
----
-14400

query I rowsort
SELECT + - ( - 47 ) AS col0 FROM tab1 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4416
SELECT DISTINCT COUNT( ALL - - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query I rowsort
SELECT + ( - - 56 ) FROM tab1
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT - MIN( ALL + col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4418
SELECT - MIN ( ALL + col0 ) AS col2 FROM tab1
----
-51

query II rowsort
SELECT DISTINCT 20, 82 AS col0 FROM tab1
----
20
82

query II rowsort
SELECT - 81 AS col1, - 64 FROM tab1
----
-81
-64
-81
-64
-81
-64

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT + col0 + col1 <= + col2 * col2 + - col0 * col0
----
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 62 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4423
SELECT ALL CAST( NULL AS SIGNED ) * + col1 AS col2, col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4423
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 AS col2, col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT 90 + + + col0 FROM tab1
----
141
175
181

query I rowsort
SELECT ALL - col2 * - 5 + col0 * + col2 * + 26 * col1 + + col1 FROM tab2 cor0
----
1403074
5125397
7578057

query I rowsort
SELECT DISTINCT + ( - 65 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL + MAX( ALL + 91 ) AS col1 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL + MAX ( ALL + 91 ) AS col1 FROM tab0 AS cor0
----
91

query I rowsort
SELECT - ( 45 ) FROM tab1 cor0
----
-45
-45
-45

query II rowsort
SELECT DISTINCT - col0 + col1, + col0 AS col2 FROM tab0 AS cor0
----
-66
87
-96
97
66
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT DISTINCT SUM( DISTINCT 36 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT SUM ( DISTINCT 36 ) FROM tab2 AS cor0
----
36

query I rowsort
SELECT ALL col2 - - - col0 AS col1 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4433
SELECT DISTINCT - CAST( AVG ( - + ( + - 18 ) ) AS SIGNED ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT - CAST ( AVG ( - + ( + - 18 ) ) AS INTEGER ) AS col1 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - - COUNT( * ) FROM tab1, tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4434
SELECT - - COUNT ( * ) FROM tab1, tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL 49 AS col0, + col2 AS col2 FROM tab1
----
49
59
49
68
49
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4436
SELECT DISTINCT + 93 * CAST( + col1 AS SIGNED ), col0 col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4436
SELECT DISTINCT + 93 * CAST ( + col1 AS INTEGER ), col0 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + 89 + - - col2 + + 37 + - + ( + + col1 ) * col0 * + col2 * col1 AS col0 FROM tab2
----
-15178151
-19527033
-2751760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT ALL - col1 * + 94 + + 11 - + col0 / CAST( NULL AS SIGNED ) + - col1 * - ( col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL - col1 * + 94 + + 11 - + col0 / CAST ( NULL AS INTEGER ) + - col1 * - ( col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * col1 - + col2 * - - 10 FROM tab2 cor0
----
-2576
-5328
-5605

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4440
SELECT DISTINCT + col0 * + - ( - CAST( NULL AS SIGNED ) ) + - - col2 + + col1 AS col1, 31 FROM tab0 AS cor0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-4440
SELECT DISTINCT + col0 * + - ( - CAST ( NULL AS INTEGER ) ) + - - col2 + + col1 AS col1, 31 FROM tab0 AS cor0
----
NULL
31

query I rowsort
SELECT - col1 - - col2 AS col0 FROM tab0 AS cor0 WHERE col2 + - - ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL - + 70 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT ALL - 18 * - + 53 * + - col2 FROM tab0
----
-44838
-94446
-9540

query I rowsort
SELECT DISTINCT + 85 * + ( - + 53 ) FROM tab0
----
-4505

query I rowsort
SELECT ( - - 11 ) * - 39 FROM tab1
----
-429
-429
-429

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT IN ( - + col1, col2 * + col1, + - col0 * + + 36, + + col2, 84 * + + col0 ) AND NOT NULL IS NULL
----

query I rowsort
SELECT col1 * - col0 * col1 AS col0 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT DISTINCT + SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT + SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + col0 * - col2 col0 FROM tab1 cor0
----
-25075
-290836
-68544

query II rowsort
SELECT ALL col0 AS col1, col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT ( 6 ) * - col2 AS col1 FROM tab1 AS cor0
----
-354
-408
-576

query II rowsort
SELECT DISTINCT + + 16, col2 FROM tab1 AS cor0
----
16
59
16
68
16
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4453
SELECT + + col2 AS col1, CAST( NULL AS SIGNED ) FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4453
SELECT + + col2 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT + + ( - ( 82 ) ) AS col0 FROM tab2 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ALL + + col2 * + col1 FROM tab1 cor0
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < + col1 * - col2 * col0
----

query I rowsort
SELECT ALL + col2 * - 12 * - col0 * - - col0 FROM tab1
----
2996352
5115300
6757296

query I rowsort
SELECT ALL + col2 * - + 9 FROM tab2
----
-207
-360
-522

query I rowsort
SELECT ALL + col0 * - 53 FROM tab2 AS cor0
----
-2438
-3392
-3975

query II rowsort
SELECT ALL 0 * 6 * + 98, + 89 + 66 * + - col2 AS col2 FROM tab2
----
0
-1429
0
-2551
0
-3739

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT DISTINCT + 12 * - - COUNT( - col0 ) AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT + 12 * - - COUNT ( - col0 ) AS col2 FROM tab1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT 87 DIV col0 col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4462
SELECT 87 / col0 col2 FROM tab1
----
0
1
1

query I rowsort
SELECT ( + + col2 ) + + col2 FROM tab0
----
198
20
94

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab0 cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab1 cor0 WHERE - 27 * - - 39 NOT BETWEEN col0 AND ( + 11 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT - + COUNT( * ) + ( + 78 ) col1 FROM tab1 cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4466
SELECT - + COUNT ( * ) + ( + 78 ) col1 FROM tab1 cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT col1 * + - col2 + + col2 DIV + + col0 * - 65 - + + col0 + - + 48 * + col1 + - col1 AS col0 FROM tab2 cor0
----
-3718
-6917
-7244

skipif mysql # not compatible
query I rowsort label-4467
SELECT col1 * + - col2 + + col2 / + + col0 * - 65 - + + col0 + - + 48 * + col1 + - col1 AS col0 FROM tab2 cor0
----
-3718
-6917
-7244

query I rowsort
SELECT DISTINCT + + 32 + - col0 * 5 * col1 FROM tab2 AS cor0
----
-11698
-24608
-25093

query I rowsort
SELECT ALL - col1 + 70 FROM tab1 cor0
----
23
56
65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 56 * 3 < ( NULL )
----

query I rowsort
SELECT ALL 73 * col2 * + + col1 FROM tab2
----
224840
283678
85629

onlyif mysql # DIV for integer division: 
query II rowsort label-4472
SELECT col1 DIV col0 AS col0, - ( 26 ) FROM tab1
----
0
-26
0
-26
0
-26

skipif mysql # not compatible
query II rowsort label-4472
SELECT col1 / col0 AS col0, - ( 26 ) FROM tab1
----
0
-26
0
-26
0
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - col1 col1, col2 FROM tab1
----
196
96
2209
68
25
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4474
SELECT - COUNT( * ) * + ( ( MIN( DISTINCT + 92 ) ) ) AS col2, - 94 * + COUNT( * ) * + ( ( CAST( NULL AS SIGNED ) ) ) FROM tab1
----
-276
NULL

skipif mysql # not compatible
query II rowsort label-4474
SELECT - COUNT ( * ) * + ( ( MIN ( DISTINCT + 92 ) ) ) AS col2, - 94 * + COUNT ( * ) * + ( ( CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
-276
NULL

query I rowsort
SELECT + 93 * + + col1 AS col2 FROM tab2
----
4743
6231
7161

query I rowsort
SELECT DISTINCT - col2 + + col2 * + col0 FROM tab2
----
1035
2520
4292

query II rowsort
SELECT ALL col2 + col1, + 18 AS col2 FROM tab1
----
110
18
115
18
64
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT - COUNT( * ) - COUNT( DISTINCT + + 34 ) * - 76 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-4478
SELECT - COUNT ( * ) - COUNT ( DISTINCT + + 34 ) * - 76 FROM tab2 AS cor0
----
73

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - col1 * + + 91 - - 68 + + ( - col2 ) / col1 * - - 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4480
SELECT DISTINCT + COUNT( * ) * + + 77 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) + - - col1 * 76 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT + COUNT ( * ) * + + 77 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) + - - col1 * 76 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 AS cor0 WHERE NOT NULL < - 56 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT DISTINCT + MIN( ALL + 56 ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT + MIN ( ALL + 56 ) FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT + MIN( DISTINCT 0 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4483
SELECT + MIN ( DISTINCT 0 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT + + col2 * + 14 FROM tab0 WHERE + 0 IS NULL OR NOT + col0 IS NULL
----
1386
140
658

query I rowsort
SELECT ( - 84 ) FROM tab0
----
-84
-84
-84

query II rowsort
SELECT 30, col0 * - - col1 AS col2 FROM tab0
----
30
1215
30
1827
30
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4488
SELECT ALL + ( + MIN( + 36 ) ) AS col2, - COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
36
-3

skipif mysql # not compatible
query II rowsort label-4488
SELECT ALL + ( + MIN ( + 36 ) ) AS col2, - COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
36
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT MAX( + - 85 ) AS col0 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-4489
SELECT MAX ( + - 85 ) AS col0 FROM tab1 AS cor0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4490
SELECT ALL + 9 * - 98 * + CAST( - - COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-2646

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4490
SELECT ALL + 9 * - 98 * + CAST ( - - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-2646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + col0 col0 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT DISTINCT + col1 * 27 FROM tab2 AS cor0
----
1377
1809
2079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4493
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + col0 * - col2 AS col2 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT COUNT( * ) * + - 0 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT COUNT ( * ) * + - 0 FROM tab1, tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( - 20 ) AS col2 FROM tab0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT ALL + 73 + + COUNT( * ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL + 73 + + COUNT ( * ) FROM tab2
----
76

query I rowsort
SELECT DISTINCT - col0 * - 30 + - col0 FROM tab2 WHERE ( - ( col0 ) - ( + col0 ) ) NOT BETWEEN col0 + col2 AND NULL
----
1334
1856
2175

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT DISTINCT col0 + col0 DIV - col0 AS col1 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT col0 + col0 / - col0 AS col1 FROM tab1
----
50
84
90

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE - 36 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + 95 * + + col0 * - 33 + col1 AS col0 FROM tab2 AS cor0
----
-144159
-200563
-235058

query I rowsort
SELECT + 8 + ( - col1 ) FROM tab2 AS cor0
----
-43
-59
-69

query I rowsort
SELECT + - 0 + - col0 + + 99 AS col1 FROM tab2 AS cor0
----
24
35
53

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN ( col2 + - col0 * col0 + + 32 ) AND + col2 * + col1 * 65
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4505
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL ( - - 44 ) * col2 + 30 FROM tab1 AS cor0 WHERE - ( col1 ) IS NOT NULL
----
2626
3022
4254

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL > - 71 + + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 56 > NULL
----

query I rowsort
SELECT ALL + + 58 + + - 37 AS col0 FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT - - 32 + + + ( - - col0 ) FROM tab0 cor0
----
119
129
47

query II rowsort
SELECT ALL + col0, col1 / - ( - col2 ) FROM tab0 WHERE NULL <> - ( col0 ) + col2
----

query III rowsort
SELECT * FROM tab2 WHERE - + ( 54 ) IS NULL
----

query I rowsort
SELECT + col2 * - 94 + 17 * + col2 FROM tab1
----
-4543
-5236
-7392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4514
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4515
SELECT + CAST( 58 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-4515
SELECT + CAST ( 58 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4516
SELECT DISTINCT - 41 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT - 41 / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
13

query III rowsort
SELECT * FROM tab0 WHERE NOT 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 42 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4519
SELECT + COUNT( * ) DIV 56 col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4519
SELECT + COUNT ( * ) / 56 col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4520
SELECT - ( - col0 ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT - ( - col0 ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4521
SELECT - ( + col1 ) DIV - - col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4521
SELECT - ( + col1 ) / - - col2 FROM tab0 AS cor0
----
-1
-2
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 21 NOT IN ( + + ( + col1 ), col0 * - + col2 + + - col0 * + col2 + + + 34 / - col1, + 9 )
----
87
21
10

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE NOT + col0 BETWEEN col1 AND - ( - - 51 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT SUM( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT SUM ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-103

query I rowsort
SELECT col1 * + 72 FROM tab2 WHERE NOT - 21 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 89, + col1 * 76 col0 FROM tab0
----
89
1596
89
6156
89
76

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> 0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - - 75, col0 + - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL + COUNT( * ) + - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) FROM tab2
----
6

query III rowsort
SELECT + col0 AS col0, col1 * 14 AS col0, + + 95 AS col0 FROM tab1
----
9 values hashing to 1abd9cdde06493c2546379cef90bb4e5

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT SUM( + - col1 ) FROM tab0 WHERE - ( - col1 ) + - col2 <> - + 95 * + col2
----
-103

skipif mysql # not compatible
query I rowsort label-4531
SELECT SUM ( + - col1 ) FROM tab0 WHERE - ( - col1 ) + - col2 <> - + 95 * + col2
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - MIN( - + col2 ) * + + COUNT( 27 ) col0 FROM tab1
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4532
SELECT - MIN ( - + col2 ) * + + COUNT ( 27 ) col0 FROM tab1
----
288

query II rowsort
SELECT DISTINCT - col0 AS col2, col0 * 94 FROM tab1 AS cor0
----
-51
4794
-85
7990
-91
8554

query I rowsort
SELECT ALL + - 67 * - - 81 FROM tab0 AS cor0
----
-5427
-5427
-5427

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT DISTINCT + 28 * + - MIN( ALL - - col2 ) AS col0 FROM tab2 AS cor0
----
-644

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT + 28 * + - MIN ( ALL - - col2 ) AS col0 FROM tab2 AS cor0
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT - + COUNT( * ) + - - COUNT( - - col2 ) AS col0 FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT - + COUNT ( * ) + - - COUNT ( - - col2 ) AS col0 FROM tab1 WHERE NULL < NULL
----
0

query I rowsort
SELECT DISTINCT 73 + - - 55 FROM tab2 AS cor0
----
128

query II rowsort
SELECT ALL - ( col0 ) * - + col2 + - 62 * - col1 + + 65 AS col0, 95 AS col1 FROM tab0 cor0
----
2237
95
5792
95
9730
95

query I rowsort
SELECT - 44 + - + col0 FROM tab0 AS cor0
----
-131
-141
-59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) * col0 BETWEEN + - 21 AND col0 / + + ( ( - + col2 ) )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - ( + col0 ) * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 58 * + col2 + + 1 AS col1 FROM tab1 cor0
----
3423
3945
5569

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - - col1 + col2 + + - col2 col0 FROM tab0 AS cor0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * 61 col2 FROM tab0
----
2318
2318
2318

query I rowsort
SELECT + 19 - + ( + - 11 ) FROM tab0
----
30
30
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4547
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * - + MIN( - col0 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * - + MIN ( - col0 ) FROM tab2
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4548
SELECT 86 * - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT 86 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col0 * - - col2 AS col1 FROM tab0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + - ( + 89 ) BETWEEN col2 AND + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT + - COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4551
SELECT + - COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + + col1 * - 96 AS col2 FROM tab2 WHERE - col1 - col2 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 32 / - 80
----

query I rowsort
SELECT DISTINCT - - col2 + + - col1 AS col0 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4555
SELECT MIN( DISTINCT col2 ) DIV + SUM( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4555
SELECT MIN ( DISTINCT col2 ) / + SUM ( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT col0, col2 * + + col0 * - + col0 AS col2 FROM tab2 cor0
----
46
-48668
64
-163840
75
-326250

query I rowsort
SELECT + - col0 * - + col1 * 49 + col2 FROM tab0 AS cor0
----
4852
59582
89533

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4558
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-4558
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT DISTINCT COUNT( 37 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT COUNT ( 37 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT ALL - 46 + + col1 AS col2, - col0 AS col1 FROM tab0
----
-25
-87
-45
-97
35
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT CAST( NULL AS SIGNED ) / - 66 * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT CAST ( NULL AS INTEGER ) / - 66 * + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT MIN( + col0 ) DIV + + 90 + + 55 * + COUNT( * ) FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-4562
SELECT MIN ( + col0 ) / + + 90 + + 55 * + COUNT ( * ) FROM tab0
----
165

query I rowsort
SELECT + col2 * - 13 * col1 FROM tab1
----
-17472
-3835
-41548

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4564
SELECT * FROM tab0 WHERE - 44 * - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + 1
----

skipif mysql # not compatible
query III rowsort label-4564
SELECT * FROM tab0 WHERE - 44 * - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + 1
----

query II rowsort
SELECT col2 + 33 AS col0, + col2 AS col0 FROM tab1 AS cor0
----
101
68
129
96
92
59

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 50
----

query I rowsort
SELECT DISTINCT + 46 * - ( + col2 ) AS col1 FROM tab2
----
-1058
-1840
-2668

query I rowsort
SELECT - 94 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - ( col1 ) ) IN ( - + col2 * + col1 * + + 56 - col0, + col0 + + + col0, - col0, col2 - + 24, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT - 28 * SUM( + col1 ) FROM tab2 AS cor0 WHERE + col2 * - + 68 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT - 28 * SUM ( + col1 ) FROM tab2 AS cor0 WHERE + col2 * - + 68 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 * + col1 + - col2 + 48 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND - 71 / - 42 * + col0 / 80 / + col0
----

query I rowsort
SELECT DISTINCT 62 * - - 10 AS col2 FROM tab2
----
620

query I rowsort
SELECT DISTINCT - 25 * 6 * ( + col1 ) FROM tab2
----
-10050
-11550
-7650

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT COUNT( + 93 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4577
SELECT COUNT ( + 93 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 8 col1 FROM tab1
----
112
376
40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col2 FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT DISTINCT + 96 + COUNT( * ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT + 96 + COUNT ( * ) FROM tab1 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 90 * - col0 * - + col0
----

query I rowsort
SELECT ALL - - 98 AS col2 FROM tab1 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT ALL + - COUNT( - 12 ) AS col2, 11 AS col1 FROM tab0 AS cor0
----
-3
11

skipif mysql # not compatible
query II rowsort label-4585
SELECT ALL + - COUNT ( - 12 ) AS col2, 11 AS col1 FROM tab0 AS cor0
----
-3
11

query I rowsort
SELECT - 70 + + col2 + + - col2 AS col2 FROM tab0
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT ALL + 17 * - ( + - CAST( NULL AS SIGNED ) ) / - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + 17 * - ( + - CAST ( NULL AS INTEGER ) ) / - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 87 AS col0 FROM tab1 WHERE NULL <> NULL
----

query II rowsort
SELECT 1, col1 AS col1 FROM tab1
----
1
14
1
47
1
5

query I rowsort
SELECT ALL col2 + - col1 + + 95 AS col1 FROM tab2
----
58
67
86

query I rowsort
SELECT ( + 98 ) AS col2 FROM tab0
----
98
98
98

query I rowsort
SELECT ALL - col2 + - 74 * - - col0 AS col1 FROM tab1
----
-3870
-6349
-6802

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT COUNT( * ) + 40 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT COUNT ( * ) + 40 FROM tab1 AS cor0
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 42 + + 68 + col2 AS col2, + col0 col1 FROM tab1 AS cor0
----
122
51
85
85
94
91

query I rowsort
SELECT - + ( - 50 ) * + col0 * + - col1 FROM tab1 cor0
----
-21250
-213850
-35700

query I rowsort
SELECT + 40 FROM tab2 AS cor0 WHERE col0 + col2 * 25 * + 77 IS NOT NULL
----
40
40
40

query I rowsort
SELECT + + ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT DISTINCT col2 + col0 - - + col2, col1 FROM tab0 AS cor0
----
107
21
109
81
295
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL + MIN( ALL - + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL + MIN ( ALL - + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4600
SELECT + 26 + - - col2 * + 60 col0, - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
1406
NULL
2426
NULL
3506
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4600
SELECT + 26 + - - col2 * + 60 col0, - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
1406
NULL
2426
NULL
3506
NULL

query I rowsort
SELECT col2 * 46 AS col0 FROM tab0
----
2162
4554
460

query III rowsort
SELECT * FROM tab2 WHERE - 61 / + 97 - - 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT ALL + 36 + - col2 DIV col2 col1 FROM tab0
----
35
35
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4603
SELECT ALL + 36 + - col2 / col2 col1 FROM tab0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL - SUM( DISTINCT + col1 ) + + 36 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL - SUM ( DISTINCT + col1 ) + + 36 FROM tab2
----
-159

query I rowsort
SELECT col1 * + 55 FROM tab2
----
2805
3685
4235

query I rowsort
SELECT col1 * - 88 AS col0 FROM tab1
----
-1232
-4136
-440

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT ALL col1 DIV - col1 + - col2 AS col1 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL col1 / - col1 + - col2 AS col1 FROM tab1
----
-60
-69
-97

query I rowsort
SELECT 53 * col1 FROM tab0
----
1113
4293
53

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - ( - col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 40 FROM tab2 WHERE NOT + col0 / - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4611
SELECT 48 * + CAST( + col2 AS SIGNED ) + 58 AS col2 FROM tab2
----
1162
1978
2842

skipif mysql # not compatible
query I rowsort label-4611
SELECT 48 * + CAST ( + col2 AS INTEGER ) + 58 AS col2 FROM tab2
----
1162
1978
2842

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 NOT BETWEEN - 22 * 79 + - 91 AND col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - MAX( 72 ) AS col1 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4613
SELECT - MAX ( 72 ) AS col1 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL NOT IN ( ( col2 ) )
----
0

query I rowsort
SELECT 22 FROM tab1 WHERE NULL > + 37
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( + col0 ) ) BETWEEN NULL AND ( 79 / + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4617
SELECT - ( - CAST( NULL AS SIGNED ) ) + + CAST( COUNT( * ) AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT - ( - CAST ( NULL AS INTEGER ) ) + + CAST ( COUNT ( * ) AS REAL ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col2 - col0 > ( 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT MAX( ALL + 52 ) AS col2 FROM tab2 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT MAX ( ALL + 52 ) AS col2 FROM tab2 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT + col1 + + col1 * + 24 FROM tab1
----
1175
125
350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4621
SELECT ALL CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4622
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col1 + ( CAST( col1 AS SIGNED ) ) AND ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-4622
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col1 + ( CAST ( col1 AS INTEGER ) ) AND ( + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 IN ( + 78 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( col2 ) + ( + col1 ) * - ( col0 ) FROM tab0
----
-1168
-1817
2

query III rowsort
SELECT * FROM tab1 WHERE 58 IS NULL
----

query I rowsort
SELECT - 69 AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE col2 NOT IN ( 92 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT 99 * COUNT( * ) + 95 * 17 AS col2 FROM tab2
----
1912

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT 99 * COUNT ( * ) + 95 * 17 AS col2 FROM tab2
----
1912

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * 8 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4631
SELECT SUM( ALL 49 ) col1 FROM tab1 WHERE - col1 * - CAST( NULL AS DECIMAL ) + ( col1 ) IN ( - CAST( NULL AS SIGNED ) + - col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4631
SELECT SUM ( ALL 49 ) col1 FROM tab1 WHERE - col1 * - CAST ( NULL AS REAL ) + ( col1 ) IN ( - CAST ( NULL AS INTEGER ) + - col1 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 + 94 * + 30 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT 83 * - col1 FROM tab2 AS cor0
----
-4233
-5561
-6391

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT MAX( 3 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4635
SELECT DISTINCT MAX ( 3 ) col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN col0 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4637
SELECT DISTINCT + col2 DIV + col0 col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4637
SELECT DISTINCT + col2 / + col0 col2 FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4638
SELECT + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - 11 IS NULL
----

query I rowsort
SELECT + 72 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL + MAX( - col1 ) * COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL + MAX ( - col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT ALL - col0 / 34 + CAST( NULL AS SIGNED ) / 87 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - col0 / 34 + CAST ( NULL AS INTEGER ) / 87 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4643
SELECT - - COUNT( * ) DIV MAX( ALL + col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4643
SELECT - - COUNT ( * ) / MAX ( ALL + col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT DISTINCT + 66 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT + 66 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT + 62 DIV 15 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-4645
SELECT + 62 / 15 FROM tab1 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT - + ( + 49 ) + - COUNT( ( - 20 ) ) AS col1 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - + ( + 49 ) + - COUNT ( ( - 20 ) ) AS col1 FROM tab2 AS cor0
----
-52

query I rowsort
SELECT + 36 * + col0 + col1 FROM tab2
----
1707
2381
2767

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL + 84 * COUNT( * ) AS col0 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL + 84 * COUNT ( * ) AS col0 FROM tab2
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col0 FROM tab0 WHERE 11 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 >= ( NULL )
----

query I rowsort
SELECT DISTINCT - 57 * - + col0 FROM tab0
----
4959
5529
855

query I rowsort
SELECT + col0 - + col2 AS col1 FROM tab1 WHERE col2 + + 27 IS NOT NULL
----
-45
23
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT - ( + col1 ) DIV - col0 + - col0 FROM tab0
----
-10
-87
-97

skipif mysql # not compatible
query I rowsort label-4653
SELECT - ( + col1 ) / - col0 + - col0 FROM tab0
----
-10
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4654
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( CAST( NULL AS SIGNED ) ) + col1 * CAST( 56 AS SIGNED ) NOT BETWEEN col0 + col0 * + ( - 10 * col0 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4654
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( CAST ( NULL AS INTEGER ) ) + col1 * CAST ( 56 AS INTEGER ) NOT BETWEEN col0 + col0 * + ( - 10 * col0 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 57 * col1 + col2 * 5 col0 FROM tab2 AS cor0
----
-2792
-3529
-4189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + + col1 col2 FROM tab1 AS cor0
----
42
51
84

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE + 49 + - col0 < ( 59 )
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT DISTINCT - col1 - + col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-4658
SELECT DISTINCT - col1 - + col1 / - col1 AS col1 FROM tab0 AS cor0
----
-20
-80
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT - ( + + CAST( - CAST( - col2 AS SIGNED ) AS SIGNED ) ) col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4660
SELECT - ( + + CAST ( - CAST ( - col2 AS INTEGER ) AS INTEGER ) ) col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT - 93 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + CAST( 61 AS SIGNED ) ) AND col0 - - col1
----

skipif mysql # not compatible
query I rowsort label-4661
SELECT - 93 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + CAST ( 61 AS INTEGER ) ) AND col0 - - col1
----

query I rowsort
SELECT DISTINCT col1 - + - col1 AS col1 FROM tab2 AS cor0
----
102
134
154

query II rowsort
SELECT ALL - col2 AS col1, col0 * 67 * ( + 99 ) AS col0 FROM tab1
----
-59
563805
-68
603603
-96
338283

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT + col2 FROM tab0 WHERE - col0 DIV + col2 BETWEEN ( - 59 DIV ( col0 ) ) AND + col1
----
47
99

skipif mysql # not compatible
query I rowsort label-4664
SELECT + col2 FROM tab0 WHERE - col0 / + col2 BETWEEN ( - 59 / ( col0 ) ) AND + col1
----
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL + COUNT( + + col0 ) - - + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL + COUNT ( + + col0 ) - - + COUNT ( * ) FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT col0 DIV + col2 FROM tab1 WHERE NOT 44 IS NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4666
SELECT col0 / + col2 FROM tab1 WHERE NOT 44 IS NULL
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 AS cor0 WHERE NOT col2 + col0 <= col2
----
15
87
97

query II rowsort
SELECT 24 AS col0, + col2 AS col1 FROM tab1 AS cor0
----
24
59
24
68
24
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4669
SELECT - CAST( NULL AS SIGNED ) AS col2, + col2 * + 47 * col1 AS col2 FROM tab2 AS cor0
----
NULL
144760
NULL
182642
NULL
55131

skipif mysql # not compatible
query II rowsort label-4669
SELECT - CAST ( NULL AS INTEGER ) AS col2, + col2 * + 47 * col1 AS col2 FROM tab2 AS cor0
----
NULL
144760
NULL
182642
NULL
55131

query I rowsort
SELECT DISTINCT + ( - 21 ) AS col1 FROM tab1 AS cor0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4671
SELECT + SUM( ALL CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + 57 <> col0 + 32 * - CAST( col0 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT + SUM ( ALL CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + 57 <> col0 + 32 * - CAST ( col0 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT COUNT( * ) + 61 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + 62
----
61

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT COUNT ( * ) + 61 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + 62
----
61

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 <= + 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1 * - - 40 )
----
0

skipif mysql # not compatible
query I rowsort label-4674
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1 * - - 40 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + + ( - COUNT( * ) ) * + COUNT( * ) AS col2 FROM tab1 WHERE NOT + col2 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4675
SELECT + + ( - COUNT ( * ) ) * + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col2 IS NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4676
SELECT col2 + col0 * col2 AS col1 FROM tab1 WHERE NOT ( - CAST( - 7 AS DECIMAL ) ) BETWEEN CAST( + col0 AS SIGNED ) AND col2 + + ( col0 )
----
4992
5074
6256

skipif mysql # not compatible
query I rowsort label-4676
SELECT col2 + col0 * col2 AS col1 FROM tab1 WHERE NOT ( - CAST ( - 7 AS REAL ) ) BETWEEN CAST ( + col0 AS INTEGER ) AND col2 + + ( col0 )
----
4992
5074
6256

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + 10 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE ( col2 ) NOT BETWEEN NULL AND - col2
----
3

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE ( col2 ) NOT BETWEEN NULL AND - col2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4680
SELECT + + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ALL + COUNT( * ) * + + COUNT( * ) + + 26 * + 86 FROM tab1 AS cor0
----
2245

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) + + 26 * + 86 FROM tab1 AS cor0
----
2245

query I rowsort
SELECT + col1 * 19 FROM tab1 AS cor0
----
266
893
95

query I rowsort
SELECT col0 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col0 * - + col1 AND NULL
----

query I rowsort
SELECT + col1 * col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NOT NULL ) )
----
1173
3080
3886

query I rowsort
SELECT ALL 3 * - + 98 AS col2 FROM tab1
----
-294
-294
-294

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4686
SELECT DISTINCT * FROM tab0 WHERE - - col2 + col2 / + CAST( NULL AS SIGNED ) + - col1 * col0 <> ( col2 )
----

skipif mysql # not compatible
query III rowsort label-4686
SELECT DISTINCT * FROM tab0 WHERE - - col2 + col2 / + CAST ( NULL AS INTEGER ) + - col1 * col0 <> ( col2 )
----

query I rowsort
SELECT ALL col2 + + col1 + + col0 * + col0 AS col1 FROM tab2 AS cor0
----
2190
4213
5750

query I rowsort
SELECT DISTINCT + col1 + + 85 FROM tab1 AS cor0
----
132
90
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4689
SELECT DISTINCT - - ( + 4 ) DIV 4 + 25 - - CAST( col1 AS SIGNED ) + 89 DIV col1 * - col2 col2 FROM tab0 AS cor0
----
-8784
60
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4689
SELECT DISTINCT - - ( + 4 ) / 4 + 25 - - CAST ( col1 AS INTEGER ) + 89 / col1 * - col2 col2 FROM tab0 AS cor0
----
-8784
60
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT + 2 - - ( + COUNT( DISTINCT col0 ) ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT + 2 - - ( + COUNT ( DISTINCT col0 ) ) FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
5

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE 56 + - 18 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT ALL + CAST( AVG ( 25 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4692
SELECT ALL + CAST ( AVG ( 25 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
25

query I rowsort
SELECT DISTINCT + col0 * + - col1 AS col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4694
SELECT * FROM tab0 WHERE ( + col1 * - + 49 / + 17 / + CAST( col2 AS SIGNED ) / + col2 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4694
SELECT * FROM tab0 WHERE ( + col1 * - + 49 / + 17 / + CAST ( col2 AS INTEGER ) / + col2 ) IS NULL
----

query I rowsort
SELECT ALL - 90 * - col2 * - - 48 AS col1 FROM tab1
----
254880
293760
414720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4696
SELECT COUNT( * ) * MAX( + + CAST( + 57 AS SIGNED ) ) AS col1 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-4696
SELECT COUNT ( * ) * MAX ( + + CAST ( + 57 AS INTEGER ) ) AS col1 FROM tab1
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-4697
SELECT + col1 DIV - 12 AS col0 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4697
SELECT + col1 / - 12 AS col0 FROM tab1
----
-1
-3
0

query I rowsort
SELECT DISTINCT ( - 63 ) + + ( + col0 ) * col0 AS col2 FROM tab2
----
2053
4033
5562

onlyif mysql # DIV for integer division: 
query I rowsort label-4699
SELECT - 60 DIV - 22 AS col2 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4699
SELECT - 60 / - 22 AS col2 FROM tab0
----
2
2
2

query III rowsort
SELECT ALL * FROM tab1 WHERE + 27 * + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 88 * - col0 + - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT CAST( + - col2 AS SIGNED ) * + + ( + + col1 ) AS col2 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-4702
SELECT CAST ( + - col2 AS INTEGER ) * + + ( + + col1 ) AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4703
SELECT CAST( 98 AS SIGNED ) AS col2 FROM tab1
----
98
98
98

skipif mysql # not compatible
query I rowsort label-4703
SELECT CAST ( 98 AS INTEGER ) AS col2 FROM tab1
----
98
98
98

query I rowsort
SELECT 10 - - + col0 * - + 30 AS col2 FROM tab2 AS cor0
----
-1370
-1910
-2240

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT + 59 DIV + - 30 - - col0 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-4705
SELECT + 59 / + - 30 - - col0 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 + - 52 col0 FROM tab2 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND + 62
----
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND + 62
----
0

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( - col2 ) >= 87
----

query I rowsort
SELECT ALL + + 38 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ( - 13 ) FROM tab0
----
-13
-13
-13

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( 20 ) BETWEEN NULL AND - 48
----

query I rowsort
SELECT ALL col1 + + col0 * - - col0 + - 1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
100
2209
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 85 * 3 * - col1 col1 FROM tab2 AS cor0
----
13005
17085
19635

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4716
SELECT DISTINCT + COUNT( * ) DIV - + SUM( DISTINCT - - col0 ) - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT + COUNT ( * ) / - + SUM ( DISTINCT - - col0 ) - COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 9 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
9
9
9

query II rowsort
SELECT 23, + 29 + + + col2 AS col1 FROM tab1
----
23
125
23
88
23
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 96 col2, - 72 - - col2 AS col1 FROM tab0
----
-96
-25
-96
-62
-96
27

query I rowsort
SELECT ALL col2 + - 34 * + col1 AS col2 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4722
SELECT - col0, - ( + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) col2 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4722
SELECT - col0, - ( + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) col2 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

query II rowsort
SELECT 35 AS col2, + col0 AS col1 FROM tab2
----
35
46
35
64
35
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL + MIN( ALL - ( 63 ) ) AS col1 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + MIN ( ALL - ( 63 ) ) AS col1 FROM tab1
----
-63

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + col2 IS NOT NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT + 29 * - - 25 + - col1 * - col1 + - 6 DIV 44 FROM tab1 cor0
----
2934
750
921

skipif mysql # not compatible
query I rowsort label-4726
SELECT + 29 * - - 25 + - col1 * - col1 + - 6 / 44 FROM tab1 cor0
----
2934
750
921

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT col2 + - + 23 + + col0 * - 48 - - + col2 NOT IN ( 54 * + + 68 )
----

query I rowsort
SELECT 89 + - + 38 FROM tab0 cor0
----
51
51
51

query I rowsort
SELECT DISTINCT 87 * + col1 * - 6 * + 24 * - col2 FROM tab2 AS cor0
----
14695344
38586240
48683808

query I rowsort
SELECT + ( + ( + col1 ) ) + + 39 FROM tab2 AS cor0
----
106
116
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT ALL ( + MAX( DISTINCT - col2 ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL ( + MAX ( DISTINCT - col2 ) ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4732
SELECT ALL * FROM tab0 WHERE NULL IN ( + - CAST( + + 73 AS SIGNED ) - - 79 + - col0 / - ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4732
SELECT ALL * FROM tab0 WHERE NULL IN ( + - CAST ( + + 73 AS INTEGER ) - - 79 + - col0 / - ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4733
SELECT ALL 73 DIV + 36 FROM tab0 WHERE NOT ( ( + 1 ) + + + 22 + + col2 + - + ( col1 ) ) IN ( 6 )
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL 73 / + 36 FROM tab0 WHERE NOT ( ( + 1 ) + + + 22 + + col2 + - + ( col1 ) ) IN ( 6 )
----
2
2
2

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col0 ) <> col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - + ( col1 ) ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL COUNT( * ) + 45 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
45

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL COUNT ( * ) + 45 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
45

query I rowsort
SELECT 13 - + col2 FROM tab1 AS cor0
----
-46
-55
-83

query I rowsort
SELECT - - 57 - + col1 FROM tab0 AS cor0
----
-24
36
56

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 25 IS NULL AND NOT col0 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4740
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4740
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col0 <> ( + col2 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4742
SELECT col1 + + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4742
SELECT col1 + + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4743
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <= col1
----

skipif mysql # not compatible
query III rowsort label-4743
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT + CAST( 77 AS SIGNED ) FROM tab0 AS cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-4744
SELECT + CAST ( 77 AS INTEGER ) FROM tab0 AS cor0
----
77
77
77

query II rowsort
SELECT DISTINCT - col2 - - col0 * + 73, + col2 AS col0 FROM tab2 AS cor0
----
3335
23
4632
40
5417
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT + - col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4746
SELECT + - col2 / col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - - ( ( + col0 ) ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT - MAX( DISTINCT + - 55 ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-4748
SELECT - MAX ( DISTINCT + - 55 ) FROM tab1 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT DISTINCT + + COUNT( + 49 ) FROM tab0 WHERE - 48 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT + + COUNT ( + 49 ) FROM tab0 WHERE - 48 IS NULL
----
0

query I rowsort
SELECT + col0 * + 94 * + + col1 FROM tab2
----
220524
463232
472350

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT + ( - + MIN( DISTINCT + + 69 ) ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-4751
SELECT + ( - + MIN ( DISTINCT + + 69 ) ) FROM tab0
----
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-4752
SELECT - 16 AS col1, col2 DIV + col1 col2 FROM tab2 AS cor0
----
-16
0
-16
0
-16
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4752
SELECT - 16 AS col1, col2 / + col1 col2 FROM tab2 AS cor0
----
-16
0
-16
0
-16
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4754
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = + col0 + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4754
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = + col0 + + + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4755
SELECT 88 + col0 DIV + 8 col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
100
89
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4755
SELECT 88 + col0 / + 8 col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
100
89
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT DISTINCT + - col0 DIV 77 * col2 FROM tab1 AS cor0
----
-59
-68
0

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT + - col0 / 77 * col2 FROM tab1 AS cor0
----
-59
-68
0

query II rowsort
SELECT - col0 AS col1, 46 AS col0 FROM tab2 AS cor0
----
-46
46
-64
46
-75
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT + - ( MIN( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4758
SELECT + - ( MIN ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query III rowsort label-4759
SELECT DISTINCT - MIN( DISTINCT - + 26 ) AS col2, + 52 AS col1, 54 FROM tab0 AS cor0
----
26
52
54

skipif mysql # not compatible
query III rowsort label-4759
SELECT DISTINCT - MIN ( DISTINCT - + 26 ) AS col2, + 52 AS col1, 54 FROM tab0 AS cor0
----
26
52
54

query II rowsort
SELECT DISTINCT + 53 + - - ( 13 ) - - 37 * col1, + 7 + - col0 AS col0 FROM tab2 AS cor0
----
1953
-39
2545
-68
2915
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT ALL + col1 * + 10 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + col1 * + 10 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4762
SELECT + + ( + col0 ) * + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT + + ( + col0 ) * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 68 FROM tab1 WHERE ( - ( + col1 ) * col1 / + col0 + col1 * + col1 ) > NULL
----

query I rowsort
SELECT ALL 10 + col0 AS col1 FROM tab1
----
101
61
95

query I rowsort
SELECT DISTINCT col2 + - - col0 AS col1 FROM tab0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4766
SELECT ALL + 62 * 55 DIV + col1 - + - col1 FROM tab1
----
119
257
687

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL + 62 * 55 / + col1 - + - col1 FROM tab1
----
119
257
687

query I rowsort
SELECT col1 * + 7 AS col2 FROM tab0
----
147
567
7

query I rowsort
SELECT + 62 - - col1 FROM tab0
----
143
63
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4769
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4769
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT ALL - col1 FROM tab1 WHERE NOT 51 BETWEEN - 95 + + CAST( + - 0 AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL - col1 FROM tab1 WHERE NOT 51 BETWEEN - 95 + + CAST ( + - 0 AS INTEGER ) AND + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4771
SELECT - 80 - + COUNT( * ) + + ( 57 ) AS col0, 43 AS col2 FROM tab2
----
-26
43

skipif mysql # not compatible
query II rowsort label-4771
SELECT - 80 - + COUNT ( * ) + + ( 57 ) AS col0, 43 AS col2 FROM tab2
----
-26
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT DISTINCT 68 * + + MIN( DISTINCT - 81 ) FROM tab0
----
-5508

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT 68 * + + MIN ( DISTINCT - 81 ) FROM tab0
----
-5508

query I rowsort
SELECT ALL - 60 AS col0 FROM tab2 AS cor0 WHERE 30 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT DISTINCT col2 * + CAST( + 19 AS SIGNED ) * 47 FROM tab0
----
41971
88407
8930

skipif mysql # not compatible
query I rowsort label-4774
SELECT DISTINCT col2 * + CAST ( + 19 AS INTEGER ) * 47 FROM tab0
----
41971
88407
8930

query I rowsort
SELECT col0 * - - 88 FROM tab1
----
4488
7480
8008

query I rowsort
SELECT DISTINCT + col2 * - - 65 FROM tab0
----
3055
6435
650

query I rowsort
SELECT + 17 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT ALL + 49 - + + 44 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT col1 DIV + 98 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4779
SELECT col1 / + 98 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 12 AS col2 FROM tab2 cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + SUM( DISTINCT + - col0 ) * + 1 AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4781
SELECT + SUM ( DISTINCT + - col0 ) * + 1 AS col2 FROM tab0 AS cor0
----
-199

query II rowsort
SELECT ALL - col0 AS col2, + 16 AS col0 FROM tab0
----
-15
16
-87
16
-97
16

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4783
SELECT * FROM tab0 WHERE NOT + col0 >= + CAST( col2 AS DECIMAL )
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-4783
SELECT * FROM tab0 WHERE NOT + col0 >= + CAST ( col2 AS REAL )
----
15
81
47
97
1
99

query I rowsort
SELECT ALL - 73 FROM tab2 WHERE NOT + col0 * + col0 + 14 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL - COUNT( * ) * + COUNT( ALL col1 ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL - COUNT ( * ) * + COUNT ( ALL col1 ) AS col0 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT MAX( DISTINCT - + col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4786
SELECT MAX ( DISTINCT - + col0 ) AS col2 FROM tab2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4787
SELECT 20 AS col2, CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
20
3

skipif mysql # not compatible
query II rowsort label-4787
SELECT 20 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
20
3

query III rowsort
SELECT * FROM tab1 WHERE + + col0 BETWEEN - + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IN ( - col1, - 87 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4790
SELECT 66 * col1 / CAST( NULL AS DECIMAL ) + - 34 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT 66 * col1 / CAST ( NULL AS REAL ) + - 34 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4791
SELECT ALL - CAST( - col0 AS SIGNED ) * ( - - 31 ) - - col0 + CAST( NULL AS SIGNED ) / - col1 + col2 * - 23 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL - CAST ( - col0 AS INTEGER ) * ( - - 31 ) - - col0 + CAST ( NULL AS INTEGER ) / - col1 + col2 * - 23 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4792
SELECT ALL - MIN( - col0 ) * CAST( NULL AS SIGNED ) * COUNT( DISTINCT - - col2 ) + - COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN - 87 AND + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - MIN ( - col0 ) * CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - - col2 ) + - COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN - 87 AND + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 24 AS col1, - 64 * + 39 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to 9452938a8e2dba57ca59284e17cfaece

query I rowsort
SELECT DISTINCT - 14 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT + + ( ( - COUNT( * ) ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT + + ( ( - COUNT ( * ) ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE - col1 / - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 - + + col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT + + 80 + - 67 FROM tab2 AS cor0
----
13

query I rowsort
SELECT ALL + ( + - col2 ) + + - col1 AS col0 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT col0 DIV + + 8 + - col1 - 24 FROM tab1 AS cor0
----
-19
-32
-60

skipif mysql # not compatible
query I rowsort label-4800
SELECT col0 / + + 8 + - col1 - 24 FROM tab1 AS cor0
----
-19
-32
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4801
SELECT DISTINCT + CAST( + - 83 AS SIGNED ) DIV COUNT( * ) - + + 77 FROM tab0 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT + CAST ( + - 83 AS INTEGER ) / COUNT ( * ) - + + 77 FROM tab0 AS cor0
----
-104

query I rowsort
SELECT 86 + - + col1 * col1 FROM tab0 AS cor0
----
-355
-6475
85

query I rowsort
SELECT DISTINCT 60 - - col1 * + 31 FROM tab2
----
1641
2137
2447

query II rowsort
SELECT ALL col2 - 88 + + - col0 AS col2, col0 AS col2 FROM tab1
----
-111
91
-114
85
-43
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4805
SELECT * FROM tab0 WHERE NOT col0 + - ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4805
SELECT * FROM tab0 WHERE NOT col0 + - ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4806
SELECT DISTINCT 0 AS col1, COUNT( + + col0 ) + ( COUNT( * ) ) FROM tab2
----
0
6

skipif mysql # not compatible
query II rowsort label-4806
SELECT DISTINCT 0 AS col1, COUNT ( + + col0 ) + ( COUNT ( * ) ) FROM tab2
----
0
6

query I rowsort
SELECT + col2 * + - col1 * - - 12 FROM tab0 AS cor0
----
-1188
-2520
-45684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 92 col2, col2 FROM tab2 AS cor0
----
92
23
92
40
92
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4809
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4809
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT + ( - - COUNT( DISTINCT - 80 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT + ( - - COUNT ( DISTINCT - 80 ) ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT CAST( + 64 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

skipif mysql # not compatible
query I rowsort label-4811
SELECT CAST ( + 64 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4812
SELECT * FROM tab1 WHERE NOT - CAST( + 28 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4812
SELECT * FROM tab1 WHERE NOT - CAST ( + 28 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * 7 col1 FROM tab2
----
427
427
427

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <= - - 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL - COUNT( * ) * + MAX( - 43 ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL - COUNT ( * ) * + MAX ( - 43 ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - + col2 AS col2, col1 * - - col2 col0 FROM tab0 AS cor0
----
-210
210
-3807
3807
-99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 col1 FROM tab0 cor0 WHERE NOT NULL <> col2
----

query I rowsort
SELECT DISTINCT 60 * ( - 60 ) AS col1 FROM tab0 AS cor0
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL - MIN( DISTINCT - 59 ) * + 19 FROM tab2 AS cor0
----
1121

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - MIN ( DISTINCT - 59 ) * + 19 FROM tab2 AS cor0
----
1121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4820
SELECT + - CAST( NULL AS SIGNED ) + - - 67 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 43
----

skipif mysql # not compatible
query I rowsort label-4820
SELECT + - CAST ( NULL AS INTEGER ) + - - 67 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 43
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4821
SELECT ALL 73 DIV + - MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL 73 / + - MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + - col1 * + col0 - + + 52 + - 6 * + + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT DISTINCT 51 * + ( - COUNT( * ) ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT 51 * + ( - COUNT ( * ) ) FROM tab1
----
-153

query I rowsort
SELECT ALL 69 * - col1 FROM tab0
----
-1449
-5589
-69

query II rowsort
SELECT 10, col0 * + col1 * 6 AS col2 FROM tab1
----
10
2550
10
25662
10
4284

query I rowsort
SELECT + ( col1 ) AS col0 FROM tab1 WHERE - + col0 IS NOT NULL
----
14
47
5

query I rowsort
SELECT 47 * + + 22 AS col2 FROM tab2
----
1034
1034
1034

query I rowsort
SELECT ALL + col0 + 65 AS col0 FROM tab1 AS cor0
----
116
150
156

query I rowsort
SELECT DISTINCT 85 + col2 AS col1 FROM tab1 AS cor0
----
144
153
181

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT ALL + 25 DIV col1 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + 25 / col1 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4831
SELECT + CAST( NULL AS DECIMAL ) * + col1 + + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT + CAST ( NULL AS REAL ) * + col1 + + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4832
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4832
SELECT DISTINCT - CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT + + 80 * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
720

skipif mysql # not compatible
query I rowsort label-4833
SELECT + + 80 * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
720

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 9 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 83 * - col1 AND NULL
----

query I rowsort
SELECT col1 * 52 AS col1 FROM tab1
----
2444
260
728

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4837
SELECT ALL * FROM tab2 WHERE NOT - CAST( - 2 AS SIGNED ) + - col1 + + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4837
SELECT ALL * FROM tab2 WHERE NOT - CAST ( - 2 AS INTEGER ) + - col1 + + - col1 IS NOT NULL
----

query I rowsort
SELECT + 2 FROM tab2 WHERE NOT NULL NOT IN ( - + col0 * - col2 + 8 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * - col0 col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT + 55 * - COUNT( * ) FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-4840
SELECT + 55 * - COUNT ( * ) FROM tab1
----
-165

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 24 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 16 AND + + 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT DISTINCT - CAST( - + ( + 71 ) AS SIGNED ) FROM tab2 cor0
----
71

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT - CAST ( - + ( + 71 ) AS INTEGER ) FROM tab2 cor0
----
71

query I rowsort
SELECT ALL 16 * col1 + + + col1 * 20 * col0 FROM tab2 AS cor0
----
101572
47736
99792

query I rowsort
SELECT DISTINCT ( - + 93 ) AS col1 FROM tab2 AS cor0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT + ( - ( + col1 ) ) * + + col1 DIV col1 DIV col1 DIV - 59 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4846
SELECT + ( - ( + col1 ) ) * + + col1 / col1 / col1 / - 59 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 4 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT + MIN( DISTINCT 7 ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-4848
SELECT + MIN ( DISTINCT 7 ) FROM tab0
----
7

query I rowsort
SELECT DISTINCT + + col1 * + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL + ( + COUNT( * ) ) * SUM( - - col2 ) FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + ( + COUNT ( * ) ) * SUM ( - - col2 ) FROM tab1 AS cor0
----
669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 cor0 WHERE + 8 BETWEEN NULL AND + + col0
----

query I rowsort
SELECT + - 22 * + 53 AS col1 FROM tab1 AS cor0
----
-1166
-1166
-1166

query I rowsort
SELECT DISTINCT + 17 * col1 AS col2 FROM tab0 AS cor0
----
1377
17
357

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND - 59 * + + 41 + - col2 + + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4855
SELECT SUM( DISTINCT + + col1 ) DIV - 34 AS col0, 76 FROM tab1 AS cor0
----
-1
76

skipif mysql # not compatible
query II rowsort label-4855
SELECT SUM ( DISTINCT + + col1 ) / - 34 AS col0, 76 FROM tab1 AS cor0
----
-1
76

query I rowsort
SELECT DISTINCT col2 * - - col2 * + + 8 AS col1 FROM tab2
----
12800
26912
4232

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE NOT - - col0 NOT BETWEEN + col2 * + col0 AND 26
----
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - - col0 NOT BETWEEN + col2 * + col0 AND 26
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT ALL - ( + col0 ) * CAST( - col1 AS SIGNED ) FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - ( + col0 ) * CAST ( - col1 AS INTEGER ) FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4859
SELECT DISTINCT ( + + SUM( - CAST( NULL AS SIGNED ) ) ) * + CAST( - COUNT( * ) AS SIGNED ) + - 71 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT ( + + SUM ( - CAST ( NULL AS INTEGER ) ) ) * + CAST ( - COUNT ( * ) AS INTEGER ) + - 71 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 16 + ( + col0 ) FROM tab0 AS cor0
----
103
113
31

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - col0 col1 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL MIN( - 60 ) AS col0 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL MIN ( - 60 ) AS col0 FROM tab2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT DISTINCT 68 * COUNT( * ) - + 19 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
593

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT 68 * COUNT ( * ) - + 19 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
593

query I rowsort
SELECT + col2 * + col2 - - + col1 * col2 FROM tab2 AS cor0
----
1702
4680
7250

query I rowsort
SELECT DISTINCT 43 + ( - col2 ) + + col2 FROM tab1 cor0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4868
SELECT ALL COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4868
SELECT ALL COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( - 29 )
----

query II rowsort
SELECT DISTINCT - + col0 * col0 + 66 + + + col1, ( - - ( 43 ) ) + - 29 FROM tab1 AS cor0 WHERE NOT - col1 * - 2 + - + 91 IS NOT NULL
----

query I rowsort
SELECT 38 AS col2 FROM tab0 cor0
----
38
38
38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL IN ( + col2, - col1 + 35, + col1 / - col0, col0 + col2 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4873
SELECT + col1 DIV col1 - + col1, col0 AS col0 FROM tab0 AS cor0
----
-20
87
-80
15
0
97

skipif mysql # not compatible
query II rowsort label-4873
SELECT + col1 / col1 - + col1, col0 AS col0 FROM tab0 AS cor0
----
-20
87
-80
15
0
97

query I rowsort
SELECT - 25 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-25
-25
-25

query I rowsort
SELECT + ( - + 80 ) FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 cor0 WHERE ( NOT - 90 IS NULL )
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT + 50 - + - col1 + - col2 * - - 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * - col0 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 18, col2 FROM tab2
----
-18
23
-18
40
-18
58

query I rowsort
SELECT col1 * + - col1 * - + 72 FROM tab1
----
14112
159048
1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT + + col0 NOT BETWEEN NULL AND - col0
----

skipif mysql # not compatible
query I rowsort label-4881
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT + + col0 NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT 30 * - MAX( - col1 ) col1 FROM tab2
----
1530

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4882
SELECT 30 * - MAX ( - col1 ) col1 FROM tab2
----
1530

query I rowsort
SELECT DISTINCT + ( col2 ) * - ( - col2 ) + + col2 + col0 * + col0 * - - col1 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT MIN( - CAST( - 74 AS SIGNED ) ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-4884
SELECT MIN ( - CAST ( - 74 AS INTEGER ) ) AS col2 FROM tab1
----
74

query II rowsort
SELECT ALL + 37 + col0 AS col2, - 51 AS col0 FROM tab2
----
101
-51
112
-51
83
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4886
SELECT - ( + + col1 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4886
SELECT - ( + + col1 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 + + 47 FROM tab1 AS cor0
----
-12
-21
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT DISTINCT + ( + - COUNT( * ) ) FROM tab0 cor0 WHERE + col2 / + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT + ( + - COUNT ( * ) ) FROM tab0 cor0 WHERE + col2 / + col1 IS NOT NULL
----
-3

query I rowsort
SELECT - col0 + + 58 AS col2 FROM tab0 AS cor0
----
-29
-39
43

query I rowsort
SELECT DISTINCT + + 51 + + 66 AS col0 FROM tab0 AS cor0
----
117

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 76 + - col1 AS col0 FROM tab1
----
-123
-81
-90

query II rowsort
SELECT DISTINCT col1 AS col1, + 69 AS col2 FROM tab2
----
51
69
67
69
77
69

query III rowsort
SELECT * FROM tab2 WHERE - + col1 * col1 + - col1 + - + 54 * + col1 > - ( - + col2 ) * + 55 + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT ALL ( - CAST( + COUNT( * ) AS SIGNED ) ) + - COUNT( - col0 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL ( - CAST ( + COUNT ( * ) AS INTEGER ) ) + - COUNT ( - col0 ) FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4896
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT col0, - col2 * + - col2 FROM tab1 AS cor0
----
51
9216
85
3481
91
4624

query I rowsort
SELECT - col2 - + + col1 + 60 * - col1 AS col2 FROM tab2 AS cor0
----
-3134
-4145
-4737

query I rowsort
SELECT DISTINCT + 60 * 19 - - col0 + - + col1 FROM tab0 AS cor0
----
1074
1206
1236

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 0 * - col2 IN ( + + 61, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4901
SELECT ALL + - col0 * col1 - + + CAST( NULL AS SIGNED ) - - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL + - col0 * col1 - + + CAST ( NULL AS INTEGER ) - - col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL MIN( ALL - 39 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-39

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL MIN ( ALL - 39 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 45 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT + 10 * + COUNT( * ) AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-4904
SELECT + 10 * + COUNT ( * ) AS col2 FROM tab2
----
30

query I rowsort
SELECT DISTINCT - - col0 * + 21 * - col2 FROM tab2 AS cor0
----
-22218
-53760
-91350

query I rowsort
SELECT ALL + 95 * + 56 * + col2 * - 72 FROM tab2 AS cor0
----
-15321600
-22216320
-8809920

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - col1 + - - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 - + 45 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 + - - 69 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 81 col2 FROM tab0
----
3807
8019
810

query III rowsort
SELECT * FROM tab2 WHERE NOT + 9 BETWEEN + - 91 * + + 47 * - col1 + - 10 * col0 + - - col0 * col0 * + 58 * + + 27 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + col2 * - + col2 FROM tab2
----
12167
195112
64000

query I rowsort
SELECT 28 * + + col2 AS col0 FROM tab1
----
1652
1904
2688

query I rowsort
SELECT ALL ( + - 7 ) * col2 AS col1 FROM tab0
----
-329
-693
-70

query I rowsort
SELECT col0 * + - 76 AS col0 FROM tab2
----
-3496
-4864
-5700

query I rowsort
SELECT - + col2 * - + 3 FROM tab2 AS cor0
----
120
174
69

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT DISTINCT + 75 + - MIN( - 79 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
154

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT + 75 + - MIN ( - 79 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
154

query I rowsort
SELECT - ( + 92 ) + + - 84 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5422b73687e5d07933bd6d3933181a00

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT + COUNT( * ) col1 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4922
SELECT + COUNT ( * ) col1 FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL MAX( 57 ) * COUNT( * ) + - 55 + + + MIN( col0 ) FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL MAX ( 57 ) * COUNT ( * ) + - 55 + + + MIN ( col0 ) FROM tab2
----
162

query II rowsort
SELECT ALL + col1 + - 8 * 13 + + col2, col0 FROM tab2 AS cor0
----
-30
46
13
64
21
75

onlyif mysql # DIV for integer division: 
query II rowsort label-4925
SELECT - - col1 DIV + col1 - + col2 * + col1, col0 FROM tab0 AS cor0
----
-209
87
-3806
15
-98
97

skipif mysql # not compatible
query II rowsort label-4925
SELECT - - col1 / + col1 - + col2 * + col1, col0 FROM tab0 AS cor0
----
-209
87
-3806
15
-98
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT + col0 DIV col0 + ( - - ( + col0 ) ) AS col1 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-4926
SELECT + col0 / col0 + ( - - ( + col0 ) ) AS col1 FROM tab0
----
16
88
98

query I rowsort
SELECT 11 + + + col1 FROM tab0
----
12
32
92

query I rowsort
SELECT + 9 + 41 - - - 87 AS col2 FROM tab2 WHERE NULL <= - + col0 + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT DISTINCT + - COUNT( * ) - ( + MIN( DISTINCT col1 ) ) + - - 87 * + MIN( + + 4 ) + + MIN( DISTINCT - 93 ) col1 FROM tab0 AS cor0
----
251

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4929
SELECT DISTINCT + - COUNT ( * ) - ( + MIN ( DISTINCT col1 ) ) + - - 87 * + MIN ( + + 4 ) + + MIN ( DISTINCT - 93 ) col1 FROM tab0 AS cor0
----
251

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - - 36 * - 70
----

query II rowsort
SELECT DISTINCT 73 * + col1 * - col1 AS col1, col0 AS col2 FROM tab0
----
-32193
87
-478953
15
-73
97

query I rowsort
SELECT DISTINCT - col1 * 41 AS col0 FROM tab1 WHERE - col2 + + 53 + col2 IS NULL
----

query I rowsort
SELECT 15 + 39 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4934
SELECT - col0 * - col2 DIV - col2 AS col1, - 84 * + + CAST( + + col1 AS SIGNED ) FROM tab2
----
-46
-4284
-64
-6468
-75
-5628

skipif mysql # not compatible
query II rowsort label-4934
SELECT - col0 * - col2 / - col2 AS col1, - 84 * + + CAST ( + + col1 AS INTEGER ) FROM tab2
----
-46
-4284
-64
-6468
-75
-5628

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT ALL + + 22 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL + + 22 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT - 4 * - + ( col1 ) - + ( - col2 ) FROM tab2 cor0
----
227
326
348

query I rowsort
SELECT + 96 FROM tab2 AS cor0 WHERE NOT 24 BETWEEN 71 + + 67 AND NULL
----
96
96
96

query I rowsort
SELECT DISTINCT + col0 * ( col0 ) FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT + 35, + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
35
0

skipif mysql # not compatible
query II rowsort label-4940
SELECT + 35, + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
35
0

query II rowsort
SELECT ALL 84, + col1 * + col0 * - + 54 * + + 40 AS col0 FROM tab2 AS cor0
----
84
-10644480
84
-10854000
84
-5067360

onlyif mysql # DIV for integer division: 
query I rowsort label-4942
SELECT ( col2 ) DIV + col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4942
SELECT ( col2 ) / + col2 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 / + + 59 + - + col2 + + 21 > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT - - col2 = + col2 * - 32
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT - MAX( ALL 19 ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-4945
SELECT - MAX ( ALL 19 ) FROM tab0
----
-19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 64 * - 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4947
SELECT ALL - 53 * - + 69, - COUNT( * ) AS col1 FROM tab1
----
3657
-3

skipif mysql # not compatible
query II rowsort label-4947
SELECT ALL - 53 * - + 69, - COUNT ( * ) AS col1 FROM tab1
----
3657
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT + COUNT( * ) * 83 col0 FROM tab2
----
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4948
SELECT + COUNT ( * ) * 83 col0 FROM tab2
----
249

query I rowsort
SELECT - ( + col2 ) * col0 * col1 + ( col1 ) AS col0 FROM tab2
----
-197043
-291383
-53907

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT DISTINCT + 37 DIV + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT + 37 / + col0 FROM tab1
----
0

query I rowsort
SELECT - 76 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-76
-76
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) + 66 AS col0 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) + 66 AS col0 FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - COUNT( * ) AS col2 FROM tab1 cor0 WHERE - col0 BETWEEN - col1 * col2 / - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4953
SELECT - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE - col0 BETWEEN - col1 * col2 / - col0 AND NULL
----
0

query I rowsort
SELECT ALL - col2 * col2 FROM tab2 AS cor0 WHERE NOT col0 = + col2
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT col1 - - col1 + + - col2 * 55 FROM tab2
----
-1163
-2046
-3056

query I rowsort
SELECT ( - 75 ) AS col1 FROM tab2
----
-75
-75
-75

query II rowsort
SELECT ALL - col2 AS col2, - col0 AS col1 FROM tab1
----
-59
-85
-68
-91
-96
-51

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT 16 < col0
----

query I rowsort
SELECT ALL - 31 + col1 + - 21 FROM tab0
----
-31
-51
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT + 16 - - + COUNT( * ) AS col2 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-4960
SELECT + 16 - - + COUNT ( * ) AS col2 FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT - MIN( ALL + col2 ) * + 77 - - 50 FROM tab1
----
-4493

skipif mysql # not compatible
query I rowsort label-4961
SELECT - MIN ( ALL + col2 ) * + 77 - - 50 FROM tab1
----
-4493

query III rowsort
SELECT * FROM tab2 WHERE + - col2 + + col1 IS NULL
----

query I rowsort
SELECT ALL - col1 / - ( + - col0 ) / ( col0 ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 + + col0 * col0 + ( - - 35 ) col0 FROM tab1 AS cor0
----
2680
7304
8360

query I rowsort
SELECT 9 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT DISTINCT - MAX( ALL + ( - - 39 ) ) AS col0 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4966
SELECT DISTINCT - MAX ( ALL + ( - - 39 ) ) AS col0 FROM tab0 AS cor0
----
-39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 66 * + - 33 FROM tab2 cor0
----
-2178

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT - - col0 DIV + - 91 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4969
SELECT - - col0 / + - 91 FROM tab0 AS cor0
----
-1
0
0

query II rowsort
SELECT DISTINCT + col0 * + 58 AS col0, - col2 * + col1 FROM tab0 AS cor0
----
5046
-210
5626
-99
870
-3807

query I rowsort
SELECT - ( - 34 ) FROM tab2 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT MIN( + 30 ) AS col0 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4972
SELECT MIN ( + 30 ) AS col0 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT SUM( 65 ) FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-4973
SELECT SUM ( 65 ) FROM tab1
----
195

query I rowsort
SELECT DISTINCT 41 * - 61 AS col0 FROM tab1
----
-2501

query I rowsort
SELECT ALL 86 FROM tab1 WHERE - + 96 + + + col2 < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4976
SELECT ALL - 0 * - col2 + - 99 * + col0 * - col1 + - ( - col0 ) + + - col2 * - + 37 + CAST( - col1 AS SIGNED ) AS col0, - col2 FROM tab2
----
233100
-23
489339
-40
499629
-58

skipif mysql # not compatible
query II rowsort label-4976
SELECT ALL - 0 * - col2 + - 99 * + col0 * - col1 + - ( - col0 ) + + - col2 * - + 37 + CAST ( - col1 AS INTEGER ) AS col0, - col2 FROM tab2
----
233100
-23
489339
-40
499629
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4977
SELECT + 82 * + - col1 + + col2, - 38 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4977
SELECT + 82 * + - col1 + + col2, - 38 + CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 65 col2, col1 AS col1 FROM tab2
----
65
51
65
67
65
77

query II rowsort
SELECT 47, + col0 FROM tab0
----
47
15
47
87
47
97

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + 85 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4981
SELECT ALL - ( + - MIN( DISTINCT - - ( + 77 ) ) ) + CAST( + 72 AS SIGNED ) + - MIN( ( - - ( col0 ) ) ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL - ( + - MIN ( DISTINCT - - ( + 77 ) ) ) + CAST ( + 72 AS INTEGER ) + - MIN ( ( - - ( col0 ) ) ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col2 + + + col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + - col0 * + - col0 AS col0 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT + col0 + - 85 AS col0 FROM tab1 AS cor0
----
-34
0
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT ( + + col2 ) DIV 39 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4985
SELECT ( + + col2 ) / 39 FROM tab1
----
1
1
2

query I rowsort
SELECT ALL + col0 * 82 AS col0 FROM tab0
----
1230
7134
7954

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT DISTINCT + 81 DIV + - 39 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT + 81 / + - 39 FROM tab0
----
-2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + col1 / - - 72 AND col2 + - col2 * col0 * - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4989
SELECT + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL <= - ( + 89 )
----

skipif mysql # not compatible
query I rowsort label-4989
SELECT + - CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL <= - ( + 89 )
----

query II rowsort
SELECT DISTINCT - + col0 + 6 AS col1, + col0 * col0 AS col2 FROM tab1 AS cor0
----
-45
2601
-79
7225
-85
8281

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE - col0 * - 68 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT DISTINCT + - 21 + ( ( + COUNT( DISTINCT + 72 ) ) ) AS col1 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT + - 21 + ( ( + COUNT ( DISTINCT + 72 ) ) ) AS col1 FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT - 33 + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4993
SELECT - 33 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT - - 94 + + + col2 * - 55 - col2 - col2 AS col0 FROM tab2 AS cor0
----
-1217
-2186
-3212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + - ( + col0 ) col0 FROM tab2
----
-104
-133
-69

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 56 = 38 + + + col0 * - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 28 FROM tab2 WHERE col0 IS NULL
----

query II rowsort
SELECT ALL col2 AS col1, + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT + + SUM( + 48 ) FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4999
SELECT + + SUM ( + 48 ) FROM tab1 AS cor0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-5000
SELECT 94 DIV + col2 FROM tab0 AS cor0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-5000
SELECT 94 / + col2 FROM tab0 AS cor0
----
0
2
9

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT + 35 + COUNT( * ) AS col1 FROM tab1 WHERE NOT + col0 * - col2 / + col0 = - 14
----
38

skipif mysql # not compatible
query I rowsort label-5003
SELECT + 35 + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col0 * - col2 / + col0 = - 14
----
38

query I rowsort
SELECT 67 * - col0 * col2 FROM tab1
----
-328032
-336005
-414596

query II rowsort
SELECT + - col0, + col1 AS col0 FROM tab0 cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT - col1 * - - 68 + - + 50 AS col1 FROM tab2 AS cor0
----
-3518
-4606
-5286

query I rowsort
SELECT ALL - + 80 * + + col1 AS col0 FROM tab2 AS cor0
----
-4080
-5360
-6160

query I rowsort
SELECT - 50 * + ( + - col1 ) AS col0 FROM tab2 AS cor0
----
2550
3350
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT 16 * - COUNT( * ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5009
SELECT 16 * - COUNT ( * ) FROM tab0 AS cor0
----
-48

query II rowsort
SELECT 76 AS col0, + ( - col1 ) FROM tab0 AS cor0
----
76
-1
76
-21
76
-81

query II rowsort
SELECT DISTINCT + ( col2 ), col0 FROM tab1 cor0
----
59
85
68
91
96
51

query I rowsort
SELECT - - col1 + + + col2 AS col1 FROM tab0 cor0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab1 WHERE - 84 * - + 27 < + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5014
SELECT ALL + col0 * col0 * 7 / - - col0 + - 63 - CAST( NULL AS DECIMAL ) - - 7 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5014
SELECT ALL + col0 * col0 * 7 / - - col0 + - 63 - CAST ( NULL AS REAL ) - - 7 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT 35 + - 81 FROM tab2
----
-46
-46
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5016
SELECT + COUNT( * ) * - 65 * + - CAST( - - 71 AS SIGNED ) + + ( COUNT( * ) ) FROM tab1
----
13848

skipif mysql # not compatible
query I rowsort label-5016
SELECT + COUNT ( * ) * - 65 * + - CAST ( - - 71 AS INTEGER ) + + ( COUNT ( * ) ) FROM tab1
----
13848

query III rowsort
SELECT * FROM tab0 WHERE 65 * - col0 + - - col1 <> + 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 40 + - - col2 AS col0 FROM tab0 cor0
----
139
50
87

query I rowsort
SELECT DISTINCT - ( ( ( - - col0 ) ) ) AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL - col0 * col1 + - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1262
-1837
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5021
SELECT ALL + MIN( + ( + + ( 13 ) ) ) AS col0, - 5 * - + CAST( NULL AS SIGNED ) FROM tab0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-5021
SELECT ALL + MIN ( + ( + + ( 13 ) ) ) AS col0, - 5 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
13
NULL

query I rowsort
SELECT + 24 * + col0 FROM tab0
----
2088
2328
360

query I rowsort
SELECT - col1 * - - 76 FROM tab0
----
-1596
-6156
-76

query I rowsort
SELECT - 91 * + - col2 * - + col0 FROM tab1
----
-445536
-456365
-563108

query II rowsort
SELECT DISTINCT - 36 * - col1 AS col2, - col2 AS col2 FROM tab2
----
1836
-23
2412
-58
2772
-40

query II rowsort
SELECT ALL col1 * col1, col0 FROM tab1
----
196
51
2209
91
25
85

query I rowsort
SELECT DISTINCT col0 * - - 1 * col1 * - + col1 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # DIV for integer division: 
query I rowsort label-5028
SELECT col1 DIV - 97 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5028
SELECT col1 / - 97 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 42 * - 43 * + + 38 AS col0 FROM tab1
----
68628
68628
68628

query I rowsort
SELECT + - ( + 53 ) FROM tab0 AS cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 * + + ( col1 ) col2 FROM tab1
----
1410
150
420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 0, 24 col0 FROM tab2 WHERE NOT ( NOT ( + col1 ) IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 93 >= col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1 col2, - ( + - col1 ) AS col2, - - col2 FROM tab2 AS cor0
----
9 values hashing to cb6a6ba5755f92071bf8a8a82b944fe1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5037
SELECT - SUM( - 81 ) DIV - COUNT( * ), 28 AS col2 FROM tab1 AS cor0
----
-81
28

skipif mysql # not compatible
query II rowsort label-5037
SELECT - SUM ( - 81 ) / - COUNT ( * ), 28 AS col2 FROM tab1 AS cor0
----
-81
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT DISTINCT ( + MIN( + 98 ) ) col2 FROM tab1
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5038
SELECT DISTINCT ( + MIN ( + 98 ) ) col2 FROM tab1
----
98

query II rowsort
SELECT ALL col1 AS col0, + col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT + - col0 AS col0 FROM tab0 WHERE + 44 <> col0
----
-15
-87
-97

query I rowsort
SELECT ALL 54 AS col1 FROM tab2 WHERE ( - - col2 ) >= NULL
----

query I rowsort
SELECT 25 * + + 97 AS col2 FROM tab2
----
2425
2425
2425

query I rowsort
SELECT DISTINCT - 9 + - col2 FROM tab0
----
-108
-19
-56

query I rowsort
SELECT col0 FROM tab0 WHERE 11 / + 14 * ( 19 ) - col2 <> - col0
----
15
87
97

query I rowsort
SELECT DISTINCT 58 + 99 AS col0 FROM tab0 AS cor0
----
157

query I rowsort
SELECT - 41 FROM tab1 cor0 WHERE - 52 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col2, - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query II rowsort
SELECT + 76, col0 FROM tab0 AS cor0
----
76
15
76
87
76
97

query I rowsort
SELECT DISTINCT + - 28 - - + col0 AS col1 FROM tab2 AS cor0
----
18
36
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5050
SELECT - col2 DIV + - col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-5050
SELECT - col2 / + - col1 FROM tab1
----
1
11
6

query I rowsort
SELECT ALL - 65 + - 50 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3565cde0e9e7c7a2aebe3ad80a374839

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT DISTINCT COUNT( * ) * - 13 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-117

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT COUNT ( * ) * - 13 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL - - SUM( 9 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL - - SUM ( 9 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query I rowsort
SELECT DISTINCT + - col0 - - - col0 FROM tab0 AS cor0
----
-174
-194
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 78 - - col2 + col2 col2 FROM tab2 AS cor0
----
-32
2
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT + MIN( ALL + 19 ) + - - COUNT( - + col2 ) AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5056
SELECT + MIN ( ALL + 19 ) + - - COUNT ( - + col2 ) AS col0 FROM tab0 AS cor0
----
22

query I rowsort
SELECT - + col0 * + - 77 + - - 72 FROM tab1 AS cor0
----
3999
6617
7079

query I rowsort
SELECT + 23 + 79 FROM tab2 AS cor0
----
102
102
102

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 39 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT - MIN( DISTINCT + 81 ) * MAX( col1 ) + - SUM( DISTINCT - col1 ) * - 9 FROM tab1
----
-4401

skipif mysql # not compatible
query I rowsort label-5060
SELECT - MIN ( DISTINCT + 81 ) * MAX ( col1 ) + - SUM ( DISTINCT - col1 ) * - 9 FROM tab1
----
-4401

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NOT - col1 BETWEEN NULL AND - - col0 * + col1 ) )
----

query I rowsort
SELECT 20 FROM tab2, tab2 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL 88 * - ( + SUM( ALL - col1 ) ) AS col1 FROM tab0
----
9064

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL 88 * - ( + SUM ( ALL - col1 ) ) AS col1 FROM tab0
----
9064

query I rowsort
SELECT ALL 54 * col1 FROM tab0
----
1134
4374
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT + + CAST( NULL AS SIGNED ) * - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT + + CAST ( NULL AS INTEGER ) * - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5066
SELECT + 83 AS col0, - COUNT( * ) col1 FROM tab1 AS cor0
----
83
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5066
SELECT + 83 AS col0, - COUNT ( * ) col1 FROM tab1 AS cor0
----
83
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT DISTINCT 1 * - + ( + col1 ) DIV + col0 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5067
SELECT DISTINCT 1 * - + ( + col1 ) / + col0 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT + - 95 * - MAX( - 19 ) AS col0 FROM tab0 AS cor0
----
-1805

skipif mysql # not compatible
query I rowsort label-5068
SELECT + - 95 * - MAX ( - 19 ) AS col0 FROM tab0 AS cor0
----
-1805

query III rowsort
SELECT * FROM tab2 WHERE ( col1 + col1 / + col0 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT - 72 - COUNT( * ) FROM tab2 WHERE ( - 68 + 18 * - 38 ) > col2 * 51
----
-72

skipif mysql # not compatible
query I rowsort label-5071
SELECT - 72 - COUNT ( * ) FROM tab2 WHERE ( - 68 + 18 * - 38 ) > col2 * 51
----
-72

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> 1
----

query I rowsort
SELECT ALL ( - ( + col1 ) ) AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col0 * - col2 + col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT + 18 FROM tab0 WHERE NULL NOT IN ( 67 )
----

query I rowsort
SELECT col1 + 80 * - 52 FROM tab1
----
-4113
-4146
-4155

query I rowsort
SELECT + 14 * ( - col0 * col0 ) FROM tab2
----
-29624
-57344
-78750

query I rowsort
SELECT ALL + 48 + + ( - col2 ) * + 66 AS col1 FROM tab2
----
-1470
-2592
-3780

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL <> ( col2 + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT col2 DIV + col1 + ( - 18 ) FROM tab1
----
-12
-17
-7

skipif mysql # not compatible
query I rowsort label-5081
SELECT col2 / + col1 + ( - 18 ) FROM tab1
----
-12
-17
-7

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 50 + 0 <> + col0
----

query I rowsort
SELECT ALL - 4 * - col0 FROM tab0
----
348
388
60

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 23 / col0 ) <= ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT col2 - - CAST( + 77 AS SIGNED ) AS col2 FROM tab1
----
136
145
173

skipif mysql # not compatible
query I rowsort label-5086
SELECT col2 - - CAST ( + 77 AS INTEGER ) AS col2 FROM tab1
----
136
145
173

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT + 96 * + 37 - 41 * - COUNT( * ) FROM tab2 AS cor0
----
3675

skipif mysql # not compatible
query I rowsort label-5087
SELECT + 96 * + 37 - 41 * - COUNT ( * ) FROM tab2 AS cor0
----
3675

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT DISTINCT + col0 DIV - 17 + col2 FROM tab0 cor0
----
47
5
94

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT + col0 / - 17 + col2 FROM tab0 cor0
----
47
5
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT - ( - COUNT( - col2 ) ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5089
SELECT - ( - COUNT ( - col2 ) ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 44 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5091
SELECT * FROM tab2 WHERE ( 55 ) = ( - CAST( NULL AS SIGNED ) / col2 )
----

skipif mysql # not compatible
query III rowsort label-5091
SELECT * FROM tab2 WHERE ( 55 ) = ( - CAST ( NULL AS INTEGER ) / col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 - 12 col0 FROM tab0
----
79
79
79

query I rowsort
SELECT DISTINCT col2 - 6 * col2 AS col0 FROM tab2
----
-115
-200
-290

query I rowsort
SELECT 17 + - col2 AS col1 FROM tab0
----
-30
-82
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT - 78 DIV col2 AS col0 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-5095
SELECT - 78 / col2 AS col0 FROM tab2
----
-1
-1
-3

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 / col2 ) NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5097
SELECT DISTINCT CAST( 47 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT CAST ( 47 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT + + 45 DIV + 10 AS col1 FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-5098
SELECT + + 45 / + 10 AS col1 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT ALL - + 77 AS col1 FROM tab1 AS cor0
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 * col1 col1 FROM tab0 AS cor0 WHERE NOT 71 + - 42 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > col2
----
0

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > col2
----
0

query I rowsort
SELECT DISTINCT + 82 FROM tab0 AS cor0 WHERE NOT col2 + col0 IN ( + 60 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT COUNT( * ) * - MIN( ALL 56 ) * COUNT( * ) AS col2 FROM tab2
----
-504

skipif mysql # not compatible
query I rowsort label-5103
SELECT COUNT ( * ) * - MIN ( ALL 56 ) * COUNT ( * ) AS col2 FROM tab2
----
-504

query I rowsort
SELECT ALL - 17 FROM tab0 WHERE ( NULL ) BETWEEN 37 + col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 = + 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + AVG ( ALL col1 ) / - 24 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT DISTINCT + COUNT( DISTINCT + 28 ) * 13 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT + COUNT ( DISTINCT + 28 ) * 13 FROM tab1
----
13

query III rowsort
SELECT * FROM tab2 WHERE NOT 27 IN ( + col2 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT ALL + 15 * COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL + 15 * COUNT ( * ) FROM tab1
----
45

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 14 + + col0 / col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col1 AND col1 / ( - col0 ) + + 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL - ( - + MIN( DISTINCT col1 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL - ( - + MIN ( DISTINCT col1 ) ) AS col0 FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 38 * col0 - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 + 37 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5116
SELECT ALL + 78 DIV ( - COUNT( * ) * COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-8

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + 78 / ( - COUNT ( * ) * COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 91 NOT IN ( 64 - col1 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 18 + - col1 FROM tab1 AS cor0
----
-23
-32
-65

query I rowsort
SELECT 75 + - col2 * + 93 FROM tab2 AS cor0
----
-2064
-3645
-5319

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5120
SELECT + - CAST( NULL AS DECIMAL ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5120
SELECT + - CAST ( NULL AS REAL ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5121
SELECT + CAST( + 10 AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

skipif mysql # not compatible
query I rowsort label-5121
SELECT + CAST ( + 10 AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL 36 + - - col2 FROM tab0
----
135
46
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + col1 + + - col0 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + col1 + + - col0 AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL 83 * - - col0 FROM tab0 AS cor0
----
1245
7221
8051

query I rowsort
SELECT ALL - col0 + 21 FROM tab2 AS cor0
----
-25
-43
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT DISTINCT CAST( col1 AS SIGNED ) FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + 89 + + - 89 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col1 ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 IN ( 84 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 73 AS col0 FROM tab0 cor0 WHERE + col2 * - col0 * 33 + - ( 86 ) NOT BETWEEN - col1 - col1 * col2 AND - col2 / col1
----
73
73
73

query I rowsort
SELECT ALL 39 * + - ( - + 63 ) * ( + 97 ) FROM tab0 AS cor0
----
238329
238329
238329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5132
SELECT + + col2 + - CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT + + col2 + - CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT COUNT( * ) + - 34 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5133
SELECT COUNT ( * ) + - 34 FROM tab0 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT DISTINCT + - 73 * - COUNT( * ) FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT + - 73 * - COUNT ( * ) FROM tab0 AS cor0
----
219

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) > ( - 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT ALL - col0 DIV - ( col2 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL - col0 / - ( col2 ) FROM tab2
----
1
1
2

query I rowsort
SELECT ALL - col1 + + - 35 - col2 * - 23 FROM tab1
----
1317
1482
2159

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT COUNT( * ) + + 3 col0 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5138
SELECT COUNT ( * ) + + 3 col0 FROM tab0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5139
SELECT ALL MIN( 60 ) DIV - MAX( DISTINCT + col2 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL MIN ( 60 ) / - MAX ( DISTINCT + col2 ) AS col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT MIN( + - col1 ) + + COUNT( * ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-5140
SELECT MIN ( + - col1 ) + + COUNT ( * ) FROM tab1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5141
SELECT ( col1 ) * + 15 + + - col1 + + CAST( - col1 + - col0 * - col0 AS SIGNED ) * col1 FROM tab2
----
106029
310541
373324

skipif mysql # not compatible
query I rowsort label-5141
SELECT ( col1 ) * + 15 + + - col1 + + CAST ( - col1 + - col0 * - col0 AS INTEGER ) * col1 FROM tab2
----
106029
310541
373324

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND + + col2
----
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND + + col2
----
0

query I rowsort
SELECT ALL + col0 + + 29 AS col2 FROM tab0
----
116
126
44

query I rowsort
SELECT DISTINCT + 78 * - ( col2 ) + col2 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 + + ( - 1 ) col0 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT + 28 AS col1 FROM tab0 cor0
----
28
28
28

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 BETWEEN + - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT ALL - - col1 + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5148
SELECT ALL - - col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT MIN( 43 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5149
SELECT MIN ( 43 ) FROM tab2 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5151
SELECT ALL - CAST( col1 AS SIGNED ) AS col1, + 83 AS col2 FROM tab1 AS cor0
----
-14
83
-47
83
-5
83

skipif mysql # not compatible
query II rowsort label-5151
SELECT ALL - CAST ( col1 AS INTEGER ) AS col1, + 83 AS col2 FROM tab1 AS cor0
----
-14
83
-47
83
-5
83

onlyif mysql # DIV for integer division: 
query III rowsort label-5152
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 DIV ( + + 6 ) BETWEEN - col2 - - 57 AND col2 + col1
----
85
5
59

skipif mysql # not compatible
query III rowsort label-5152
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 / ( + + 6 ) BETWEEN - col2 - - 57 AND col2 + col1
----
85
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5153
SELECT 72 DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5153
SELECT 72 / col0 AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT - COUNT( * ) * + + COUNT( * ) + MAX( DISTINCT col2 ) - - MIN( col0 ) + + 41 * - COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5154
SELECT - COUNT ( * ) * + + COUNT ( * ) + MAX ( DISTINCT col2 ) - - MIN ( col0 ) + + 41 * - COUNT ( * ) FROM tab0 AS cor0
----
-18

query I rowsort
SELECT ALL 54 * + col1 + - col1 * + - 18 FROM tab1 AS cor0
----
1008
3384
360

query I rowsort
SELECT col1 * 9 FROM tab1
----
126
423
45

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NULL ) NOT IN ( 24 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + - - 9 NOT IN ( - 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT DISTINCT + 3 + + COUNT( * ) AS col1 FROM tab2, tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT + 3 + + COUNT ( * ) AS col1 FROM tab2, tab2 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ( 42 ) * COUNT( * ) FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-5160
SELECT ( 42 ) * COUNT ( * ) FROM tab1
----
126

query I rowsort
SELECT + - 29 AS col1 FROM tab0 cor0
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5162
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5162
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT + + 11, + col1 + - 1 AS col1 FROM tab2 AS cor0
----
11
50
11
66
11
76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 5
----

query I rowsort
SELECT DISTINCT + 1 * + 15 + - - col1 - + col0 - + col1 + - 18 * 75 FROM tab1 AS cor0
----
-1386
-1420
-1426

query I rowsort
SELECT ALL - col2 * - - col2 AS col1 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ( + + 84 ) FROM tab2
----
84
84
84

query I rowsort
SELECT + col0 + - - col2 * + col1 * ( + col0 ) AS col0 FROM tab0
----
18357
57120
9700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5169
SELECT + col2 + CAST( NULL AS SIGNED ) * + 69 AS col2, 42 * - + col1 * ( - col2 ) * col2 FROM tab0
----
NULL
411642
NULL
7515018
NULL
88200

skipif mysql # not compatible
query II rowsort label-5169
SELECT + col2 + CAST ( NULL AS INTEGER ) * + 69 AS col2, 42 * - + col1 * ( - col2 ) * col2 FROM tab0
----
NULL
411642
NULL
7515018
NULL
88200

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT + + col2 DIV 52 + - 42 * + + 75 + - 18 * - col0 * - col2 AS col0 FROM tab2 AS cor0
----
-22194
-49230
-81449

skipif mysql # not compatible
query I rowsort label-5170
SELECT + + col2 / 52 + - 42 * + + 75 + - 18 * - col0 * - col2 AS col0 FROM tab2 AS cor0
----
-22194
-49230
-81449

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT - COUNT( * ) + - + 46 AS col1 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT - COUNT ( * ) + - + 46 AS col1 FROM tab1 AS cor0
----
-49

query II rowsort
SELECT - col0 + + + col1 AS col0, col2 FROM tab0 cor0
----
-66
10
-96
99
66
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT DISTINCT - COUNT( ALL + - col0 ) * + ( + + MIN( - - 72 ) ) AS col0 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT - COUNT ( ALL + - col0 ) * + ( + + MIN ( - - 72 ) ) AS col0 FROM tab2 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT + - MAX( - - col1 ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT + - MAX ( - - col1 ) FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5176
SELECT ALL - + SUM( ALL 48 ) DIV + 6 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL - + SUM ( ALL 48 ) / + 6 FROM tab1 AS cor0
----
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( - col1 * - col0 + + ( - - col1 ) - 75 - - col0 * col0 ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5178
SELECT DISTINCT - ( ( ( - SUM( DISTINCT 10 ) ) ) ) - - CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT - ( ( ( - SUM ( DISTINCT 10 ) ) ) ) - - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT + CAST( NULL AS SIGNED ) * 49 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT + CAST ( NULL AS INTEGER ) * 49 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT DISTINCT 13 DIV - 59 * + 57 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT 13 / - 59 * + 57 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5181
SELECT DISTINCT 75 DIV MIN( - col2 ) + - + COUNT( * ) AS col0 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT 75 / MIN ( - col2 ) + - + COUNT ( * ) AS col0 FROM tab2
----
-4

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL <> + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5183
SELECT ALL CAST( - 22 AS SIGNED ) AS col1 FROM tab0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL CAST ( - 22 AS INTEGER ) AS col1 FROM tab0
----
-22
-22
-22

query II rowsort
SELECT + col0, 58 FROM tab1
----
51
58
85
58
91
58

query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab1 AS cor0 WHERE - - col1 * 73 + + 55 >= NULL AND - 84 > ( NULL )
----

query I rowsort
SELECT DISTINCT 77 + - ( col2 ) FROM tab1 AS cor0
----
-19
18
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT - COUNT( + - col2 ) FROM tab1 AS cor0 WHERE col0 * - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5187
SELECT - COUNT ( + - col2 ) FROM tab1 AS cor0 WHERE col0 * - - col0 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NULL ) > - + col2 )
----

query II rowsort
SELECT - col2, + col1 * - ( - col0 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5190
SELECT ALL + - MIN( ALL - 38 ), + MAX( ALL - + 31 ) col2 FROM tab0 AS cor0
----
38
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5190
SELECT ALL + - MIN ( ALL - 38 ), + MAX ( ALL - + 31 ) col2 FROM tab0 AS cor0
----
38
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5191
SELECT ALL MIN( + ( - - col0 ) ), 26 AS col2 FROM tab2
----
46
26

skipif mysql # not compatible
query II rowsort label-5191
SELECT ALL MIN ( + ( - - col0 ) ), 26 AS col2 FROM tab2
----
46
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT - MAX( - 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5192
SELECT - MAX ( - 0 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5193
SELECT DISTINCT * FROM tab1 WHERE + - col2 * + + col2 <> + CAST( col0 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5193
SELECT DISTINCT * FROM tab1 WHERE + - col2 * + + col2 <> + CAST ( col0 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL + SUM( - col1 ) + - ( + 95 ) AS col0 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL + SUM ( - col1 ) + - ( + 95 ) AS col0 FROM tab0
----
-198

query I rowsort
SELECT DISTINCT + + col1 + - - col2 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT + col0 + - 3 AS col1 FROM tab1 cor0
----
48
82
88

query I rowsort
SELECT - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col1 AND + col2 * col0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col1 FROM tab2 AS cor0 WHERE col1 * 36 IS NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 * col1 AND + 40
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT + col0 + ( CAST( NULL AS SIGNED ) ) + + 14 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT + col0 + ( CAST ( NULL AS INTEGER ) ) + + 14 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5201
SELECT DISTINCT + 69 AS col1, COUNT( DISTINCT - - col2 ), COUNT( * ) AS col2 FROM tab1 AS cor0
----
69
3
3

skipif mysql # not compatible
query III rowsort label-5201
SELECT DISTINCT + 69 AS col1, COUNT ( DISTINCT - - col2 ), COUNT ( * ) AS col2 FROM tab1 AS cor0
----
69
3
3

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT IN ( - 19 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2, col2 AS col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT MIN( 75 ) col2 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5204
SELECT MIN ( 75 ) col2 FROM tab2
----
75

query I rowsort
SELECT DISTINCT - col0 * + 45 AS col1 FROM tab2 AS cor0
----
-2070
-2880
-3375

query I rowsort
SELECT - col1 - + - 25 FROM tab1 AS cor0
----
-22
11
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IN ( 40 / - col0, 90 / 73 )
----

skipif mysql # not compatible
query I rowsort label-5207
SELECT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IN ( 40 / - col0, 90 / 73 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 + + - col1 IN ( + col1, - col0 )
----

query I rowsort
SELECT + 19 / - + col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 - - col1, col2 FROM tab2
----
102
23
134
58
154
40

query I rowsort
SELECT - ( + 8 ) FROM tab1 WHERE NULL IS NULL
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL COUNT( * ) + - + 72 AS col0 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL COUNT ( * ) + - + 72 AS col0 FROM tab1
----
-69

query III rowsort
SELECT * FROM tab1 WHERE NOT + 97 * + + ( - - 68 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + col2 ) * + - 90 col0, - 21 FROM tab0
----
-4230
-21
-8910
-21
-900
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5215
SELECT DISTINCT CAST( NULL AS SIGNED ) / - COUNT( * ) * + ( + + 98 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - COUNT ( * ) * + ( + + 98 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 5 * col1 * + col2 FROM tab1 AS cor0
----
1475
15980
6720

query I rowsort
SELECT ALL - 54 * + + col0 * + 64 * - - col0 AS col1 FROM tab2 AS cor0
----
-14155776
-19440000
-7312896

onlyif mysql # DIV for integer division: 
query I rowsort label-5218
SELECT + col0 DIV + 72 + + - col1 + + col2 + col2 AS col2 FROM tab0 AS cor0
----
0
13
198

skipif mysql # not compatible
query I rowsort label-5218
SELECT + col0 / + 72 + + - col1 + + col2 + col2 AS col2 FROM tab0 AS cor0
----
0
13
198

onlyif mysql # DIV for integer division: 
query I rowsort label-5219
SELECT - 15 DIV + + 99 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5219
SELECT - 15 / + + 99 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5220
SELECT DISTINCT - 47, 55 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-47
58

skipif mysql # not compatible
query II rowsort label-5220
SELECT DISTINCT - 47, 55 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-47
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT DISTINCT + MIN( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT + MIN ( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 46 * + - col0 col1 FROM tab2 AS cor0 WHERE NOT - ( + col2 ) IS NULL
----
2116
2944
3450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 + + + col2 * col1 col0 FROM tab1
----
1446
3378
465

query I rowsort
SELECT 34 * + + col2 AS col2 FROM tab2 AS cor0
----
1360
1972
782

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 97 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * 94 / - 54 FROM tab0 AS cor0 WHERE - col0 = + ( + 60 ) * + - col1 + col0
----

query I rowsort
SELECT 94 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT - 10 + + 73 FROM tab0 cor0
----
63
63
63

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT 13 * + col1 NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IS NULL OR NOT col0 > + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT - - COUNT( * ) - 71 AS col0 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT - - COUNT ( * ) - 71 AS col0 FROM tab1 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5233
SELECT ALL 5 - + COUNT( * ) * - - 68 + - + COUNT( * ), + COUNT( * ) AS col0 FROM tab2
----
-202
3

skipif mysql # not compatible
query II rowsort label-5233
SELECT ALL 5 - + COUNT ( * ) * - - 68 + - + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2
----
-202
3

query I rowsort
SELECT col0 - - col1 * - - 85 AS col2 FROM tab0
----
182
1872
6900

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT ( col0 ) * col1 DIV + + 61 FROM tab1
----
11
6
70

skipif mysql # not compatible
query I rowsort label-5235
SELECT ( col0 ) * col1 / + + 61 FROM tab1
----
11
6
70

query I rowsort
SELECT 46 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
46
46

query I rowsort
SELECT ALL col1 + - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col1, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT 78 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT ALL - col0 * - + col1 + - col2 * + col2 * - + ( + + col2 ) + + col0 + - + 41 FROM tab1 AS cor0
----
205848
318759
885460

query I rowsort
SELECT ALL ( + + col1 ) FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL + 29 * + ( col1 ) FROM tab2 AS cor0 WHERE NOT NULL IN ( + 13, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT - SUM( ALL - col0 ) * 32 AS col1 FROM tab0 AS cor0
----
6368

skipif mysql # not compatible
query I rowsort label-5243
SELECT - SUM ( ALL - col0 ) * 32 AS col1 FROM tab0 AS cor0
----
6368

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT + - col1 * 41 AS col2 FROM tab0 cor0
----
-3321
-41
-861

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT - col1 >= + - ( + 62 ) * col0 + 26
----

query I rowsort
SELECT + 78 * + - col2 FROM tab0 AS cor0
----
-3666
-7722
-780

onlyif mysql # DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT - - col2 DIV - col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT - - col2 / - col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
0

query I rowsort
SELECT + ( - + col0 ) * + ( - col2 ) * - col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT - ( COUNT( * ) ) FROM tab2 WHERE NOT NULL = - col1
----
0

skipif mysql # not compatible
query I rowsort label-5250
SELECT - ( COUNT ( * ) ) FROM tab2 WHERE NOT NULL = - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT ALL - CAST( NULL AS SIGNED ) * + 28 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL - CAST ( NULL AS INTEGER ) * + 28 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + - 85 FROM tab0
----
-4
-64
-84

query I rowsort
SELECT - ( col2 ) * - col0 AS col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 / + col0 NOT BETWEEN + + col0 AND + + ( - col1 )
----

query I rowsort
SELECT 77 + - 25 FROM tab0
----
52
52
52

query I rowsort
SELECT ALL + ( + 4 ) + - col0 AS col2 FROM tab2
----
-42
-60
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL + CAST( 38 AS SIGNED ) AS col1 FROM tab0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL + CAST ( 38 AS INTEGER ) AS col1 FROM tab0
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + 87 col2 FROM tab1
----
172
172
172

query I rowsort
SELECT DISTINCT + col1 + col1 * - 4 * + 34 FROM tab2
----
-10395
-6885
-9045

query III rowsort
SELECT * FROM tab1 WHERE - 65 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 88 + + 51 * + - col0 FROM tab1 AS cor0
----
-2513
-4247
-4553

query II rowsort
SELECT ALL - - 34, - col0 AS col0 FROM tab0 AS cor0
----
34
-15
34
-87
34
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT - COUNT( * ) + + + SUM( - ( - 95 ) ) col2 FROM tab0 AS cor0
----
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5263
SELECT - COUNT ( * ) + + + SUM ( - ( - 95 ) ) col2 FROM tab0 AS cor0
----
282

query I rowsort
SELECT + 23 * - + 55 AS col1 FROM tab0 AS cor0
----
-1265
-1265
-1265

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT - 64 * + COUNT( * ) AS col1 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-5265
SELECT - 64 * + COUNT ( * ) AS col1 FROM tab1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT - - MIN( + + ( + - col0 ) ) + - COUNT( * ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT - - MIN ( + + ( + - col0 ) ) + - COUNT ( * ) FROM tab2 AS cor0
----
-78

query I rowsort
SELECT DISTINCT - col0 - + col2 + - ( 80 ) AS col0 FROM tab1 AS cor0
----
-224
-227
-239

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT + - SUM( ALL - col1 ) + + COUNT( + + col2 ) AS col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5268
SELECT + - SUM ( ALL - col1 ) + + COUNT ( + + col2 ) AS col1 FROM tab1 AS cor0
----
69

query I rowsort
SELECT DISTINCT + 25 - - + col0 * - col0 FROM tab0 AS cor0
----
-200
-7544
-9384

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <= + col2
----

query I rowsort
SELECT + 35 + + col0 + - ( + - 15 ) FROM tab2 AS cor0
----
114
125
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT + ( - + 63 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5272
SELECT + ( - + 63 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT DISTINCT + 94 * + COUNT( * ) FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT + 94 * + COUNT ( * ) FROM tab2
----
282

query II rowsort
SELECT ALL col2 * + ( - col2 ) AS col1, col2 FROM tab0
----
-100
10
-2209
47
-9801
99

query I rowsort
SELECT 14 * 38 AS col0 FROM tab1
----
532
532
532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5276
SELECT col1 * - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT col1 * - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5278
SELECT col0 AS col2, CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-5278
SELECT col0 AS col2, CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT - - 79 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5280
SELECT col0, col0 * + ( - 17 ) * + - col0 + + + CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5280
SELECT col0, col0 * + ( - 17 ) * + - col0 + + + CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5281
SELECT + 34, + CAST( NULL AS SIGNED ) * - - 60 * + COUNT( * ) AS col1 FROM tab2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-5281
SELECT + 34, + CAST ( NULL AS INTEGER ) * - - 60 * + COUNT ( * ) AS col1 FROM tab2
----
34
NULL

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE ( col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT - + col2 AS col1, col0 * col2 AS col1 FROM tab0 AS cor0
----
-10
870
-47
705
-99
9603

query I rowsort
SELECT ALL - 66 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 >= + 71
----
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT 11 + + + 96 + - COUNT( * ) FROM tab2 AS cor0
----
104

skipif mysql # not compatible
query I rowsort label-5285
SELECT 11 + + + 96 + - COUNT ( * ) FROM tab2 AS cor0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL - COUNT( * ) * + - SUM( + col1 ) FROM tab1 cor0
----
198

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL - COUNT ( * ) * + - SUM ( + col1 ) FROM tab1 cor0
----
198

query I rowsort
SELECT DISTINCT col2 * + 94 AS col2 FROM tab1 cor0
----
5546
6392
9024

query I rowsort
SELECT DISTINCT - col1 * col1 * 72 AS col1 FROM tab0
----
-31752
-472392
-72

query I rowsort
SELECT ALL col0 * - + col0 + + 60 * + col0 FROM tab1
----
-2125
-2821
459

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + - col2 + - - col1, - col0 + - 32 - - 85 * col2 AS col0 FROM tab1 AS cor0
----
-21
5657
-54
4898
-82
8077

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + + col0 + + ( col1 ) + - col2 <> - - col0 * - col1 * col0
----

query II rowsort
SELECT ALL - col1 - - col2 - + + col0 * 12 AS col1, + 99 FROM tab2
----
-580
99
-805
99
-909
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT - 80 + - COUNT( * ) AS col2 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-5294
SELECT - 80 + - COUNT ( * ) AS col2 FROM tab2
----
-83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5295
SELECT ALL 80 AS col1, + 1 DIV - - 31 + col1 + + 8 - col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
9 values hashing to aecdd9f70f9eea1986103b73be704ee4

skipif mysql # not compatible
query III rowsort label-5295
SELECT ALL 80 AS col1, + 1 / - - 31 + col1 + + 8 - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
9 values hashing to aecdd9f70f9eea1986103b73be704ee4

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE col2 / + 87 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NOT col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT DISTINCT + COUNT( * ) * + ( + + 86 ) + - ( MIN( col1 ) ) FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT + COUNT ( * ) * + ( + + 86 ) + - ( MIN ( col1 ) ) FROM tab2 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT - COUNT( * ) FROM tab2 WHERE NOT col1 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5300
SELECT - COUNT ( * ) FROM tab2 WHERE NOT col1 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - col2 * + ( + + col1 ) AS col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5302
SELECT DISTINCT + CAST( - + ( 87 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT + CAST ( - + ( 87 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT DISTINCT MAX( ALL + ( + 10 ) ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT MAX ( ALL + ( + 10 ) ) FROM tab1 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * + 59 col2, + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-5133
-87
-5723
-97
-885
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5305
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * + 95 AS col2 FROM tab2
----
-4370
-6080
-7125

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 20 AND + 87
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5308
SELECT ALL + + CAST( NULL AS DECIMAL ) + - - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL + + CAST ( NULL AS REAL ) + - - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - 66 * - col1 IS NULL )
----

query I rowsort
SELECT + 28 * + - col0 FROM tab0 AS cor0
----
-2436
-2716
-420

query I rowsort
SELECT DISTINCT - 29 * + - 4 + - 68 FROM tab0 AS cor0
----
48

query II rowsort
SELECT col1, col0 FROM tab0 AS cor0 WHERE + 39 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - - col0 * + 41 AS col1 FROM tab2 AS cor0
----
1886
2624
3075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5315
SELECT DISTINCT - 33 DIV - - SUM( + col1 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5315
SELECT DISTINCT - 33 / - - SUM ( + col1 ) col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5316
SELECT DISTINCT 3 DIV 86 * - SUM( - 7 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT 3 / 86 * - SUM ( - 7 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col2 * + col2 + + + col0 FROM tab2
----
1664
3439
575

query I rowsort
SELECT DISTINCT col2 * + 63 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - - col1 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5320
SELECT DISTINCT - col0 col2, + 0 DIV + - col1 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5320
SELECT DISTINCT - col0 col2, + 0 / + - col1 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5321
SELECT ALL + - MIN( - col1 ) + - + MIN( DISTINCT col1 ) DIV COUNT( * ) FROM tab1 cor0
----
46

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL + - MIN ( - col1 ) + - + MIN ( DISTINCT col1 ) / COUNT ( * ) FROM tab1 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL - ( + 47 ) - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL - ( + 47 ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-5323
SELECT col0, + 16 DIV + + 82 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-5323
SELECT col0, + 16 / + + 82 FROM tab2 AS cor0
----
46
0
64
0
75
0

query I rowsort
SELECT ALL - 13 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5325
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0, tab2 AS cor0 WHERE CAST( + 10 AS SIGNED ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0 WHERE CAST ( + 10 AS INTEGER ) >= NULL
----
NULL

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT NULL <> + col0
----

query I rowsort
SELECT ALL 44 * col1 + col1 + - 14 + - col1 AS col0 FROM tab1 AS cor0
----
2054
206
602

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT + MAX( + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5328
SELECT + MAX ( + + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5329
SELECT + + col1 DIV + 96 * - + col0 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5329
SELECT + + col1 / + 96 * - + col0 AS col0 FROM tab1 cor0
----
0
0
0

query II rowsort
SELECT - - col1 * col0 AS col2, col0 AS col0 FROM tab2 AS cor0
----
2346
46
4928
64
5025
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5331
SELECT - 24 DIV 71 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5331
SELECT - 24 / 71 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col1 FROM tab0 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT - + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT - 44 * col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5333
SELECT - + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT - 44 * col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT - COUNT( * ) * SUM( DISTINCT col0 ) AS col1 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-5334
SELECT - COUNT ( * ) * SUM ( DISTINCT col0 ) AS col1 FROM tab2
----
-555

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + + + col0 + + col0 + - - ( + col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT - col1 + - + col0 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT - col1 + - + col0 >= ( NULL )
----
0

query II rowsort
SELECT + col1 AS col0, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab2 cor0
----
15

query I rowsort
SELECT + col1 + + + col2 * - 79 AS col1 FROM tab2 cor0
----
-1766
-3083
-4515

onlyif mysql # DIV for integer division: 
query I rowsort label-5340
SELECT DISTINCT - col1 DIV col0 + + 18 AS col1 FROM tab0 AS cor0
----
13
18

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT - col1 / col0 + + 18 AS col1 FROM tab0 AS cor0
----
13
18

query I rowsort
SELECT - ( + col1 ) + - + col1 + col0 AS col0 FROM tab2 AS cor0
----
-56
-59
-90

query II rowsort
SELECT DISTINCT - + 80 - col2 / + - col2, + col0 FROM tab1 AS cor0 WHERE NOT - ( - col2 ) / + 10 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT 69 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - + col0, - col2, - 37 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
46
64
75

query I rowsort
SELECT ( + + 42 ) FROM tab1
----
42
42
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5347
SELECT MAX( - CAST( col0 AS SIGNED ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5347
SELECT MAX ( - CAST ( col0 AS INTEGER ) ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT COUNT( ALL - + 16 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5348
SELECT COUNT ( ALL - + 16 ) FROM tab2
----
3

query I rowsort
SELECT - - col1 - - col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT + 61 - - 29 FROM tab2 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT DISTINCT + MAX( 39 ) + - MIN( ALL col0 ) * COUNT( * ) - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT + MAX ( 39 ) + - MIN ( ALL col0 ) * COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col0 + + ( col0 ) FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT 1 * + col2 FROM tab2
----
23
40
58

query II rowsort
SELECT ALL - col2 AS col2, + col0 AS col0 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query II rowsort label-5355
SELECT MIN( DISTINCT - 95 ) AS col1, 0 FROM tab2 AS cor0
----
-95
0

skipif mysql # not compatible
query II rowsort label-5355
SELECT MIN ( DISTINCT - 95 ) AS col1, 0 FROM tab2 AS cor0
----
-95
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( 98 ) * 5 IN ( - col2, - col2, + 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5357
SELECT + CAST( CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5357
SELECT + CAST ( CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT ALL + MAX( DISTINCT + + 47 ) AS col1 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5358
SELECT ALL + MAX ( DISTINCT + + 47 ) AS col1 FROM tab2 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT DISTINCT - MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT - MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5360
SELECT - CAST( col1 AS SIGNED ) AS col1, + ( + 62 ) * col0 + col0 AS col1 FROM tab2
----
-51
2898
-67
4725
-77
4032

skipif mysql # not compatible
query II rowsort label-5360
SELECT - CAST ( col1 AS INTEGER ) AS col1, + ( + 62 ) * col0 + col0 AS col1 FROM tab2
----
-51
2898
-67
4725
-77
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT MAX( - ( 40 ) ) AS col0 FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT MAX ( - ( 40 ) ) AS col0 FROM tab1
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 68 * + + col1 col1 FROM tab2
----
159528
335104
341700

query I rowsort
SELECT DISTINCT col2 * - - col1 * + col0 AS col0 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT - 92 FROM tab0 WHERE NOT + + 12 NOT BETWEEN - 11 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT + - CAST( NULL AS SIGNED ) * + col1 + - 2 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT + - CAST ( NULL AS INTEGER ) * + col1 + - 2 * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 95 + + col1 * - - 22 + col0 + - - col0 * 93 + 36 FROM tab2 cor0
----
10327
14925
15061

query II rowsort
SELECT - 28 + + 53 AS col2, 40 AS col2 FROM tab2 AS cor0
----
25
40
25
40
25
40

query II rowsort
SELECT DISTINCT - col0 AS col1, 1 FROM tab2
----
-46
1
-64
1
-75
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5369
SELECT DISTINCT - 11 col1, - 96 + + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-11
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5369
SELECT DISTINCT - 11 col1, - 96 + + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-11
-87

query II rowsort
SELECT DISTINCT - ( col1 ) + - col0 AS col0, + col2 AS col2 FROM tab2 AS cor0
----
-141
40
-142
58
-97
23

query I rowsort
SELECT ALL + 46 FROM tab1 AS cor0 WHERE col2 * - col1 * col0 + + 60 IN ( + col2, col0, - 8, - 9 )
----

query I rowsort
SELECT ALL + col1 + + + col2 FROM tab1 cor0
----
110
115
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5373
SELECT ( COUNT( * ) ) * - CAST( NULL AS SIGNED ) * - COUNT( * ) + COUNT( * ) + - 99 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + COUNT ( * ) + - 99 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 WHERE + - 64 + + col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 5 / - col0 IS NOT NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5377
SELECT ALL * FROM tab2 WHERE NOT + + CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5377
SELECT ALL * FROM tab2 WHERE NOT + + CAST ( + col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> + 79 AND NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT DISTINCT 65 + - COUNT( DISTINCT 22 ) AS col0 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT 65 + - COUNT ( DISTINCT 22 ) AS col0 FROM tab1
----
64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + - col1 * - col0 * + - ( 21 ) col1 FROM tab0
----
-2036
-25434
-38346

query II rowsort
SELECT - 18 + col0 + - 95, col1 AS col2 FROM tab1 WHERE - 56 <= 68
----
-22
47
-28
5
-62
14

query I rowsort
SELECT DISTINCT + col1 + + + 85 AS col2 FROM tab2 AS cor0
----
136
152
162

query I rowsort
SELECT ALL 6 + - - col1 FROM tab1 AS cor0
----
11
20
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5386
SELECT - MIN( ALL + + col1 ) DIV ( - SUM( ALL + + col0 ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5386
SELECT - MIN ( ALL + + col1 ) / ( - SUM ( ALL + + col0 ) ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT - - 92 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT + ( + 42 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT 63 * + + 32 AS col2 FROM tab2
----
2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5390
SELECT + CAST( NULL AS SIGNED ) * - + 35 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT + CAST ( NULL AS INTEGER ) * - + 35 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT ( + COUNT( + col1 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5391
SELECT ( + COUNT ( + col1 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - ( + col0 ) col0 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5393
SELECT DISTINCT + 21 DIV 16 DIV - + col2 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT + 21 / 16 / - + col2 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 61 * + col2 AS col1 FROM tab2 AS cor0
----
-1403
-2440
-3538

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT - 65 DIV col0 DIV - col0 * - 35 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5395
SELECT - 65 / col0 / - col0 * - 35 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 84 FROM tab1 cor0 WHERE NOT col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT + MIN( DISTINCT - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT + MIN ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5398
SELECT DISTINCT + + col2 * - - CAST( + - CAST( col2 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT + + col2 * - - CAST ( + - CAST ( col2 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT col1 * ( + - 96 ) AS col2 FROM tab1
----
-1344
-4512
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5400
SELECT ALL - COUNT( * ) * 84 DIV - 54 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL - COUNT ( * ) * 84 / - 54 FROM tab2
----
4

query I rowsort
SELECT col0 * - - col0 * - 61 FROM tab1
----
-158661
-440725
-505141

query I rowsort
SELECT - ( - - 94 ) FROM tab2
----
-94
-94
-94

query II rowsort
SELECT ALL + col1, 64 FROM tab1 cor0
----
14
64
47
64
5
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT DISTINCT - - 1 * 98 + - + 23 DIV + - ( + 59 ) FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - - 1 * 98 + - + 23 / + - ( + 59 ) FROM tab2 AS cor0
----
98

query I rowsort
SELECT 89 * + 83 AS col1 FROM tab1 cor0
----
7387
7387
7387

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL + SUM( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL + SUM ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 + + col1 col2 FROM tab0 AS cor0
----
306
7590
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - col0 * + 29 col2 FROM tab0
----
20445
25230
278487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT 42 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT 42 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( - ( - col1 ) ) col2 FROM tab1 WHERE - 51 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 72 ) col0 FROM tab1 WHERE - ( 84 ) IN ( - col2, - 71, col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5412
SELECT DISTINCT - col1 + + + col1, col0 DIV - - col0 col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5412
SELECT DISTINCT - col1 + + + col1, col0 / - - col0 col0 FROM tab2 AS cor0
----
0
1

query II rowsort
SELECT ALL - col0 * - col1, + 34 + + 12 AS col2 FROM tab2 AS cor0 WHERE + col0 BETWEEN + ( + col2 ) AND + - 32
----

query I rowsort
SELECT DISTINCT 66 * + 45 * + col2 - + col0 - + - col0 FROM tab1 AS cor0
----
175230
201960
285120

query I rowsort
SELECT - + 43 * - 47 * - + col1 AS col1 FROM tab1 cor0
----
-10105
-28294
-94987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5416
SELECT ALL - 3 * CAST( NULL AS SIGNED ) + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5416
SELECT ALL - 3 * CAST ( NULL AS INTEGER ) + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 85 - - 0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 - + - col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT ALL + + 72 * COUNT( * ) FROM tab1 WHERE NOT 97 IS NULL
----
216

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL + + 72 * COUNT ( * ) FROM tab1 WHERE NOT 97 IS NULL
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL 41 - - + COUNT( * ) + COUNT( * ) AS col0 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL 41 - - + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2
----
47

query III rowsort
SELECT * FROM tab1 WHERE + col0 BETWEEN + col0 AND col2 + - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 + + col0 col0 FROM tab2 WHERE + col1 BETWEEN - col1 + 92 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT + COUNT( * ) - - 17 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-5423
SELECT + COUNT ( * ) - - 17 FROM tab2
----
20

query I rowsort
SELECT col2 * - col1 - - col1 AS col0 FROM tab1
----
-1330
-290
-3149

query I rowsort
SELECT - col1 - + - 57 AS col1 FROM tab2
----
-10
-20
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - ( - + 90 ) + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-5426
SELECT - ( - + 90 ) + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5427
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 < + - 37 * - + CAST( NULL AS DECIMAL ) * - - ( - col2 ) / - col0 * - col2
----

skipif mysql # not compatible
query III rowsort label-5427
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 < + - 37 * - + CAST ( NULL AS REAL ) * - - ( - col2 ) / - col0 * - col2
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5429
SELECT CAST( - 46 AS SIGNED ) AS col1 FROM tab2 cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-5429
SELECT CAST ( - 46 AS INTEGER ) AS col1 FROM tab2 cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - 90 * + + 30 FROM tab1 AS cor0
----
-2700

query I rowsort
SELECT DISTINCT 32 * 37 FROM tab1
----
1184

query III rowsort
SELECT * FROM tab2 WHERE NOT - 54 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5433
SELECT DISTINCT MAX( col0 ) DIV 98, MAX( DISTINCT - - col1 ) AS col1 FROM tab2
----
0
77

skipif mysql # not compatible
query II rowsort label-5433
SELECT DISTINCT MAX ( col0 ) / 98, MAX ( DISTINCT - - col1 ) AS col1 FROM tab2
----
0
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( + col1 * - col2 )
----

query I rowsort
SELECT DISTINCT 94 + 17 AS col2 FROM tab0
----
111

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 78 + - col1 * + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 85 + - col0 AS col0 FROM tab0 cor0
----
-100
-172
-182

query I rowsort
SELECT ALL - col0 * + - col0 AS col0 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT + - col0 + + col0 * - + ( - 87 ) AS col1 FROM tab1 AS cor0
----
4386
7310
7826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5440
SELECT - COUNT( * ) AS col0, CAST( - - COUNT( ALL + 33 ) AS SIGNED ) col1 FROM tab2 WHERE + col2 + ( - - col2 ) IN ( - col1, CAST( col0 AS SIGNED ) )
----
-1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5440
SELECT - COUNT ( * ) AS col0, CAST ( - - COUNT ( ALL + 33 ) AS INTEGER ) col1 FROM tab2 WHERE + col2 + ( - - col2 ) IN ( - col1, CAST ( col0 AS INTEGER ) )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT - COUNT( * ) * 36 - SUM( ALL + 58 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
414

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT - COUNT ( * ) * 36 - SUM ( ALL + 58 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
414

query I rowsort
SELECT 18 + - + col0 FROM tab2
----
-28
-46
-57

query III rowsort
SELECT * FROM tab1 WHERE col1 + - + 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT 41 + - + COUNT( * ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-5444
SELECT 41 + - + COUNT ( * ) FROM tab1
----
38

query II rowsort
SELECT - 20 AS col2, 66 FROM tab2
----
-20
66
-20
66
-20
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5446
SELECT ALL + COUNT( * ), MAX( ALL 40 ) AS col2 FROM tab2
----
3
40

skipif mysql # not compatible
query II rowsort label-5446
SELECT ALL + COUNT ( * ), MAX ( ALL 40 ) AS col2 FROM tab2
----
3
40

query I rowsort
SELECT 38 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ( - - 58 ) FROM tab0 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5449
SELECT + + col1 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5449
SELECT + + col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 AS col1, ( + col2 ) FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 24 col1, - col1 - + - col1 + - + col0 * - col1 * + + col2 FROM tab2 AS cor0
----
-24
197120
-24
291450
-24
53958

query I rowsort
SELECT + ( - + 95 ) FROM tab2 AS cor0
----
-95
-95
-95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + col1 + - + col0 AS col2, col0 col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ALL + - col0 * - 16 AS col1 FROM tab2 AS cor0
----
1024
1200
736

query I rowsort
SELECT ALL + 27 + - + ( + col1 ) AS col1 FROM tab0
----
-54
26
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5457
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 33 + - + 16 AS col0 FROM tab2
----
17

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 52 col0 FROM tab1 AS cor0
----
-33
-39
1

query II rowsort
SELECT ALL - col0 * + - col0 AS col1, - 29 FROM tab1 AS cor0
----
2601
-29
7225
-29
8281
-29

query I rowsort
SELECT - col0 + - 2 AS col0 FROM tab2
----
-48
-66
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5463
SELECT ALL - CAST( NULL AS SIGNED ) * - + 11 col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5463
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 11 col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ALL + COUNT( - + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL + COUNT ( - + col2 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT col1 + - + 94 FROM tab2
----
-17
-27
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ( MIN( + + col0 ) ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5466
SELECT ( MIN ( + + col0 ) ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT DISTINCT + + COUNT( * ) col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5467
SELECT DISTINCT + + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL col1 + 13 FROM tab1 AS cor0
----
18
27
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT - SUM( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5469
SELECT - SUM ( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL + 50 + - 41 FROM tab2 AS cor0
----
9
9
9

query I rowsort
SELECT col2 * + 87 AS col0 FROM tab1
----
5133
5916
8352

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL MAX( ALL 27 ) AS col0 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL MAX ( ALL 27 ) AS col0 FROM tab0
----
27

query II rowsort
SELECT - 19, col0 AS col0 FROM tab2
----
-19
46
-19
64
-19
75

query II rowsort
SELECT ALL - col2 AS col1, - ( - + col2 ) AS col0 FROM tab1
----
-59
59
-68
68
-96
96

query II rowsort
SELECT DISTINCT col2, - col1 AS col2 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab0
----
-15

query I rowsort
SELECT ALL - 64 + - + 19 + + + col2 + - col1 FROM tab2 AS cor0
----
-111
-120
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT - SUM( ALL - col1 ) AS col0 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT - SUM ( ALL - col1 ) AS col0 FROM tab2 cor0
----
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col2 * col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5481
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 cor0
----
9

query I rowsort
SELECT col2 * - + col1 * col1 AS col1 FROM tab0 AS cor0
----
-308367
-4410
-99

query II rowsort
SELECT DISTINCT 3 AS col0, + 67 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3
67

query I rowsort
SELECT ALL - + col0 + col1 * - 9 AS col1 FROM tab0 WHERE NOT + ( - + col2 ) IS NULL
----
-106
-276
-744

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= ( + 38 * - 41 / + col0 )
----

query I rowsort
SELECT + 67 + col0 * 29 * - + ( - 44 ) * + col1 AS col2 FROM tab2
----
2993563
6288195
6411967

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5487
SELECT CAST( NULL AS SIGNED ) * - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT CAST ( NULL AS INTEGER ) * - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + col0 = - - 65
----

query I rowsort
SELECT ALL col2 + + ( - 33 ) AS col1 FROM tab0
----
-23
14
66

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + ( + - col2 ) AND col2 + + col0
----

query I rowsort
SELECT ALL - col1 * col2 + - ( + + col2 ) FROM tab2 AS cor0
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL - 31 + COUNT( ALL + col2 ) col0 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5492
SELECT ALL - 31 + COUNT ( ALL + col2 ) col0 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT DISTINCT + + col2 + - col1 * + + col2 FROM tab0 AS cor0
----
-200
-3760
0

query II rowsort
SELECT DISTINCT + col1, - 76 AS col2 FROM tab2 AS cor0
----
51
-76
67
-76
77
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 col2 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT + - 22 * - - 39 - - 26 FROM tab2 AS cor0
----
-832
-832
-832

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + + 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + COUNT( ALL + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5499
SELECT + COUNT ( ALL + col2 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 10 * col2 AND col0 - 22 * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 / - col0 + col0 * 72 BETWEEN ( - 93 ) AND NULL
----

query I rowsort
SELECT - 40 + 98 AS col1 FROM tab1 WHERE 11 IS NOT NULL
----
58
58
58

query I rowsort
SELECT 51 + + 70 AS col0 FROM tab2
----
121
121
121

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT col2 DIV 27 + col0 AS col2 FROM tab0
----
100
16
87

skipif mysql # not compatible
query I rowsort label-5504
SELECT col2 / 27 + col0 AS col2 FROM tab0
----
100
16
87

query I rowsort
SELECT col1 * + ( 71 ) + 74 FROM tab2
----
3695
4831
5541

query I rowsort
SELECT ALL + 42 + 65 FROM tab0 WHERE col2 IS NOT NULL
----
107
107
107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 + - 58 * - col1 col2 FROM tab2
----
0
1386
1785

query I rowsort
SELECT 93 + + col2 * col0 AS col2 FROM tab2
----
1151
2653
4443

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 76 * col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 99 * col0 AS col2 FROM tab1
----
5049
8415
9009

query I rowsort
SELECT col0 + + 17 * 20 FROM tab2
----
386
404
415

query I rowsort
SELECT ALL + ( 57 ) FROM tab1 WHERE NOT NULL IN ( ( col2 ) * ( 81 ) )
----

query I rowsort
SELECT ( + 58 ) AS col0 FROM tab2
----
58
58
58

query I rowsort
SELECT ALL + 51 + 17 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5515
SELECT DISTINCT + ( - ( - ( col2 ) ) ) AS col2 FROM tab1 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) / - col1 )
----

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT + ( - ( - ( col2 ) ) ) AS col2 FROM tab1 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) / - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 36 / - col0 ) NOT IN ( col0 )
----

query I rowsort
SELECT + col2 * col1 + col2 AS col1 FROM tab0
----
198
220
3854

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / 69 NOT BETWEEN ( + 2 * + col1 ) AND ( - 98 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col1 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= + col1 + - 54
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5521
SELECT + COUNT( * ) DIV 96 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5521
SELECT + COUNT ( * ) / 96 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT COUNT( * ) FROM tab0 WHERE NOT + col2 >= ( - 42 )
----
0

skipif mysql # not compatible
query I rowsort label-5523
SELECT COUNT ( * ) FROM tab0 WHERE NOT + col2 >= ( - 42 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT - COUNT( * ) + 15 * COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) <= col2 * - col1 - - col2
----
0

skipif mysql # not compatible
query I rowsort label-5524
SELECT - COUNT ( * ) + 15 * COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) <= col2 * - col1 - - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ALL - COUNT( 2 ) * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL - COUNT ( 2 ) * COUNT ( * ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT - COUNT( * ) + 81 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5526
SELECT - COUNT ( * ) + 81 FROM tab2 AS cor0
----
78

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - col2 AND ( col1 )
----
87
21
10
97
1
99

query I rowsort
SELECT 18 * col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
1062
1224
1728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5529
SELECT DISTINCT MAX( ALL CAST( ( col0 ) AS SIGNED ) ) col2 FROM tab1 AS cor0 WHERE NULL <= + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5529
SELECT DISTINCT MAX ( ALL CAST ( ( col0 ) AS INTEGER ) ) col2 FROM tab1 AS cor0 WHERE NULL <= + col0
----
NULL

query I rowsort
SELECT + - col0 + - 41 FROM tab2 cor0
----
-105
-116
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5531
SELECT - + col0 * col0 + - col1 DIV - 25 FROM tab2 AS cor0
----
-2114
-4093
-5623

skipif mysql # not compatible
query I rowsort label-5531
SELECT - + col0 * col0 + - col1 / - 25 FROM tab2 AS cor0
----
-2114
-4093
-5623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5532
SELECT DISTINCT 67 + col2 * - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-638
-803
-9536

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT 67 + col2 * - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-638
-803
-9536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5533
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - 34 FROM tab0 WHERE NULL > col1
----

query III rowsort
SELECT * FROM tab2 WHERE col0 <= col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ALL SUM( - 62 ) col0 FROM tab1
----
-186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5536
SELECT ALL SUM ( - 62 ) col0 FROM tab1
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT + 17 * MIN( ALL col2 ) FROM tab1
----
1003

skipif mysql # not compatible
query I rowsort label-5537
SELECT + 17 * MIN ( ALL col2 ) FROM tab1
----
1003

query III rowsort
SELECT * FROM tab2 WHERE + 8 NOT BETWEEN - 77 AND 26
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5540
SELECT + 2 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5540
SELECT + 2 / col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5541
SELECT + COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5541
SELECT + COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5542
SELECT DISTINCT 82 + - COUNT( * ) DIV + 5 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT 82 + - COUNT ( * ) / + 5 FROM tab0
----
82

query I rowsort
SELECT DISTINCT + + col2 + - + col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 27 - + + col2 FROM tab0 AS cor0
----
-126
-37
-74

query I rowsort
SELECT DISTINCT + ( + 30 ) + 22 * 43 AS col1 FROM tab2 cor0
----
976

query I rowsort
SELECT ALL col2 + - col0 * + col1 * - 19 AS col1 FROM tab2
----
44597
93672
95533

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT COUNT( * ) * + 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
117

skipif mysql # not compatible
query I rowsort label-5547
SELECT COUNT ( * ) * + 13 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
117

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT DISTINCT + 22 FROM tab0 AS cor0 WHERE ( col2 / - col1 * CAST( NULL AS SIGNED ) ) NOT IN ( col1 * col1 )
----

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT + 22 FROM tab0 AS cor0 WHERE ( col2 / - col1 * CAST ( NULL AS INTEGER ) ) NOT IN ( col1 * col1 )
----

query I rowsort
SELECT ALL + - ( + 71 ) FROM tab1 cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( col0 ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) > ( NULL )
----

query I rowsort
SELECT DISTINCT + ( 70 ) FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5554
SELECT ALL + 67 * - 91, + 42 + - COUNT( DISTINCT - 31 ) DIV - COUNT( * ) col0 FROM tab0
----
-6097
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5554
SELECT ALL + 67 * - 91, + 42 + - COUNT ( DISTINCT - 31 ) / - COUNT ( * ) col0 FROM tab0
----
-6097
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5555
SELECT - COUNT( * ) / CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE NOT ( - - 61 ) <= ( col2 + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5555
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE NOT ( - - 61 ) <= ( col2 + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( - + 48 ) > - 68 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5557
SELECT SUM( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT SUM ( CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT DISTINCT + col0 DIV + 45 AS col1 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT + col0 / + 45 AS col1 FROM tab1
----
1
2

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + 72 * + COUNT( * ) FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + 72 * + COUNT ( * ) FROM tab0
----
216

query I rowsort
SELECT ALL + 81 * - - col1 AS col1 FROM tab0 AS cor0
----
1701
6561
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> ( col0 * + col2 * col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( - - col0 )
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE - + 48 >= col2
----

query I rowsort
SELECT ALL + + 73 + + col1 FROM tab0 AS cor0
----
154
74
94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) <> ( + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 28 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 38 * col1 >= - - ( + col0 ) + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT MAX( - col1 ) * + 41 FROM tab2 cor0
----
-2091

skipif mysql # not compatible
query I rowsort label-5569
SELECT MAX ( - col1 ) * + 41 FROM tab2 cor0
----
-2091

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT COUNT( + col2 ) * + + COUNT( * ) + - ( + 97 ) FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5570
SELECT COUNT ( + col2 ) * + + COUNT ( * ) + - ( + 97 ) FROM tab0 AS cor0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5571
SELECT 54 + - COUNT( * ) * 16 FROM tab0 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) + - 17 ) >= ( CAST( + col1 AS SIGNED ) )
----
54

skipif mysql # not compatible
query I rowsort label-5571
SELECT 54 + - COUNT ( * ) * 1