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 ( * ) * 16 FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) + - 17 ) >= ( CAST ( + col1 AS INTEGER ) )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT ALL - col0 DIV col0 * + col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - col0 / col0 * + col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-5573
SELECT ALL col1, col0 DIV col0 + - 94 + + 35 FROM tab2
----
51
-58
67
-58
77
-58

skipif mysql # not compatible
query II rowsort label-5573
SELECT ALL col1, col0 / col0 + - 94 + + 35 FROM tab2
----
51
-58
67
-58
77
-58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5575
SELECT col0, - col1 - - - 20 * CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5575
SELECT col0, - col1 - - - 20 * CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT ALL - 65 * - col1 * + col0 + + col0 + - - 44 * - col0 AS col2 FROM tab1 AS cor0
----
23970
274092
44217

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT + 44 - + - SUM( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-151

skipif mysql # not compatible
query I rowsort label-5577
SELECT + 44 - + - SUM ( - col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-151

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= - + col0
----

query II rowsort
SELECT ALL col1 + 21 AS col0, col0 FROM tab1 cor0
----
26
85
35
51
68
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT + SUM( 82 ) FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-5580
SELECT + SUM ( 82 ) FROM tab0 AS cor0
----
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, - 89 col1 FROM tab2 AS cor0
----
-51
-89
-67
-89
-77
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ALL + COUNT( DISTINCT + 21 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL + COUNT ( DISTINCT + 21 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5583
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col2 * col1 * + - col1 / - CAST( + col2 AS DECIMAL ) / - 50 > ( 46 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5583
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col2 * col1 * + - col1 / - CAST ( + col2 AS REAL ) / - 50 > ( 46 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 * + col0 col2 FROM tab0
----
-3375
-658503
-912673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT + CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5589
SELECT + CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-5590
SELECT - + 8 col2, col0 DIV col0 FROM tab1 AS cor0
----
-8
1
-8
1
-8
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5590
SELECT - + 8 col2, col0 / col0 FROM tab1 AS cor0
----
-8
1
-8
1
-8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL COUNT( * ) * 47 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL COUNT ( * ) * 47 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

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

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

query I rowsort
SELECT DISTINCT - + 13 / + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - col2, col2 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT DISTINCT COUNT( * ) * 7 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT COUNT ( * ) * 7 FROM tab0
----
21

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT ALL col2 col1 FROM tab2 WHERE - - 96 / CAST( col0 AS SIGNED ) * + col2 - 83 - 24 * - col0 NOT BETWEEN - 33 AND - col1 * col0 - - 44
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5597
SELECT ALL col2 col1 FROM tab2 WHERE - - 96 / CAST ( col0 AS INTEGER ) * + col2 - 83 - 24 * - col0 NOT BETWEEN - 33 AND - col1 * col0 - - 44
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT + col1 DIV 87 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5598
SELECT + col1 / 87 + - col0 FROM tab2
----
-46
-64
-75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5600
SELECT ALL - MIN( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE CAST( - + col0 AS SIGNED ) IS NOT NULL
----
-59

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL - MIN ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE CAST ( - + col0 AS INTEGER ) IS NOT NULL
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 * + col1 col2 FROM tab1 AS cor0
----
-182
-20
-2162

query I rowsort
SELECT ALL - 29 + + col0 * + col2 - + 4 AS col2 FROM tab0 AS cor0
----
672
837
9570

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5603
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) / - - col2 IN ( + col0, 18 * - + col1 )
----

skipif mysql # not compatible
query III rowsort label-5603
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) / - - col2 IN ( + col0, 18 * - + col1 )
----

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT 29 * + + col0 BETWEEN - + 32 + - 66 AND + col1 * 60
----

query I rowsort
SELECT 62 - + - col2 FROM tab1
----
121
130
158

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

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

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

query I rowsort
SELECT ALL 56 + col0 + - 50 * + 89 AS col2 FROM tab0
----
-4297
-4307
-4379

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT - + MIN( - 33 ) * 70 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
2313

skipif mysql # not compatible
query I rowsort label-5611
SELECT - + MIN ( - 33 ) * 70 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
2313

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT + MIN( ALL - 49 ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-5613
SELECT + MIN ( ALL - 49 ) FROM tab0
----
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5614
SELECT - col2 DIV ( CAST( - + 90 AS SIGNED ) ) AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5614
SELECT - col2 / ( CAST ( - + 90 AS INTEGER ) ) AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT + 42 * col0 FROM tab1
----
2142
3570
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT - 15 * + ( + col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5616
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT - 15 * + ( + col0 ) IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT - 90 * 39 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
10530

skipif mysql # not compatible
query I rowsort label-5618
SELECT - 90 * 39 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
10530

query II rowsort
SELECT DISTINCT col1 AS col0, col0 - - + col2 + + + 13 * + col2 FROM tab2 AS cor0
----
51
368
67
887
77
624

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 * ( + 29 ) * - col1 col1 FROM tab0 AS cor0
----
202014
2494
52374

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

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

query I rowsort
SELECT ALL col1 + + col2 + - + col0 AS col0 FROM tab0
----
-56
113
3

query I rowsort
SELECT DISTINCT - 95 * + col1 FROM tab1 cor0
----
-1330
-4465
-475

query I rowsort
SELECT DISTINCT + - col2 + + col1 AS col0 FROM tab0 cor0
----
-98
11
34

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

skipif mysql # not compatible
query I rowsort label-5626
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 IN ( + 93 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT + COUNT( * ) + SUM( + col1 ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-5627
SELECT + COUNT ( * ) + SUM ( + col1 ) FROM tab2 AS cor0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-5628
SELECT col0 DIV - ( - col0 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5628
SELECT col0 / - ( - col0 ) FROM tab1 AS cor0
----
1
1
1

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT + COUNT( ALL + col2 ) - + MIN( - - 58 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5632
SELECT + COUNT ( ALL + col2 ) - + MIN ( - - 58 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + ( - col0 ) >= + col0 * + + col2 - - 67 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 75 * - 20 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5635
SELECT ALL + + 79 + + ( col1 ) + CAST( NULL AS SIGNED ) - + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL + + 79 + + ( col1 ) + CAST ( NULL AS INTEGER ) - + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5636
SELECT ALL 42 AS col2, COUNT( * ) * - - 39 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
42
NULL

skipif mysql # not compatible
query II rowsort label-5636
SELECT ALL 42 AS col2, COUNT ( * ) * - - 39 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
42
NULL

query I rowsort
SELECT - + 42 + - + col1 * - - 20 FROM tab1 AS cor0
----
-142
-322
-982

query I rowsort
SELECT DISTINCT + - 83 - + + 43 AS col0 FROM tab0 AS cor0
----
-126

query I rowsort
SELECT - + col2 + + + col2 + 20 + col2 AS col2 FROM tab2 cor0
----
43
60
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 - - col2 + 38 + col2, + ( col0 ) col0 FROM tab2
----
38
46
54
64
79
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT 52 + - - COUNT( * ) * 78 FROM tab2
----
286

skipif mysql # not compatible
query I rowsort label-5641
SELECT 52 + - - COUNT ( * ) * 78 FROM tab2
----
286

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

query I rowsort
SELECT 14 * + col0 + + + col0 AS col1 FROM tab2
----
1125
690
960

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5645
SELECT ALL - 28 DIV 99 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL - 28 / 99 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + 30 AS col2 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5647
SELECT - CAST( 69 AS SIGNED ) FROM tab1
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-5647
SELECT - CAST ( 69 AS INTEGER ) FROM tab1
----
-69
-69
-69

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5649
SELECT ALL - COUNT( * ) DIV + 20 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - COUNT ( * ) / + 20 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

query II rowsort
SELECT DISTINCT + 19 + - + col0, - ( + 42 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 + + 43 * - 5
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col1 ) * + 37 col1, col0 col1 FROM tab0 AS cor0
----
-2997
15
-37
97
-777
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT COUNT( * ) * + + ( MIN( ALL + 63 ) ) - + + COUNT( * ) FROM tab1 cor0
----
186

skipif mysql # not compatible
query I rowsort label-5652
SELECT COUNT ( * ) * + + ( MIN ( ALL + 63 ) ) - + + COUNT ( * ) FROM tab1 cor0
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5653
SELECT + - col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT + - col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 60 FROM tab2 WHERE NOT NULL IS NOT NULL
----
60
60
60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 = + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5656
SELECT ALL * FROM tab2 WHERE - CAST( + + col1 AS DECIMAL ) + + 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5656
SELECT ALL * FROM tab2 WHERE - CAST ( + + col1 AS REAL ) + + 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 78 + + + col1 AS col0 FROM tab1
----
125
83
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT ALL - CAST( + 37 AS SIGNED ) + - col1 + - col1 AS col0 FROM tab0
----
-199
-39
-79

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL - CAST ( + 37 AS INTEGER ) + - col1 + - col1 AS col0 FROM tab0
----
-199
-39
-79

query II rowsort
SELECT col0, + 16 + + 41 AS col2 FROM tab0 WHERE 87 >= col1 - - - col2
----
15
57
87
57
97
57

query I rowsort
SELECT ALL - 17 * - col1 AS col2 FROM tab2 AS cor0
----
1139
1309
867

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT ALL - MAX( ALL + col1 ) + MAX( DISTINCT + 25 ) + + 68 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL - MAX ( ALL + col1 ) + MAX ( DISTINCT + 25 ) + + 68 FROM tab0 AS cor0
----
12

query II rowsort
SELECT + col1 AS col1, + 50 - - + col1 AS col0 FROM tab2 AS cor0
----
51
101
67
117
77
127

query II rowsort
SELECT + 97 + - 60 AS col1, + col0 AS col0 FROM tab1
----
37
51
37
85
37
91

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT + - 2 > NULL
----

query I rowsort
SELECT col2 + col2 * + col0 + + - col0 + - col2 AS col2 FROM tab1
----
4845
4930
6097

query I rowsort
SELECT ALL + + col2 + - col2 * - - col1 AS col2 FROM tab0 AS cor0
----
-200
-3760
0

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

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

query I rowsort
SELECT ALL + - col2 * - col0 + + + ( - col1 ) + - col1 * - col1 FROM tab0 AS cor0
----
1290
7185
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT DISTINCT + col2 DIV - 87 + + - col2 + + col2 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT + col2 / - 87 + + - col2 + + col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 64 AS col1 FROM tab1 cor0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5671
SELECT DISTINCT + 88 * + COUNT( * ) AS col1, - 42 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + CAST( NULL AS SIGNED ) * + col2 * + col2 + 12
----
0
-42

skipif mysql # not compatible
query II rowsort label-5671
SELECT DISTINCT + 88 * + COUNT ( * ) AS col1, - 42 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + CAST ( NULL AS INTEGER ) * + col2 * + col2 + 12
----
0
-42

query I rowsort
SELECT ALL + col2 - + + col0 + 48 FROM tab2
----
24
25
31

query I rowsort
SELECT ALL - 61 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT col2 - ( - + col0 ) * - - CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
2369
4968
5083

skipif mysql # not compatible
query I rowsort label-5674
SELECT col2 - ( - + col0 ) * - - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT - 81 - + COUNT( + 27 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-5675
SELECT - 81 - + COUNT ( + 27 ) FROM tab1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT 70 DIV - 86 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5676
SELECT 70 / - 86 AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT ALL - col2 DIV ( - - 35 ) * + col0 FROM tab1
----
-102
-85
-91

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL - col2 / ( - - 35 ) * + col0 FROM tab1
----
-102
-85
-91

query I rowsort
SELECT ALL 24 * col2 FROM tab2 cor0
----
1392
552
960

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL - SUM( DISTINCT + + col2 ) * COUNT( * ) AS col1 FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL - SUM ( DISTINCT + + col2 ) * COUNT ( * ) AS col1 FROM tab2
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT DISTINCT MAX( + + ( + col1 ) ) * - 88 FROM tab1
----
-4136

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT MAX ( + + ( + col1 ) ) * - 88 FROM tab1
----
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT COUNT( DISTINCT 33 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5682
SELECT COUNT ( DISTINCT 33 ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 80 * + 34 * + 44 > col0
----

query I rowsort
SELECT + col1 * - + 90 FROM tab1 AS cor0
----
-1260
-4230
-450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5685
SELECT ALL + COUNT( * ) * COUNT( * ) * CAST( MIN( DISTINCT + - 16 ) AS SIGNED ) FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL + COUNT ( * ) * COUNT ( * ) * CAST ( MIN ( DISTINCT + - 16 ) AS INTEGER ) FROM tab2 AS cor0
----
-144

query I rowsort
SELECT ALL + - 23 AS col1 FROM tab1 WHERE + col1 >= NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT + 85 < + col2 + - - col1
----
23

query I rowsort
SELECT col2 * + + ( + 83 ) AS col2 FROM tab0
----
3901
8217
830

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 + + - 58 col2 FROM tab0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT col1 + + col1 - - col2 FROM tab1
----
124
162
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5692
SELECT DISTINCT - col2 DIV col1 + - col2 - + ( + + 63 ) + 68 AS col0 FROM tab1 AS cor0
----
-64
-65
-97

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT - col2 / col1 + - col2 - + ( + + 63 ) + 68 AS col0 FROM tab1 AS cor0
----
-64
-65
-97

query I rowsort
SELECT DISTINCT col1 + + 6 FROM tab2 AS cor0
----
57
73
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 AS cor0 WHERE NOT col1 <> - 49 * - 9
----

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

query I rowsort
SELECT + AVG ( 9 ) FROM tab2 AS cor0 WHERE NULL > col1
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col2, col2 * + 30 + + col1 AS col1 FROM tab2
----
23
741
40
1277
58
1807

query I rowsort
SELECT col0 * - 0 AS col1 FROM tab0
----
0
0
0

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

query I rowsort
SELECT DISTINCT + + 16 + + 70 FROM tab1 AS cor0
----
86

query I rowsort
SELECT ( - 94 ) FROM tab0 AS cor0 WHERE 18 IS NOT NULL
----
-94
-94
-94

query I rowsort
SELECT ALL - col0 - - + 55 FROM tab0 AS cor0
----
-32
-42
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT ALL + + COUNT( ALL col2 ) + + + 66 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL + + COUNT ( ALL col2 ) + + + 66 FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT DISTINCT col2 - - - ( + col0 ) + + CAST( - - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT col2 - - - ( + col0 ) + + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT - - COUNT( * ) * - 83 + 48 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-5706
SELECT - - COUNT ( * ) * - 83 + 48 FROM tab2 AS cor0
----
-201

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + 1 ) + + 12 >= + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 = NULL
----

query I rowsort
SELECT DISTINCT - 80 / - 43 + col2 AS col0 FROM tab1 WHERE + 48 = + - col1 * + 22
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5710
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - col1 = + + ( + 15 )
----
-51
-67
-77

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

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

query I rowsort
SELECT + col2 * - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-13
-2194
-9704

onlyif mysql # aggregate syntax: 
query II rowsort label-5715
SELECT + + COUNT( * ) AS col1, 37 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
37

skipif mysql # not compatible
query II rowsort label-5715
SELECT + + COUNT ( * ) AS col1, 37 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
37

query I rowsort
SELECT DISTINCT ( - col1 ) * - col2 AS col0 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab0 WHERE NOT - 47 IS NOT NULL OR 92 NOT IN ( + 27, - 35 + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT ALL - COUNT( DISTINCT - col1 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL - COUNT ( DISTINCT - col1 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

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

query I rowsort
SELECT col2 + - 89 AS col2 FROM tab1 AS cor0
----
-21
-30
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5721
SELECT DISTINCT 17 + + MIN( DISTINCT + 62 ) + + + 95 + COUNT( * ) DIV + - 47 FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT 17 + + MIN ( DISTINCT + 62 ) + + + 95 + COUNT ( * ) / + - 47 FROM tab1 AS cor0
----
174

query I rowsort
SELECT + - 19 + + - 71 + + - col0 + col2 AS col2 FROM tab1 AS cor0
----
-113
-116
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5723
SELECT COUNT( * ) DIV + 74 * - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5723
SELECT COUNT ( * ) / + 74 * - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT - - 49 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-5724
SELECT - - 49 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5725
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 37 * - - col1 AS col1 FROM tab1 cor0
----
1739
185
518

query I rowsort
SELECT DISTINCT 45 * + + col0 - - 67 + - col2 + - ( + + 88 ) FROM tab0 AS cor0
----
3884
4245
607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5728
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 71 FROM tab2 WHERE ( + col1 * + + 51 + + col0 / - col0 * - 37 - - col0 + - 63 - - - col1 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 71 FROM tab2 WHERE ( + col1 * + + 51 + + col0 / - col0 * - 37 - - col0 + - 63 - - - col1 IS NULL )
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE - 34 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + col0 + - 13 AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
38
72
78

onlyif mysql # DIV for integer division: 
query II rowsort label-5731
SELECT ALL - col0 DIV 20 * - - col0 * + + 61 col0, col0 AS col2 FROM tab1 AS cor0
----
-20740
85
-22204
91
-6222
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5731
SELECT ALL - col0 / 20 * - - col0 * + + 61 col0, col0 AS col2 FROM tab1 AS cor0
----
-20740
85
-22204
91
-6222
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5732
SELECT 50 + + + CAST( + MIN( ALL - ( + col0 ) ) AS SIGNED ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-5732
SELECT 50 + + + CAST ( + MIN ( ALL - ( + col0 ) ) AS INTEGER ) FROM tab2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT COUNT( * ) + + - 90 AS col1 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-5733
SELECT COUNT ( * ) + + - 90 AS col1 FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT MIN( - 84 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-5734
SELECT MIN ( - 84 ) FROM tab0
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-5735
SELECT - - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5735
SELECT - - col0 / - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT ALL + COUNT( * ) - 90 AS col2 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL + COUNT ( * ) - 90 AS col2 FROM tab1 AS cor0
----
-87

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5739
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * 82 <> NULL
----

skipif mysql # not compatible
query I rowsort label-5739
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * 82 <> NULL
----

query I rowsort
SELECT ALL - ( col2 ) AS col2 FROM tab0 AS cor0 WHERE col0 <= + col1 * - 7 / col1 + + 55
----
-47

query II rowsort
SELECT 21, - 79 + + col2 AS col1 FROM tab1
----
21
-11
21
-20
21
17

query I rowsort
SELECT ALL - 92 * - col2 AS col0 FROM tab2
----
2116
3680
5336

query I rowsort
SELECT ALL 3 * - col0 AS col0 FROM tab2
----
-138
-192
-225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5744
SELECT ALL 79 AS col1, CAST( NULL AS SIGNED ) FROM tab0
----
79
NULL
79
NULL
79
NULL

skipif mysql # not compatible
query II rowsort label-5744
SELECT ALL 79 AS col1, CAST ( NULL AS INTEGER ) FROM tab0
----
79
NULL
79
NULL
79
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT 33 AS col0, COUNT( * ) FROM tab1
----
33
3

skipif mysql # not compatible
query II rowsort label-5745
SELECT 33 AS col0, COUNT ( * ) FROM tab1
----
33
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT COUNT( * ) * + 30 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-5746
SELECT COUNT ( * ) * + 30 FROM tab2
----
90

query II rowsort
SELECT 82, ( + col1 ) AS col2 FROM tab2
----
82
51
82
67
82
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5748
SELECT ALL * FROM tab1 WHERE NOT ( + ( - - CAST( NULL AS DECIMAL ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5748
SELECT ALL * FROM tab1 WHERE NOT ( + ( - - CAST ( NULL AS REAL ) ) ) IS NULL
----

query I rowsort
SELECT ALL - ( - ( - 26 ) ) FROM tab0 AS cor0
----
-26
-26
-26

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

query II rowsort
SELECT col2, + col1 * - col2 * - + col2 AS col2 FROM tab2 AS cor0
----
23
26979
40
123200
58
225388

onlyif mysql # aggregate syntax: 
query II rowsort label-5752
SELECT DISTINCT - COUNT( * ) AS col1, 9 AS col1 FROM tab0 AS cor0
----
-3
9

skipif mysql # not compatible
query II rowsort label-5752
SELECT DISTINCT - COUNT ( * ) AS col1, 9 AS col1 FROM tab0 AS cor0
----
-3
9

query I rowsort
SELECT ALL 52 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5754
SELECT DISTINCT + col1 * - CAST( NULL AS DECIMAL ), col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5754
SELECT DISTINCT + col1 * - CAST ( NULL AS REAL ), col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

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

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

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

query II rowsort
SELECT DISTINCT 81, 7 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col1 + + 21 col1 FROM tab2 AS cor0
----
2622
4510
5950

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5760
SELECT - col1 DIV 21 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5760
SELECT - col1 / 21 FROM tab0 AS cor0
----
-1
-3
0

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

query I rowsort
SELECT - 63 + + col0 FROM tab2
----
-17
1
12

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IS NOT NULL AND ( NULL ) IN ( - ( - + 55 ), 50, + 38, - col0 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * col2 + + + 63 col2 FROM tab2
----
-197057
-291387
-53895

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

query I rowsort
SELECT ALL - ( - col2 ) + - + col0 FROM tab2 WHERE NOT - 45 < col2
----

query I rowsort
SELECT ALL 57 * + col1 + - + col1 AS col0 FROM tab0 AS cor0
----
1176
4536
56

query I rowsort
SELECT ALL 40 - - col0 FROM tab1 AS cor0
----
125
131
91

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5771
SELECT SUM( ALL + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT SUM ( ALL + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab2 cor0 WHERE NOT - 9 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5773
SELECT DISTINCT 81 DIV + ( - SUM( DISTINCT - 70 ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT 81 / + ( - SUM ( DISTINCT - 70 ) ) AS col1 FROM tab0
----
1

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

query I rowsort
SELECT DISTINCT - + 35 FROM tab0 WHERE NOT + + 69 * - + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT col0 DIV - + col1 AS col2 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-5776
SELECT col0 / - + col1 AS col2 FROM tab1
----
-1
-17
-3

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

query I rowsort
SELECT + col1 * + 39 AS col0 FROM tab2 AS cor0
----
1989
2613
3003

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * - 16 col1 FROM tab0 AS cor0
----
1296
16
336

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - + 97 NOT BETWEEN - 63 AND 41 * 87 - - + col1 * - 21
----

query I rowsort
SELECT + ( - 39 ) + + 99 + - - ( col1 ) FROM tab0 AS cor0
----
141
61
81

query I rowsort
SELECT - - 94 + - col1 AS col1 FROM tab0 AS cor0
----
13
73
93

query I rowsort
SELECT - - 79 + + + ( + - col2 ) AS col0 FROM tab2 AS cor0
----
21
39
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - + 64 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + col1 + + 55 * + 4 * - col0 FROM tab2 AS cor0
----
-10046
-13963
-16375

query I rowsort
SELECT 47 + col1 * + col0 / - - 86 * - + col2 AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + + 10 + col0 AS col0 FROM tab0 AS cor0
----
107
25
97

query I rowsort
SELECT ALL + + 35 FROM tab1 WHERE NOT col0 + + - 76 * - col1 IN ( - + col2 * + col1, 3 * col0, + 49, + 47 * - + col1, + col2 )
----
35
35
35

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 92 * 84 col1 FROM tab2
----
7670
7688
7705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5794
SELECT + ( + + COUNT( * ) ) DIV - ( + + ( + COUNT( * ) ) ) - + COUNT( * ) AS col1 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-5794
SELECT + ( + + COUNT ( * ) ) / - ( + + ( + COUNT ( * ) ) ) - + COUNT ( * ) AS col1 FROM tab1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT COUNT( * ) - + 52 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-5795
SELECT COUNT ( * ) - + 52 FROM tab0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5796
SELECT - 85 DIV + - col0 - - ( - 62 ) - - col1 * + col1 + - - 1 * - 83 FROM tab1 AS cor0
----
-119
2064
52

skipif mysql # not compatible
query I rowsort label-5796
SELECT - 85 / + - col0 - - ( - 62 ) - - col1 * + col1 + - - 1 * - 83 FROM tab1 AS cor0
----
-119
2064
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + 77 col1, + 55 FROM tab1 AS cor0
----
136
55
145
55
173
55

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

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - ( 23 ) AS col0 FROM tab1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT DISTINCT - MAX( ALL + 26 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5802
SELECT DISTINCT - MAX ( ALL + 26 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-5803
SELECT ALL - - COUNT( * ) AS col0, + 77 col2 FROM tab0 AS cor0
----
3
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5803
SELECT ALL - - COUNT ( * ) AS col0, + 77 col2 FROM tab0 AS cor0
----
3
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5804
SELECT + - 42 col0, + COUNT( + ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-42
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5804
SELECT + - 42 col0, + COUNT ( + ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-42
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / 91 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5806
SELECT DISTINCT + CAST( + 66 AS SIGNED ) AS col2, + 68 FROM tab2
----
66
68

skipif mysql # not compatible
query II rowsort label-5806
SELECT DISTINCT + CAST ( + 66 AS INTEGER ) AS col2, + 68 FROM tab2
----
66
68

query I rowsort
SELECT DISTINCT col2 * col2 * - col1 FROM tab1
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query II rowsort label-5808
SELECT - 9 * + + COUNT( * ) AS col2, - 44 + + COUNT( * ) * + + COUNT( * ) FROM tab2
----
-27
-35

skipif mysql # not compatible
query II rowsort label-5808
SELECT - 9 * + + COUNT ( * ) AS col2, - 44 + + COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
-27
-35

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + ( + col1 ) * + + 24 + 34 > NULL
----

query I rowsort
SELECT - col2 * - + col0 * col1 * + ( + 18 ) FROM tab1
----
1233792
451350
5235048

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - col2 + - + col0 + - 12 - + - 28
----

query I rowsort
SELECT ALL - col0 + + 66 AS col1 FROM tab0 AS cor0
----
-21
-31
51

query I rowsort
SELECT DISTINCT ( + col0 ) * - - ( 28 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
2436
2716
420

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <> + col1
----

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

query I rowsort
SELECT ALL col2 + - + 10 AS col2 FROM tab0 AS cor0
----
0
37
89

query I rowsort
SELECT DISTINCT - + 14 - - ( + 31 ) AS col0 FROM tab2 AS cor0
----
17

query I rowsort
SELECT DISTINCT - + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + col2 + 99 - ( - - 34 ) FROM tab0 AS cor0
----
112
164
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5821
SELECT DISTINCT + 33 - + col0 DIV - 72 - + 12 col2 FROM tab1 AS cor0
----
21
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5821
SELECT DISTINCT + 33 - + col0 / - 72 - + 12 col2 FROM tab1 AS cor0
----
21
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT COUNT( col0 ) col0 FROM tab0 WHERE ( NULL > NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5822
SELECT COUNT ( col0 ) col0 FROM tab0 WHERE ( NULL > NULL )
----
0

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

query I rowsort
SELECT col2 + col2 + - - col1 AS col1 FROM tab2
----
157
183
97

query I rowsort
SELECT ALL - 80 * - 1 FROM tab1
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5826
SELECT DISTINCT CAST( - 39 AS SIGNED ) + - + 35 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT CAST ( - 39 AS INTEGER ) + - + 35 FROM tab1
----
-74

query III rowsort
SELECT * FROM tab1 WHERE NULL > 74 + col1
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5828
SELECT + SUM ( ALL + - col2 ) col2 FROM tab1 AS cor0
----
-223

query II rowsort
SELECT + - 73 AS col0, + col0 + + + 52 FROM tab0 AS cor0
----
-73
139
-73
149
-73
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5830
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + + col2 > + CAST( - 86 AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-5830
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + + col2 > + CAST ( - 86 AS INTEGER ) + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT DISTINCT col0 + 0 * + + ( + - ( ( 80 ) ) ) DIV + col1 * - col0 + + col1 AS col0 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT col0 + 0 * + + ( + - ( ( 80 ) ) ) / + col1 * - col0 + + col1 AS col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL + 59 * + col0 * + + col2 AS col2 FROM tab1
----
288864
295885
365092

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT + COUNT( * ) * + 97 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-5833
SELECT + COUNT ( * ) * + 97 FROM tab2
----
291

query I rowsort
SELECT - 63 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

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

skipif mysql # not compatible
query I rowsort label-5835
SELECT COUNT ( * ) / + - 48 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5836
SELECT DISTINCT + col0 DIV - 18 AS col2, + col2 - + + col2 FROM tab0 AS cor0
----
-4
0
-5
0
0
0

skipif mysql # not compatible
query II rowsort label-5836
SELECT DISTINCT + col0 / - 18 AS col2, + col2 - + + col2 FROM tab0 AS cor0
----
-4
0
-5
0
0
0

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

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

query I rowsort
SELECT + - 10 * - ( + + 20 ) FROM tab1 AS cor0
----
200
200
200

query I rowsort
SELECT - 32 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2 / 10
----

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

query II rowsort
SELECT DISTINCT - - col1 * col0 AS col2, col0 AS col1 FROM tab2 AS cor0
----
2346
46
4928
64
5025
75

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - - col2 * + 27 + col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT SUM( DISTINCT 11 ) * + ( - 93 ) FROM tab2
----
-1023

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT SUM ( DISTINCT 11 ) * + ( - 93 ) FROM tab2
----
-1023

query I rowsort
SELECT DISTINCT 21 * + + col0 FROM tab0 WHERE NULL IS NULL
----
1827
2037
315

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ( - SUM( ALL 59 ) ) AS col0 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-5846
SELECT ( - SUM ( ALL 59 ) ) AS col0 FROM tab1
----
-177

query I rowsort
SELECT 69 FROM tab0 WHERE NOT NULL NOT BETWEEN 24 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * 77 AS col0 FROM tab0
----
3619
7623
770

query I rowsort
SELECT DISTINCT col1 / col1 / - - col1 * - col2 * + - col2 FROM tab2 WHERE col1 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT - col1 * - 79 FROM tab2
----
4029
5293
6083

query I rowsort
SELECT DISTINCT 22 + - col0 FROM tab2 AS cor0
----
-24
-42
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5852
SELECT + CAST( 40 AS SIGNED ) AS col1 FROM tab1 cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-5852
SELECT + CAST ( 40 AS INTEGER ) AS col1 FROM tab1 cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT + 8 * COUNT( * ) FROM tab1, tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5853
SELECT + 8 * COUNT ( * ) FROM tab1, tab2 AS cor0
----
72

query I rowsort
SELECT 92 + + 26 * col2 AS col2 FROM tab0
----
1314
2666
352

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - - - 5 <= + col0
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5856
SELECT DISTINCT 51 - - COUNT( * ) * - 2 AS col0, - 85 AS col2 FROM tab2
----
45
-85

skipif mysql # not compatible
query II rowsort label-5856
SELECT DISTINCT 51 - - COUNT ( * ) * - 2 AS col0, - 85 AS col2 FROM tab2
----
45
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT DISTINCT - 53 - - COUNT( * ) col2 FROM tab1
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5857
SELECT DISTINCT - 53 - - COUNT ( * ) col2 FROM tab1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT MIN( - - 51 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5858
SELECT MIN ( - - 51 ) FROM tab1
----
51

query I rowsort
SELECT col2 - + - 40 + + col0 + - col2 FROM tab0
----
127
137
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5860
SELECT ALL - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) - - SUM( 64 ) AS col0 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) - - SUM ( 64 ) AS col0 FROM tab1
----
192

query I rowsort
SELECT col2 - + - ( 11 ) * - - col0 AS col1 FROM tab1
----
1069
657
994

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT DISTINCT - SUM( ALL col2 ) FROM tab2 WHERE ( NULL ) IS NULL AND NULL IS NULL
----
-121

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT - SUM ( ALL col2 ) FROM tab2 WHERE ( NULL ) IS NULL AND NULL IS NULL
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT DISTINCT + 46 + SUM( ALL - + col0 ) AS col0 FROM tab1
----
-181

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT + 46 + SUM ( ALL - + col0 ) AS col0 FROM tab1
----
-181

query I rowsort
SELECT - 64 - + 85 FROM tab0
----
-149
-149
-149

query I rowsort
SELECT - 65 + - 52 * + + 93 AS col1 FROM tab0
----
-4901
-4901
-4901

query II rowsort
SELECT ALL + 57 AS col0, ( - - col0 ) * + col0 * + ( + - col1 ) + col0 AS col1 FROM tab0 AS cor0
----
57
-158862
57
-18210
57
-9312

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

query I rowsort
SELECT DISTINCT + - 83 AS col2 FROM tab2 AS cor0
----
-83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT - MAX( - 35 ) AS col2 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-5870
SELECT - MAX ( - 35 ) AS col2 FROM tab2
----
35

query I rowsort
SELECT DISTINCT 85 * - + 31 FROM tab1
----
-2635

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT - 29 * 12 * col2 + + ( + col0 ) - + + 63 + + 67 + - col0 / + col0 * - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT - 29 * 12 * col2 + + ( + col0 ) - + + 63 + + 67 + - col0 / + col0 * - col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL 69 * + - col0 AS col1 FROM tab1
----
-3519
-5865
-6279

onlyif mysql # DIV for integer division: 
query II rowsort label-5874
SELECT DISTINCT + col1, - col1 DIV - + 66 + - col2 AS col0 FROM tab2
----
51
-23
67
-57
77
-39

skipif mysql # not compatible
query II rowsort label-5874
SELECT DISTINCT + col1, - col1 / - + 66 + - col2 AS col0 FROM tab2
----
51
-23
67
-57
77
-39

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 86 + - 71 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 68 / - - 41 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL col1 * + col1 + + - col2 FROM tab1 cor0
----
-34
100
2141

onlyif mysql # DIV for integer division: 
query I rowsort label-5879
SELECT - 5 DIV + col1 + + 95 + col1 * - 13 FROM tab1 AS cor0
----
-516
-87
29

skipif mysql # not compatible
query I rowsort label-5879
SELECT - 5 / + col1 + + 95 + col1 * - 13 FROM tab1 AS cor0
----
-516
-87
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT col1 DIV - ( - 29 ) col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5880
SELECT col1 / - ( - 29 ) col1 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT DISTINCT + 46 + + SUM( ALL 44 ) AS col1 FROM tab1
----
178

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT + 46 + + SUM ( ALL 44 ) AS col1 FROM tab1
----
178

query I rowsort
SELECT + 37 + - - 22 FROM tab2
----
59
59
59

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

query I rowsort
SELECT + col0 + 35 AS col0 FROM tab0
----
122
132
50

query I rowsort
SELECT ALL + col1 + + + 78 AS col2 FROM tab1 AS cor0
----
125
83
92

query I rowsort
SELECT ALL + 97 * + + 68 AS col1 FROM tab1
----
6596
6596
6596

query I rowsort
SELECT - 16 + 97 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT - 48 + - 82 AS col0 FROM tab0 AS cor0
----
-130

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5889
SELECT ALL + - ( + AVG ( ALL + col2 ) ) - - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL + - ( + AVG ( ALL + col2 ) ) - - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + col1 + 35 FROM tab1 AS cor0
----
40
49
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5891
SELECT + + SUM( ALL + col0 ) + - COUNT( ( - - col1 ) ) DIV - 16 AS col1, COUNT( * ) FROM tab2 cor0
----
185
3

skipif mysql # not compatible
query II rowsort label-5891
SELECT + + SUM ( ALL + col0 ) + - COUNT ( ( - - col1 ) ) / - 16 AS col1, COUNT ( * ) FROM tab2 cor0
----
185
3

query I rowsort
SELECT col0 + ( 80 ) * col0 AS col1 FROM tab2 AS cor0
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT ALL COUNT( + - 28 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL COUNT ( + - 28 ) FROM tab0 AS cor0
----
3

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

query I rowsort
SELECT ALL - col0 * + col0 - - col0 AS col1 FROM tab2
----
-2070
-4032
-5550

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

query I rowsort
SELECT + 2 AS col0 FROM tab2 WHERE NOT col2 IN ( - + col2, col2 )
----

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT DISTINCT - CAST( - - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT - CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 59 IS NULL
----

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

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT - MAX( - 0 ) AS col1 FROM tab2 AS cor0 INNER JOIN tab2 cor1 ON ( 75 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT - MAX ( - 0 ) AS col1 FROM tab2 AS cor0 INNER JOIN tab2 cor1 ON ( 75 ) IS NULL
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 46 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT ALL - MIN( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL - MIN ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - col0 + col0 + - col0 * - 13 FROM tab2 AS cor0
----
598
832
975

query I rowsort
SELECT ( col1 ) + - - 2 FROM tab0 AS cor0
----
23
3
83

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT + + 34 DIV + + ( 31 ) + + - ( - col1 ) col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5911
SELECT + + 34 / + + ( 31 ) + + - ( - col1 ) col1 FROM tab1 AS cor0
----
15
48
6

query I rowsort
SELECT - 22 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1622
-3386
-551

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

query I rowsort
SELECT DISTINCT - col2 * + + col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT - COUNT( DISTINCT + 30 ) - + 75 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-76

skipif mysql # not compatible
query I rowsort label-5915
SELECT - COUNT ( DISTINCT + 30 ) - + 75 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-76

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

query I rowsort
SELECT DISTINCT 80 * + col0 * - col1 AS col2 FROM tab1
----
-34000
-342160
-57120

query I rowsort
SELECT - ( - - 14 ) AS col2 FROM tab0
----
-14
-14
-14

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 24 col0, - col2 + + col2 + 92 * - ( - col2 ) col2 FROM tab2
----
24
2116
24
3680
24
5336

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND + 67
----
2

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND + 67
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT DISTINCT - 44 + - COUNT( * ) + - ( + 30 ) * - 97 AS col1 FROM tab0 AS cor0
----
2863

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT - 44 + - COUNT ( * ) + - ( + 30 ) * - 97 AS col1 FROM tab0 AS cor0
----
2863

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT ( 43 ) + - CAST( col2 AS SIGNED ) + - col1 * col0 col0 FROM tab1 AS cor0
----
-4302
-441
-767

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5923
SELECT ( 43 ) + - CAST ( col2 AS INTEGER ) + - col1 * col0 col0 FROM tab1 AS cor0
----
-4302
-441
-767

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5925
SELECT ALL - - col1 DIV - col2 + + + col2 + + col0 AS col2 FROM tab0 AS cor0
----
196
61
95

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL - - col1 / - col2 + + + col2 + + col0 AS col2 FROM tab0 AS cor0
----
196
61
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5926
SELECT col2 + + - col0 DIV - + col1 + col0 * - + 43 AS col1 FROM tab2
----
-1955
-2712
-3166

skipif mysql # not compatible
query I rowsort label-5926
SELECT col2 + + - col0 / - + col1 + col0 * - + 43 AS col1 FROM tab2
----
-1955
-2712
-3166

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 95 IS NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * - col0 >= NULL
----

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

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

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

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

query II rowsort
SELECT ALL col0 - + col0 AS col1, 25 AS col0 FROM tab1 cor0
----
0
25
0
25
0
25

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

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL - MAX ( ALL + col2 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT + 92 * - ( ( - MIN( - + col2 ) ) ) FROM tab2
----
-5336

skipif mysql # not compatible
query I rowsort label-5935
SELECT + 92 * - ( ( - MIN ( - + col2 ) ) ) FROM tab2
----
-5336

query I rowsort
SELECT DISTINCT col2 * + 34 + + - col1 FROM tab2 WHERE NOT + 83 = 16
----
1283
1905
731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col1 * 83 * - + 23 FROM tab2
----
51
-97359
67
-127903
77
-146993

query II rowsort
SELECT + col0, 93 * + col0 FROM tab1
----
51
4743
85
7905
91
8463

query II rowsort
SELECT ALL + 25 + - 66 AS col2, 10 FROM tab1, tab1 AS cor0
----
18 values hashing to a903e67abb7728b278ce8804fd91e8e7

query I rowsort
SELECT + 99 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5941
SELECT - 24 AS col0, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-24
3

skipif mysql # not compatible
query II rowsort label-5941
SELECT - 24 AS col0, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-24
3

query I rowsort
SELECT ALL - 91 + col1 * - col0 FROM tab1
----
-4368
-516
-805

query I rowsort
SELECT ALL + col1 - - 89 FROM tab1
----
103
136
94

query I rowsort
SELECT ALL + 6 + col1 FROM tab2
----
57
73
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 93 col1 FROM tab2
----
116
133
151

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5947
SELECT * FROM tab1 WHERE col2 * CAST( + 39 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5947
SELECT * FROM tab1 WHERE col2 * CAST ( + 39 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col0 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5949
SELECT col0 + - ( + col0 ) DIV + 16 col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
15
82
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5949
SELECT col0 + - ( + col0 ) / + 16 col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
15
82
91

query I rowsort
SELECT col2 * col1 + + 74 * - col0 AS col1 FROM tab2
----
-1656
-1664
-2231

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT ( + 38 ) + COUNT( * ) AS col2 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-5951
SELECT ( + 38 ) + COUNT ( * ) AS col2 FROM tab0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT DISTINCT + MIN( - ( col0 ) ) FROM tab1 WHERE NOT ( + 85 + col0 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT DISTINCT + MIN ( - ( col0 ) ) FROM tab1 WHERE NOT ( + 85 + col0 ) = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT DISTINCT COUNT( * ) - + 80 FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----
-80

skipif mysql # not compatible
query I rowsort label-5953
SELECT DISTINCT COUNT ( * ) - + 80 FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----
-80

query I rowsort
SELECT + 29 * 50 FROM tab0
----
1450
1450
1450

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 65 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT ALL 57 + 89 * COUNT( * ) col2 FROM tab0
----
324

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5956
SELECT ALL 57 + 89 * COUNT ( * ) col2 FROM tab0
----
324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5957
SELECT 97 + col1 FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
118
178
98

skipif mysql # not compatible
query I rowsort label-5957
SELECT 97 + col1 FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
118
178
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT ALL COUNT( * ) - + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5959
SELECT - 18 * - CAST( - COUNT( * ) * - COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-5959
SELECT - 18 * - CAST ( - COUNT ( * ) * - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT - COUNT( + col2 ) * + 79 AS col0 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-5960
SELECT - COUNT ( + col2 ) * + 79 AS col0 FROM tab0
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-5961
SELECT + col1 DIV ( col0 ) + - col2 col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5961
SELECT + col1 / ( col0 ) + - col2 col1 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * + 90 col2 FROM tab1
----
4680
4680
4680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5963
SELECT ALL + CAST( col0 AS SIGNED ) + - col0 * col2 AS col1 FROM tab0
----
-690
-783
-9506

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL + CAST ( col0 AS INTEGER ) + - col0 * col2 AS col1 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT ALL 58 FROM tab0 WHERE ( - col0 ) = - col1 / ( - 78 ) + col2 * 72
----

query I rowsort
SELECT ALL - 8 + + col2 FROM tab1
----
51
60
88

query I rowsort
SELECT DISTINCT 33 FROM tab0 WHERE ( NULL ) > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5967
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 93 AND ( CAST( NULL AS SIGNED ) ) / 18
----

skipif mysql # not compatible
query III rowsort label-5967
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 93 AND ( CAST ( NULL AS INTEGER ) ) / 18
----

query I rowsort
SELECT ALL ( 41 ) * col1 FROM tab0
----
3321
41
861

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT DISTINCT - 91 + - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT - 91 + - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL - ( col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT 54 * 51 FROM tab1 AS cor0
----
2754
2754
2754

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

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

query I rowsort
SELECT ALL - col2 + 90 FROM tab0 WHERE NOT col1 = col0
----
-9
43
80

query I rowsort
SELECT ALL - + 85 * - col1 + col2 AS col2 FROM tab2 AS cor0
----
4358
5753
6585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT DISTINCT 63 FROM tab2 AS cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND ( - 17 )
----

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT 63 FROM tab2 AS cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND ( - 17 )
----

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

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

query I rowsort
SELECT - 81 + - ( col1 ) FROM tab1 AS cor0
----
-128
-86
-95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5982
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 <= col1 * col2 + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5982
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 <= col1 * col2 + CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT - 85 * col2 AS col1 FROM tab0 AS cor0
----
-3995
-8415
-850

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT + COUNT( * ) * 97 AS col1 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-5988
SELECT + COUNT ( * ) * 97 AS col1 FROM tab2 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT DISTINCT + + ( - SUM( + col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT + + ( - SUM ( + col0 ) ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 3 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5990
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 3 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5991
SELECT - CAST( + 31 AS SIGNED ) * 96 col0 FROM tab1
----
-2976
-2976
-2976

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5991
SELECT - CAST ( + 31 AS INTEGER ) * 96 col0 FROM tab1
----
-2976
-2976
-2976

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

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

query I rowsort
SELECT DISTINCT ( - + ( col0 ) ) * - 74 AS col2 FROM tab1
----
3774
6290
6734

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ALL 52 * MAX( col2 ) FROM tab1 WHERE NOT ( NULL ) >= col1 + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL 52 * MAX ( col2 ) FROM tab1 WHERE NOT ( NULL ) >= col1 + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT ALL - 96 * COUNT( * ) AS col2 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL - 96 * COUNT ( * ) AS col2 FROM tab2
----
-288

query I rowsort
SELECT ALL - col2 * - col1 * col0 FROM tab1
----
25075
290836
68544

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 * - col1 AND - 65
----

query I rowsort
SELECT + 26 * - - 27 AS col2 FROM tab2 AS cor0
----
702
702
702

query I rowsort
SELECT ALL col2 * - - 56 + ( 12 ) AS col0 FROM tab1 AS cor0
----
3316
3820
5388

query I rowsort
SELECT - col2 * - + 24 * + 47 - - 56 FROM tab2 AS cor0
----
26000
45176
65480

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT DISTINCT - col0 DIV - 53 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT - col0 / - 53 AS col2 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( col0 ) > 36 + - ( 22 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT DISTINCT - + COUNT( * ) * - 72 - - 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
742

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT - + COUNT ( * ) * - 72 - - 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
742

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NOT 42 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < ( 91 / 57 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / - col2 + + 70 NOT BETWEEN + ( + 22 ) AND ( + ( + 80 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + - + ( 13 ) * 12 FROM tab1 AS cor0
----
-105
-65
-71

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

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

query II rowsort
SELECT ALL + - 28 AS col0, - 73 AS col2 FROM tab0 AS cor0
----
-28
-73
-28
-73
-28
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6014
SELECT ALL + - ( - - CAST( col1 AS SIGNED ) ) FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL + - ( - - CAST ( col1 AS INTEGER ) ) FROM tab2 cor0
----
-51
-67
-77

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

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

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) >= 42 * - col1 + 59
----

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

skipif mysql # not compatible
query I rowsort label-6018
SELECT CAST ( NULL AS REAL ) / ( - col2 ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col0 * col0 AS col1 FROM tab2 WHERE NULL <= + 77 + - 8 + + 53
----

query I rowsort
SELECT DISTINCT - 63 + - 23 + 14 AS col1 FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT - COUNT( * ) - - MIN( DISTINCT - ( + col0 ) ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-6022
SELECT - COUNT ( * ) - - MIN ( DISTINCT - ( + col0 ) ) FROM tab0
----
-100

query I rowsort
SELECT 95 - - 80 AS col2 FROM tab1
----
175
175
175

query I rowsort
SELECT col1 * col2 * - - col0 + + - col2 AS col2 FROM tab0 AS cor0
----
18260
57058
9504

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

skipif mysql # not compatible
query III rowsort label-6025
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT + ( + - col1 ) AS col0 FROM tab1
----
-14
-47
-5

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

query I rowsort
SELECT ALL + + ( - col0 ) * + 66 FROM tab2 AS cor0
----
-3036
-4224
-4950

query I rowsort
SELECT DISTINCT - 76 * - + 67 AS col0 FROM tab1 AS cor0
----
5092

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + + - col0 IS NULL
----
10
47
99

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

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL SUM ( ALL 93 ) FROM tab0 AS cor0
----
279

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

query I rowsort
SELECT DISTINCT col1 * + col1 FROM tab0 cor0 WHERE - col2 - - 58 <> ( - col1 )
----
1
441
6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6034
SELECT ALL - 60 AS col1, - MIN( DISTINCT col0 ) DIV - COUNT( * ) AS col1 FROM tab0
----
-60
5

skipif mysql # not compatible
query II rowsort label-6034
SELECT ALL - 60 AS col1, - MIN ( DISTINCT col0 ) / - COUNT ( * ) AS col1 FROM tab0
----
-60
5

query II rowsort
SELECT col2, + ( - col2 ) FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT ALL - 74 * 55 AS col1 FROM tab0
----
-4070
-4070
-4070

query II rowsort
SELECT ALL + col1 * + - col1, 81 * 59 AS col0 FROM tab1
----
-196
4779
-2209
4779
-25
4779

query I rowsort
SELECT col1 * 83 * + + 91 AS col2 FROM tab0
----
158613
611793
7553

query I rowsort
SELECT DISTINCT - 30 * 1 AS col0 FROM tab0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6040
SELECT DISTINCT - SUM( + - col2 ) DIV COUNT( * ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT - SUM ( + - col2 ) / COUNT ( * ) FROM tab2
----
40

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

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

query I rowsort
SELECT DISTINCT - 3 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 + - col0, 15 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 68 >= - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT COUNT( * ) col0 FROM tab1 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6045
SELECT COUNT ( * ) col0 FROM tab1 WHERE NOT NULL <> ( NULL )
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( - col1, - 3 / - col2, 5 * + col1 * col2 + 4 )
----

query I rowsort
SELECT DISTINCT col2 * - 51 + col1 FROM tab0 cor0
----
-2316
-489
-5048

query I rowsort
SELECT ALL + 4 * - + 60 * - 60 + 48 FROM tab2 AS cor0
----
14448
14448
14448

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT ALL - COUNT( DISTINCT 67 ) * - 82 AS col1 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL - COUNT ( DISTINCT 67 ) * - 82 AS col1 FROM tab1 AS cor0
----
82

query I rowsort
SELECT - col1 + + ( - + col1 ) + + col0 * col0 FROM tab2 AS cor0
----
2014
3942
5491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6051
SELECT - + COUNT( * ) + ( - - CAST( NULL AS DECIMAL ) ) + - + CAST( ( + COUNT( DISTINCT + 90 ) ) AS SIGNED ) * + 85 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT - + COUNT ( * ) + ( - - CAST ( NULL AS REAL ) ) + - + CAST ( ( + COUNT ( DISTINCT + 90 ) ) AS INTEGER ) * + 85 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 + + 84 FROM tab1
----
143
152
180

query I rowsort
SELECT + ( 22 ) + - ( col1 ) * + + col1 * + 12 AS col1 FROM tab2
----
-31190
-53846
-71126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT ( + 79 ) + - col0 * 92 - - CAST( - ( 37 ) AS SIGNED ) FROM tab0
----
-1338
-7962
-8882

skipif mysql # not compatible
query I rowsort label-6054
SELECT ( + 79 ) + - col0 * 92 - - CAST ( - ( 37 ) AS INTEGER ) FROM tab0
----
-1338
-7962
-8882

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT DISTINCT ( - - COUNT( * ) ) * - COUNT( * ) * 46 + - COUNT( * ) FROM tab1
----
-417

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT ( - - COUNT ( * ) ) * - COUNT ( * ) * 46 + - COUNT ( * ) FROM tab1
----
-417

query I rowsort
SELECT - col0 * 96 AS col2 FROM tab0 WHERE 16 >= ( - + 55 * col2 * ( 48 ) )
----
-1440
-8352
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT - MAX( ALL - col1 ) + - 87 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-6057
SELECT - MAX ( ALL - col1 ) + - 87 FROM tab0
----
-86

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 IN ( col0 - 14 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6059
SELECT - - col0 - - + col0 + CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 45 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <> - 32
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 19 <> - - 94 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + + col2 ) * - 87 * - col0 AS col1 FROM tab1
----
425952
436305
538356

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ALL SUM( - col2 ) * + 91 AS col0 FROM tab1
----
-20293

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL SUM ( - col2 ) * + 91 AS col0 FROM tab1
----
-20293

query I rowsort
SELECT DISTINCT + - col0 / - col2 + - col0 / 47 + col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6068
SELECT DISTINCT - CAST( 81 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT - CAST ( 81 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-6069
SELECT + col0 DIV 98 * 63 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6069
SELECT + col0 / 98 * 63 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6070
SELECT MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6070
SELECT MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT 70 <> + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 96 col1 FROM tab1
----
1344
4512
480

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6073
SELECT DISTINCT - col1 DIV col2 * CAST( + col0 AS SIGNED ) FROM tab0
----
-15
-174
0

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT - col1 / col2 * CAST ( + col0 AS INTEGER ) FROM tab0
----
-15
-174
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT DISTINCT + MIN( - 63 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT + MIN ( - 63 ) FROM tab0
----
-63

query I rowsort
SELECT ALL col2 * - 35 FROM tab2
----
-1400
-2030
-805

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6077
SELECT - COUNT( * ) AS col2, 76 DIV - COUNT( * ) AS col2 FROM tab1
----
-3
-25

skipif mysql # not compatible
query II rowsort label-6077
SELECT - COUNT ( * ) AS col2, 76 / - COUNT ( * ) AS col2 FROM tab1
----
-3
-25

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 * ( + col0 ) NOT BETWEEN + col2 * col1 + col1 + - - col0 * + 36 AND 86
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6079
SELECT + 72 / + 88 + CAST( NULL AS SIGNED ) + - 58 + + col1 * col1 * ( - col2 ) + - col2 * 7 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6079
SELECT + 72 / + 88 + CAST ( NULL AS INTEGER ) + - 58 + + col1 * col1 * ( - col2 ) + - col2 * 7 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col2 * 66 - - - 26 * + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 82 * 50 * col0 * + - 87 FROM tab2 AS cor0
----
-16408200
-22828800
-26752500

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT + 28 * + MAX( ALL col1 ) AS col1 FROM tab0 AS cor0
----
2268

skipif mysql # not compatible
query I rowsort label-6082
SELECT + 28 * + MAX ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
2268

query I rowsort
SELECT DISTINCT + col2 * - + col1 AS col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT ALL 48 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL 48 / - col0 FROM tab1
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 + + + 70 - + col0 col0 FROM tab1
----
410
4256
733

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT ALL 14 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL 14 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
17

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 54 * + - 59 IS NULL
----

query I rowsort
SELECT col0 * - + 42 AS col1 FROM tab1 AS cor0
----
-2142
-3570
-3822

query I rowsort
SELECT ALL - col1 * col1 + + - col2 * + + 14 FROM tab0 AS cor0
----
-1387
-581
-7219

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE col1 >= ( + + col2 + col1 + - + col2 + 80 - + - col2 * - col2 )
----
46
64
75

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

query I rowsort
SELECT DISTINCT + col2 * + 32 + + col2 FROM tab2 AS cor0
----
1320
1914
759

query I rowsort
SELECT - col2 * 38 AS col0 FROM tab1
----
-2242
-2584
-3648

query I rowsort
SELECT + 33 - - col2 AS col0 FROM tab2
----
56
73
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT - MIN( DISTINCT + + col1 ) - + COUNT( * ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-6097
SELECT - MIN ( DISTINCT + + col1 ) - + COUNT ( * ) FROM tab1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT DISTINCT - col0 DIV - 94 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT - col0 / - 94 FROM tab1
----
0

query I rowsort
SELECT - col1 - 12 + + col1 * - 85 FROM tab0
----
-1818
-6978
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT DISTINCT + ( MAX( - col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT + ( MAX ( - col1 ) ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - col2 + + 59 * 23 AS col1 FROM tab2
----
1299
1317
1334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6102
SELECT ALL - CAST( + col0 AS SIGNED ) * + col0 * - 88 - - 80 AS col1 FROM tab0 AS cor0
----
19880
666152
828072

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL - CAST ( + col0 AS INTEGER ) * + col0 * - 88 - - 80 AS col1 FROM tab0 AS cor0
----
19880
666152
828072

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + col1 ) NOT BETWEEN col0 AND - col2 + col0 + 11 + + 96 / 64 * - - ( + + col2 ) / - ( - col0 )
----

query I rowsort
SELECT DISTINCT - 35 + - 28 - - - col0 * - col2 * - - col1 FROM tab1 WHERE + 95 * 90 + + col1 * - ( 3 ) * 2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT + ( - col0 ) * - + col2 - + col2 - + col0 + + 51 * - col2 * + 94 * + + col0 DIV + col0 AS col1 FROM tab0
----
-224675
-465199
-47167

skipif mysql # not compatible
query I rowsort label-6105
SELECT + ( - col0 ) * - + col2 - + col2 - + col0 + + 51 * - col2 * + 94 * + + col0 / + col0 AS col1 FROM tab0
----
-224675
-465199
-47167

query I rowsort
SELECT ALL - 26 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT - 8 * - col2 * 2 AS col1 FROM tab0 AS cor0
----
1584
160
752

query I rowsort
SELECT col0 * - + col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 87 col0 FROM tab0 AS cor0
----
4089
8613
870

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT MIN( ( - 65 ) ) AS col1 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-6110
SELECT MIN ( ( - 65 ) ) AS col1 FROM tab1
----
-65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT ALL MIN( - 82 ) * + 50 * COUNT( * ) FROM tab1
----
-12300

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL MIN ( - 82 ) * + 50 * COUNT ( * ) FROM tab1
----
-12300

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

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

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

query I rowsort
SELECT - col0 + 27 FROM tab2
----
-19
-37
-48

query I rowsort
SELECT DISTINCT 24 * - col1 * ( col1 ) FROM tab0 cor0
----
-10584
-157464
-24

query I rowsort
SELECT col2 * + - 79 FROM tab1 cor0
----
-4661
-5372
-7584

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT ALL - MIN( ALL - ( - 65 ) ) * + COUNT( * ) * COUNT( DISTINCT - - 69 ) * - 11 FROM tab1 AS cor0
----
2145

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL - MIN ( ALL - ( - 65 ) ) * + COUNT ( * ) * COUNT ( DISTINCT - - 69 ) * - 11 FROM tab1 AS cor0
----
2145

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6120
SELECT 47 DIV - + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6120
SELECT 47 / - + col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col0 + - + col2 AS col1 FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT - 27 * 55 - 68 FROM tab1 AS cor0
----
-1553

query I rowsort
SELECT + col1 + + + 8 AS col1 FROM tab1 AS cor0
----
13
22
55

query I rowsort
SELECT col2 + - + 17 * + 91 - + + col1 FROM tab0 AS cor0
----
-1449
-1558
-1581

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

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

query I rowsort
SELECT - 72 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + 26 AS col1, 73 FROM tab1
----
26
73
26
73
26
73

query I rowsort
SELECT ALL + col0 + - 90 * + col0 FROM tab1
----
-4539
-7565
-8099

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 + col0 AS col2 FROM tab0
----
-13
-2194
-9704

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6132
SELECT ALL + 30 DIV col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL + 30 / col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( 32 ) AS col2 FROM tab0 AS cor0
----
32

query I rowsort
SELECT ALL 10 * + col1 AS col2 FROM tab1
----
140
470
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6135
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 71 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 71 IS NULL
----
NULL

query I rowsort
SELECT ALL ( - 1 ) FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6137
SELECT + col2 DIV + col1 AS col2, col1 FROM tab0 AS cor0
----
0
21
0
81
99
1

skipif mysql # not compatible
query II rowsort label-6137
SELECT + col2 / + col1 AS col2, col1 FROM tab0 AS cor0
----
0
21
0
81
99
1

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

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

query I rowsort
SELECT DISTINCT col0 + - 90 + - 31 + - + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

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

query I rowsort
SELECT col0 * + - col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT DISTINCT + ( - - COUNT( * ) ) * 13 AS col1 FROM tab2, tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT + ( - - COUNT ( * ) ) * 13 AS col1 FROM tab2, tab0 AS cor0
----
117

query II rowsort
SELECT col0, - 27 AS col2 FROM tab2
----
46
-27
64
-27
75
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT DISTINCT - ( MIN( ALL + col2 ) ) col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6147
SELECT DISTINCT - ( MIN ( ALL + col2 ) ) col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT col0 * + - col0 + + 24 AS col2 FROM tab2
----
-2092
-4072
-5601

query I rowsort
SELECT ALL - ( - 58 ) FROM tab2
----
58
58
58

query I rowsort
SELECT ALL col1 + + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1134
-1806
-96

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

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

query I rowsort
SELECT - 59 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 * + 80 )
----

query II rowsort
SELECT DISTINCT - col0 - - col1 AS col2, + col0 * + col0 FROM tab0 cor0
----
-66
7569
-96
9409
66
225

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6155
SELECT col1 + + 40 * col2 + - CAST( + col0 AS SIGNED ) * - 44 AS col0 FROM tab1 WHERE + - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6155
SELECT col1 + + 40 * col2 + - CAST ( + col0 AS INTEGER ) * - 44 AS col0 FROM tab1 WHERE + - col1 IS NULL
----

query I rowsort
SELECT 13 - - + col0 AS col0 FROM tab1
----
104
64
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <= + 83
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6158
SELECT DISTINCT 88 DIV - + SUM( + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT 88 / - + SUM ( + col0 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 50 * + + 95 FROM tab0
----
4750

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ALL MIN( DISTINCT - col0 ) * - - COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL MIN ( DISTINCT - col0 ) * - - COUNT ( * ) FROM tab2
----
-225

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6162
SELECT * FROM tab0 WHERE NOT NULL > - + CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6162
SELECT * FROM tab0 WHERE NOT NULL > - + CAST ( col2 AS INTEGER )
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - col2 ) * - + col1 + - col0 NOT BETWEEN NULL AND + 86 * - col1 + 73
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6167
SELECT DISTINCT - 9 DIV - col2 + + - 14 FROM tab1 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT - 9 / - col2 + + - 14 FROM tab1 cor0
----
-14

query II rowsort
SELECT DISTINCT - + 31, - col2 * + - col1 AS col0 FROM tab0 AS cor0
----
-31
210
-31
3807
-31
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL - 87 * - 45 * COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL - 87 * - 45 * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= + col1 OR NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= + col1 OR NULL IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - 10 + + + col0, - 28 * - 18 + + - col0 + + 87 AS col2 FROM tab0
----
5
576
77
504
87
494

query I rowsort
SELECT DISTINCT col0 + 63 FROM tab2
----
109
127
138

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

query I rowsort
SELECT - col2 * - 17 FROM tab2
----
391
680
986

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT - + MAX( + - 29 ) * + 33 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
957

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT - + MAX ( + - 29 ) * + 33 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
957

query II rowsort
SELECT DISTINCT 64 AS col2, + 33 AS col2 FROM tab0
----
64
33

query I rowsort
SELECT - col2 - - 6 AS col1 FROM tab0
----
-4
-41
-93

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

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

query I rowsort
SELECT ALL + - 44 + + col1 FROM tab0 AS cor0
----
-23
-43
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6181
SELECT - col1 + col2 AS col1 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-6181
SELECT - col1 + col2 AS col1 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-11
-34
98

query I rowsort
SELECT DISTINCT - 45 - + + col2 AS col2 FROM tab2 AS cor0
----
-103
-68
-85

query II rowsort
SELECT ALL col1 * - 21 - - - col0 AS col0, col2 * - col1 FROM tab1 AS cor0
----
-1078
-3196
-190
-295
-345
-1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6184
SELECT ALL + + CAST( NULL AS SIGNED ), - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-6184
SELECT ALL + + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
-3

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

query I rowsort
SELECT ALL - 10 * - + col1 * + col2 AS col0 FROM tab0
----
2100
38070
990

query I rowsort
SELECT DISTINCT - 43 AS col0 FROM tab2 WHERE NOT - + col0 * + - col2 + + - col2 + - - 32 + + - 80 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT DISTINCT + 77 * - COUNT( * ) AS col1 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT + 77 * - COUNT ( * ) AS col1 FROM tab2
----
-231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * + 29 * - + 12 FROM tab1
----
-20532
-23664
-33408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE NOT + + ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT - - SUM( + + ( - - col1 ) ) * + COUNT( * ) * COUNT( 67 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6192
SELECT - - SUM ( + + ( - - col1 ) ) * + COUNT ( * ) * COUNT ( 67 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT - - MIN( DISTINCT ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6193
SELECT - - MIN ( DISTINCT ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - col1 * 30 AS col1 FROM tab1 AS cor0
----
-1410
-150
-420

query I rowsort
SELECT ALL 71 * - 54 * 39 FROM tab1
----
-149526
-149526
-149526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - col2 + + 90 col2 FROM tab0 WHERE NOT NULL < - + col0 / 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT 33 * col1 + + CAST( NULL AS SIGNED ) + col0 - - col2 + + - 89 * 92 * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT 33 * col1 + + CAST ( NULL AS INTEGER ) + col0 - - col2 + + - 89 * 92 * + col1 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - col0 + + - col0 AS col2 FROM tab2 cor0
----
-128
-150
-92

query I rowsort
SELECT + 18 + 99 FROM tab2 AS cor0
----
117
117
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT 91 * - MAX( col1 ) * - 5 + + + 26 + 3 FROM tab1 AS cor0
----
21414

skipif mysql # not compatible
query I rowsort label-6201
SELECT 91 * - MAX ( col1 ) * - 5 + + + 26 + 3 FROM tab1 AS cor0
----
21414

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6202
SELECT ALL + col1 AS col2, CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT - + col2 + col2 + col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6204
SELECT - MIN( ALL CAST( NULL AS DECIMAL ) ) col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6204
SELECT - MIN ( ALL CAST ( NULL AS REAL ) ) col0 FROM tab0 cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6206
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL col2 * + - col2 + + 37 FROM tab2 WHERE NOT + col2 * - col0 * - - 4 + 59 - 20 IS NULL
----
-1563
-3327
-492

query I rowsort
SELECT DISTINCT - col2 * - 21 FROM tab1
----
1239
1428
2016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6209
SELECT 94, + CAST( - + col1 AS SIGNED ) AS col1 FROM tab1
----
94
-14
94
-47
94
-5

skipif mysql # not compatible
query II rowsort label-6209
SELECT 94, + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1
----
94
-14
94
-47
94
-5

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

query III rowsort
SELECT * FROM tab2 WHERE 52 IS NULL
----

query II rowsort
SELECT + col0, 46 + + col2 AS col1 FROM tab0
----
15
93
87
56
97
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6213
SELECT COUNT( * ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + col1 + 38 + - col0 + + col2 AS col0, col2 + + 65 + - 82 FROM tab2 AS cor0
----
66
6
88
41
91
23

query I rowsort
SELECT DISTINCT - col0 - - 29 * - + col1 FROM tab2 cor0
----
-1525
-2018
-2297

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT + col1 - + - col0 - - - col2 FROM tab0
----
-1
49
98

query I rowsort
SELECT + 95 * - + 45 FROM tab0
----
-4275
-4275
-4275

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6220
SELECT - - MAX ( + col1 ) col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT ALL - MAX( DISTINCT - + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL - MAX ( DISTINCT - + col2 ) FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6222
SELECT col0 AS col2, CAST( 82 AS SIGNED ) + + 72 FROM tab2
----
46
154
64
154
75
154

skipif mysql # not compatible
query II rowsort label-6222
SELECT col0 AS col2, CAST ( 82 AS INTEGER ) + + 72 FROM tab2
----
46
154
64
154
75
154

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

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

query II rowsort
SELECT 54 AS col0, + col2 AS col1 FROM tab1
----
54
59
54
68
54
96

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

query I rowsort
SELECT - col2 * + + col1 * + 84 AS col1 FROM tab0
----
-17640
-319788
-8316

query II rowsort
SELECT DISTINCT + 98, + col0 FROM tab0 cor0
----
98
15
98
87
98
97

query I rowsort
SELECT ALL - ( + 35 ) AS col1 FROM tab1 AS cor0 WHERE col1 <= + - col0 * - - col2 + + col2 * - col1
----

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6233
SELECT ALL COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
1

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
1

query I rowsort
SELECT ALL 94 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT 46 FROM tab0 WHERE NOT 67 * - - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 + + col2, 5 AS col1 FROM tab1 AS cor0
----
144
5
147
5
159
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT MAX( ALL - 49 ) + + 37 AS col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6237
SELECT MAX ( ALL - 49 ) + + 37 AS col0 FROM tab0 AS cor0
----
-12

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

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

query I rowsort
SELECT col2 + + col1 + - col0 * col2 + - ( + 68 ) AS col2 FROM tab1 AS cor0
----
-4854
-5019
-6141

onlyif mysql # DIV for integer division: 
query I rowsort label-6241
SELECT DISTINCT col1 + + 46 DIV + + 26 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT col1 + + 46 / + + 26 FROM tab2
----
52
68
78

query I rowsort
SELECT ALL + 88 + + 41 - ( - col0 ) AS col1 FROM tab1
----
180
214
220

query I rowsort
SELECT DISTINCT - - 82 + + col1 FROM tab2 cor0
----
133
149
159

query I rowsort
SELECT - 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT col2 - + - col0 + + - 10 AS col0 FROM tab1
----
134
137
149

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - col1 + - + 33
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 80 * 31 + + 44 = NULL
----

query II rowsort
SELECT + 38, 0 * col2 AS col1 FROM tab1 AS cor0
----
38
0
38
0
38
0

query I rowsort
SELECT ( 77 ) AS col2 FROM tab0 AS cor0
----
77
77
77

query II rowsort
SELECT ALL 74, + ( + col2 ) AS col2 FROM tab2 AS cor0
----
74
23
74
40
74
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT + SUM( + 81 ) FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-6251
SELECT + SUM ( + 81 ) FROM tab2 AS cor0
----
243

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * + col1 + + 16 / + + 53 <= + col0 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT DISTINCT CAST( - + 1 AS SIGNED ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT CAST ( - + 1 AS INTEGER ) FROM tab0
----
-1

query I rowsort
SELECT + 46 FROM tab0 WHERE NOT + 69 + - col0 + + col1 + + + col1 / - 33 * + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab2 AS cor0 WHERE NOT col0 * + col1 < ( col2 )
----
51
67
77

query I rowsort
SELECT - - 1 * - - col2 + col1 FROM tab1 cor0
----
110
115
64

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NULL ) IS NULL ) OR NULL > + 21
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6261
SELECT - + 41 + + + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-6261
SELECT - + 41 + + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-44

query II rowsort
SELECT DISTINCT + 87 + - 97 + - 97, 14 AS col2 FROM tab2 AS cor0
----
-107
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ALL + 13 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL + 13 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT DISTINCT 43 + COUNT( * ) FROM tab0 AS cor0 WHERE ( col2 ) / + col1 - col1 IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-6264
SELECT DISTINCT 43 + COUNT ( * ) FROM tab0 AS cor0 WHERE ( col2 ) / + col1 - col1 IS NOT NULL
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT NULL = + col2 * - col0 AND NOT NULL <> + col0
----
0

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT NULL = + col2 * - col0 AND NOT NULL <> + col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6266
SELECT COUNT( * ) DIV 43 - - 10 col1 FROM tab1
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6266
SELECT COUNT ( * ) / 43 - - 10 col1 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT ALL + COUNT( ALL - col0 ) + + 31 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL + COUNT ( ALL - col0 ) + + 31 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6268
SELECT 52 - - + 38 AS col2, COUNT( * ) * - - 58 FROM tab0
----
90
174

skipif mysql # not compatible
query II rowsort label-6268
SELECT 52 - - + 38 AS col2, COUNT ( * ) * - - 58 FROM tab0
----
90
174

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT SUM( ALL - col2 ) + + 33 AS col1 FROM tab1
----
-190

skipif mysql # not compatible
query I rowsort label-6269
SELECT SUM ( ALL - col2 ) + + 33 AS col1 FROM tab1
----
-190

query I rowsort
SELECT + 33 + - col2 AS col2 FROM tab0 AS cor0
----
-14
-66
23

query I rowsort
SELECT DISTINCT + col0 + + + 15 + - col2 FROM tab0 AS cor0
----
-17
13
92

query I rowsort
SELECT + 63 * 36 + - + col2 * 11 AS col0 FROM tab1 AS cor0
----
1212
1520
1619

query II rowsort
SELECT ALL - 55 AS col0, - col1 FROM tab2 AS cor0
----
-55
-51
-55
-67
-55
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6274
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) FROM tab0 cor0 WHERE 77 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6274
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) FROM tab0 cor0 WHERE 77 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6277
SELECT ALL col1 DIV + 15 FROM tab0 cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL col1 / + 15 FROM tab0 cor0
----
0
1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6278
SELECT DISTINCT + - 79 DIV + + col2 AS col2 FROM tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT + - 79 / + + col2 AS col2 FROM tab2 AS cor0
----
-1
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6280
SELECT COUNT( * ) AS col2, 3 + - 58 FROM tab2 AS cor0
----
3
-55

skipif mysql # not compatible
query II rowsort label-6280
SELECT COUNT ( * ) AS col2, 3 + - 58 FROM tab2 AS cor0
----
3
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT DISTINCT MAX( ( 41 ) ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT MAX ( ( 41 ) ) FROM tab1
----
41

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

query II rowsort
SELECT ALL - 92 AS col0, col1 AS col1 FROM tab2
----
-92
51
-92
67
-92
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL - MIN( ALL + + 32 ) AS col2 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL - MIN ( ALL + + 32 ) AS col2 FROM tab2
----
-32

query I rowsort
SELECT + col0 * + - 10 FROM tab1
----
-510
-850
-910

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

skipif mysql # not compatible
query I rowsort label-6287
SELECT - ( + + 18 ) + - COUNT ( * ) FROM tab2
----
-21

query I rowsort
SELECT DISTINCT - col2 + + - col2 * - + col1 AS col0 FROM tab0 AS cor0
----
0
200
3760

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + col1 * 34 * - - col0 col0, 28 - - - 98 FROM tab1 cor0
----
1228250
-70
1238076
-70
13233038
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6291
SELECT ALL CAST( + SUM( + col0 ) AS SIGNED ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL CAST ( + SUM ( + col0 ) AS INTEGER ) FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 WHERE + + 23 >= - + col2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT DISTINCT - 22 + + + ( COUNT( * ) ) + - 94 * + COUNT( * ) AS col1 FROM tab2
----
-301

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT - 22 + + + ( COUNT ( * ) ) + - 94 * + COUNT ( * ) AS col1 FROM tab2
----
-301

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * - - col1 * - col2 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 23 + - col0 FROM tab1 AS cor0
----
-28
-62
-68

query I rowsort
SELECT + 36 + - + col1 * + col0 * + col2 AS col0 FROM tab1 AS cor0
----
-25039
-290800
-68508

query I rowsort
SELECT - col1 + + 7 * - col2 * 3 FROM tab0 AS cor0
----
-1068
-2080
-231

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

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

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

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL SUM ( - - col1 ) - - + 10 FROM tab0
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT ALL col1 DIV col0 + ( 79 ) * - col1 FROM tab1
----
-1106
-3713
-395

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL col1 / col0 + ( 79 ) * - col1 FROM tab1
----
-1106
-3713
-395

query I rowsort
SELECT + col1 + + col1 + + 6 + ( - col0 ) AS col2 FROM tab2
----
62
65
96

query II rowsort
SELECT ALL col1, - 44 FROM tab1
----
14
-44
47
-44
5
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT DISTINCT MIN( + col1 ) + + MIN( + - col0 ) AS col0 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT MIN ( + col1 ) + + MIN ( + - col0 ) AS col0 FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL - + COUNT( * ) * - COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL - + COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0
----
9

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

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL + COUNT ( * ) / - 99 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6306
SELECT ALL CAST( - col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6306
SELECT ALL CAST ( - col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 42 * + - col2 AS col2 FROM tab2 AS cor0
----
-1680
-2436
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ( - COUNT( * ) ) FROM tab2 WHERE NOT - - col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6308
SELECT ( - COUNT ( * ) ) FROM tab2 WHERE NOT - - col1 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL MIN( DISTINCT + col0 ) * - COUNT( * ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL MIN ( DISTINCT + col0 ) * - COUNT ( * ) FROM tab2
----
-138

query I rowsort
SELECT + - 3 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

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

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

query I rowsort
SELECT - ( + 67 ) * - - 6 AS col2 FROM tab1 AS cor0
----
-402
-402
-402

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

query I rowsort
SELECT + 24 * + col1 + + col2 AS col0 FROM tab1 AS cor0
----
1196
179
432

onlyif mysql # DIV for integer division: 
query I rowsort label-6315
SELECT - 37 DIV 4 * - col1 AS col0 FROM tab1 AS cor0
----
126
423
45

skipif mysql # not compatible
query I rowsort label-6315
SELECT - 37 / 4 * - col1 AS col0 FROM tab1 AS cor0
----
126
423
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6316
SELECT DISTINCT - col0 DIV CAST( col2 AS SIGNED ) DIV - ( 64 ) + + - 59 + - + col2 - - 45 + + - col2 * - ( + 61 ) * + + 55, col2 FROM tab1 AS cor0
----
197872
59
228058
68
321970
96

skipif mysql # not compatible
query II rowsort label-6316
SELECT DISTINCT - col0 / CAST ( col2 AS INTEGER ) / - ( 64 ) + + - 59 + - + col2 - - 45 + + - col2 * - ( + 61 ) * + + 55, col2 FROM tab1 AS cor0
----
197872
59
228058
68
321970
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT DISTINCT MIN( col2 ) * - 86 FROM tab2 AS cor0
----
-1978

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT MIN ( col2 ) * - 86 FROM tab2 AS cor0
----
-1978

query I rowsort
SELECT ALL col1 + + - 3 AS col2 FROM tab0
----
-2
18
78

query I rowsort
SELECT col2 * + + col0 * - 58 FROM tab1 WHERE NOT - - 47 > + 68 * + - col1
----

query I rowsort
SELECT 12 * + 65 FROM tab0
----
780
780
780

query I rowsort
SELECT ALL - 43 + + + col1 FROM tab2
----
24
34
8

query I rowsort
SELECT DISTINCT col2 * - col1 + + col2 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT DISTINCT - + col2 + + 46 + + ( - - 68 ) FROM tab1 AS cor0
----
18
46
55

query I rowsort
SELECT ALL + ( col2 ) + col0 AS col1 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 97 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col2 FROM tab2
----
-40
-40
-40

query I rowsort
SELECT ALL - 56 + + + col0 FROM tab0
----
-41
31
41

query I rowsort
SELECT 89 + - col2 * + col0 + - + col0 FROM tab1
----
-4858
-5011
-6190

query I rowsort
SELECT DISTINCT - col2 + + ( + + ( + - col2 ) ) FROM tab1 AS cor0
----
-118
-136
-192

query II rowsort
SELECT col0, col1 * - 36 + - - col2 AS col1 FROM tab2 AS cor0
----
46
-1813
64
-2732
75
-2354

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

query I rowsort
SELECT DISTINCT + 89 + + col0 - col0 FROM tab0 cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( col0 ) * + col2 + + col1 < - - col1 / - col0
----
0

skipif mysql # not compatible
query I rowsort label-6334
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( col0 ) * + col2 + + col1 < - - col1 / - col0
----
0

query I rowsort
SELECT - 15 - - - col1 FROM tab1 cor0
----
-20
-29
-62

query I rowsort
SELECT DISTINCT col1 - 50 * - - col2 AS col2 FROM tab1
----
-2945
-3353
-4786

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT - col2 + + col1 * 78 DIV 42 AS col0 FROM tab2
----
103
66
71

skipif mysql # not compatible
query I rowsort label-6337
SELECT - col2 + + col1 * 78 / 42 AS col0 FROM tab2
----
103
66
71

query I rowsort
SELECT 44 + col0 - col1 FROM tab0
----
-22
110
140

query I rowsort
SELECT ALL 88 * + 98 FROM tab1
----
8624
8624
8624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( - col0 ), - col2 col2 FROM tab2 cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT DISTINCT - col1 * - + 70 AS col0 FROM tab0
----
1470
5670
70

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6342
SELECT MIN ( - col1 ) col2 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6343
SELECT col2 FROM tab0 AS cor0 WHERE NOT + ( - + col2 ) BETWEEN - + CAST( NULL AS SIGNED ) / + ( + - 27 ) AND + col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6343
SELECT col2 FROM tab0 AS cor0 WHERE NOT + ( - + col2 ) BETWEEN - + CAST ( NULL AS INTEGER ) / + ( + - 27 ) AND + col2 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6344
SELECT col2 DIV + col1 * ( col2 ), 54 AS col1 FROM tab2 cor0
----
0
54
0
54
0
54

skipif mysql # not compatible
query II rowsort label-6344
SELECT col2 / + col1 * ( col2 ), 54 AS col1 FROM tab2 cor0
----
0
54
0
54
0
54

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT DISTINCT 95 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT 95 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col0 + + ( - - col1 ) AS col0 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + + - ( + col1 ) / + col0 + + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6351
SELECT + COUNT( * ) * COUNT( * ) AS col1, - COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-6351
SELECT + COUNT ( * ) * COUNT ( * ) AS col1, - COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0
----
9
9

query I rowsort
SELECT DISTINCT + col0 * - - 71 FROM tab2 AS cor0
----
3266
4544
5325

onlyif mysql # DIV for integer division: 
query I rowsort label-6353
SELECT DISTINCT - 61 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT - 61 / - col0 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT DISTINCT ( 10 ) + - col1 + - 23 FROM tab2 AS cor0
----
-64
-80
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 49 * + col0 + + col0 * + col0 FROM tab2 cor0
----
4370
7232
9300

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

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

query I rowsort
SELECT ALL + col2 - + - ( - - col1 ) * - - 4 FROM tab0 AS cor0
----
103
371
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6360
SELECT + 76 + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6360
SELECT + 76 + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT col2 + + 42 * - - col2 * + 67 AS col1 FROM tab2 AS cor0
----
112600
163270
64745

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

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL MIN ( ALL - + col2 ) FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT + 5 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6363
SELECT + 5 / - col0 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT + col1 * 74 + + col2 FROM tab2 AS cor0
----
3797
5016
5738

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, + col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) > 66 + - - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT DISTINCT - MIN( ALL - + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT - MIN ( ALL - + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT - + 97 + + col1 + - + col0 AS col2 FROM tab1 cor0
----
-134
-141
-177

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

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL + COUNT ( * ) * + 91 AS col2 FROM tab2 AS cor0
----
273

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

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

query II rowsort
SELECT - col1 AS col2, - 23 + col0 + ( - - 84 ) * - col0 FROM tab2 cor0
----
-51
-3841
-67
-6248
-77
-5335

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL - 52 + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL - 52 + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6376
SELECT ALL + CAST( + col0 AS SIGNED ) * 64 + 63 FROM tab1 WHERE col2 IS NOT NULL
----
3327
5503
5887

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL + CAST ( + col0 AS INTEGER ) * 64 + 63 FROM tab1 WHERE col2 IS NOT NULL
----
3327
5503
5887

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT SUM( ALL 87 ) * COUNT( * ) AS col2 FROM tab1
----
783

skipif mysql # not compatible
query I rowsort label-6377
SELECT SUM ( ALL 87 ) * COUNT ( * ) AS col2 FROM tab1
----
783

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 38 + ( 92 - - 14 ) <> ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6379
SELECT CAST( NULL AS SIGNED ) * AVG ( col2 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT CAST ( NULL AS INTEGER ) * AVG ( col2 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT 48 * 27 - ( 69 ) AS col0 FROM tab0
----
1227
1227
1227

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6381
SELECT DISTINCT - col2 / + CAST( NULL AS DECIMAL ) col1 FROM tab1 WHERE NOT col0 * 54 < col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6381
SELECT DISTINCT - col2 / + CAST ( NULL AS REAL ) col1 FROM tab1 WHERE NOT col0 * 54 < col0
----
NULL

query I rowsort
SELECT col2 * ( 42 ) AS col2 FROM tab2
----
1680
2436
966

query I rowsort
SELECT DISTINCT + 49 * + col2 - 59 FROM tab1 WHERE NOT NULL < col1
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 33 - col2 BETWEEN ( col2 ) AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6386
SELECT CAST( - ( + col1 ) AS SIGNED ) col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6386
SELECT CAST ( - ( + col1 ) AS INTEGER ) col2 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6387
SELECT DISTINCT 30 DIV + col2 AS col1 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT 30 / + col2 AS col1 FROM tab0
----
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6388
SELECT 3 + - COUNT( * ) * + MIN( DISTINCT - col2 DIV + col2 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6388
SELECT 3 + - COUNT ( * ) * + MIN ( DISTINCT - col2 / + col2 ) AS col1 FROM tab1
----
6

query I rowsort
SELECT - col2 / col1 FROM tab1 WHERE NULL <> ( - 46 )
----

query I rowsort
SELECT col0 + + 43 AS col1 FROM tab0
----
130
140
58

query I rowsort
SELECT 48 * - 41 + col2 / - col2 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT ALL - 60 DIV + col0 + + col1 * col0 FROM tab1
----
425
4277
713

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL - 60 / + col0 + + col1 * col0 FROM tab1
----
425
4277
713

query III rowsort
SELECT * FROM tab1 WHERE NOT - 23 + col1 * + col0 NOT BETWEEN ( NULL ) AND col0
----

query I rowsort
SELECT DISTINCT 35 * col1 + + 10 AS col2 FROM tab1
----
1655
185
500

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( + col1 * col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 52 IS NOT NULL
----

query I rowsort
SELECT + 16 - 60 AS col1 FROM tab0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL COUNT( * ) FROM tab0 WHERE ( col0 * - col2 + - 46 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL COUNT ( * ) FROM tab0 WHERE ( col0 * - col2 + - 46 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT + COUNT( * ) + - 55 AS col1 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-6399
SELECT + COUNT ( * ) + - 55 AS col1 FROM tab2
----
-52

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

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

query I rowsort
SELECT ALL + 60 + + 57 FROM tab1
----
117
117
117

query I rowsort
SELECT col1 + 46 * col1 FROM tab0 WHERE NOT ( - col2 ) IS NULL
----
3807
47
987

query I rowsort
SELECT DISTINCT + 78 + + col0 * - 7 AS col2 FROM tab1
----
-279
-517
-559

query I rowsort
SELECT + col0 - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN ( - 65 + + col0 ) AND ( + col0 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT ALL ( - MAX( DISTINCT 50 ) ) FROM tab0 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL ( - MAX ( DISTINCT 50 ) ) FROM tab0 cor0
----
-50

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

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE + 17 + - col0 IN ( - 43 / + 40 )
----

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

query I rowsort
SELECT 8 + 76 * + 76 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN + col0 AND 90
----

query I rowsort
SELECT ALL + + col1 * - col0 AS col1 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + col0 + - col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6413
SELECT 95 - col1 FROM tab0 cor0 WHERE NULL BETWEEN ( + CAST( - col0 AS SIGNED ) * + 21 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6413
SELECT 95 - col1 FROM tab0 cor0 WHERE NULL BETWEEN ( + CAST ( - col0 AS INTEGER ) * + 21 ) AND NULL
----

query I rowsort
SELECT - - col2 * - 38 AS col0 FROM tab2 cor0
----
-1520
-2204
-874

query I rowsort
SELECT ALL - 6 * 34 FROM tab0 AS cor0
----
-204
-204
-204

query I rowsort
SELECT + col0 + + col1 * 51 FROM tab1 AS cor0
----
2488
340
765

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

query I rowsort
SELECT + ( + col1 ) + - col1 * - 47 AS col1 FROM tab1
----
2256
240
672

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT ALL SUM( - col1 ) + 22 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL SUM ( - col1 ) + 22 FROM tab1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6420
SELECT DISTINCT - 0 DIV 54 * - col1 + + 51 AS col1 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT - 0 / 54 * - col1 + + 51 AS col1 FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT 74 + + 68 + COUNT( * ) AS col2 FROM tab2
----
145

skipif mysql # not compatible
query I rowsort label-6421
SELECT 74 + + 68 + COUNT ( * ) AS col2 FROM tab2
----
145

query I rowsort
SELECT + 35 + + - col2 FROM tab1
----
-24
-33
-61

query III rowsort
SELECT * FROM tab1 WHERE - col1 > 15
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6424
SELECT - col1 DIV - 88 AS col0 FROM tab1 AS cor0 WHERE - 17 * + ( ( 50 ) ) + - 19 NOT IN ( col2 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6424
SELECT - col1 / - 88 AS col0 FROM tab1 AS cor0 WHERE - 17 * + ( ( 50 ) ) + - 19 NOT IN ( col2 )
----
0
0
0

query I rowsort
SELECT ALL - ( ( + + 86 ) ) FROM tab0
----
-86
-86
-86

query I rowsort
SELECT - col2 * col2 FROM tab2 WHERE ( col0 IS NULL )
----

query I rowsort
SELECT ALL + 34 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 / 74 ) NOT IN ( - ( 4 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6429
SELECT DISTINCT COUNT( DISTINCT CAST( + + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
3

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6431
SELECT ALL - + col0, ( col1 ) DIV col1 AS col0 FROM tab2 cor0
----
-46
1
-64
1
-75
1

skipif mysql # not compatible
query II rowsort label-6431
SELECT ALL - + col0, ( col1 ) / col1 AS col0 FROM tab2 cor0
----
-46
1
-64
1
-75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT ( + - MIN( ALL + + 91 ) ) AS col0 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6432
SELECT ( + - MIN ( ALL + + 91 ) ) AS col0 FROM tab0 AS cor0
----
-91

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

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL - 2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6434
SELECT CAST( - SUM( ( col2 ) ) AS SIGNED ) * + CAST( + 5 / - ( - 47 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6434
SELECT CAST ( - SUM ( ( col2 ) ) AS INTEGER ) * + CAST ( + 5 / - ( - 47 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT - 51 AS col1 FROM tab0 AS cor0 WHERE NOT + 18 IS NULL
----
-51
-51
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6436
SELECT - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6437
SELECT DISTINCT MIN( + ( + CAST( - 77 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT MIN ( + ( + CAST ( - 77 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6438
SELECT DISTINCT + ( col2 ) DIV + - col0 AS col1 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT + ( col2 ) / + - col0 AS col1 FROM tab0 AS cor0
----
-1
-3
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT ALL - CAST( ( 88 ) AS SIGNED ) - + col2 * col0 FROM tab1 WHERE ( - col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL - CAST ( ( 88 ) AS INTEGER ) - + col2 * col0 FROM tab1 WHERE ( - col1 ) IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6443
SELECT + ( col1 ) * 15 AS col0 FROM tab0 WHERE NOT - ( - CAST( NULL AS SIGNED ) ) + 65 > NULL
----

skipif mysql # not compatible
query I rowsort label-6443
SELECT + ( col1 ) * 15 AS col0 FROM tab0 WHERE NOT - ( - CAST ( NULL AS INTEGER ) ) + 65 > NULL
----

query I rowsort
SELECT - col0 * + col0 FROM tab0 WHERE NOT - 43 / - col0 - col0 BETWEEN + col0 * col2 AND - col1 * + col0
----
-225
-7569
-9409

query I rowsort
SELECT ALL col1 * + + 86 AS col1 FROM tab1
----
1204
4042
430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6446
SELECT col2 * CAST( - 45 AS SIGNED ) * - + col2 + col1 FROM tab0 AS cor0
----
441046
4521
99486

skipif mysql # not compatible
query I rowsort label-6446
SELECT col2 * CAST ( - 45 AS INTEGER ) * - + col2 + col1 FROM tab0 AS cor0
----
441046
4521
99486

query I rowsort
SELECT + ( + 64 ) AS col2 FROM tab2 AS cor0
----
64
64
64

query II rowsort
SELECT - ( col0 ), + col2 FROM tab2 cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT 55 * + col1 * 21 * - col1 FROM tab0 AS cor0
----
-1155
-509355
-7577955

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col0 + + 26 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col0 + + 26 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) BETWEEN + 56 AND 74 * 26
----
64
77
40
75
67
58

query I rowsort
SELECT ALL - 42 AS col0 FROM tab2 WHERE - 74 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab1 WHERE NULL IS NULL
----
-83

query I rowsort
SELECT DISTINCT + - 14 * + 60 - - + 32 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-808

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6456
SELECT ALL ( + COUNT ( * ) ) + 24 col1 FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT DISTINCT 43 * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT 43 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
129

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

skipif mysql # not compatible
query I rowsort label-6458
SELECT - COUNT ( * ) + - 79 AS col2 FROM tab0 AS cor0
----
-82

query I rowsort
SELECT + col1 + - + col0 + - - col2 AS col0 FROM tab2 AS cor0
----
28
50
53

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

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

query II rowsort
SELECT - - 77 AS col0, + col1 AS col2 FROM tab0 AS cor0
----
77
1
77
21
77
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT ALL col0 col2 FROM tab1 AS cor0 WHERE NOT CAST( + 88 AS SIGNED ) + col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6462
SELECT ALL col0 col2 FROM tab1 AS cor0 WHERE NOT CAST ( + 88 AS INTEGER ) + col0 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6464
SELECT ALL + col0 AS col2, CAST( - + 25 AS SIGNED ) FROM tab0
----
15
-25
87
-25
97
-25

skipif mysql # not compatible
query II rowsort label-6464
SELECT ALL + col0 AS col2, CAST ( - + 25 AS INTEGER ) FROM tab0
----
15
-25
87
-25
97
-25

query I rowsort
SELECT ALL - col1 * - col2 + col1 * col0 + + 4 AS col2 FROM tab0
----
200
2041
5026

query I rowsort
SELECT - col2 - col2 * + col2 FROM tab2
----
-1640
-3422
-552

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

query III rowsort
SELECT * FROM tab0 WHERE ( + - col2 ) NOT BETWEEN ( 58 + col2 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT + 49 FROM tab1 AS cor0 WHERE - col1 = ( 41 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT + + COUNT( * ) + - 0 col0 FROM ( tab0 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-6472
SELECT + + COUNT ( * ) + - 0 col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT DISTINCT 92 * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
828

skipif mysql # not compatible
query I rowsort label-6473
SELECT DISTINCT 92 * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
828

onlyif mysql # aggregate syntax: 
query II rowsort label-6474
SELECT ALL SUM( - - col1 ), - MAX( + col2 ) AS col0 FROM tab0
----
103
-99

skipif mysql # not compatible
query II rowsort label-6474
SELECT ALL SUM ( - - col1 ), - MAX ( + col2 ) AS col0 FROM tab0
----
103
-99

query II rowsort
SELECT DISTINCT col2 * - 90 AS col1, col0 * - 82 AS col2 FROM tab2
----
-2070
-3772
-3600
-5248
-5220
-6150

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

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

query I rowsort
SELECT - 19 * + 47 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - ( + col2 ) IN ( + col0 )
----
-939
-957
-968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6478
SELECT DISTINCT COUNT( * ) DIV - - ( + COUNT( * ) ) - COUNT( * ) FROM tab2 AS cor0 WHERE - col0 NOT IN ( - - 59 )
----
-2

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT COUNT ( * ) / - - ( + COUNT ( * ) ) - COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 NOT IN ( - - 59 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT ALL - - ( - COUNT( ALL + 85 ) ) * + COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL - - ( - COUNT ( ALL + 85 ) ) * + COUNT ( * ) FROM tab2 cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 17 * - col0 IN ( + + 3, - col1 )
----

query I rowsort
SELECT ALL - 65 * + col0 + + + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-5742
-6402
-990

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > - 28
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, 53 AS col1 FROM tab2
----
23
53
40
53
58
53

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

query I rowsort
SELECT - 58 * + - 84 AS col0 FROM tab1
----
4872
4872
4872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6487
SELECT CAST( 29 AS SIGNED ) FROM tab2
----
29
29
29

skipif mysql # not compatible
query I rowsort label-6487
SELECT CAST ( 29 AS INTEGER ) FROM tab2
----
29
29
29

query I rowsort
SELECT DISTINCT - ( + - 73 ) * + col0 AS col0 FROM tab0
----
1095
6351
7081

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 >= 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL + - 71 AS col2 FROM tab1 AS cor0
----
-71
-71
-71

query I rowsort
SELECT + 57 * - col2 + + + col2 FROM tab2 AS cor0
----
-1288
-2240
-3248

query I rowsort
SELECT DISTINCT + col0 + ( + 86 ) FROM tab0
----
101
173
183

query I rowsort
SELECT DISTINCT - col2 + col2 * 74 * + + col2 AS col2 FROM tab2 AS cor0
----
118360
248878
39123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6495
SELECT + 3 + SUM( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE + col0 + + col2 + - + 76 * + col0 >= ( NULL )
----

query I rowsort
SELECT ALL - col0 - + 32 * + - col2 * + ( + 16 ) FROM tab0 AS cor0
----
24049
5033
50591

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6498
SELECT ALL - SUM( - + 15 ) AS col2, - 2 DIV + 43 AS col1 FROM tab1 AS cor0
----
45
0

skipif mysql # not compatible
query II rowsort label-6498
SELECT ALL - SUM ( - + 15 ) AS col2, - 2 / + 43 AS col1 FROM tab1 AS cor0
----
45
0

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

query I rowsort
SELECT col1 * + 33 FROM tab0
----
2673
33
693

query I rowsort
SELECT col2 + + col1 AS col0 FROM tab2 WHERE col2 * + col1 * - + col0 + - + col1 + 12 + ( 54 ) = col2 * + 47 + 86 * 24
----

query I rowsort
SELECT DISTINCT 60 * - + col2 FROM tab1
----
-3540
-4080
-5760

query I rowsort
SELECT + 46 + col1 + + - col1 + - col2 AS col0 FROM tab1 cor0 WHERE + col0 IS NOT NULL
----
-13
-22
-50

query I rowsort
SELECT DISTINCT ( + - col2 ) - - col1 FROM tab2 AS cor0
----
28
37
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT + 28 - COUNT( * ) col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6506
SELECT + 28 - COUNT ( * ) col0 FROM tab1 AS cor0
----
25

query I rowsort
SELECT ALL - 95 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT DISTINCT - col0 * 87 * ( - - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col0 ) col0 FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 3 - + col0 NOT IN ( + ( - - col1 ) )
----

query I rowsort
SELECT ALL + - col0 * + col1 * - - col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

query II rowsort
SELECT col2 AS col0, - 94 FROM tab1 AS cor0
----
59
-94
68
-94
96
-94

query I rowsort
SELECT ALL + ( 49 ) * + col0 FROM tab2 AS cor0
----
2254
3136
3675

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT ALL SUM( ALL + col0 ) * + + 99 FROM tab0
----
19701

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL SUM ( ALL + col0 ) * + + 99 FROM tab0
----
19701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col0 FROM tab1
----
51
85
91

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6518
SELECT ALL + col2 DIV + col1, + col2 AS col2 FROM tab1
----
1
68
11
59
6
96

skipif mysql # not compatible
query II rowsort label-6518
SELECT ALL + col2 / + col1, + col2 AS col2 FROM tab1
----
1
68
11
59
6
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6519
SELECT ALL - ( + CAST( + + col0 AS SIGNED ) ) AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL - ( + CAST ( + + col0 AS INTEGER ) ) AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 51 + + col0 AS col1 FROM tab0
----
138
148
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT DISTINCT + COUNT( * ) * - 10 + - 34 FROM tab0, tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT + COUNT ( * ) * - 10 + - 34 FROM tab0, tab2 AS cor0
----
-124

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT DISTINCT - COUNT( ALL col2 ) + + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT - COUNT ( ALL col2 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT + col1 * + 70 + - 25 + - col1 * + 44 / + 18 * + + ( - col0 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + 47 + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6524
SELECT + col1 * + 70 + - 25 + - col1 * + 44 / + 18 * + + ( - col0 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + 47 + CAST ( - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT COUNT( DISTINCT - + col2 ) * + 21 + - 58 + + - COUNT( * ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-6525
SELECT COUNT ( DISTINCT - + col2 ) * + 21 + - 58 + + - COUNT ( * ) FROM tab2
----
2

query I rowsort
SELECT DISTINCT 79 + col1 * + - col2 + col2 * - col2 FROM tab0 AS cor0
----
-231
-5937
-9821

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6529
SELECT DISTINCT 4 DIV 75 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT 4 / 75 AS col0 FROM tab2
----
0

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

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

query I rowsort
SELECT 94 - - - 95 + - col2 FROM tab2
----
-24
-41
-59

query II rowsort
SELECT ALL col2 + ( + col0 ) * col2 + - 92, col1 FROM tab0
----
660
81
788
21
9610
1

query II rowsort
SELECT ALL col1 + - col0, col2 AS col2 FROM tab2
----
-8
58
13
40
5
23

query I rowsort
SELECT ALL + + 63 FROM tab2 WHERE NOT + + col0 > - 28 + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6535
SELECT + COUNT( * ) + 4 AS col0, - COUNT( * ) FROM tab0
----
7
-3

skipif mysql # not compatible
query II rowsort label-6535
SELECT + COUNT ( * ) + 4 AS col0, - COUNT ( * ) FROM tab0
----
7
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6536
SELECT col0 + + 6 DIV col2 - + col1 + - + ( - col1 ) AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6536
SELECT col0 + + 6 / col2 - + col1 + - + ( - col1 ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + - col0 * + + col0 + + col1 AS col1 FROM tab1 cor0
----
-2587
-7220
-8234

query I rowsort
SELECT DISTINCT + + col1 + + 73 FROM tab1 AS cor0
----
120
78
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6539
SELECT DISTINCT ( 42 ) DIV 78 - ( - COUNT( * ) ) + - + 29 col0 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6539
SELECT DISTINCT ( 42 ) / 78 - ( - COUNT ( * ) ) + - + 29 col0 FROM tab0 AS cor0
----
-26

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + col1 * - + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 89 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 56 - - 18 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT ALL - MIN( col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL - MIN ( col0 ) AS col0 FROM tab0 cor0
----
-15

query II rowsort
SELECT + col1, col1 - + 48 FROM tab2 AS cor0
----
51
3
67
19
77
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT ALL 95 * + 50 * + - COUNT( * ) col2 FROM tab1
----
-14250

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

query II rowsort
SELECT col0 * - col0 AS col2, + 3 FROM tab0
----
-225
3
-7569
3
-9409
3

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

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

query I rowsort
SELECT - 76 + + col1 FROM tab0
----
-55
-75
5

query I rowsort
SELECT DISTINCT - col0 * col0 + + col0 AS col2 FROM tab2
----
-2070
-4032
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT DISTINCT + 68 + MAX( + ( - col1 ) ) * COUNT( * ) FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT + 68 + MAX ( + ( - col1 ) ) * COUNT ( * ) FROM tab1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT col2 DIV + 35 + + - ( - - 23 ) - + + col1 col1 FROM tab1
----
-27
-35
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6553
SELECT col2 / + 35 + + - ( - - 23 ) - + + col1 col1 FROM tab1
----
-27
-35
-69

query I rowsort
SELECT DISTINCT 95 + - + 59 AS col1 FROM tab2
----
36

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / + col1 IS NULL AND NOT + 42 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col1 < - 54 * ( + col2 )
----

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

query II rowsort
SELECT DISTINCT col2 * - + col1 + + col1 * - 28 * + ( + - 58 ), col1 AS col2 FROM tab2 AS cor0
----
104922
67
121968
77
81651
51

query I rowsort
SELECT - 97 * - + col1 FROM tab2 AS cor0
----
4947
6499
7469

query I rowsort
SELECT - col1 * col2 * - col1 * + col0 FROM tab0
----
383670
4625505
9603

query I rowsort
SELECT DISTINCT 57 - - col0 * - + col1 FROM tab0 cor0
----
-1158
-1770
-40

query I rowsort
SELECT ALL + ( 45 ) * - + col0 AS col2 FROM tab2 AS cor0
----
-2070
-2880
-3375

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

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

query I rowsort
SELECT col1 + + + 76 + - + col1 AS col0 FROM tab0 AS cor0
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6565
SELECT * FROM tab2 AS cor0 WHERE - col1 * - col0 * col1 + ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6565
SELECT * FROM tab2 AS cor0 WHERE - col1 * - col0 * col1 + ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6566
SELECT DISTINCT + COUNT( * ), + 3 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-6566
SELECT DISTINCT + COUNT ( * ), + 3 FROM tab2
----
3
3

query II rowsort
SELECT col1 AS col0, ( - + col2 ) * + 27 + - col0 AS col2 FROM tab0
----
1
-2770
21
-357
81
-1284

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

query I rowsort
SELECT ALL + 72 * - - col0 * - col2 FROM tab2 AS cor0
----
-184320
-313200
-76176

onlyif mysql # aggregate syntax: 
query II rowsort label-6570
SELECT + 99 * - COUNT( * ) - - 37, - COUNT( * ) * + 14 col2 FROM tab0 AS cor0
----
-260
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6570
SELECT + 99 * - COUNT ( * ) - - 37, - COUNT ( * ) * + 14 col2 FROM tab0 AS cor0
----
-260
-42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT - + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6573
SELECT - + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 33 * - col0 + + col2 + - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-1615
-2756
-3029

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT - ( CAST( + + CAST( - + 51 AS SIGNED ) AS SIGNED ) ) * - 96 * col0 AS col1 FROM tab0 AS cor0
----
-425952
-474912
-73440

skipif mysql # not compatible
query I rowsort label-6576
SELECT - ( CAST ( + + CAST ( - + 51 AS INTEGER ) AS INTEGER ) ) * - 96 * col0 AS col1 FROM tab0 AS cor0
----
-425952
-474912
-73440

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 / col2 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL > col1
----

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

query I rowsort
SELECT 49 * col1 + + - 22 FROM tab1 AS cor0
----
223
2281
664

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

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL COUNT( 11 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6583
SELECT ALL COUNT ( 11 ) col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col1 * + + col1 + - - 68 + + col2 + - 22 * + col1 FROM tab0
----
146
4894
57

query I rowsort
SELECT ALL col0 + - col2 * - col1 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT - ( 12 ) FROM tab1 cor0
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col1 FROM tab0 AS cor0 WHERE - ( - 24 ) * - + ( - + col1 ) IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6588
SELECT ALL - AVG ( + + CAST( NULL AS SIGNED ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL <= col0 + + 9
----
0

skipif mysql # not compatible
query I rowsort label-6590
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <= col0 + + 9
----
0

query I rowsort
SELECT DISTINCT 55 + col0 AS col1 FROM tab2 AS cor0 WHERE - col2 * + + 98 < ( + + col0 / + - col0 )
----
101
119
130

query I rowsort
SELECT ALL - 97 AS col1 FROM tab1 AS cor0 WHERE + 84 / col0 >= NULL
----

query II rowsort
SELECT ALL - 42, + 85 * 7 AS col1 FROM tab0 AS cor0
----
-42
595
-42
595
-42
595

query II rowsort
SELECT DISTINCT - - col1, - col0 AS col1 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT + - CAST( NULL AS SIGNED ) + 0 + - - 88 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT + - CAST ( NULL AS INTEGER ) + 0 + - - 88 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT + 31 * - + COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-6597
SELECT + 31 * - + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
-279

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

skipif mysql # not compatible
query I rowsort label-6598
SELECT + COUNT ( * ) * + + 57 AS col0 FROM tab2
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6599
SELECT - 65 * CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
-3055
-325
-910

skipif mysql # not compatible
query I rowsort label-6599
SELECT - 65 * CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
-3055
-325
-910

query I rowsort
SELECT DISTINCT + 6 * col1 * + + col0 FROM tab1
----
2550
25662
4284

query I rowsort
SELECT + + col2 FROM tab0 WHERE NOT NULL <= NULL
----

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

query I rowsort
SELECT DISTINCT col1 * - col0 * col2 * - + col2 FROM tab2
----
1241034
16904100
7884800

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6604
SELECT - col1 * - CAST( NULL AS DECIMAL ) / - - 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-6604
SELECT - col1 * - CAST ( NULL AS REAL ) / - - col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT DISTINCT + col2, col0 * - col1 FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) < + 52 / - + col2
----

query II rowsort
SELECT - + col2, 88 * - col1 AS col2 FROM tab0 AS cor0
----
-10
-1848
-47
-7128
-99
-88

query I rowsort
SELECT - col2 + 78 AS col2 FROM tab0
----
-21
31
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6610
SELECT - col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) + - 98 <> ( - ( col2 ) )
----

skipif mysql # not compatible
query I rowsort label-6610
SELECT - col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) + - 98 <> ( - ( col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 + - col0 col1 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + - - 87 col0 FROM tab1
----
85
85
85

query I rowsort
SELECT - + 26 AS col2 FROM tab2 WHERE + col1 >= - 2
----
-26
-26
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT + col1 + - + col0 DIV + col1 AS col2 FROM tab0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-6614
SELECT + col1 + - + col0 / + col1 AS col2 FROM tab0
----
-96
17
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6615
SELECT * FROM tab2 WHERE + - col1 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IN ( - 49, 81 + col0 )
----

skipif mysql # not compatible
query III rowsort label-6615
SELECT * FROM tab2 WHERE + - col1 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IN ( - 49, 81 + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE - 4 BETWEEN - col1 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT DISTINCT + 39 * - col2 + + CAST( col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
-1752
-369
-3860

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT + 39 * - col2 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-1752
-369
-3860

query I rowsort
SELECT 75 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT MIN( ALL - + col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6619
SELECT MIN ( ALL - + col0 ) AS col1 FROM tab0
----
-97

query I rowsort
SELECT col2 * - - col0 * + col1 - ( - + col2 ) AS col1 FROM tab2
----
197160
291508
53981

query I rowsort
SELECT - 26 * - 28 * - col1 AS col2 FROM tab1 WHERE NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 / + 2 < NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT - ( - COUNT( * ) ) + + MAX( + + 51 ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6626
SELECT - ( - COUNT ( * ) ) + + MAX ( + + 51 ) FROM tab0 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 + + 38 col0 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT + + col2 + - col0 AS col2 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT + + 8 + - + col2 FROM tab2 AS cor0
----
-15
-32
-50

query I rowsort
SELECT + col1 + + - col0 AS col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL + col2 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL + MAX( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL + MAX ( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6633
SELECT + + SUM( CAST( - 84 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-6633
SELECT + + SUM ( CAST ( - 84 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-252

query I rowsort
SELECT ALL + - col0 * + 51 FROM tab0 AS cor0
----
-4437
-4947
-765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6635
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 * - 23 * + - col0 IS NULL
----

query I rowsort
SELECT ( + 43 ) * + 49 * col0 FROM tab0
----
183309
204379
31605

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT MIN( DISTINCT - col2 ) * - - COUNT( * ) AS col1 FROM tab1 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-6639
SELECT MIN ( DISTINCT - col2 ) * - - COUNT ( * ) AS col1 FROM tab1 cor0
----
-288

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

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

query I rowsort
SELECT DISTINCT + + ( - 85 ) * - ( - - 38 ) AS col2 FROM tab2 AS cor0
----
3230

query I rowsort
SELECT + col2 + col2 - + col1 AS col2 FROM tab0 AS cor0
----
-1
13
197

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 45 * - col1 < + + 76 + - col1
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT - + MAX( ALL col1 ) * - 92 AS col2 FROM tab0 AS cor0
----
7452

skipif mysql # not compatible
query I rowsort label-6646
SELECT - + MAX ( ALL col1 ) * - 92 AS col2 FROM tab0 AS cor0
----
7452

query I rowsort
SELECT DISTINCT + + col1 * + + col2 - + col1 - ( col0 ) * + + col0 FROM tab2 AS cor0
----
-1093
-1806
-994

query I rowsort
SELECT 8 * + col1 FROM tab1 WHERE ( + 14 * + + ( + col1 ) + + + col2 + - 81 - + col1 * - ( + col2 ) ) NOT BETWEEN 97 * + col1 AND ( - 33 )
----
112
376
40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 BETWEEN + 90 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6650
SELECT - col1 AS col0 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6650
SELECT - col1 AS col0 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT DISTINCT SUM( + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT SUM ( + col2 ) AS col2 FROM tab0
----
156

query I rowsort
SELECT DISTINCT + 40 + + ( - col2 ) FROM tab2
----
-18
0
17

query I rowsort
SELECT DISTINCT + 7 + 74 + + col2 + - col0 * ( col1 ) AS col0 FROM tab2
----
-2242
-4807
-4886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col1 + - 81 + + col0, col2 * 65 + - 16 AS col0, col0 col0 FROM tab2
----
9 values hashing to 059b6f89136d71ebd96d7379719fc075

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

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

query I rowsort
SELECT DISTINCT col1 * - 12 - - col2 FROM tab1 AS cor0
----
-1
-496
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT + 87 * SUM( ALL + col0 ) AS col0 FROM tab1
----
19749

skipif mysql # not compatible
query I rowsort label-6657
SELECT + 87 * SUM ( ALL + col0 ) AS col0 FROM tab1
----
19749

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT - + SUM( 83 ) AS col2 FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-6658
SELECT - + SUM ( 83 ) AS col2 FROM tab0 AS cor0
----
-249

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= 21
----

query I rowsort
SELECT 20 * + 19 FROM tab0
----
380
380
380

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6662
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + 70 / - col1 AS col1 FROM tab0 WHERE + col2 + col1 = ( col1 )
----

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT CAST ( NULL AS REAL ) + + 70 / - col1 AS col1 FROM tab0 WHERE + col2 + col1 = ( col1 )
----

query I rowsort
SELECT col2 * - col1 * - 90 AS col1 FROM tab0
----
18900
342630
8910

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT ALL + 12 * - 79 * + COUNT( * ) FROM tab0
----
-2844

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL + 12 * - 79 * + COUNT ( * ) FROM tab0
----
-2844

query I rowsort
SELECT DISTINCT - 79 * - col2 AS col1 FROM tab2
----
1817
3160
4582

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

query I rowsort
SELECT 68 * + - col0 FROM tab1
----
-3468
-5780
-6188

query II rowsort
SELECT ALL + col0 AS col2, - col1 + + col1 * + + col0 FROM tab1
----
51
700
85
420
91
4230

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT MIN( ALL - 70 ) AS col2 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-6669
SELECT MIN ( ALL - 70 ) AS col2 FROM tab2
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT ALL - 86 DIV 29 AS col2 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - 86 / 29 AS col2 FROM tab1
----
-2
-2
-2

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

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

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6674
SELECT ALL - COUNT( * ) DIV - 90 AS col0, 41 FROM tab1
----
0
41

skipif mysql # not compatible
query II rowsort label-6674
SELECT ALL - COUNT ( * ) / - 90 AS col0, 41 FROM tab1
----
0
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL - SUM( col1 ) * 31 col1 FROM tab2
----
-6045

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6675
SELECT ALL - SUM ( col1 ) * 31 col1 FROM tab2
----
-6045

query I rowsort
SELECT ALL - col1 * - + ( + 26 ) AS col1 FROM tab0
----
2106
26
546

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6678
SELECT DISTINCT - col1 DIV - ( - col2 ) FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6678
SELECT DISTINCT - col1 / - ( - col2 ) FROM tab2
----
-1
-2

query I rowsort
SELECT DISTINCT - - 92 * 70 AS col1 FROM tab0 AS cor0
----
6440

query I rowsort
SELECT AVG ( - col1 ) / - 84 * - 63 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6681
SELECT DISTINCT + col2 + + - col1 DIV - 4 AS col2 FROM tab0 AS cor0
----
15
67
99

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT + col2 + + - col1 / - 4 AS col2 FROM tab0 AS cor0
----
15
67
99

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

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

query I rowsort
SELECT + col0 + + 87 + + col0 FROM tab2 AS cor0
----
179
215
237

query II rowsort
SELECT ALL + - col2 AS col1, + col2 + + 27 * col1 FROM tab2 AS cor0
----
-23
1400
-40
2119
-58
1867

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT DISTINCT - COUNT( * ) * + - 87 FROM tab1 cor0
----
261

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT - COUNT ( * ) * + - 87 FROM tab1 cor0
----
261

query I rowsort
SELECT ( 71 ) + + col0 FROM tab2 AS cor0
----
117
135
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - col0 * + 53 col0 FROM tab1
----
259488
265795
327964

onlyif mysql # DIV for integer division: 
query I rowsort label-6688
SELECT DISTINCT + 73 DIV - col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT + 73 / - col2 FROM tab0
----
-1
-7
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 NOT IN ( + col2 + col1 + - col1 + - ( - 22 ), col0 + 57 + 12 / + 88, + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6690
SELECT CAST( - + 67 AS SIGNED ) + + - col0 AS col2 FROM tab2
----
-113
-131
-142

skipif mysql # not compatible
query I rowsort label-6690
SELECT CAST ( - + 67 AS INTEGER ) + + - col0 AS col2 FROM tab2
----
-113
-131
-142

query III rowsort
SELECT * FROM tab0 WHERE + 98 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 / ( - 87 ) IS NULL
----

query I rowsort
SELECT col0 + + - col2 + + col0 * - col2 AS col0 FROM tab1
----
-4941
-4989
-6165

query I rowsort
SELECT DISTINCT - 46 + - col1 - + 45 FROM tab1
----
-105
-138
-96

query III rowsort
SELECT * FROM tab2 WHERE - 73 IS NULL
----

query I rowsort
SELECT ALL + 78 + + col2 + + + col1 AS col0 FROM tab0
----
109
178
206

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

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

query I rowsort
SELECT ALL - 83 + col0 FROM tab1 AS cor0
----
-32
2
8

query I rowsort
SELECT DISTINCT col0 - - + col1 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT DISTINCT ( - 49 ) + col2 AS col2 FROM tab0 AS cor0
----
-2
-39
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6701
SELECT + - 13 - - col0 * col1 DIV col2 * + col1 AS col0 FROM tab1 AS cor0
----
22
2901
85

skipif mysql # not compatible
query I rowsort label-6701
SELECT + - 13 - - col0 * col1 / col2 * + col1 AS col0 FROM tab1 AS cor0
----
22
2901
85

query I rowsort
SELECT + col0 + + + col1 AS col1 FROM tab0 AS cor0 WHERE NULL <= col2 * - 59 * - col0
----

query I rowsort
SELECT - + 44 - 30 * + col1 FROM tab1 AS cor0
----
-1454
-194
-464

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE col0 + - - 72 > 96 + + col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6705
SELECT DISTINCT COUNT ( + - col0 ) col2 FROM tab0
----
3

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

query II rowsort
SELECT DISTINCT - 26, + col0 AS col0 FROM tab0 AS cor0
----
-26
15
-26
87
-26
97

query II rowsort
SELECT ALL 84 AS col1, col0 AS col1 FROM tab0 AS cor0
----
84
15
84
87
84
97

query I rowsort
SELECT col1 + col0 FROM tab0 AS cor0 WHERE NOT + col2 >= col2
----

query I rowsort
SELECT ALL - + 13 * - col2 AS col1 FROM tab2 cor0
----
299
520
754

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT + COUNT( DISTINCT + 57 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6712
SELECT + COUNT ( DISTINCT + 57 ) FROM tab2 AS cor0
----
1

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

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

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

query II rowsort
SELECT col2, + col2 + - col0 + - col1 + - col0 - + col0 AS col2 FROM tab1 AS cor0
----
59
-201
68
-252
96
-71

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

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

query I rowsort
SELECT ALL - 46 AS col0 FROM tab0 AS cor0
----
-46
-46
-46

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 < - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6719
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6719
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 * 97 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6721
SELECT DISTINCT + AVG ( CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <= - 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT DISTINCT + + SUM( + 18 ) AS col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT + + SUM ( + 18 ) AS col0 FROM tab2 AS cor0
----
54

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

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

query I rowsort
SELECT + 73 AS col0 FROM tab1 WHERE NULL NOT IN ( - - 19, + ( + col1 ), - - col1 )
----

query I rowsort
SELECT DISTINCT 40 * - + 48 AS col0 FROM tab0
----
-1920

query I rowsort
SELECT 6 + - - col2 + col1 FROM tab1
----
116
121
70

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

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

query II rowsort
SELECT ALL + col2 * + col0 + - col2 AS col1, + 55 FROM tab1 AS cor0
----
4800
55
4956
55
6120
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT - COUNT( * ) * - COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6731
SELECT - COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
27

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

query I rowsort
SELECT ALL + col1 * - - ( + col2 ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

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

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE - 85 + + 76 IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT ALL ( - + col0 ) + + 26 * col2 * ( 0 ) AS col2, col1 - col2 AS col2 FROM tab0
----
-15
34
-87
11
-97
-98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, + col0 * - col1 FROM tab2
----
46
-2346
64
-4928
75
-5025

query I rowsort
SELECT 0 - - col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT + ( - 1 ) - + COUNT( * ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-6740
SELECT + ( - 1 ) - + COUNT ( * ) FROM tab1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL - 45 + - - COUNT( * ) AS col0 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL - 45 + - - COUNT ( * ) AS col0 FROM tab2
----
-42

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col0 AS col1, + col2 * + 90 + + col1 col0, - - col2 FROM tab1
----
9 values hashing to db7d322fe1f1c6a80515a7594ed9b57d

query I rowsort
SELECT DISTINCT - col1 * + col1 + + 12 AS col1 FROM tab0
----
-429
-6549
11

query I rowsort
SELECT - - col0 + + + 39 FROM tab2 AS cor0
----
103
114
85

query I rowsort
SELECT DISTINCT 86 - - 96 AS col2 FROM tab0 AS cor0
----
182

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

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

query I rowsort
SELECT + 30 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL 57 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col0 ) col2, - 99 * col2 FROM tab0 cor0
----
15
-4653
87
-990
97
-9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6752
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2 cor0
----
-1

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

query I rowsort
SELECT col0 * + col1 * + + 46 + 23 * - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
2185
54809
83812

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT DISTINCT MIN( ALL + + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT MIN ( ALL + + col1 ) AS col2 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6756
SELECT ALL - 1, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-1
NULL
-1
NULL
-1
NULL

skipif mysql # not compatible
query II rowsort label-6756
SELECT ALL - 1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-1
NULL
-1
NULL
-1
NULL

query I rowsort
SELECT + col1 + 9 - col2 AS col0 FROM tab1 WHERE NOT - 47 IS NULL
----
-12
-45
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT - MIN( 57 ) AS col1 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-6759
SELECT - MIN ( 57 ) AS col1 FROM tab1
----
-57

query I rowsort
SELECT DISTINCT + 12 + + + 74 AS col2 FROM tab1
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-6761
SELECT col2 DIV 71 + - col0 col0, col2 col2 FROM tab1
----
-50
96
-85
59
-91
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6761
SELECT col2 / 71 + - col0 col0, col2 col2 FROM tab1
----
-50
96
-85
59
-91
68

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

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

query I rowsort
SELECT + - ( - - col1 ) + + 97 - + col1 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
2341
4871
4988

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT DISTINCT - + SUM( DISTINCT - - col0 ) + + 61 AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT - + SUM ( DISTINCT - - col0 ) + + 61 AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab0, tab0 AS cor0
----
45

query III rowsort
SELECT * FROM tab1 WHERE + ( + col1 ) <= + + ( - col1 ) * col1 + + + 79
----
85
5
59

query III rowsort
SELECT * FROM tab2 WHERE - - 8 + - - col0 + ( - 44 ) / col2 * - 28 < NULL
----

query I rowsort
SELECT ALL col2 * col2 + + 24 AS col1 FROM tab2 cor0
----
1624
3388
553

query I rowsort
SELECT 73 + col1 FROM tab0 AS cor0
----
154
74
94

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

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

query II rowsort
SELECT ALL + col1 - + - col0, - ( - - 14 ) AS col0 FROM tab1 AS cor0
----
138
-14
65
-14
90
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT - COUNT( - - ( + - 73 ) ) + 78 col0 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6773
SELECT - COUNT ( - - ( + - 73 ) ) + 78 col0 FROM tab2
----
75

query II rowsort
SELECT + col1, 87 + + - col0 + - col2 + - col2 * + ( + col1 ) FROM tab1
----
14
-1404
47
-3268
5
-352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6775
SELECT col2 * + CAST( + - col1 AS SIGNED ) FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-6775
SELECT col2 * + CAST ( + - col1 AS INTEGER ) FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 - + + 89 - - 20 * + + col1 NOT BETWEEN - - 89 + col1 AND + + col2
----

query I rowsort
SELECT DISTINCT + col2 + 98 FROM tab0
----
108
145
197

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT MAX( DISTINCT - 71 ) * COUNT( * ) AS col2 FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-6778
SELECT MAX ( DISTINCT - 71 ) * COUNT ( * ) AS col2 FROM tab0
----
-213

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6780
SELECT DISTINCT - ( + CAST( - CAST( + + col0 AS SIGNED ) AS SIGNED ) ) - col2 + + col1 DIV + col2 FROM tab0 cor0
----
-2
-31
79

skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT - ( + CAST ( - CAST ( + + col0 AS INTEGER ) AS INTEGER ) ) - col2 + + col1 / + col2 FROM tab0 cor0
----
-2
-31
79

query I rowsort
SELECT DISTINCT + AVG ( + - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT - ( - - col0 ) IS NULL )
----
NULL

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6783
SELECT + + MAX ( - 35 ) col1 FROM tab2 AS cor0
----
-35

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

query I rowsort
SELECT DISTINCT - 74 * - col2 AS col0 FROM tab0
----
3478
7326
740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6786
SELECT ALL COUNT( * ) * ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL COUNT ( * ) * ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6787
SELECT ALL - col2 * - col0 DIV col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL - col2 * - col0 / col0 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + + col2 * + 84 * col1 + - col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6789
SELECT DISTINCT 15 DIV COUNT( * ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT 15 / COUNT ( * ) FROM tab2 AS cor0
----
5

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

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

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

skipif mysql # not compatible
query I rowsort label-6792
SELECT - - CAST ( NULL AS REAL ) / + 50 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT + col1 AS col0, col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL - 75 * col2 + - 65 AS col0 FROM tab0
----
-3590
-7490
-815

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 39 < - + ( - col1 ) * col2 - - + 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 AS col0 FROM tab1 WHERE NOT 73 * - col2 BETWEEN + col0 AND col1 * 84
----
-59
-68
-96

query I rowsort
SELECT - + col2 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + col1 * + col2, + 16 )
----

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

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

query I rowsort
SELECT ALL - 39 + col0 AS col2 FROM tab0
----
-24
48
58

query I rowsort
SELECT DISTINCT col1 + 58 FROM tab2
----
109
125
135

query I rowsort
SELECT - ( 27 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

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

query I rowsort
SELECT - - col1 * + + 45 AS col1 FROM tab0 AS cor0
----
3645
45
945

query I rowsort
SELECT DISTINCT + col1 * - col1 - - 69 + + 6 * 41 AS col1 FROM tab0 AS cor0
----
-126
-6246
314

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 26 NOT BETWEEN 11 / + 78 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6808
SELECT ALL - 72 * col0 / - CAST( NULL AS DECIMAL ) / + + col0 - - ( - - col2 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL - 72 * col0 / - CAST ( NULL AS REAL ) / + + col0 - - ( - - col2 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6809
SELECT - COUNT( * ) AS col1, + 12 FROM tab2 AS cor0 WHERE NULL < 61
----
0
12

skipif mysql # not compatible
query II rowsort label-6809
SELECT - COUNT ( * ) AS col1, + 12 FROM tab2 AS cor0 WHERE NULL < 61
----
0
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL COUNT( * ) + 70 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
70

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL COUNT ( * ) + 70 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
70

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

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

query I rowsort
SELECT DISTINCT + - ( + col2 ) - col2 AS col1 FROM tab1 cor0
----
-118
-136
-192

query III rowsort
SELECT * FROM tab1 WHERE ( 89 + - - col1 ) >= col0 * - - ( - - 10 ) + col0
----

query I rowsort
SELECT + 99 - + col2 FROM tab1
----
3
31
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE + 62 > + 57
----
3

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE + 62 > + 57
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT COUNT( * ) + SUM( - 1 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6817
SELECT COUNT ( * ) + SUM ( - 1 ) AS col1 FROM tab0
----
0

query II rowsort
SELECT ALL col2 * col1, col1 AS col0 FROM tab1
----
1344
14
295
5
3196
47

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * col0 col1 FROM tab0
----
4872
5432
840

onlyif mysql # aggregate syntax: 
query II rowsort label-6822
SELECT DISTINCT + 39 col0, - COUNT( * ) + 99 FROM tab0 AS cor0
----
39
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6822
SELECT DISTINCT + 39 col0, - COUNT ( * ) + 99 FROM tab0 AS cor0
----
39
96

query I rowsort
SELECT DISTINCT + - col0 - col0 FROM tab2 AS cor0 WHERE NOT + col1 < - + col0 * - + col2 / + col1 + + 38 * 40 * + col1
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6824
SELECT ALL - CAST ( - 15 AS INTEGER ) col1 FROM tab2 cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6825
SELECT COUNT( * ), + COUNT( + col1 ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6825
SELECT COUNT ( * ), + COUNT ( + col1 ) FROM tab1 cor0
----
3
3

query I rowsort
SELECT DISTINCT + 34 * + col0 FROM tab2
----
1564
2176
2550

query I rowsort
SELECT ALL col2 * col0 + + 23 * 72 AS col2 FROM tab0
----
11259
2361
2526

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT DISTINCT col1 DIV + 33 col1 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6828
SELECT DISTINCT col1 / + 33 col1 FROM tab1
----
0
1

query I rowsort
SELECT col2 + - 15 FROM tab0
----
-5
32
84

query I rowsort
SELECT ALL 71 + col1 AS col1 FROM tab0
----
152
72
92

query I rowsort
SELECT 91 + + 60 FROM tab1
----
151
151
151

query I rowsort
SELECT DISTINCT col0 * - + col2 + 92 + - - 76 FROM tab0 WHERE - + 63 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6833
SELECT DISTINCT - ( - CAST( - 34 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT - ( - CAST ( - 34 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT - - 59 * 31 FROM tab2 cor0
----
1829
1829
1829

query I rowsort
SELECT + col0 * - col0 * + + col2 * - col1 * + 56 AS col1 FROM tab1 AS cor0
----
119357000
1482100256
195761664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6836
SELECT + COUNT( * ) * + CAST( + 73 AS SIGNED ) AS col1 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-6836
SELECT + COUNT ( * ) * + CAST ( + 73 AS INTEGER ) AS col1 FROM tab2
----
219

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

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

query I rowsort
SELECT + + 79 + - col2 - - 8 FROM tab0 AS cor0
----
-12
40
77

query I rowsort
SELECT ALL + col2 - - - col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ALL 90 - - - ( 19 ) FROM tab2
----
71
71
71

query II rowsort
SELECT + 43 * - - col0 * - col0 AS col0, col2 AS col1 FROM tab2
----
-176128
40
-241875
58
-90988
23

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + - col2 + + col0 * + - col1 * - 14 IS NOT NULL )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT + + COUNT( * ) * COUNT( * ) + + MIN( + col2 ) + ( + 79 ) AS col1 FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-6847
SELECT + + COUNT ( * ) * COUNT ( * ) + + MIN ( + col2 ) + ( + 79 ) AS col1 FROM tab1 AS cor0
----
147

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

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

query I rowsort
SELECT 11 + 45 AS col0 FROM tab0
----
56
56
56

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6851
SELECT ALL col0 + 1 FROM tab1 WHERE NOT CAST( 84 AS SIGNED ) IN ( col1 * 59 )
----
52
86
92

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL col0 + 1 FROM tab1 WHERE NOT CAST ( 84 AS INTEGER ) IN ( col1 * 59 )
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT - 66 / + 65 NOT IN ( - col1 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT - 66 / + 65 NOT IN ( - col1 * col0 )
----
0

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

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

query III rowsort
SELECT * FROM tab2 WHERE + 23 IN ( + col0 + - col2 )
----
46
51
23

query I rowsort
SELECT + col1 * 79 FROM tab2
----
4029
5293
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT + 88 * + COUNT( * ) FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-6856
SELECT + 88 * + COUNT ( * ) FROM tab1
----
264

query I rowsort
SELECT ALL - 32 FROM tab2 WHERE col0 IS NOT NULL
----
-32
-32
-32

query I rowsort
SELECT - col1 * ( + col0 ) AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT 33 + + col0 AS col1 FROM tab1
----
118
124
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 col1 FROM tab0 WHERE ( col1 ) NOT BETWEEN 44 * ( col2 * col0 ) AND col0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT MIN( 24 ) + - 99 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-6861
SELECT MIN ( 24 ) + - 99 FROM tab1
----
-75

query I rowsort
SELECT ALL 12 FROM tab1 WHERE ( - col1 * - col2 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6863
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 + 71 * col2 AS col1 FROM tab1
----
4248
4896
6912

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 83 + col2 * col1 ) BETWEEN - col0 AND ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 81 * col0 FROM tab1
----
4131
6885
7371

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

skipif mysql # not compatible
query I rowsort label-6868
SELECT - COUNT ( * ) + + 6 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 9 col2 FROM tab0
----
10
30
90

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT ( col1 + col0 * col2 ) BETWEEN + col0 AND + col1
----
51
85
91

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE NOT 14 NOT BETWEEN ( + col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT DISTINCT - MAX( ALL col1 ) * 62 FROM tab1
----
-2914

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT - MAX ( ALL col1 ) * 62 FROM tab1
----
-2914

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 94 IS NOT NULL
----

query I rowsort
SELECT ALL 54 + 75 AS col1 FROM tab1 cor0
----
129
129
129

onlyif mysql # DIV for integer division: 
query I rowsort label-6876
SELECT ALL col0 DIV 6 + col0 * col0 col1 FROM tab1 AS cor0
----
2609
7239
8296

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6876
SELECT ALL col0 / 6 + col0 * col0 col1 FROM tab1 AS cor0
----
2609
7239
8296

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

query I rowsort
SELECT + ( + col0 ) + + 94 FROM tab2 AS cor0
----
140
158
169

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL + COUNT( * ) + - 7 * 22 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
-145

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL + COUNT ( * ) + - 7 * 22 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
-145

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 / 34 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 29 / col0 AS col2 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6884
SELECT - + ( CAST( - col0 AS SIGNED ) ) * 26 FROM tab1 AS cor0
----
1326
2210
2366

skipif mysql # not compatible
query I rowsort label-6884
SELECT - + ( CAST ( - col0 AS INTEGER ) ) * 26 FROM tab1 AS cor0
----
1326
2210
2366

query I rowsort
SELECT - col1 - - 53 FROM tab1 AS cor0
----
39
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT + - SUM( ALL + col0 ) - 89 FROM tab2 AS cor0
----
-274

skipif mysql # not compatible
query I rowsort label-6886
SELECT + - SUM ( ALL + col0 ) - 89 FROM tab2 AS cor0
----
-274

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6887
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 < + CAST( - ( - col0 ) AS SIGNED )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-6887
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 < + CAST ( - ( - col0 ) AS INTEGER )
----
46
51
23
64
77
40

query I rowsort
SELECT ALL - 82 * 71 AS col1 FROM tab2 AS cor0
----
-5822
-5822
-5822

onlyif mysql # DIV for integer division: 
query I rowsort label-6889
SELECT ALL + col0 DIV 89 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL + col0 / 89 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NULL > 69
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col2 AND NULL OR ( NULL ) <= + col1 + col2
----

query I rowsort
SELECT - 14 * ( + col0 * col0 ) FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
-101150
-115934
-36414

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 28 * 93 + col2 ) NOT IN ( + col0 + col1 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6895
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
-3

query I rowsort
SELECT + col0 * + - 4 FROM tab1
----
-204
-340
-364

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 44 + + 72 BETWEEN NULL AND ( 11 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 22 AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL AND NOT ( NULL ) < + 58
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6899
SELECT ALL - + MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL - + MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT ALL + 22 * COUNT( * ) + - 15 AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
183

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL + 22 * COUNT ( * ) + - 15 AS col2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
183

query I rowsort
SELECT ( + 70 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT ALL + 2 * COUNT( * ) FROM tab1 WHERE 54 * col0 + col0 * + 52 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL + 2 * COUNT ( * ) FROM tab1 WHERE 54 * col0 + col0 * + 52 IS NOT NULL
----
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6904
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) BETWEEN - 34 AND ( - 49 + ( - 35 ) * - 36 )
----

skipif mysql # not compatible
query III rowsort label-6904
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) BETWEEN - 34 AND ( - 49 + ( - 35 ) * - 36 )
----

query I rowsort
SELECT DISTINCT 23 + + col0 * + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-119623
-336652
-379433

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT 89 <= + col1
----
-14
-47
-5

query I rowsort
SELECT ALL 53 AS col2 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + 70 AND NULL
----

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

query I rowsort
SELECT ALL ( - ( + col1 ) ) * + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

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

query I rowsort
SELECT - col2 + 47 FROM tab1 AS cor0 WHERE ( + ( + 7 ) + ( 84 ) ) IS NOT NULL
----
-12
-21
-49

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - - col0 ) IN ( 20 )
----

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

query I rowsort
SELECT - ( 75 ) * col2 + - col2 AS col1 FROM tab1
----
-4484
-5168
-7296

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT + col1 <> 51 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6916
SELECT ALL CAST( NULL AS SIGNED ) * + col2 FROM tab0 WHERE ( + col1 ) <> + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 FROM tab0 WHERE ( + col1 ) <> + col2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT MIN( ALL + 10 ) + + - 79 * - - COUNT( * ) AS col1 FROM tab0
----
-227

skipif mysql # not compatible
query I rowsort label-6917
SELECT MIN ( ALL + 10 ) + + - 79 * - - COUNT ( * ) AS col1 FROM tab0
----
-227

query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab0 WHERE NOT NULL > - col1
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6920
SELECT DISTINCT COUNT( * ) * ( - MAX( CAST( + col0 AS SIGNED ) ) ) * 55 + COUNT( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
-12375

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT COUNT ( * ) * ( - MAX ( CAST ( + col0 AS INTEGER ) ) ) * 55 + COUNT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
-12375

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 ) <> - ( + 4 ) / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) >= - - ( + ( col0 ) )
----

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

query I rowsort
SELECT DISTINCT + - 51 + col1 AS col2 FROM tab2 AS cor0
----
0
16
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6926
SELECT + CAST( - col2 AS SIGNED ) - - + 53 FROM tab1 cor0
----
-15
-43
-6

skipif mysql # not compatible
query I rowsort label-6926
SELECT + CAST ( - col2 AS INTEGER ) - - + 53 FROM tab1 cor0
----
-15
-43
-6

query I rowsort
SELECT - col2 - - 91 FROM tab0
----
-8
44
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6928
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6928
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - + col1
----

query I rowsort
SELECT - col1 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - ( 3 ) ) AND 40 + + col1
----

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - 83, - 7 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6933
SELECT - ( + MIN( - - 51 ) ), CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-6933
SELECT - ( + MIN ( - - 51 ) ), CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
-51
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6936
SELECT DISTINCT - MAX( ALL - col1 ) AS col0, 94 AS col1 FROM tab1
----
5
94

skipif mysql # not compatible
query II rowsort label-6936
SELECT DISTINCT - MAX ( ALL - col1 ) AS col0, 94 AS col1 FROM tab1
----
5
94

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 >= - col2 * - col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL - COUNT( * ) * MAX( col0 ) AS col2 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL - COUNT ( * ) * MAX ( col0 ) AS col2 FROM tab1
----
-273

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6941
SELECT + col0 DIV - 94 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6941
SELECT + col0 / - 94 AS col0 FROM tab1 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT + ( + 65 ) * + - col2 + - - 83 FROM tab1 cor0
----
-3752
-4337
-6157

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT COUNT( * ) - + + 16 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-13

skipif mysql # not compatible
query I rowsort label-6946
SELECT COUNT ( * ) - + + 16 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6947
SELECT DISTINCT + 5, 64 + + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 WHERE + col0 <= col1
----

skipif mysql # not compatible
query II rowsort label-6947
SELECT DISTINCT + 5, 64 + + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 WHERE + col0 <= col1
----

query I rowsort
SELECT DISTINCT - 25 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-25

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

query I rowsort
SELECT ALL - 70 + - ( - 67 ) FROM tab0 AS cor0
----
-3
-3
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 3 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 3 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 59 IN ( col0 * col0 + col2, col0 )
----

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

query II rowsort
SELECT DISTINCT + 47 AS col1, - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
47
-51
47
-85
47
-91

query I rowsort
SELECT - col2 * + col0 + + - col0 + + 6 * col0 * col0 + + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
44544
46851
645

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

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

skipif mysql # not compatible
query I rowsort label-6958
SELECT COUNT ( * ) * - COUNT ( - col2 ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6959
SELECT - - 3 col2, SUM( ALL col2 ) FROM tab2 WHERE + - ( 48 ) + - 98 IS NULL
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6959
SELECT - - 3 col2, SUM ( ALL col2 ) FROM tab2 WHERE + - ( 48 ) + - 98 IS NULL
----
3
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + col0 * - + col1 >= col1
----

query II rowsort
SELECT DISTINCT col2 AS col2, + col2 + col0 AS col2 FROM tab1
----
59
144
68
159
96
147

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

skipif mysql # not compatible
query I rowsort label-6962
SELECT col2 + + + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 NOT IN ( + col1, - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT ALL - col1 * + CAST( - 79 AS SIGNED ) + ( col0 ) AS col2 FROM tab0
----
1746
176
6414

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - col1 * + CAST ( - 79 AS INTEGER ) + ( col0 ) AS col2 FROM tab0
----
1746
176
6414

query I rowsort
SELECT + 8 * + 60 + 75 AS col0 FROM tab1
----
555
555
555

query I rowsort
SELECT - 60 + + + col0 FROM tab0 AS cor0
----
-45
27
37

onlyif mysql # aggregate syntax: 
query II rowsort label-6967
SELECT + 58 * - + 56 + + 36, SUM( col1 ) AS col2 FROM tab1 AS cor0
----
-3212
66

skipif mysql # not compatible
query II rowsort label-6967
SELECT + 58 * - + 56 + + 36, SUM ( col1 ) AS col2 FROM tab1 AS cor0
----
-3212
66

query I rowsort
SELECT DISTINCT - - col0 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
2392
4992
5100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - - col0 ) + + col2 col0, - col0 AS col0 FROM tab1 AS cor0
----
144
-85
147
-51
159
-91

query I rowsort
SELECT ALL - ( + ( + + col2 ) ) + - col2 * - col2 + - 56 FROM tab1 cor0
----
3366
4500
9064

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col2 ) BETWEEN - - 90 AND NULL
----

query I rowsort
SELECT DISTINCT col2 - col0 - col1 AS col1 FROM tab0 AS cor0
----
-49
-98
1

query I rowsort
SELECT ALL + col1 - + + col2 * + 51 * - ( + + col1 ) AS col0 FROM tab2 AS cor0
----
157157
198253
59874

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT + 58 * - + ( MAX( + col1 ) ) FROM tab0 WHERE ( - col2 ) > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6974
SELECT + 58 * - + ( MAX ( + col1 ) ) FROM tab0 WHERE ( - col2 ) > col0
----
NULL

query I rowsort
SELECT ALL col0 * col2 * 3 AS col0 FROM tab2
----
13050
3174
7680

query I rowsort
SELECT col2 * + col2 * - + ( 99 ) AS col0 FROM tab2
----
-158400
-333036
-52371

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN col2 + 81 - - - 77 * - - col0 * + col0 + - 32 AND - col1
----

query I rowsort
SELECT ALL + col2 * + 9 * + ( - + col0 ) * + - 6 * col0 + - ( col1 ) * - + col1 FROM tab0 AS cor0
----
4087701
50300515
577611

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> col2 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6980
SELECT DISTINCT - 57 DIV - 79 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT - 57 / - 79 FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - 11 ) * - + col1 * + 95 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 70 + - col0 IS NULL
----

query I rowsort
SELECT ALL - 21 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * - 74 col0 FROM tab0
----
-6808
-6808
-6808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6987
SELECT ALL - col1 * 72 * - col2 * + col0 + - col0 * + ( col2 + col2 ) FROM tab1 WHERE + - CAST( NULL AS SIGNED ) + col0 / col1 * 26 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL - col1 * 72 * - col2 * + col0 + - col0 * + ( col2 + col2 ) FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) + col0 / col1 * 26 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 ) NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6989
SELECT 33 * COUNT( DISTINCT - - col0 ), 32 DIV + + COUNT( 88 ) AS col0 FROM tab2
----
99
10

skipif mysql # not compatible
query II rowsort label-6989
SELECT 33 * COUNT ( DISTINCT - - col0 ), 32 / + + COUNT ( 88 ) AS col0 FROM tab2
----
99
10

query III rowsort
SELECT * FROM tab2 WHERE NOT + 83 * - 41 = NULL
----

query I rowsort
SELECT + col1 * 9 AS col2 FROM tab0
----
189
729
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 46 >= ( - ( - - col1 ) )
----
51
14
96
85
5
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT MAX( - 26 ) AS col2 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6995
SELECT MAX ( - 26 ) AS col2 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * col1 IS NULL
----
-51
-85
-91

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + 0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6998
SELECT col0, col1 * + - CAST( NULL AS SIGNED ) * + - col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6998
SELECT col0, col1 * + - CAST ( NULL AS INTEGER ) * + - col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT ALL 65 * - 7 AS col1 FROM tab2
----
-455
-455
-455

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

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

query I rowsort
SELECT 17 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
17
17
17

query I rowsort
SELECT ALL + - col0 + 24 AS col2 FROM tab2 cor0
----
-22
-40
-51

query II rowsort
SELECT ALL - col1 + col2 AS col0, - 44 AS col0 FROM tab1 AS cor0
----
21
-44
54
-44
82
-44

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7005
SELECT DISTINCT - - 74 DIV + COUNT( * ) + - - 17 FROM tab0 cor0
----
41

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT - - 74 / + COUNT ( * ) + - - 17 FROM tab0 cor0
----
41

query I rowsort
SELECT + col0 + + col0 + - - 94 + 82 * - col2 FROM tab2 AS cor0
----
-1700
-3058
-4512

query I rowsort
SELECT + 46 FROM tab1 AS cor0 WHERE col0 + + col1 <= 40
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND 43
----

query I rowsort
SELECT DISTINCT - ( + - 70 ) AS col0 FROM tab2 WHERE NOT ( NOT ( NOT - - col0 * - 81 NOT IN ( + col1 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT + MIN( + 55 ) * - COUNT( * ) AS col0 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-7010
SELECT + MIN ( + 55 ) * - COUNT ( * ) AS col0 FROM tab2
----
-165

query I rowsort
SELECT 77 + 29 FROM tab2, tab1 AS cor0
----
9 values hashing to e3a970c661a05070afa8a3ed8dca742e

query I rowsort
SELECT ALL - col2 - + ( + col2 ) FROM tab1 AS cor0
----
-118
-136
-192

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

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

query I rowsort
SELECT DISTINCT 85 * col2 AS col0 FROM tab1
----
5015
5780
8160

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT ALL MAX( - 84 ) AS col0 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL MAX ( - 84 ) AS col0 FROM tab2
----
-84

query I rowsort
SELECT DISTINCT - ( + + col1 ) * - ( ( + col1 ) ) * col0 - ( + col0 ) * - col2 + + col2 AS col1 FROM tab2
----
120727
341083
382056

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT + MAX( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7018
SELECT + MAX ( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
81

query II rowsort
SELECT DISTINCT + 19, + col2 FROM tab0 AS cor0
----
19
10
19
47
19
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col0 col1 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT + + 69 * + + 18 + col2 AS col2 FROM tab2 cor0 WHERE NOT NULL > 1
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 68 col2, + col1 FROM tab2 cor0
----
68
51
68
67
68
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 * col0 col0 FROM tab0 AS cor0
----
3915
4365
675

query I rowsort
SELECT ALL + col2 * col1 * - - 60 FROM tab0
----
12600
228420
5940

onlyif mysql # DIV for integer division: 
query I rowsort label-7027
SELECT ALL col1 * 99 DIV + 23 FROM tab2
----
219
288
331

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL col1 * 99 / + 23 FROM tab2
----
219
288
331

query I rowsort
SELECT DISTINCT + col2 * + col1 * 42 AS col1 FROM tab2
----
129360
163212
49266

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7029
SELECT DISTINCT 77 DIV + - COUNT( DISTINCT - - col2 ) AS col1 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT 77 / + - COUNT ( DISTINCT - - col2 ) AS col1 FROM tab1
----
-25

query II rowsort
SELECT ALL - col1 * - col0, + col1 AS col2 FROM tab1
----
425
5
4277
47
714
14

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 - - 32 - - + col1 + - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - col2 + + 50 FROM tab0
----
50
50
50

query I rowsort
SELECT ALL - 67 * - col0 * + 65 - col2 AS col2 FROM tab2 AS cor0
----
200307
278680
326567

onlyif mysql # aggregate syntax: 
query II rowsort label-7035
SELECT DISTINCT - MAX( DISTINCT col0 ), 59 AS col1 FROM tab1 AS cor0
----
-91
59

skipif mysql # not compatible
query II rowsort label-7035
SELECT DISTINCT - MAX ( DISTINCT col0 ), 59 AS col1 FROM tab1 AS cor0
----
-91
59

query I rowsort
SELECT 9 + col1 AS col0 FROM tab1
----
14
23
56

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

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

query I rowsort
SELECT ( 98 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT 99 + - MAX( - col1 ) FROM tab1
----
104

skipif mysql # not compatible
query I rowsort label-7039
SELECT 99 + - MAX ( - col1 ) FROM tab1
----
104

query I rowsort
SELECT 89 + + 86 AS col0 FROM tab0
----
175
175
175

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT SUM( 59 ) FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-7041
SELECT SUM ( 59 ) FROM tab2
----
177

query I rowsort
SELECT col0 * - col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 12 < 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT + - col0 * + 91 FROM tab0 AS cor0
----
-1365
-7917
-8827

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 70 * + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7047
SELECT - col0 / 56 + - - col2 * - CAST( 60 AS SIGNED ) FROM tab0 WHERE - col1 = - col0
----

skipif mysql # not compatible
query I rowsort label-7047
SELECT - col0 / 56 + - - col2 * - CAST ( 60 AS INTEGER ) FROM tab0 WHERE - col1 = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL SUM( ALL - col0 ) - - 7 FROM tab2
----
-178

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL SUM ( ALL - col0 ) - - 7 FROM tab2
----
-178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7049
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) * + + COUNT( * ) * - 58 * 9 * - 90 * - COUNT( DISTINCT - col0 ) + - COUNT( * ) + 53 AS col0 FROM tab0
----
-422770

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) * + + COUNT ( * ) * - 58 * 9 * - 90 * - COUNT ( DISTINCT - col0 ) + - COUNT ( * ) + 53 AS col0 FROM tab0
----
-422770

query I rowsort
SELECT col2 FROM tab1 WHERE - 66 IS NULL
----

query I rowsort
SELECT ALL ( + - 23 ) AS col0 FROM tab1
----
-23
-23
-23

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

query I rowsort
SELECT col2 + + 87 AS col2 FROM tab2
----
110
127
145

query I rowsort
SELECT ALL - col2 + + - col2 AS col0 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT + + col2 + + ( + 98 ) FROM tab1 AS cor0
----
157
166
194

onlyif mysql # aggregate syntax: 
query II rowsort label-7056
SELECT ALL + + 12 AS col1, + 56 * + + COUNT( ALL - 76 ) col0 FROM tab0 AS cor0
----
12
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7056
SELECT ALL + + 12 AS col1, + 56 * + + COUNT ( ALL - 76 ) col0 FROM tab0 AS cor0
----
12
168

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE + col0 = NULL
----

query I rowsort
SELECT 15 * - 25 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-375
-375
-375

query I rowsort
SELECT + 59 FROM tab0 WHERE NOT + 34 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + - 99 FROM tab1 AS cor0 WHERE NOT + col1 * + - col2 * + 54 * + - 22 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 53 * - + col2 FROM tab2
----
-1219
-2120
-3074

onlyif mysql # aggregate syntax: 
query II rowsort label-7064
SELECT DISTINCT COUNT( * ) AS col1, 21 FROM tab0
----
3
21

skipif mysql # not compatible
query II rowsort label-7064
SELECT DISTINCT COUNT ( * ) AS col1, 21 FROM tab0
----
3
21

query I rowsort
SELECT DISTINCT col0 + col1 + + 41 * - 27 FROM tab2
----
-1010
-965
-966

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7066
SELECT + CAST( NULL AS SIGNED ) + CAST( + ( col0 ) AS SIGNED ), ( col1 ) FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7066
SELECT + CAST ( NULL AS INTEGER ) + CAST ( + ( col0 ) AS INTEGER ), ( col1 ) FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT + 78 * + 59 AS col0 FROM tab2 AS cor0
----
4602

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

query I rowsort
SELECT + col1 * 60 * + col2 AS col2 FROM tab0 AS cor0
----
12600
228420
5940

query II rowsort
SELECT DISTINCT col0 * - + col0 * - + 59, col2 FROM tab0 AS cor0
----
13275
47
446571
10
555131
99

query I rowsort
SELECT 79 * + + col2 FROM tab1
----
4661
5372
7584

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - 66 > NULL
----

query I rowsort
SELECT ALL 52 + - col2 + - ( ( col2 ) ) + - col2 * - col1 FROM tab1 AS cor0
----
1204
229
3112

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT ALL col2 DIV - 27 + + + col2 + - 66 FROM tab1 AS cor0
----
-9
0
27

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL col2 / - 27 + + + col2 + - 66 FROM tab1 AS cor0
----
-9
0
27

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT MAX( 40 ) col1 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7079
SELECT MAX ( 40 ) col1 FROM tab0 AS cor0
----
40

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

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

query II rowsort
SELECT ALL - col2, - col0 + + + 91 AS col0 FROM tab0 AS cor0
----
-10
4
-47
76
-99
-6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7084
SELECT + - col0 * 69 DIV col1 FROM tab0 AS cor0
----
-12
-285
-6693

skipif mysql # not compatible
query I rowsort label-7084
SELECT + - col0 * 69 / col1 FROM tab0 AS cor0
----
-12
-285
-6693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7085
SELECT DISTINCT - + COUNT( * ) * - - MAX( ALL + + ( - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT - + COUNT ( * ) * - - MAX ( ALL + + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 28 * - col2 FROM tab1 cor0
----
-1652
-1904
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT ALL ( + - SUM( ALL - col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL ( + - SUM ( ALL - col0 ) ) FROM tab2
----
185

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

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7089
SELECT + + CAST( col2 AS SIGNED ) * + col0 + - + col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
4845
4930
6097

skipif mysql # not compatible
query I rowsort label-7089
SELECT + + CAST ( col2 AS INTEGER ) * + col0 + - + col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
4845
4930
6097

query I rowsort
SELECT ALL - col2 + - 49 AS col0 FROM tab1
----
-108
-117
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT - - COUNT( * ) + 59 AS col1 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-7091
SELECT - - COUNT ( * ) + 59 AS col1 FROM tab0 AS cor0
----
62

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

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

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

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT + CAST ( NULL AS REAL ) - 80 + + 24 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * + + col0 + col1 + + 27 FROM tab2 WHERE NULL BETWEEN NULL AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * col2 * col0 > - ( - - 28 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col1 + + - col1 + + - col1 AS col0 FROM tab2 AS cor0
----
-153
-201
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7097
SELECT ALL + 40 * + COUNT( * ) + + 0 * + - 75 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL + 40 * + COUNT ( * ) + + 0 * + - 75 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT COUNT( * ) - 81 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7098
SELECT COUNT ( * ) - 81 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL + COUNT( * ) - MIN( ALL - + 0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL + COUNT ( * ) - MIN ( ALL - + 0 ) FROM tab2 AS cor0
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT + SUM( + 34 ) FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-7102
SELECT + SUM ( + 34 ) FROM tab1
----
102

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + 74 ) < - 78 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT ALL COUNT( + 11 ) * - - COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL COUNT ( + 11 ) * - - COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT DISTINCT - 64 * + 74 AS col0 FROM tab2
----
-4736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7106
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7107
SELECT ( - CAST( col1 AS SIGNED ) ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7107
SELECT ( - CAST ( col1 AS INTEGER ) ) FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7108
SELECT ALL + col0 AS col1 FROM tab2 cor0 WHERE + col2 NOT BETWEEN - + CAST( NULL AS DECIMAL ) * col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL + col0 AS col1 FROM tab2 cor0 WHERE + col2 NOT BETWEEN - + CAST ( NULL AS REAL ) * col2 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT DISTINCT MIN( + 15 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT MIN ( + 15 ) FROM tab1
----
15

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL + + 13 + - + COUNT( * ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL + + 13 + - + COUNT ( * ) FROM tab1 AS cor0
----
10

query I rowsort
SELECT ALL 10 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( col2 * - 32 = - 92 ) )
----
10
10
10

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

query I rowsort
SELECT ALL - col2 * 96 AS col0 FROM tab2 cor0
----
-2208
-3840
-5568

query I rowsort
SELECT col2 + + - col0 * - col1 * + 51 + - + 71 AS col2 FROM tab1 AS cor0
----
21663
218124
36439

query II rowsort
SELECT - 54, 50 FROM tab1 AS cor0 WHERE 87 IS NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col2, + col2 * - col1 * col1 FROM tab0 AS cor0
----
-15
-308367
-87
-4410
-97
-99

query I rowsort
SELECT ALL - 25 + + - col0 AS col1 FROM tab2
----
-100
-71
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7120
SELECT ALL CAST( col2 AS SIGNED ) col0, + col0 DIV col2 AS col0 FROM tab0
----
10
8
47
0
99
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7120
SELECT ALL CAST ( col2 AS INTEGER ) col0, + col0 / col2 AS col0 FROM tab0
----
10
8
47
0
99
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 95 col2, 7 * - ( - - 55 ) FROM tab2
----
95
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-7122
SELECT DISTINCT col1 + + 81 DIV - col2 AS col1 FROM tab1
----
14
4
46

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT col1 + + 81 / - col2 AS col1 FROM tab1
----
14
4
46

query I rowsort
SELECT + col1 + + 63 + - col1 FROM tab2
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT 93 + - COUNT( * ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT 93 + - COUNT ( * ) FROM tab1
----
90

query II rowsort
SELECT col2, + 96 - + 73 AS col1 FROM tab2
----
23
23
40
23
58
23

query I rowsort
SELECT ALL - col1 + + - col0 AS col0 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7127
SELECT ALL * FROM tab1 AS cor0 WHERE + 78 * col0 / - 30 * - 58 <= col1 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7127
SELECT ALL * FROM tab1 AS cor0 WHERE + 78 * col0 / - 30 * - 58 <= col1 + - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT DISTINCT + + 85 - COUNT( * ) FROM tab0 cor0
----
82

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT + + 85 - COUNT ( * ) FROM tab0 cor0
----
82

query I rowsort
SELECT ALL + col1 * col1 * + - ( + 64 ) FROM tab0
----
-28224
-419904
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT - - COUNT( * ) AS col0 FROM tab0 WHERE - + 14 BETWEEN ( + col2 ) AND 23 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-7130
SELECT - - COUNT ( * ) AS col0 FROM tab0 WHERE - + 14 BETWEEN ( + col2 ) AND 23 + - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT + - ( - SUM( + col0 ) ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-7131
SELECT + - ( - SUM ( + col0 ) ) FROM tab2 cor0
----
185

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= col1 - col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col0 FROM tab1
----
-52
-52
-52

query II rowsort
SELECT DISTINCT - 3 * - ( - 31 ) AS col2, + 4 FROM tab1
----
-93
4

query I rowsort
SELECT ALL - 98 * ( 34 ) * - col0 * col2 FROM tab0
----
2349060
2898840
31997196

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT - SUM( DISTINCT - ( 95 ) ) * - 57 AS col1 FROM tab2
----
-5415

skipif mysql # not compatible
query I rowsort label-7137
SELECT - SUM ( DISTINCT - ( 95 ) ) * - 57 AS col1 FROM tab2
----
-5415

query II rowsort
SELECT ALL + 11 AS col0, - 74 FROM tab2
----
11
-74
11
-74
11
-74

query III rowsort
SELECT * FROM tab1 WHERE NOT 67 * col1 NOT IN ( - + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7140
SELECT + 9 * COUNT( * ) DIV - + 39 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7140
SELECT + 9 * COUNT ( * ) / - + 39 FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - col0 * + - 32 AS col1 FROM tab2
----
1472
2048
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7142
SELECT ALL MIN( ALL - CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL MIN ( ALL - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col1 * - - col2 * + col0 * + + 11 + col0 AS col0 FROM tab2
----
2168384
3206025
593584

query III rowsort
SELECT * FROM tab0 WHERE NOT 43 / + - col2 + + col2 IS NOT NULL
----

query I rowsort
SELECT + 85 * + ( + - col1 ) + + col1 AS col2 FROM tab2 AS cor0
----
-4284
-5628
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT MAX( + 19 ) * + 22 AS col1 FROM tab2 cor0
----
418

skipif mysql # not compatible
query I rowsort label-7146
SELECT MAX ( + 19 ) * + 22 AS col1 FROM tab2 cor0
----
418

onlyif mysql # DIV for integer division: 
query I rowsort label-7147
SELECT - + col2 DIV - col0 col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7147
SELECT - + col2 / - col0 col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - col1 * + ( - + col0 ) * 37 * + + col1 + col1 AS col0 FROM tab2 AS cor0
----
12457042
14039949
4426953

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

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT - MAX ( + col0 ) AS col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT DISTINCT MAX( ALL 11 ) AS col1 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT MAX ( ALL 11 ) AS col1 FROM tab0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT MAX( - col1 ) - + 33 * - + COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-7151
SELECT MAX ( - col1 ) - + 33 * - + COUNT ( * ) FROM tab1
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - col2 + - + 8 + - col2 col2 FROM tab2
----
-1648
-3430
-560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7153
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col2 + col2 AS col0, 71 FROM tab1
----
NULL
71

skipif mysql # not compatible
query II rowsort label-7153
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - col2 + col2 AS col0, 71 FROM tab1
----
NULL
71

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + + + col1 col1 FROM tab0 cor0 WHERE NOT col0 * - col1 * col1 NOT BETWEEN - - col2 * + col0 AND 70
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7156
SELECT - col2, + CAST( - 3 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-3
-47
-3
-99
-3

skipif mysql # not compatible
query II rowsort label-7156
SELECT - col2, + CAST ( - 3 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-3
-47
-3
-99
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( 96 ) col2, 90 + + 32 AS col0 FROM tab1 AS cor0
----
-96
122
-96
122
-96
122

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

query I rowsort
SELECT ALL - 37 * - ( + col1 ) AS col0 FROM tab2
----
1887
2479
2849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7160
SELECT DISTINCT 49 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT - 69 * + col1 * + col1 FROM tab1
----
-13524
-152421
-1725

query I rowsort
SELECT ALL - col1 * + - ( - ( + col2 ) ) FROM tab0
----
-210
-3807
-99

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

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

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT - MIN ( DISTINCT - - 73 ) FROM tab0 AS cor0
----
-73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - ( col0 )
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7167
SELECT - col0 DIV + + 27, 84 + col2 AS col1 FROM tab2 AS cor0
----
-1
107
-2
124
-2
142

skipif mysql # not compatible
query II rowsort label-7167
SELECT - col0 / + + 27, 84 + col2 AS col1 FROM tab2 AS cor0
----
-1
107
-2
124
-2
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT SUM( - + 50 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-450

skipif mysql # not compatible
query I rowsort label-7168
SELECT SUM ( - + 50 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-450

query I rowsort
SELECT ALL - 92 * col2 FROM tab0
----
-4324
-9108
-920

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7171
SELECT DISTINCT col0 DIV + + 11 AS col1 FROM tab2
----
4
5
6

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT col0 / + + 11 AS col1 FROM tab2
----
4
5
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT ALL + - 19 + - SUM( + - col0 ) AS col1 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL + - 19 + - SUM ( + - col0 ) AS col1 FROM tab0 AS cor0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT ALL - 75 + - ( MIN( DISTINCT col0 ) ) col0 FROM tab2 cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7174
SELECT ALL - 75 + - ( MIN ( DISTINCT col0 ) ) col0 FROM tab2 cor0
----
-121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT + + COUNT( * ) - - COUNT( * ) + 94 + MAX( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND + - 82 / - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT + + COUNT ( * ) - - COUNT ( * ) + 94 + MAX ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND + - 82 / - - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col1 col2 FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT - + ( - - col0 ) + + + 8 AS col1 FROM tab1 AS cor0
----
-43
-77
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 * + 82 col0 FROM tab0 AS cor0
----
-5412
-5412
-5412

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT ALL + col2 DIV - 94 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL + col2 / - 94 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT 97 + + MIN( + - ( + col2 ) ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-7181
SELECT 97 + + MIN ( + - ( + col2 ) ) FROM tab0
----
-2

query I rowsort
SELECT 99 + - 97 + - col1 AS col0 FROM tab0
----
-19
-79
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7183
SELECT ALL 53 + 51, CAST( NULL AS SIGNED ) * col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
104
NULL
104
NULL
104
NULL

skipif mysql # not compatible
query II rowsort label-7183
SELECT ALL 53 + 51, CAST ( NULL AS INTEGER ) * col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
104
NULL
104
NULL
104
NULL

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

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT - col0 DIV - col1 col0 FROM tab1
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7185
SELECT - col0 / - col1 col0 FROM tab1
----
1
17
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7186
SELECT ALL CAST( - + col0 AS SIGNED ) + + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL CAST ( - + col0 AS INTEGER ) + + col0 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT + col2 + + col2 AS col0, 55 + col1 AS col2 FROM tab1 AS cor0
----
118
60
136
102
192
69

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

query I rowsort
SELECT ALL col0 - + 57 AS col1 FROM tab2 AS cor0
----
-11
18
7

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

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL + + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

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

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

query I rowsort
SELECT ALL + 48 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT ALL + MAX( + - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL + MAX ( + - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT 31 AS col1 FROM tab2 cor0
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7196
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > CAST( NULL AS SIGNED ) / 69
----

skipif mysql # not compatible
query III rowsort label-7196
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER ) / 69
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 IN ( - - 19, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7201
SELECT DISTINCT CAST( - - col1 AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT COUNT( * ) * + 43 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT COUNT ( * ) * + 43 FROM tab2
----
129

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

query II rowsort
SELECT DISTINCT col2, 90 * + + col2 * col1 FROM tab0
----
10
18900
47
342630
99
8910

query I rowsort
SELECT - 46 * + col1 AS col1 FROM tab0
----
-3726
-46
-966

query I rowsort
SELECT + 12 * + + col1 * - - col0 AS col1 FROM tab0
----
1164
14580
21924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * + col0 * + 5 col1 FROM tab2 AS cor0
----
-22080
-30720
-36000

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7209
SELECT ALL - + col2 + + + col0 DIV - 99 col2 FROM tab0 cor0 WHERE NOT col0 * - 14 IS NULL
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7209
SELECT ALL - + col2 + + + col0 / - 99 col2 FROM tab0 cor0 WHERE NOT col0 * - 14 IS NULL
----
-10
-47
-99

query I rowsort
SELECT + + 5 FROM tab0 cor0
----
5
5
5

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

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

query I rowsort
SELECT 57 + + col1 + - 5 FROM tab0 cor0
----
133
53
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7213
SELECT + 28, col0 / - col2 * - CAST( col0 AS SIGNED ) * - + col2 * - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7213
SELECT + 28, col0 / - col2 * - CAST ( col0 AS INTEGER ) * - + col2 * - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-7214
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 - + 12 DIV + col0 * - - col2 * - - col2 < + + col0
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-7214
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 - + 12 / + col0 * - - col2 * - - col2 < + + col0
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT col0 * - + col0 + + col1 * - col1 AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
-10025
-10114
-4717

onlyif mysql # DIV for integer division: 
query I rowsort label-7216
SELECT DISTINCT col0 * + col1 + - col2 DIV + 64 col2 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7216
SELECT DISTINCT col0 * + col1 + - col2 / + 64 col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE - - 96 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT ALL - col0 FROM tab1 AS cor0 WHERE - CAST( 61 AS SIGNED ) > - - 90 + - col1
----

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL - col0 FROM tab1 AS cor0 WHERE - CAST ( 61 AS INTEGER ) > - - 90 + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7221
SELECT DISTINCT + + COUNT( * ) DIV ( 7 ) * + 35 * - COUNT( * ) * - 3 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT + + COUNT ( * ) / ( 7 ) * + 35 * - COUNT ( * ) * - 3 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + col2 * - - col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + - col0 / col0 BETWEEN + col0 / + col2 AND - - col0 * - + col1 * - + 68 + + ( + 1 ) )
----

query I rowsort
SELECT + col1 - + 70 + 3 AS col1 FROM tab0
----
-46
-66
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT COUNT( * ) AS col1 FROM tab0 WHERE - ( + + col1 ) / + col0 + + ( + 85 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7225
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE - ( + + col1 ) / + col0 + + ( + 85 ) IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7226
SELECT + 17 - col0 * + 26 - + col2 col0, col0 DIV - col2 AS col2 FROM tab0
----
-2255
-8
-2604
0
-420
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7226
SELECT + 17 - col0 * + 26 - + col2 col0, col0 / - col2 AS col2 FROM tab0
----
-2255
-8
-2604
0
-420
0

query I rowsort
SELECT ALL 44 AS col2 FROM tab0 WHERE NOT + 53 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7228
SELECT + col0 - - - 39 + col0 + + 9 + 72 + + - col0 DIV col0 + ( + 85 ) * - + 93 * + col0 + col0 FROM tab0
----
-118489
-687433
-766453

skipif mysql # not compatible
query I rowsort label-7228
SELECT + col0 - - - 39 + col0 + + 9 + 72 + + - col0 / col0 + ( + 85 ) * - + 93 * + col0 + col0 FROM tab0
----
-118489
-687433
-766453

onlyif mysql # DIV for integer division: 
query I rowsort label-7229
SELECT DISTINCT - 75 DIV 36 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT - 75 / 36 FROM tab2
----
-2

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 <> col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7231
SELECT DISTINCT * FROM tab2 WHERE NOT - 79 NOT IN ( - CAST( + col0 AS SIGNED ), - 40 )
----

skipif mysql # not compatible
query III rowsort label-7231
SELECT DISTINCT * FROM tab2 WHERE NOT - 79 NOT IN ( - CAST ( + col0 AS INTEGER ), - 40 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7232
SELECT + col0 + + 7 DIV + col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
51
NULL
86
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7232
SELECT + col0 + + 7 / + col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
51
NULL
86
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT ALL - + COUNT( * ) + 80 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL - + COUNT ( * ) + 80 FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 8 + - col0 col1 FROM tab2 AS cor0
----
-125
-61
-96

query I rowsort
SELECT DISTINCT + col2 - - - ( - 83 ) - + - 81 FROM tab2 AS cor0
----
187
204
222

query I rowsort
SELECT DISTINCT 71 + + 89 AS col1 FROM tab2 AS cor0
----
160

query I rowsort
SELECT + col1 - col1 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT DISTINCT + MAX( 15 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT + MAX ( 15 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
15

query I rowsort
SELECT col0 * - 68 AS col1 FROM tab2
----
-3128
-4352
-5100

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT + col2 DIV - col0 + - + col0 * 31 FROM tab0 AS cor0
----
-2697
-3008
-468

skipif mysql # not compatible
query I rowsort label-7241
SELECT + col2 / - col0 + - + col0 * 31 FROM tab0 AS cor0
----
-2697
-3008
-468

query I rowsort
SELECT ALL + + 99 * col0 * 44 FROM tab1 AS cor0
----
222156
370260
396396

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

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

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

query II rowsort
SELECT ALL + col1 * 50 AS col0, - col2 * - ( col1 ) * col2 + - col1 FROM tab0 AS cor0
----
1050
2079
4050
178848
50
9800

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7249
SELECT + col2 * - col0 + - CAST( - 72 AS SIGNED ) AS col2 FROM tab1
----
-4824
-4943
-6116

skipif mysql # not compatible
query I rowsort label-7249
SELECT + col2 * - col0 + - CAST ( - 72 AS INTEGER ) AS col2 FROM tab1
----
-4824
-4943
-6116

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
68
96

query I rowsort
SELECT col0 * + - 53 FROM tab1 cor0
----
-2703
-4505
-4823

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7253
SELECT COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7253
SELECT COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7254
SELECT + COUNT( * ) DIV - COUNT( col2 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7254
SELECT + COUNT ( * ) / - COUNT ( col2 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT DISTINCT + ( - COUNT( DISTINCT + 73 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT + ( - COUNT ( DISTINCT + 73 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7256
SELECT DISTINCT 14 + + col1 * + + col0 + + + col2 + + 91 + + 46 + - col0 DIV + col2 + + + col0, 18 AS col0 FROM tab0 AS cor0
----
1428
18
2067
18
444
18

skipif mysql # not compatible
query II rowsort label-7256
SELECT DISTINCT 14 + + col1 * + + col0 + + + col2 + + 91 + + 46 + - col0 / + col2 + + + col0, 18 AS col0 FROM tab0 AS cor0
----
1428
18
2067
18
444
18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 55 < NULL
----

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

query I rowsort
SELECT - col2 * + + col1 * + col2 + - 44 - - - 90 FROM tab0 cor0
----
-179063
-2234
-9935

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 79 BETWEEN + 38 AND + + ( - - col0 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT ALL MAX( - col2 ) + + + COUNT( ALL + 60 ) AS col0 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL MAX ( - col2 ) + + + COUNT ( ALL + 60 ) AS col0 FROM tab2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-7262
SELECT ALL - col1 * col0 DIV - col0 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL - col1 * col0 / - col0 AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + 85 * col2 + col1 + - - 5 AS col1 FROM tab1
----
5025
5832
8179

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL > ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7265
SELECT ALL - + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL - + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7266
SELECT DISTINCT 49 * 35 AS col2, + COUNT( * ) col2 FROM tab2 AS cor0
----
1715
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7266
SELECT DISTINCT 49 * 35 AS col2, + COUNT ( * ) col2 FROM tab2 AS cor0
----
1715
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT - + MAX( + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7267
SELECT - + MAX ( + col0 ) FROM tab0 AS cor0
----
-97

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

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL + COUNT ( * ) / - MAX ( + col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * + col1 * + 26 FROM tab1
----
34944
7670
83096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7270
SELECT ALL MAX( + ( + col2 ) ) DIV + 26 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL MAX ( + ( + col2 ) ) / + 26 FROM tab2 AS cor0
----
2

query I rowsort
SELECT DISTINCT + - col0 * + - ( - + col2 ) + - ( + - col2 ) FROM tab2 AS cor0
----
-1035
-2520
-4292

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

skipif mysql # not compatible
query I rowsort label-7272
SELECT MIN ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT col2 * + - col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

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

query II rowsort
SELECT + col1 AS col2, 81 FROM tab0 AS cor0
----
1
81
21
81
81
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7276
SELECT COUNT( * ) DIV + 55 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7276
SELECT COUNT ( * ) / + 55 AS col0 FROM tab1 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - CAST ( NULL AS INTEGER ) / col1 * - col0 - - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + col1, + ( - 54 ) + + col1 AS col2 FROM tab1 AS cor0
----
-14
-40
-47
-7
-5
-49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7279
SELECT + COUNT ( * ) col0 FROM tab2 WHERE NOT NULL > NULL
----
0

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

query I rowsort
SELECT ALL + ( - col0 ) * - - ( col1 ) + + col2 AS col2 FROM tab2
----
-2323
-4888
-4967

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT ALL - 25 DIV - col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL - 25 / - col0 FROM tab0
----
0
0
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7284
SELECT + CAST( + - 31 AS SIGNED ) * - col1 * - - col2 + + col2, + col0 + + - col2 * + col2 + + 67 AS col1 FROM tab1 cor0
----
41760
-9098
9204
-3329
99144
-4466

skipif mysql # not compatible
query II rowsort label-7284
SELECT + CAST ( + - 31 AS INTEGER ) * - col1 * - - col2 + + col2, + col0 + + - col2 * + col2 + + 67 AS col1 FROM tab1 cor0
----
41760
-9098
9204
-3329
99144
-4466

query I rowsort
SELECT DISTINCT ( 65 ) FROM tab2 cor0
----
65

query I rowsort
SELECT - 1 + + ( + col0 ) FROM tab2 AS cor0
----
45
63
74

query I rowsort
SELECT + - 76 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7288
SELECT + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT col2 AS col1, - 45 FROM tab0
----
10
-45
47
-45
99
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT + - 85 + - SUM( + + col0 ) col2 FROM tab1 AS cor0
----
-312

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7290
SELECT DISTINCT + - 85 + - SUM ( + + col0 ) col2 FROM tab1 AS cor0
----
-312

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

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL + COUNT ( ALL col0 ) - MAX ( col0 ) + - + 89 * - - 11 FROM tab0 AS cor0
----
-1073

query I rowsort
SELECT ALL + 58 - col0 FROM tab2 cor0
----
-17
-6
12

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7293
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + CAST( NULL AS DECIMAL ) / - col0 AND + col1
----

skipif mysql # not compatible
query III rowsort label-7293
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + CAST ( NULL AS REAL ) / - col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT DISTINCT - + COUNT( * ) - COUNT( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7294
SELECT DISTINCT - + COUNT ( * ) - COUNT ( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT + 67 - - + col0 * + 40 AS col1 FROM tab1 AS cor0
----
2107
3467
3707

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

query I rowsort
SELECT col2 - - col1 * + col0 * - 12 AS col1 FROM tab0 AS cor0
----
-1065
-14533
-21914

query I rowsort
SELECT 10 - - col1 FROM tab2
----
61
77
87

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT + col1 * - 59 IS NOT NULL
----

query I rowsort
SELECT - col2 * - + col0 AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT 99 * 20 * + - 29 AS col1 FROM tab0
----
-57420
-57420
-57420

onlyif mysql # DIV for integer division: 
query I rowsort label-7302
SELECT col2 DIV + + ( + + col0 ) AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7302
SELECT col2 / + + ( + + col0 ) AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - col1 * - 51 * - col1 FROM tab1 AS cor0
----
-112659
-1275
-9996

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL COUNT( DISTINCT 91 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL COUNT ( DISTINCT 91 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT DISTINCT + + 48 AS col2 FROM tab0 cor0
----
48

query I rowsort
SELECT - 70 AS col2 FROM tab0 WHERE NOT + col0 >= + + col0 + col0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT DISTINCT - MIN( ALL 24 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT - MIN ( ALL 24 ) FROM tab1
----
-24

query I rowsort
SELECT ALL 63 + - - col2 + + col0 FROM tab0
----
125
160
259

onlyif mysql # aggregate syntax: 
query II rowsort label-7311
SELECT ALL - COUNT( * ), 43 col1 FROM tab0
----
-3
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7311
SELECT ALL - COUNT ( * ), 43 col1 FROM tab0
----
-3
43

query I rowsort
SELECT DISTINCT - 97 + - + 82 AS col0 FROM tab0
----
-179

query I rowsort
SELECT ALL - col2 + col2 * - 5 FROM tab2
----
-138
-240
-348

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

query III rowsort
SELECT * FROM tab0 WHERE - col2 BETWEEN 44 * - - col0 AND - 54
----

query I rowsort
SELECT 89 * - col2 FROM tab1 AS cor0 WHERE + col0 * col1 IS NULL
----

query I rowsort
SELECT ALL - - 94 AS col2 FROM tab0 cor0
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT ALL - col1 DIV - 90 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL - col1 / - 90 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT 34 DIV - 12 AS col1 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7319
SELECT 34 / - 12 AS col1 FROM tab2
----
-2
-2
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7320
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT 40 DIV - col1 FROM tab0
----
-1
-40
0

skipif mysql # not compatible
query I rowsort label-7321
SELECT 40 / - col1 FROM tab0
----
-1
-40
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7322
SELECT CAST ( NULL AS INTEGER ) / ( + col1 / + 33 ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 41 + 59 FROM tab0
----
18
18
18

query I rowsort
SELECT + col1 + - 80 FROM tab1
----
-33
-66
-75

query I rowsort
SELECT ALL + 66 * 89 FROM tab2
----
5874
5874
5874

query I rowsort
SELECT ALL - col0 + 51 AS col1 FROM tab2
----
-13
-24
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7327
SELECT ALL CAST( NULL AS DECIMAL ) * col2 FROM tab1 WHERE NOT col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL CAST ( NULL AS REAL ) * col2 FROM tab1 WHERE NOT col2 > NULL
----

query I rowsort
SELECT - col0 * 73 AS col2 FROM tab2
----
-3358
-4672
-5475

query I rowsort
SELECT ALL ( - col2 ) * - ( - 69 ) FROM tab0
----
-3243
-6831
-690

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT DISTINCT col0 DIV ( col2 ) FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT col0 / ( col2 ) FROM tab2
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT - 44 + + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-7331
SELECT - 44 + + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
-53

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7333
SELECT 29 + col2 * - CAST( NULL AS DECIMAL ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7333
SELECT 29 + col2 * - CAST ( NULL AS REAL ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 56 col0 FROM tab0
----
2632
5544
560

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7336
SELECT * FROM tab1 WHERE NOT 9 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7336
SELECT * FROM tab1 WHERE NOT 9 IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7337
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 ) NOT BETWEEN ( CAST( NULL AS DECIMAL ) * - col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7337
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 ) NOT BETWEEN ( CAST ( NULL AS REAL ) * - col2 ) AND NULL
----

query I rowsort
SELECT col2 * + 23 AS col1 FROM tab1 AS cor0
----
1357
1564
2208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7339
SELECT ALL CAST( col0 AS SIGNED ) FROM tab0 AS cor0 WHERE 72 - col1 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 WHERE 72 - col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + - 35 * col2 FROM tab2 AS cor0
----
-1400
-2030
-805

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT DISTINCT + MAX( DISTINCT - 41 ) + COUNT( * ) / 85 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT + MAX ( DISTINCT - 41 ) + COUNT ( * ) / 85 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7342
SELECT - - col1 DIV 29 AS col0 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7342
SELECT - - col1 / 29 AS col0 FROM tab1 cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7343
SELECT ALL + CAST( + col0 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL + CAST ( + col0 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 26 BETWEEN ( NULL ) AND ( - col1 * 73 )
----

query I rowsort
SELECT DISTINCT - 59 * 57 AS col2 FROM tab1 AS cor0
----
-3363

query I rowsort
SELECT + AVG ( ALL col0 ) AS col2 FROM tab1 AS cor0 WHERE ( - 75 + + col0 ) >= NULL
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7349
SELECT col0 DIV - + ( - 70 ) AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7349
SELECT col0 / - + ( - 70 ) AS col0 FROM tab1
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7350
SELECT ALL col0 DIV - - 24 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL col0 / - - 24 FROM tab2
----
1
2
3

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE + 45 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT DISTINCT + MIN( + ( + ( col0 ) ) ) + + COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT + MIN ( + ( + ( col0 ) ) ) + + COUNT ( * ) FROM tab1
----
54

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = col0
----

query I rowsort
SELECT DISTINCT col2 * col1 * + 87 AS col0 FROM tab1
----
116928
25665
278052

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

query I rowsort
SELECT + col0 * + 13 + col0 AS col2 FROM tab1
----
1190
1274
714

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7358
SELECT * FROM tab1 AS cor0 WHERE NULL < ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7358
SELECT * FROM tab1 AS cor0 WHERE NULL < ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT DISTINCT + + COUNT( * ) + - 65 AS col0 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT + + COUNT ( * ) + - 65 AS col0 FROM tab1 AS cor0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7360
SELECT + col0 + - + 23 + + 38 DIV col2 AS col2 FROM tab2 AS cor0
----
24
41
52

skipif mysql # not compatible
query I rowsort label-7360
SELECT + col0 + - + 23 + + 38 / col2 AS col2 FROM tab2 AS cor0
----
24
41
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT DISTINCT + MAX( 44 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
44

skipif mysql # not compatible
query I rowsort label-7362
SELECT DISTINCT + MAX ( 44 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( - 76 ) <> + CAST( ( - ( - 90 ) ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( - 76 ) <> + CAST ( ( - ( - 90 ) ) AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT ALL 73 DIV col1 AS col0 FROM tab1
----
1
14
5

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL 73 / col1 AS col0 FROM tab1
----
1
14
5

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + 29 + + col0 - 80 * col1 FROM tab1 cor0
----
14
-1040
47
-3640
5
-286

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <> - + 54 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL - SUM( ALL 69 ) FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL - SUM ( ALL 69 ) FROM tab1 AS cor0
----
-207

query II rowsort
SELECT ALL 6, - col2 AS col0 FROM tab0 AS cor0
----
6
-10
6
-47
6
-99

query I rowsort
SELECT ALL ( col2 ) AS col2 FROM tab1 WHERE NOT + - 68 IN ( - col2 )
----
59
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7373
SELECT DISTINCT ( - col2 ) DIV - + col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT ( - col2 ) / - + col0 FROM tab1
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - 34 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( - col1 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL 74 * - col2 FROM tab0 WHERE NOT + CAST ( + col0 AS INTEGER ) * col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col2 col2 FROM tab1 AS cor0 WHERE NOT ( - col0 + + + ( 66 ) * - 47 ) IS NOT NULL
----

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

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

query I rowsort
SELECT - ( 46 ) AS col2 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT + ( + col2 ) + ( + 81 ) AS col2 FROM tab2 AS cor0
----
104
121
139

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 42 * 57 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT DISTINCT - + 56 + - COUNT( * ) * - 12 FROM tab1 AS cor0 WHERE NOT + col2 * col2 * - 9 IS NOT NULL
----
-56

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT - + 56 + - COUNT ( * ) * - 12 FROM tab1 AS cor0 WHERE NOT + col2 * col2 * - 9 IS NOT NULL
----
-56

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN col0 AND - 7
----

query I rowsort
SELECT ALL - 41 * + - 74 FROM tab0 AS cor0
----
3034
3034
3034

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

query I rowsort
SELECT 99 * col1 + + + 28 * + 94 * - col1 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT DISTINCT + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 WHERE NOT col0 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 WHERE NOT col0 IS NULL
----
-9

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7393
SELECT ALL COUNT( * ) FROM tab1 WHERE ( + 26 * + col2 / - 73 ) IN ( col1 * CAST( NULL AS SIGNED ) - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( + 26 * + col2 / - 73 ) IN ( col1 * CAST ( NULL AS INTEGER ) - col2 )
----
0

query I rowsort
SELECT 56 + + 90 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT 47 AS col0 FROM tab1 AS cor0 WHERE 60 < NULL
----

query I rowsort
SELECT DISTINCT col0 + ( col0 ) + + col1 * + col2 FROM tab0 AS cor0
----
293
3837
384

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT - 59 - + COUNT( * ) * + 99 * + MIN( DISTINCT + 40 ) FROM tab1 cor0
----
-11939

skipif mysql # not compatible
query I rowsort label-7397
SELECT - 59 - + COUNT ( * ) * + 99 * + MIN ( DISTINCT + 40 ) FROM tab1 cor0
----
-11939

query I rowsort
SELECT - col1 * + + col1 - 90 - - 29 * + col1 AS col2 FROM tab1
----
-936
120
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7399
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM ( tab2 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM ( tab2 cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7400
SELECT ALL + CAST( - 42 AS SIGNED ) + 60 FROM tab1
----
18
18
18

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL + CAST ( - 42 AS INTEGER ) + 60 FROM tab1
----
18
18
18

query I rowsort
SELECT ALL + 69 AS col2 FROM tab0
----
69
69
69

query I rowsort
SELECT - - col1 * col1 + + ( - - 67 ) FROM tab0 AS cor0
----
508
6628
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT DISTINCT COUNT( + 82 ) + 78 FROM tab0 cor0 WHERE ( NOT NULL BETWEEN col1 AND ( + col0 * - + 53 ) )
----
78

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT COUNT ( + 82 ) + 78 FROM tab0 cor0 WHERE ( NOT NULL BETWEEN col1 AND ( + col0 * - + 53 ) )
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col2 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN - + 77 / + col1 + + - 71 AND ( 56 * 94 - + col2 )
----

query I rowsort
SELECT ALL + ( + col2 ) + 19 AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( ( 40 ) )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7407
SELECT ALL + ( + + 58 ) DIV - COUNT( * ) FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL + ( + + 58 ) / - COUNT ( * ) FROM tab1
----
-19

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab2 WHERE NOT ( + - 14 ) IS NULL
----
-51
-67
-77

query I rowsort
SELECT + 41 * + col2 * - ( - 26 ) * + col0 FROM tab0
----
10236798
751530
927420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7410
SELECT DISTINCT + ( - ( - - col0 ) ) AS col1, CAST( - 62 AS SIGNED ) FROM tab1
----
-51
-62
-85
-62
-91
-62

skipif mysql # not compatible
query II rowsort label-7410
SELECT DISTINCT + ( - ( - - col0 ) ) AS col1, CAST ( - 62 AS INTEGER ) FROM tab1
----
-51
-62
-85
-62
-91
-62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7412
SELECT + MIN( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT - 20 * - MIN( DISTINCT + 68 ) + MAX( ALL - - 4 ) + + MAX( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
1318

skipif mysql # not compatible
query I rowsort label-7413
SELECT - 20 * - MIN ( DISTINCT + 68 ) + MAX ( ALL - - 4 ) + + MAX ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
1318

onlyif mysql # aggregate syntax: 
query II rowsort label-7414
SELECT DISTINCT - ( + + COUNT( * ) ), AVG ( ALL 13 ) AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7414
SELECT DISTINCT - ( + + COUNT ( * ) ), AVG ( ALL 13 ) AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----
0
NULL

query I rowsort
SELECT 20 * - col2 + + col0 AS col0 FROM tab2
----
-1085
-414
-736

query I rowsort
SELECT ( - ( + col1 ) ) FROM tab2
----
-51
-67
-77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7418
SELECT DISTINCT MAX( DISTINCT 27 ) / - MIN( DISTINCT col1 ) AS col1 FROM tab0 AS cor0 WHERE 33 + + - CAST( NULL AS SIGNED ) > - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT MAX ( DISTINCT 27 ) / - MIN ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0 WHERE 33 + + - CAST ( NULL AS INTEGER ) > - col2
----
NULL

query I rowsort
SELECT ALL 2 + - + col1 FROM tab2 cor0
----
-49
-65
-75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7420
SELECT ALL MAX ( DISTINCT - 8 ) col0 FROM tab2 AS cor0
----
-8

query II rowsort
SELECT DISTINCT col1, col2 * - 20 AS col0 FROM tab2
----
51
-460
67
-1160
77
-800

query I rowsort
SELECT - col1 + - - 12 AS col0 FROM tab1
----
-2
-35
7

query I rowsort
SELECT ALL col1 + 98 FROM tab2
----
149
165
175

query I rowsort
SELECT + 19 + - + 81 FROM tab1
----
-62
-62
-62

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

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

query I rowsort
SELECT DISTINCT 47 - - col1 AS col0 FROM tab2 AS cor0
----
114
124
98

query I rowsort
SELECT ALL ( - - col1 ) FROM tab0 cor0 WHERE NULL IN ( + 96 / + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + ( + col2 ) col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT - - MAX( ALL 60 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-7430
SELECT - - MAX ( ALL 60 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
180

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7436
SELECT ALL + col0 DIV + col2 col2, col2 AS col1 FROM tab0
----
0
47
0
99
8
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7436
SELECT ALL + col0 / + col2 col2, col2 AS col1 FROM tab0
----
0
47
0
99
8
10

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

query I rowsort
SELECT DISTINCT - 5 FROM tab1 WHERE NOT col2 * col2 IS NULL
----
-5

query I rowsort
SELECT DISTINCT col0 * 91 + - ( + - 84 ) + + 10 + - 91 + - col2 + 21 * - col2 + - 78 AS col2 FROM tab2
----
3605
4869
5474

query I rowsort
SELECT + col1 * - 8 * + col0 AS col0 FROM tab1
----
-3400
-34216
-5712

query II rowsort
SELECT 13 AS col2, - col1 * - 14 + + - ( + - col2 ) AS col1 FROM tab2
----
13
1118
13
737
13
996

onlyif mysql # aggregate syntax: 
query II rowsort label-7442
SELECT + 56 + MIN( DISTINCT - col2 ) AS col0, 91 FROM tab2
----
-2
91

skipif mysql # not compatible
query II rowsort label-7442
SELECT + 56 + MIN ( DISTINCT - col2 ) AS col0, 91 FROM tab2
----
-2
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 * + col0 + - - ( - col0 ) col2 FROM tab2
----
4508
6272
7350

query I rowsort
SELECT ALL + + AVG ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE col2 > NULL
----
NULL

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

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

query I rowsort
SELECT ALL col2 - - + col0 + col1 FROM tab2 AS cor0
----
120
181
200

query I rowsort
SELECT col2 + + 85 * - - col2 FROM tab2
----
1978
3440
4988

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

skipif mysql # not compatible
query I rowsort label-7448
SELECT + col0 / 69 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7449
SELECT DISTINCT - CAST( - 45 AS SIGNED ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT - CAST ( - 45 AS INTEGER ) AS col2 FROM tab0
----
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN + 47 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 20 AS col1, col1 + + 22 + - - col0 FROM tab1 AS cor0 WHERE NOT 27 IS NULL AND NOT NULL >= 5
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT DISTINCT - - SUM( + + col1 ) AS col0, - COUNT( DISTINCT + col1 ) col1 FROM tab2 AS cor0
----
195
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7452
SELECT DISTINCT - - SUM ( + + col1 ) AS col0, - COUNT ( DISTINCT + col1 ) col1 FROM tab2 AS cor0
----
195
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7453
SELECT MIN( CAST( + col2 AS SIGNED ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7453
SELECT MIN ( CAST ( + col2 AS INTEGER ) ) FROM tab2
----
23

query I rowsort
SELECT 70 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT DISTINCT col2 * + 27 FROM tab0
----
1269
2673
270

query I rowsort
SELECT col0 * - 50 AS col2 FROM tab1 AS cor0
----
-2550
-4250
-4550

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7460
SELECT + CAST( - + col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7460
SELECT + CAST ( - + col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT ALL col2 * 97 DIV + col0 FROM tab2
----
48
60
75

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL col2 * 97 / + col0 FROM tab2
----
48
60
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7462
SELECT ALL 68 DIV col0 * + col0 FROM tab1
----
0
0
51

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL 68 / col0 * + col0 FROM tab1
----
0
0
51

query I rowsort
SELECT ALL 95 + + + 86 * - col1 * col0 * - 89 FROM tab0
----
13983953
742533
9299705

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + - 86 col0 FROM tab0
----
-39
-76
13

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - - col0 NOT BETWEEN col2 + + - 17 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7470
SELECT + - 14 + + col0 DIV - + col1 FROM tab1 AS cor0
----
-15
-17
-31

skipif mysql # not compatible
query I rowsort label-7470
SELECT + - 14 + + col0 / - + col1 FROM tab1 AS cor0
----
-15
-17
-31

query I rowsort
SELECT + 91 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # DIV for integer division: 
query I rowsort label-7472
SELECT DISTINCT + + 21 DIV col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT + + 21 / col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7474
SELECT - - CAST( - 76 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-7474
SELECT - - CAST ( - 76 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-76
-76
-76

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

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

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE + 97 = + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7477
SELECT ALL col1 - + col0 * + col0 DIV col0 FROM tab2 cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL col1 - + col0 * + col0 / col0 FROM tab2 cor0
----
-8
13
5

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

query I rowsort
SELECT ALL - ( 37 ) AS col2 FROM tab1
----
-37
-37
-37

query II rowsort
SELECT DISTINCT + col2, - col1 + + col2 FROM tab0
----
10
-11
47
-34
99
98

query I rowsort
SELECT col1 + - + col0 AS col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT - col1 <= NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 + + col0 col2 FROM tab0
----
-57
15
25

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

query I rowsort
SELECT - 64 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT MAX( ALL + - 80 ) AS col0 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-7488
SELECT MAX ( ALL + - 80 ) AS col0 FROM tab2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT - 5 * col1 DIV + col2 AS col0 FROM tab0
----
-10
-8
0

skipif mysql # not compatible
query I rowsort label-7489
SELECT - 5 * col1 / + col2 AS col0 FROM tab0
----
-10
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT 86 * - 79 * COUNT( * ) AS col1 FROM tab2
----
-20382

skipif mysql # not compatible
query I rowsort label-7490
SELECT 86 * - 79 * COUNT ( * ) AS col1 FROM tab2
----
-20382

query I rowsort
SELECT - ( + 2 ) * - col2 AS col0 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7492
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST( - 15 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7492
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( - 15 AS INTEGER )
----

query I rowsort
SELECT ALL 4 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 + + + 14 AND - 15
----

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

query I rowsort
SELECT ALL 15 * 90 * - 45 FROM tab1 AS cor0
----
-60750
-60750
-60750

onlyif mysql # aggregate syntax: 
query II rowsort label-7496
SELECT - 78 + COUNT( 36 ) AS col1, 86 FROM tab2
----
-75
86

skipif mysql # not compatible
query II rowsort label-7496
SELECT - 78 + COUNT ( 36 ) AS col1, 86 FROM tab2
----
-75
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7497
SELECT DISTINCT + col0 + 75 DIV + 77 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT + col0 + 75 / + 77 FROM tab2
----
46
64
75

query I rowsort
SELECT col0 + - + col1 * + col0 * + 9 FROM tab1
----
-3740
-38402
-6375

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL NOT IN ( - 21 * - 79 )
----

query I rowsort
SELECT ALL + col0 + + - 14 FROM tab1
----
37
71
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col1 / + + 58 * col2 AND - - col1
----
0

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col1 / + + 58 * col2 AND - - col1
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= 55
----

query I rowsort
SELECT ALL + + 45 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL + 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ALL - COUNT( * ) AS col2 FROM tab0, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL - COUNT ( * ) AS col2 FROM tab0, tab2 cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7506
SELECT 67 DIV 9 + SUM( - ( col0 ) ) AS col2 FROM tab2
----
-178

skipif mysql # not compatible
query I rowsort label-7506
SELECT 67 / 9 + SUM ( - ( col0 ) ) AS col2 FROM tab2
----
-178

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

query I rowsort
SELECT ALL - 47 - col0 + - 94 AS col1 FROM tab1 AS cor0
----
-192
-226
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT MIN( - + 41 ) - + SUM( ALL - - 29 ) AS col1 FROM tab0 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT MIN ( - + 41 ) - + SUM ( ALL - - 29 ) AS col1 FROM tab0 AS cor0
----
-128

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 89 > 13
----

query I rowsort
SELECT ALL - 58 + + 38 FROM tab1 cor0 WHERE 16 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7512
SELECT * FROM tab2 WHERE + col2 IN ( col2 - - col1, + col2 - + col2, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7512
SELECT * FROM tab2 WHERE + col2 IN ( col2 - - col1, + col2 - + col2, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col1 * col1 * + + 43 FROM tab0
----
18963
282123
43

query I rowsort
SELECT ALL - col0 - - - 50 + - 32 AS col1 FROM tab0
----
-169
-179
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7515
SELECT + 31 * + 1 DIV + + 52 * ( - + MIN( DISTINCT - 66 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7515
SELECT + 31 * + 1 / + + 52 * ( - + MIN ( DISTINCT - 66 ) ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7516
SELECT col0 DIV - 92 * - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7516
SELECT col0 / - 92 * - col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 49 * + 49 FROM tab0
----
2401
2401
2401

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col0 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 24 AS col0 FROM tab2 WHERE + + col0 * col2 - - - 99 IS NOT NULL
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT ALL - MAX( 3 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL - MAX ( 3 ) FROM tab2 cor0
----
-3

query II rowsort
SELECT DISTINCT - - col1 * - col1 AS col2, col1 AS col0 FROM tab1 AS cor0
----
-196
14
-2209
47
-25
5

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE ( + - col0 + + col0 + - col0 * + col2 IS NOT NULL )
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT + SUM( DISTINCT + ( 97 ) ) FROM tab0 AS cor0 WHERE NOT 23 BETWEEN NULL AND + - 35
----
97

skipif mysql # not compatible
query I rowsort label-7523
SELECT + SUM ( DISTINCT + ( 97 ) ) FROM tab0 AS cor0 WHERE NOT 23 BETWEEN NULL AND + - 35
----
97

query II rowsort
SELECT col1 AS col0, col1 * 99 AS col0 FROM tab0
----
1
99
21
2079
81
8019

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

query I rowsort
SELECT + 12 * 88 * - 55 FROM tab2 AS cor0
----
-58080
-58080
-58080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 * ( + col1 ) col2 FROM tab0 AS cor0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT DISTINCT - - MAX( ALL - + col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT - - MAX ( ALL - + col1 ) AS col2 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL - - col1 * + + col1 * - 86 FROM tab1 AS cor0
----
-16856
-189974
-2150

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT COUNT( * ) * - SUM( ALL + 37 ) FROM tab1 AS cor0
----
-333

skipif mysql # not compatible
query I rowsort label-7530
SELECT COUNT ( * ) * - SUM ( ALL + 37 ) FROM tab1 AS cor0
----
-333

query I rowsort
SELECT DISTINCT - col1 * + + col0 + + - 62 AS col0 FROM tab1 AS cor0
----
-4339
-487
-776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col1 * - col1 col1 FROM tab2 AS cor0
----
237160
260362
59823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7533
SELECT DISTINCT - 24 * - - CAST( + 81 AS SIGNED ) FROM tab0 AS cor0
----
-1944

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT - 24 * - - CAST ( + 81 AS INTEGER ) FROM tab0 AS cor0
----
-1944

query I rowsort
SELECT DISTINCT col2 * + + col1 * - 64 * - col0 FROM tab1 AS cor0
----
1604800
18613504
4386816

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

query I rowsort
SELECT 61 * - col2 * + + 20 AS col1 FROM tab1 AS cor0
----
-117120
-71980
-82960

onlyif mysql # DIV for integer division: 
query II rowsort label-7537
SELECT ALL col1 AS col0, col0 DIV + - col1 col1 FROM tab0 AS cor0
----
1
-97
21
-4
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7537
SELECT ALL col1 AS col0, col0 / + - col1 col1 FROM tab0 AS cor0
----
1
-97
21
-4
81
0

query II rowsort
SELECT ALL - col1 AS col1, - 67 * - + col0 * - 6 FROM tab1 AS cor0
----
-14
-20502
-47
-36582
-5
-34170

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col0 * - + 7 IS NULL
----
59
68
96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7540
SELECT ALL + MIN ( DISTINCT + CAST ( NULL AS REAL ) ) col0 FROM tab1
----
NULL

query I rowsort
SELECT - col0 + - col1 * - - 49 AS col0 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7542
SELECT DISTINCT COUNT( * ) * MIN( + ( + col1 ) ) col0, 62 AS col2 FROM tab2 AS cor0
----
153
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7542
SELECT DISTINCT COUNT ( * ) * MIN ( + ( + col1 ) ) col0, 62 AS col2 FROM tab2 AS cor0
----
153
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL + - COUNT( ALL + col1 ) FROM tab2 cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL + - COUNT ( ALL + col1 ) FROM tab2 cor0 WHERE + col2 IS NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT ALL + COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 / col0 * - col1 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL + COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 / col0 * - col1 * col0 IS NOT NULL
----
0

query I rowsort
SELECT col2 * + 71 + - 37 FROM tab1 WHERE ( NULL ) IS NULL
----
4152
4791
6779

query I rowsort
SELECT ALL col2 + - col0 * + 41 - - col1 * + ( + - col0 ) - - - col2 AS col0 FROM tab1
----
-2805
-3910
-8008

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

query II rowsort
SELECT ALL + 13, col1 FROM tab1
----
13
14
13
47
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT SUM( ALL + ( - 74 ) ) AS col0 FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-7550
SELECT SUM ( ALL + ( - 74 ) ) AS col0 FROM tab1
----
-222

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT - - 76 IS NULL WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT - 13 * + + 81 - ( - COUNT( * ) ) FROM tab1 AS cor0
----
-1050

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT - 13 * + + 81 - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-1050

query I rowsort
SELECT + col1 - - - 3 FROM tab2 AS cor0
----
48
64
74

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

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

query I rowsort
SELECT - col2 - + - 64 FROM tab2 AS cor0
----
24
41
6

query II rowsort
SELECT col0 AS col1, + col0 + - - col0 FROM tab0 AS cor0
----
15
30
87
174
97
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL + MAX( - - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL + MAX ( - - col2 ) AS col1 FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * + 87 col2 FROM tab2 WHERE NOT - col0 + 28 + - 40 * + ( + - col1 ) IS NULL
----
6351
6351
6351

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

skipif mysql # not compatible
query III rowsort label-7560
SELECT ALL * FROM tab0 WHERE NOT + col0 + + CAST ( NULL AS INTEGER ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * col2 AS col1, col2 col0 FROM tab0
----
-210
10
-3807
47
-99
99

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

query I rowsort
SELECT 33 * + 22 FROM tab2
----
726
726
726

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7564
SELECT ALL * FROM tab0 WHERE NOT + ( col2 ) * - + 96 - - col2 * - col1 <= ( - + CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7564
SELECT ALL * FROM tab0 WHERE NOT + ( col2 ) * - + 96 - - col2 * - col1 <= ( - + CAST ( + col1 AS INTEGER ) )
----

query II rowsort
SELECT col1, 48 - + col2 AS col2 FROM tab1
----
14
-48
47
-20
5
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT - MIN( DISTINCT - col2 ) * - 69 FROM tab1
----
-6624

skipif mysql # not compatible
query I rowsort label-7566
SELECT - MIN ( DISTINCT - col2 ) * - 69 FROM tab1
----
-6624

query I rowsort
SELECT + + 75 * + - col2 FROM tab2 cor0
----
-1725
-3000
-4350

query I rowsort
SELECT DISTINCT + - 78 * + 3 AS col2 FROM tab2 AS cor0
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-7569
SELECT ALL - 5 DIV - + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - 5 / - + col0 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 ) < - 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT ALL + - COUNT( ALL + 30 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL + - COUNT ( ALL + 30 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 63 NOT BETWEEN NULL AND - + 78 * col0
----

query I rowsort
SELECT ALL + ( + 41 ) + col0 FROM tab0 AS cor0
----
128
138
56

query I rowsort
SELECT ALL - - 91 + - col2 FROM tab0 AS cor0
----
-8
44
81

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

query I rowsort
SELECT 31 + - + 78 FROM tab1 cor0 WHERE + col0 * - - col1 IS NOT NULL
----
-47
-47
-47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 77 ) * + - col2 + + 51 col0 FROM tab1 cor0
----
-4492
-5185
-7341

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT col2 DIV + 14 + + 71 + - col0 FROM tab0
----
-16
-19
59

skipif mysql # not compatible
query I rowsort label-7581
SELECT col2 / + 14 + + 71 + - col0 FROM tab0
----
-16
-19
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7582
SELECT 24 + - col1 * col0 DIV col0 + - - 17 FROM tab2
----
-10
-26
-36

skipif mysql # not compatible
query I rowsort label-7582
SELECT 24 + - col1 * col0 / col0 + - - 17 FROM tab2
----
-10
-26
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7583
SELECT * FROM tab1 WHERE + - col2 + + col0 * CAST( NULL AS DECIMAL ) NOT BETWEEN 35 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7583
SELECT * FROM tab1 WHERE + - col2 + + col0 * CAST ( NULL AS REAL ) NOT BETWEEN 35 AND ( NULL )
----

query II rowsort
SELECT ALL col1, col0 * 2 AS col0 FROM tab2
----
51
92
67
150
77
128

query I rowsort
SELECT DISTINCT col1 + - col2 - 21 + 16 FROM tab0
----
-103
29
6

query I rowsort
SELECT + col0 FROM tab1 WHERE + col2 + + 64 + + - 20 + - + col2 NOT BETWEEN 42 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT ALL - - col2 DIV - 78 + + 49 + 95 AS col2 FROM tab1 cor0
----
143
144
144

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - - col2 / - 78 + + 49 + 95 AS col2 FROM tab1 cor0
----
143
144
144

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

query I rowsort
SELECT 77 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * 26 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 - - 69 + + + col2 NOT BETWEEN + 45 AND col0
----

query I rowsort
SELECT - - 35 AS col1 FROM tab0 cor0
----
35
35
35

query I rowsort
SELECT ALL - 62 * - 75 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7594
SELECT - - ( CAST( - - 19 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-7594
SELECT - - ( CAST ( - - 19 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
19
19
19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7596
SELECT ALL * FROM tab2 WHERE + + CAST( NULL AS SIGNED ) * ( + + 92 ) - 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7596
SELECT ALL * FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) * ( + + 92 ) - 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL col1 * col2 * col1 AS col1 FROM tab1
----
1475
150212
18816

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL MAX( - + 13 ) * 29 AS col2 FROM tab2
----
-377

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL MAX ( - + 13 ) * 29 AS col2 FROM tab2
----
-377

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT DISTINCT - CAST( - 84 AS SIGNED ) col0 FROM tab0
----
84

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN 98 AND NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT DISTINCT + SUM( + - col2 ) + + COUNT( * ) FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT + SUM ( + - col2 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-220

onlyif mysql # DIV for integer division: 
query I rowsort label-7607
SELECT + + col0 * 86 DIV + col1 AS col0 FROM tab2 AS cor0
----
71
77
96

skipif mysql # not compatible
query I rowsort label-7607
SELECT + + col0 * 86 / + col1 AS col0 FROM tab2 AS cor0
----
71
77
96

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 4 col0 FROM tab0
----
103
14
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7612
SELECT DISTINCT + MAX( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL + col0 + col0 - + col2 * + col2 * col0 FROM tab2
----
-102272
-24242
-252150

query I rowsort
SELECT 34 + - col0 AS col0 FROM tab0
----
-53
-63
19

query II rowsort
SELECT + col0 + - col2, + ( col2 ) FROM tab2
----
17
58
23
23
24
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7616
SELECT DISTINCT + - 64 + - 55 DIV - col1 FROM tab0 AS cor0
----
-62
-64
-9

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT + - 64 + - 55 / - col1 FROM tab0 AS cor0
----
-62
-64
-9

query I rowsort
SELECT ( - col0 ) + - col1 * - + col0 * 14 FROM tab0 AS cor0
----
1261
16995
25491

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

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

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

skipif mysql # not compatible
query I rowsort label-7619
SELECT - SUM ( + + ( col2 ) ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT DISTINCT + + SUM( col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-7620
SELECT DISTINCT + + SUM ( col1 ) FROM tab2 cor0
----
195

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 27 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT ( - 70 ) + col1 FROM tab0
----
-49
-69
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL 68 * + + COUNT( * ) FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL 68 * + + COUNT ( * ) FROM tab2
----
204

query II rowsort
SELECT DISTINCT + col2 AS col1, 49 FROM tab1
----
59
49
68
49
96
49

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT col1, col1 + col1 * - ( - col2 ) AS col0 FROM tab2 AS cor0
----
51
1224
67
3953
77
3157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7628
SELECT DISTINCT + - MAX( DISTINCT - col2 ) * + COUNT( * ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN col0 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT + - MAX ( DISTINCT - col2 ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN col0 AND col1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 62 = - + 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > + 8
----

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

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

query I rowsort
SELECT + 48 FROM tab0 WHERE NOT - 49 NOT BETWEEN - 75 * + + 31 - - 52 AND - 21
----
48
48
48

query I rowsort
SELECT DISTINCT - 27 * + col2 AS col0 FROM tab1
----
-1593
-1836
-2592

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7634
SELECT ALL + 94 * CAST( NULL AS SIGNED ), + col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-7634
SELECT ALL + 94 * CAST ( NULL AS INTEGER ), + col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + 22, - col1 + - col0 col1 FROM tab0
----
1782
-96
22
-98
462
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT COUNT( * ) * - 73 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-7636
SELECT COUNT ( * ) * - 73 FROM tab2
----
-219

onlyif mysql # aggregate syntax: 
query II rowsort label-7637
SELECT DISTINCT + 0 * + 40, + COUNT( * ) AS col1 FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-7637
SELECT DISTINCT + 0 * + 40, + COUNT ( * ) AS col1 FROM tab0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT DISTINCT + - COUNT( * ) * + 7 AS col2 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT + - COUNT ( * ) * + 7 AS col2 FROM tab1 AS cor0
----
-21

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

query I rowsort
SELECT - - col0 + 5 AS col0 FROM tab1 AS cor0
----
56
90
96

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7642
SELECT + 97 + col0 DIV col2 * - col2 + - ( - CAST( col2 AS SIGNED ) ) + + col1 AS col2 FROM tab2
----
125
164
174

skipif mysql # not compatible
query I rowsort label-7642
SELECT + 97 + col0 / col2 * - col2 + - ( - CAST ( col2 AS INTEGER ) ) + + col1 AS col2 FROM tab2
----
125
164
174

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 * - col0 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7644
SELECT ALL - COUNT( * ) col0 FROM tab1 WHERE NOT ( NOT NULL NOT IN ( - col0, col2 + + ( + + CAST( NULL AS SIGNED ) ) ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7644
SELECT ALL - COUNT ( * ) col0 FROM tab1 WHERE NOT ( NOT NULL NOT IN ( - col0, col2 + + ( + + CAST ( NULL AS INTEGER ) ) ) )
----
0

query I rowsort
SELECT ALL col2 * 38 AS col2 FROM tab1
----
2242
2584
3648

query II rowsort
SELECT + col1, + col0 * + 2 AS col0 FROM tab1
----
14
102
47
182
5
170

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT + + MIN( DISTINCT - + col1 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT + + MIN ( DISTINCT - + col1 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-44

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

query I rowsort
SELECT DISTINCT col1 * + col2 + 41 FROM tab0 AS cor0
----
140
251
3848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7650
SELECT DISTINCT - 93 * col1 * - + CAST( NULL AS SIGNED ) + + col2 + - col2 col0 FROM tab2 AS cor0 WHERE - col2 NOT IN ( - - col2, + 84, + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7650
SELECT DISTINCT - 93 * col1 * - + CAST ( NULL AS INTEGER ) + + col2 + - col2 col0 FROM tab2 AS cor0 WHERE - col2 NOT IN ( - - col2, + 84, + col0 )
----
NULL

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

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

query I rowsort
SELECT ALL + 34 - - col2 AS col0 FROM tab1 AS cor0
----
102
130
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7653
SELECT ALL - - SUM( ALL + col1 ), 55 AS col2 FROM tab1 AS cor0
----
66
55

skipif mysql # not compatible
query II rowsort label-7653
SELECT ALL - - SUM ( ALL + col1 ), 55 AS col2 FROM tab1 AS cor0
----
66
55

query I rowsort
SELECT DISTINCT + col0 * - 9 + + col0 FROM tab2 AS cor0
----
-368
-512
-600

query I rowsort
SELECT ALL 15 * + - col1 - - + col0 FROM tab1 AS cor0
----
-159
-614
10

query II rowsort
SELECT col0, + col0 + + col1 AS col0 FROM tab0
----
15
96
87
108
97
98

query II rowsort
SELECT ALL - 87 AS col2, 39 FROM tab1
----
-87
39
-87
39
-87
39

query I rowsort
SELECT ALL 69 * 2 FROM tab2
----
138
138
138

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 < - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7660
SELECT 39 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7660
SELECT 39 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 52 + + + col1 FROM tab1 AS cor0
----
57
66
99

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + - col0 - - + 38 AS col1 FROM tab2 cor0
----
-26
-37
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7668
SELECT ALL col1 * + - CAST( - - 34 AS SIGNED ) AS col1 FROM tab0
----
-2754
-34
-714

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL col1 * + - CAST ( - - 34 AS INTEGER ) AS col1 FROM tab0
----
-2754
-34
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT + 8 + + + COUNT( * ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-7669
SELECT + 8 + + + COUNT ( * ) FROM tab2
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 + - + col1 col1 FROM tab0
----
6
66
86

query I rowsort
SELECT - col1 + + 63 FROM tab0
----
-18
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT ( + ( - COUNT( * ) ) ) + + + 73 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-7672
SELECT ( + ( - COUNT ( * ) ) ) + + + 73 FROM tab2
----
70

query I rowsort
SELECT + 84 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT col2 + col2 + col2 AS col1 FROM tab2 WHERE NOT + 31 <> - - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT DISTINCT MIN( - 13 ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT MIN ( - 13 ) FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT DISTINCT + MAX( DISTINCT + col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT + MAX ( DISTINCT + col2 ) AS col1 FROM tab0
----
99

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

query II rowsort
SELECT col0 AS col0, 1 FROM tab0 AS cor0
----
15
1
87
1
97
1

query I rowsort
SELECT ALL ( - - 41 ) FROM tab2 AS cor0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, 74 AS col1 FROM tab2 cor0
----
23
74
40
74
58
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE NOT - 33 * + 0 BETWEEN - col0 / + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT DISTINCT COUNT( * ) + - 77 FROM tab2, tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT COUNT ( * ) + - 77 FROM tab2, tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT - 94 + + - COUNT( * ) * SUM( ALL col1 ) col0 FROM tab1
----
-292

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7684
SELECT - 94 + + - COUNT ( * ) * SUM ( ALL col1 ) col0 FROM tab1
----
-292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7685
SELECT ALL + CAST( + MIN( col0 ) AS SIGNED ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL + CAST ( + MIN ( col0 ) AS INTEGER ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7686
SELECT + ( - + CAST( - 62 AS SIGNED ) ) FROM tab1
----
62
62
62

skipif mysql # not compatible
query I rowsort label-7686
SELECT + ( - + CAST ( - 62 AS INTEGER ) ) FROM tab1
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL - COUNT( * ) * + 49 AS col0 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - COUNT ( * ) * + 49 AS col0 FROM tab1 AS cor0
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT + - 63 * 57 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT + - 63 * 57 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT 9 + - 73 + + + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-7689
SELECT 9 + - 73 + + + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
-55

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

query II rowsort
SELECT 67 * - col1 AS col1, 96 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1407
96
-5427
96
-67
96

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

query I rowsort
SELECT ALL + col2 * col0 + - - 69 + + col0 FROM tab0 AS cor0
----
1026
789
9769

query I rowsort
SELECT DISTINCT 60 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - 41 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7695
SELECT - - 0 col2, + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col0 * - col1 IS NOT NULL
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7695
SELECT - - 0 col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col0 * - col1 IS NOT NULL
----
0
3

query I rowsort
SELECT + + col0 * - col2 + + col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

query I rowsort
SELECT ALL + ( - - col1 ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - ( + 96 ) AS col0 FROM tab1
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT MAX( ALL - 27 ) * + COUNT( + - col2 ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-7699
SELECT MAX ( ALL - 27 ) * + COUNT ( + - col2 ) FROM tab1
----
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT - 85 * col1 AS col2 FROM tab0
----
-1785
-6885
-85

query II rowsort
SELECT DISTINCT col2 + + + col1 AS col1, - ( ( - + 46 ) ) FROM tab2
----
117
46
125
46
74
46

query I rowsort
SELECT ALL + col0 * - + 19 FROM tab2
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT + col1 IN ( - ( - col2 ) * col0 + + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT + col1 IN ( - ( - col2 ) * col0 + + col1 )
----
-3

query I rowsort
SELECT ALL col2 * + + 78 FROM tab0
----
3666
7722
780

query II rowsort
SELECT + col2, + 19 + 61 + + col0 * col1 + + - col2 AS col1 FROM tab2 cor0 WHERE NOT NULL <= col2 * col1 + - - col0
----

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

query I rowsort
SELECT 20 * - col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1020
-1700
-1820

query I rowsort
SELECT DISTINCT - + 91 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-91

query II rowsort
SELECT ( + 9 ) * + col0, 41 AS col0 FROM tab0
----
135
41
783
41
873
41

query I rowsort
SELECT ALL - 61 * + 8 AS col1 FROM tab0
----
-488
-488
-488

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col0 - - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT + ( + ( + SUM( ALL 12 ) ) ) AS col0 FROM tab0 cor0 WHERE NOT + col2 * - col0 BETWEEN - + 49 + - - col0 AND + col1
----
36

skipif mysql # not compatible
query I rowsort label-7713
SELECT + ( + ( + SUM ( ALL 12 ) ) ) AS col0 FROM tab0 cor0 WHERE NOT + col2 * - col0 BETWEEN - + 49 + - - col0 AND + col1
----
36

query I rowsort
SELECT ALL - col1 * - col1 * + + 22 AS col2 FROM tab0 AS cor0
----
144342
22
9702

onlyif mysql # DIV for integer division: 
query I rowsort label-7715
SELECT - 67 DIV ( - 66 ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7715
SELECT - 67 / ( - 66 ) FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 66 + 20 + 75 * + col0 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL + MAX( ALL - 64 ) + + + 51 AS col2 FROM tab2 WHERE - - ( + 8 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL + MAX ( ALL - 64 ) + + + 51 AS col2 FROM tab2 WHERE - - ( + 8 ) IS NULL
----
NULL

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * + 22 NOT BETWEEN NULL AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7721
SELECT ALL + - col2 * CAST( NULL AS SIGNED ) * + col1 - - + col0, col0 + col0 AS col1 FROM tab1 WHERE NULL = NULL
----

skipif mysql # not compatible
query II rowsort label-7721
SELECT ALL + - col2 * CAST ( NULL AS INTEGER ) * + col1 - - + col0, col0 + col0 AS col1 FROM tab1 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - ( - + 64 ) = + - col2
----

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

skipif mysql # not compatible
query I rowsort label-7723
SELECT ( COUNT ( - 13 ) ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 / - 29 )
----

query I rowsort
SELECT ALL + + 50 + - + ( + - col0 ) AS col2 FROM tab2 AS cor0
----
114
125
96

query II rowsort
SELECT - + 63 * - col1, 25 * + col0 + + col0 AS col0 FROM tab0 AS cor0 WHERE + 7 + col0 / - - 85 IS NOT NULL
----
1323
2262
5103
390
63
2522

query I rowsort
SELECT col0 + - + col0 + + + col0 * - ( - + col0 ) * col2 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT ALL col2 + + 21 AS col0 FROM tab0 AS cor0
----
120
31
68

query I rowsort
SELECT + + col2 - - col2 - + 16 - - + 57 FROM tab2 AS cor0
----
121
157
87

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

query I rowsort
SELECT - + 7 - - col2 - - + col2 + + col2 AS col2 FROM tab1 AS cor0
----
170
197
281

query I rowsort
SELECT + col2 + 66 AS col2 FROM tab1
----
125
134
162

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

query I rowsort
SELECT ALL + 50 * + + col0 AS col0 FROM tab2
----
2300
3200
3750

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NOT - + col2 + + col1 + + col2 NOT BETWEEN NULL AND - 34 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7736
SELECT CAST( NULL AS SIGNED ) * - - MIN( ALL + 11 ), 20 AS col0 FROM tab1
----
NULL
20

skipif mysql # not compatible
query II rowsort label-7736
SELECT CAST ( NULL AS INTEGER ) * - - MIN ( ALL + 11 ), 20 AS col0 FROM tab1
----
NULL
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7737
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - CAST( - 8 AS SIGNED ) + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - CAST ( - 8 AS INTEGER ) + col1 = NULL
----
0

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

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

query I rowsort
SELECT DISTINCT + col2 * + + col2 * ( + ( + col2 ) ) * 16 AS col1 FROM tab0 AS cor0
----
15524784
16000
1661168

query I rowsort
SELECT ALL 45 * col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 + - 58 AS col2 FROM tab1
----
1
10
38

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

skipif mysql # not compatible
query I rowsort label-7742
SELECT + CAST ( col0 AS INTEGER ) FROM tab1 WHERE NULL = col1
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <= + 34
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 <> col0
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT col1 + col1 <> + col0 + col0 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT - MIN( - ( ( - col0 ) ) ) + 21 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-7748
SELECT - MIN ( - ( ( - col0 ) ) ) + 21 FROM tab2
----
-25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 - + col0 * - 47 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT col0 BETWEEN 95 AND + ( col2 ) / col2
----
59
68
96

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

query I rowsort
SELECT 48 * col2 + col1 FROM tab2
----
1155
1997
2851

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT + 42 * - COUNT( * ) FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-7753
SELECT + 42 * - COUNT ( * ) FROM tab0
----
-126

query I rowsort
SELECT col2 * + col0 + + col0 * + col2 FROM tab1
----
10030
12376
9792

query I rowsort
SELECT ( col1 ) * - ( - 95 ) AS col2 FROM tab0
----
1995
7695
95

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > 77
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7757
SELECT - MIN( CAST( NULL AS SIGNED ) ) * - COUNT( + 0 + - col1 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) * - COUNT ( + 0 + - col1 ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7758
SELECT * FROM tab2 WHERE + col0 + - CAST( - col1 + + 37 * col2 AS SIGNED ) >= ( col0 * col0 + - col2 * + ( - CAST( NULL AS SIGNED ) * 3 - - 93 ) )
----

skipif mysql # not compatible
query III rowsort label-7758
SELECT * FROM tab2 WHERE + col0 + - CAST ( - col1 + + 37 * col2 AS INTEGER ) >= ( col0 * col0 + - col2 * + ( - CAST ( NULL AS INTEGER ) * 3 - - 93 ) )
----

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

skipif mysql # not compatible
query I rowsort label-7759
SELECT + col1 AS col0 FROM tab1 WHERE NOT + col2 = ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT DISTINCT 29 * COUNT( 21 ) AS col1 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT 29 * COUNT ( 21 ) AS col1 FROM tab1
----
87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > ( col0 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT DISTINCT ( - COUNT( * ) ) col1 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7764
SELECT DISTINCT ( - COUNT ( * ) ) col1 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT DISTINCT - MIN( 90 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
-90

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT - MIN ( 90 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
-90

query I rowsort
SELECT + 85 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT DISTINCT + 66 DIV - 90 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
0

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT + 66 / - 90 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
0

query I rowsort
SELECT col1 * + col0 FROM tab1 WHERE ( 67 ) IS NOT NULL
----
425
4277
714

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

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT SUM ( col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 28 AS col0 FROM tab1 AS cor0 WHERE - 45 + col1 NOT BETWEEN - 3 AND - ( col0 ) * ( - 1 )
----
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT ALL + 95 + + SUM( - 90 + 49 * - 82 ) AS col0 FROM tab1 AS cor0 WHERE ( 27 * 25 ) <= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL + 95 + + SUM ( - 90 + 49 * - 82 ) AS col0 FROM tab1 AS cor0 WHERE ( 27 * 25 ) <= col0
----
NULL

query I rowsort
SELECT DISTINCT 40 * - col1 AS col0 FROM tab1 AS cor0 WHERE ( 85 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT DISTINCT - MAX( ALL col1 ) + + 35 AS col0 FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT - MAX ( ALL col1 ) + + 35 AS col0 FROM tab1 cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT DISTINCT - 4 - CAST( + AVG ( 14 ) AS SIGNED ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT - 4 - CAST ( + AVG ( 14 ) AS INTEGER ) FROM tab0 AS cor0
----
-18

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 + - col0 * col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT ALL + - COUNT( * ) + - 40 AS col0 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL + - COUNT ( * ) + - 40 AS col0 FROM tab0 AS cor0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7777
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7777
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + 8 * + col0 FROM tab1 AS cor0
----
408
680
728

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT MIN( ALL 42 ) FROM tab0 cor0
----
42

skipif mysql # not compatible
query I rowsort label-7779
SELECT MIN ( ALL 42 ) FROM tab0 cor0
----
42

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( col2 * + 62 )
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT ( col2 * + 57 ) IS NOT NULL
----

query I rowsort
SELECT + col1 * - 81 * 5 FROM tab2
----
-20655
-27135
-31185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7783
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7783
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( - col0 ) ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT - MAX( DISTINCT col0 ) col1 FROM tab1 WHERE NOT ( col2 ) IS NULL
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7785
SELECT - MAX ( DISTINCT col0 ) col1 FROM tab1 WHERE NOT ( col2 ) IS NULL
----
-91

query I rowsort
SELECT DISTINCT + col0 * - - 94 FROM tab1
----
4794
7990
8554

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

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT ( - col1 ) IS NOT NULL
----

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

query I rowsort
SELECT ALL - col2 * - col2 * - 27 FROM tab1
----
-124848
-248832
-93987

query I rowsort
SELECT ALL - col0 * 32 FROM tab0 WHERE NOT + 6 NOT IN ( + col1 / + col1 )
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT - 74 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7793
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7793
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 cor0 WHERE + col1 / + col2 NOT BETWEEN col1 AND ( NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE + col1 / + col2 NOT BETWEEN col1 AND ( NULL )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7795
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < ( - ( - CAST( 91 AS DECIMAL ) ) / + col0 )
----

skipif mysql # not compatible
query III rowsort label-7795
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < ( - ( - CAST ( 91 AS REAL ) ) / + col0 )
----

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

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

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

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

query I rowsort
SELECT - - 10 * - - 13 * + col1 AS col0 FROM tab2 cor0
----
10010
6630
8710

query I rowsort
SELECT ALL - 30 + - col1 * + 4 + - 16 AS col2 FROM tab0 AS cor0
----
-130
-370
-50

query II rowsort
SELECT - - 69 AS col1, - col1 * - col1 FROM tab1 AS cor0
----
69
196
69
2209
69
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7802
SELECT - ( - 39 ) DIV - - ( + col0 ) * + 43 - - col0 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7802
SELECT - ( - 39 ) / - - ( + col0 ) * + 43 - - col0 AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT ALL 32 * - - col2 + + + col2 + 6 DIV - col1 AS col2 FROM tab2 AS cor0
----
1320
1914
759

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL 32 * - - col2 + + + col2 + 6 / - col1 AS col2 FROM tab2 AS cor0
----
1320
1914
759

query I rowsort
SELECT col0 * + 87 AS col2 FROM tab0 AS cor0
----
1305
7569
8439

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT + - col1 DIV col2 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7805
SELECT + - col1 / col2 FROM tab2 cor0
----
-1
-1
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT 51 * - COUNT( * ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-7807
SELECT 51 * - COUNT ( * ) FROM tab0 AS cor0
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7808
SELECT DISTINCT + COUNT( * ) DIV - 91 * - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT + COUNT ( * ) / - 91 * - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7809
SELECT DISTINCT + ( - 1 ) * - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT + ( - 1 ) * - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( - - col1 ) * 13 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( - - col1 ) * 13 IS NOT NULL
----

query I rowsort
SELECT 28 * - + 79 AS col0 FROM tab1
----
-2212
-2212
-2212

query I rowsort
SELECT ALL 41 * col1 + + col1 FROM tab1
----
1974
210
588

query I rowsort
SELECT DISTINCT col1 * + - col2 AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT DISTINCT COUNT( * ) + 59 * + - 2 AS col2 FROM tab1
----
-115

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT COUNT ( * ) + 59 * + - 2 AS col2 FROM tab1
----
-115

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 IN ( 7 )
----

query I rowsort
SELECT - 7 * 12 * + col2 + + - col2 AS col0 FROM tab1
----
-5015
-5780
-8160

query I rowsort
SELECT col0 FROM tab1 WHERE ( - - col2 ) IS NULL
----

query I rowsort
SELECT + col1 * 9 + + 84 - + col2 * + col1 * 94 FROM tab2
----
-109719
-288743
-364597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT ALL + CAST( NULL AS SIGNED ) + + 55 - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL + CAST ( NULL AS INTEGER ) + + 55 - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + 43 * - 46 * - 43 FROM tab2 AS cor0
----
84977
84987
85003

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT + COUNT( * ) + COUNT( - + col0 ) * 7 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7821
SELECT + COUNT ( * ) + COUNT ( - + col0 ) * 7 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT + 78 + COUNT( * ) AS col0 FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-7822
SELECT + 78 + COUNT ( * ) AS col0 FROM tab2 cor0
----
81

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

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

query I rowsort
SELECT col1 * + 0 - - ( col2 ) FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT - 36 - + + col2 AS col0 FROM tab2 AS cor0
----
-59
-76
-94

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 * + 15 NOT BETWEEN col2 AND ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT col0 * + col2 - 33 * col2 AS col2 FROM tab2 AS cor0
----
1240
2436
299

query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab0 cor0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7831
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) - + - COUNT( * ) FROM tab2 AS cor0
----
4

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

query I rowsort
SELECT + 71 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * col2 NOT IN ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT - SUM( - 35 ) FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-7833
SELECT - SUM ( - 35 ) FROM tab2
----
105

query I rowsort
SELECT + 40 AS col0 FROM tab2 WHERE NOT + - col1 IN ( col2 )
----
40
40
40

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

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

query II rowsort
SELECT ALL - 24, - 86 AS col2 FROM tab1
----
-24
-86
-24
-86
-24
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( col0 ) ) col0 FROM tab1 AS cor0
----
-51
-85
-91

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col0 FROM tab2 AS cor0 WHERE NOT col2 * - 61 > ( - col2 * 17 - col2 + - col0 + + 55 )
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7841
SELECT * FROM tab0 cor0 WHERE NOT + CAST( col1 AS SIGNED ) NOT IN ( 19 )
----

skipif mysql # not compatible
query III rowsort label-7841
SELECT * FROM tab0 cor0 WHERE NOT + CAST ( col1 AS INTEGER ) NOT IN ( 19 )
----

query I rowsort
SELECT ALL + col1 * + + 25 AS col1 FROM tab2
----
1275
1675
1925

query I rowsort
SELECT 63 * col1 + + col2 + - col0 FROM tab2 AS cor0
----
3190
4204
4827

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT ALL + 98 - - MAX( DISTINCT - 54 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
44

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL + 98 - - MAX ( DISTINCT - 54 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL + - COUNT( * ) + + 60 * + 16 FROM tab0 AS cor0
----
957

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL + - COUNT ( * ) + + 60 * + 16 FROM tab0 AS cor0
----
957

query I rowsort
SELECT col2 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
-13
-2194
-9704

onlyif mysql # aggregate syntax: 
query II rowsort label-7847
SELECT - COUNT( * ), COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + 76 IS NULL )
----
-3
3

skipif mysql # not compatible
query II rowsort label-7847
SELECT - COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + 76 IS NULL )
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT DISTINCT - col2 * - col0 - CAST( col0 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT - col2 * - col0 - CAST ( col0 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7850
SELECT * FROM tab2 WHERE - col1 BETWEEN CAST( - 50 AS SIGNED ) - + 60 AND ( - col0 + - 85 )
----

skipif mysql # not compatible
query III rowsort label-7850
SELECT * FROM tab2 WHERE - col1 BETWEEN CAST ( - 50 AS INTEGER ) - + 60 AND ( - col0 + - 85 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT ( + col0 ) * + col2 + - - col1 DIV - 58 col1 FROM tab2
----
1058
2559
4349

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7852
SELECT ( + col0 ) * + col2 + - - col1 / - 58 col1 FROM tab2
----
1058
2559
4349

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, 39 FROM tab1
----
-59
39
-68
39
-96
39

query I rowsort
SELECT DISTINCT + 23 FROM tab2 WHERE NOT col1 * - + 5 + col0 IN ( - col1 )
----
23

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + 19 - + + ( - col2 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7857
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( CAST( + col2 AS SIGNED ), col2 )
----

skipif mysql # not compatible
query III rowsort label-7857
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( CAST ( + col2 AS INTEGER ), col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 6 * + col2 >= col1 * col0
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - + col0 col1 FROM tab1 AS cor0
----
-144
-147
-159

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - - 21 + - col2 + col2 IN ( + + col0 * + 71 ) AND NOT + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT 55 * + + col0 + + - 41 AS col0 FROM tab2
----
2489
3479
4084

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7864
SELECT + 81 DIV col0 * - + 88 AS col0 FROM tab0 AS cor0
----
-440
0
0

skipif mysql # not compatible
query I rowsort label-7864
SELECT + 81 / col0 * - + 88 AS col0 FROM tab0 AS cor0
----
-440
0
0

query I rowsort
SELECT ALL - 8 AS col1 FROM tab2 WHERE NULL IS NULL
----
-8
-8
-8

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT - - 76 < ( 15 * - col0 * - col1 )
----

query II rowsort
SELECT - - col2 + + col2 / - col0 AS col2, - col1 FROM tab0 WHERE NOT NULL = NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL >= + - col2 )
----

query I rowsort
SELECT - + col0 * - ( - 48 ) AS col1 FROM tab0 AS cor0
----
-4176
-4656
-720

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - 3 * - + col1 / - 71 * - col0 ) BETWEEN col1 * - col1 AND col0 * + 32
----

query I rowsort
SELECT ALL - 79 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query III rowsort
SELECT * FROM tab2 WHERE - + col2 + + - 16 > + - 30
----

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

skipif mysql # not compatible
query I rowsort label-7874
SELECT - MIN ( ALL - - col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ( + + ( - 17 ) ) * + col2 FROM tab2 AS cor0
----
-391
-680
-986

query I rowsort
SELECT + 43 + ( - + col0 ) - + 71 + - - col2 - - + col1 * - col1 * col2 * col0 * 80 AS col0 FROM tab2 AS cor0 WHERE 48 * + 0 = ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7877
SELECT ALL ( - 10 ) + 32 * + CAST( NULL AS DECIMAL ) * 79 / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL ( - 10 ) + 32 * + CAST ( NULL AS REAL ) * 79 / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0, + 44 FROM tab0 AS cor0
----
15
44
87
44
97
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT DISTINCT + 26 + - COUNT( * ) col0 FROM tab2 cor0
----
23

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

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

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

query I rowsort
SELECT + + col0 AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
51
85
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52 - 21 col0, - col2 FROM tab0 AS cor0
----
-73
-10
-73
-47
-73
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 87 + 17 * 64 col2 FROM tab2
----
3089
4568
6134

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - 23 <> + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7888
SELECT - col2 + - col1 DIV col2 + - col2 FROM tab0 cor0
----
-198
-22
-95

skipif mysql # not compatible
query I rowsort label-7888
SELECT - col2 + - col1 / col2 + - col2 FROM tab0 cor0
----
-198
-22
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT ALL + - col0 - col1 + CAST( + col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-101
-74
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7889
SELECT ALL + - col0 - col1 + CAST ( + col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-101
-74
-84

query I rowsort
SELECT - - col0 * - col2 + + + col1 - col0 FROM tab0 AS cor0
----
-639
-936
-9699

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 - - col2 col2 FROM tab1 AS cor0
----
26
35
63

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

query II rowsort
SELECT 60 * + col2 * + col0, + col0 AS col2 FROM tab1
----
293760
51
300900
85
371280
91

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

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

query I rowsort
SELECT col1 * + 15 FROM tab1
----
210
705
75

query I rowsort
SELECT DISTINCT + col0 * col1 * - - 98 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 59 * + col2 col1 FROM tab1 AS cor0
----
-3481
-4012
-5664

query II rowsort
SELECT ALL - col1 * - + 25 * - 98, - 28 AS col2 FROM tab1 cor0
----
-115150
-28
-12250
-28
-34300
-28

query I rowsort
SELECT ALL 3 + + 67 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7901
SELECT DISTINCT + 68 DIV - + 90 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT + 68 / - + 90 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT ALL - - MAX( ALL 41 ) / + + CAST( NULL AS SIGNED ) + - + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL - - MAX ( ALL 41 ) / + + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab2 cor0
----
-39

query II rowsort
SELECT ALL + 74 AS col1, 78 AS col0 FROM tab1 AS cor0
----
74
78
74
78
74
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT - MAX( col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7906
SELECT - MAX ( col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT COUNT( * ) * + 53 AS col2 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-7907
SELECT COUNT ( * ) * + 53 AS col2 FROM tab0
----
159

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7909
SELECT * FROM tab2 WHERE NOT + col1 NOT IN ( + CAST( + col0 AS SIGNED ) * col2, col2 + - col0 * + 83 )
----

skipif mysql # not compatible
query III rowsort label-7909
SELECT * FROM tab2 WHERE NOT + col1 NOT IN ( + CAST ( + col0 AS INTEGER ) * col2, col2 + - col0 * + 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT DISTINCT - SUM( DISTINCT - + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT - SUM ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
185

query II rowsort
SELECT col0 * - col1 AS col2, 88 AS col1 FROM tab0 cor0
----
-1215
88
-1827
88
-97
88

query III rowsort
SELECT * FROM tab1 WHERE NULL > 46
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 * - ( + col0 ) >= - - 66 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT - - 64 + - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-11
0
18

skipif mysql # not compatible
query I rowsort label-7916
SELECT - - 64 + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-11
0
18

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 + + col0 - - - 99, - 28, 4 )
----

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

query I rowsort
SELECT - - col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = - col1
----

query I rowsort
SELECT col2 + + + col1 * - col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 / + ( + + col2 ) + col1 = - 56 - - + ( - - 30 ) * - 60
----

query I rowsort
SELECT - 99 * 53 FROM tab2
----
-5247
-5247
-5247

query I rowsort
SELECT DISTINCT + 86 * 59 FROM tab2
----
5074

onlyif mysql # DIV for integer division: 
query II rowsort label-7925
SELECT + col0 DIV + + col2 AS col2, col0 FROM tab1
----
0
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-7925
SELECT + col0 / + + col2 AS col2, col0 FROM tab1
----
0
51
1
85
1
91

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col1 AND + 71
----

query I rowsort
SELECT ALL + 24 + + - col0 AS col1 FROM tab2 AS cor0
----
-22
-40
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-7928
SELECT - 61 AS col1, COUNT( - + 29 ) * SUM( col2 ) FROM tab1 AS cor0
----
-61
669

skipif mysql # not compatible
query II rowsort label-7928
SELECT - 61 AS col1, COUNT ( - + 29 ) * SUM ( col2 ) FROM tab1 AS cor0
----
-61
669

query II rowsort
SELECT + - col1 AS col0, col2 * - col2 FROM tab2 cor0
----
-51
-529
-67
-3364
-77
-1600

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 <> - + col1
----

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

query I rowsort
SELECT 6 FROM tab1 WHERE NOT - col0 <= NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7935
SELECT ALL ( + + col0 ), col2 DIV - 16 FROM tab2 cor0
----
46
-1
64
-2
75
-3

skipif mysql # not compatible
query II rowsort label-7935
SELECT ALL ( + + col0 ), col2 / - 16 FROM tab2 cor0
----
46
-1
64
-2
75
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT 41 * COUNT( * ) + - - 3 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-7936
SELECT 41 * COUNT ( * ) + - - 3 FROM tab1 AS cor0
----
126

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL < NULL
----
0

query I rowsort
SELECT ALL + col1 * - 79 FROM tab1
----
-1106
-3713
-395

query I rowsort
SELECT DISTINCT 58 + + 47 AS col0 FROM tab0
----
105

query II rowsort
SELECT col0, + col0 * 73 FROM tab0
----
15
1095
87
6351
97
7081

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7943
SELECT DISTINCT * FROM tab2 WHERE col1 + 83 + - 21 * - - col1 * - CAST( NULL AS SIGNED ) + 40 + col1 + + - 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7943
SELECT DISTINCT * FROM tab2 WHERE col1 + 83 + - 21 * - - col1 * - CAST ( NULL AS INTEGER ) + 40 + col1 + + - 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT + + col0 AS col0, 75 AS col1 FROM tab0 AS cor0
----
15
75
87
75
97
75

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE - 18 IS NOT NULL
----
-51
-85
-91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7948
SELECT ALL + COUNT( * ) col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7948
SELECT ALL + COUNT ( * ) col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

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

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

query I rowsort
SELECT DISTINCT - - col1 * + 96 + - + 25 FROM tab0 AS cor0
----
1991
71
7751

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE - 98 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 + 79 * + 10 col0 FROM tab1
----
843
843
843

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

query I rowsort
SELECT DISTINCT - - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query II rowsort label-7955
SELECT ALL + 86 + + MIN( ALL col0 ) + 10 * 17, 69 AS col1 FROM tab2 AS cor0
----
302
69

skipif mysql # not compatible
query II rowsort label-7955
SELECT ALL + 86 + + MIN ( ALL col0 ) + 10 * 17, 69 AS col1 FROM tab2 AS cor0
----
302
69

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

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

query II rowsort
SELECT - 55 * col1 - ( - - 0 ) AS col2, + 76 FROM tab2 AS cor0
----
-2805
76
-3685
76
-4235
76

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

query I rowsort
SELECT ALL 14 - - col2 FROM tab2 cor0
----
37
54
72

query II rowsort
SELECT DISTINCT - col2, - col0 AS col1 FROM tab2
----
-23
-46
-40
-64
-58
-75

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

query I rowsort
SELECT - ( + 17 ) AS col2 FROM tab2 WHERE ( col0 ) NOT BETWEEN + 66 / - + col2 + - col1 AND + col1 + + - col2
----
-17
-17
-17

query I rowsort
SELECT ALL ( + - 97 ) FROM tab1 WHERE NOT + - col2 IS NULL
----
-97
-97
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT IN ( col1 - 52, col0, - - 95 )
----

query I rowsort
SELECT DISTINCT - col2 * + + 56 * + col2 FROM tab1
----
-194936
-258944
-516096

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL SUM( - - 63 ) AS col1 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL SUM ( - - 63 ) AS col1 FROM tab0 AS cor0
----
189

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

query I rowsort
SELECT - + 21 FROM tab2 WHERE NOT - 89 BETWEEN + - ( - col1 ) AND + 68
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 37, - col2 * + - 92 col0 FROM tab0
----
37
4324
37
9108
37
920

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

query I rowsort
SELECT - + col2 * + col2 + 63 + + col0 + - col1 FROM tab1 cor0
----
-3338
-4517
-9116

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= - col1 + - 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7973
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 <= - 38 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 <= - 38 / CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7974
SELECT ALL + - col1 AS col0, - col1 DIV - - col1 AS col0 FROM tab1 AS cor0
----
-14
-1
-47
-1
-5
-1

skipif mysql # not compatible
query II rowsort label-7974
SELECT ALL + - col1 AS col0, - col1 / - - col1 AS col0 FROM tab1 AS cor0
----
-14
-1
-47
-1
-5
-1

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

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

query I rowsort
SELECT ALL 32 * - - 4 FROM tab2 AS cor0
----
128
128
128

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT - - COUNT( DISTINCT + + 17 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT - - COUNT ( DISTINCT + + 17 ) AS col2 FROM tab1 AS cor0
----
1

query II rowsort
SELECT ALL col2 * + - 25 AS col1, col1 * - col2 FROM tab0
----
-1175
-3807
-2475
-99
-250
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-7981
SELECT ( - col2 ) + - col0 DIV + col1 AS col2 FROM tab1
----
-69
-76
-99

skipif mysql # not compatible
query I rowsort label-7981
SELECT ( - col2 ) + - col0 / + col1 AS col2 FROM tab1
----
-69
-76
-99

query I rowsort
SELECT ALL col1 * + 56 * col2 * + - col0 + - col2 FROM tab1
----
-1404259
-16286884
-3838560

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT 49 + - COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-7983
SELECT 49 + - COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1
----
58

query I rowsort
SELECT DISTINCT + 41 + - 86 FROM tab0
----
-45

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

query I rowsort
SELECT DISTINCT - 62 * - col2 * - - col0 + + col2 AS col2 FROM tab1 cor0
----
303648
310989
383724

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7987
SELECT ALL - SUM( DISTINCT - col2 ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL - SUM ( DISTINCT - col2 ) * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT 23 * + COUNT( * ) - - 77 AS col0 FROM tab0 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-7988
SELECT 23 * + COUNT ( * ) - - 77 AS col0 FROM tab0 AS cor0
----
146

query I rowsort
SELECT + col1 - - ( + col0 ) - 99 FROM tab2
----
-2
42
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7990
SELECT ( - col2 ) + - + col0 * + CAST( + col2 AS SIGNED ) * + col1 + - 32 FROM tab1
----
-25166
-290936
-68672

skipif mysql # not compatible
query I rowsort label-7990
SELECT ( - col2 ) + - + col0 * + CAST ( + col2 AS INTEGER ) * + col1 + - 32 FROM tab1
----
-25166
-290936
-68672

query I rowsort
SELECT + col0 + + 48 AS col2 FROM tab0
----
135
145
63

query I rowsort
SELECT DISTINCT 89 + - 61 AS col1 FROM tab1
----
28

query I rowsort
SELECT ALL - col2 - + 27 + + 62 FROM tab2 AS cor0
----
-23
-5
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT DISTINCT 21 + SUM( + 84 ) + 6 AS col0 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT 21 + SUM ( + 84 ) + 6 AS col0 FROM tab0 AS cor0
----
279

query I rowsort
SELECT ALL + + col2 + + 5 AS col2 FROM tab2 cor0
----
28
45
63

query II rowsort
SELECT + 66 AS col2, col0 + - - 38 FROM tab2 AS cor0
----
66
102
66
113
66
84

query I rowsort
SELECT ALL - 56 - - 88 FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT - col0 - + + 89 AS col0 FROM tab1 AS cor0
----
-140
-174
-180

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

query I rowsort
SELECT DISTINCT + 35 * - + col0 * - + 98 - + col0 AS col0 FROM tab2 AS cor0
----
157734
219456
257175

query III rowsort
SELECT * FROM tab1 WHERE NULL < + col2 + - 22
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 98 = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8003
SELECT MIN( + col0 ) * + CAST( + + COUNT( * ) AS SIGNED ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-8003
SELECT MIN ( + col0 ) * + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2
----
138

query I rowsort
SELECT DISTINCT + 39 * - - col2 FROM tab1
----
2301
2652
3744

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

query I rowsort
SELECT DISTINCT + - 55 AS col1 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT DISTINCT + 80 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 AND - - 97
----
80

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT - MAX( ALL + + ( 31 ) ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8010
SELECT - MAX ( ALL + + ( 31 ) ) FROM tab1 AS cor0
----
-31

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

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

query I rowsort
SELECT - 78 * - col2 * col1 - - ( col2 ) * + + 43 * + col0 AS col1 FROM tab0 AS cor0
----
327261
420651
53790

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

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

query I rowsort
SELECT col1 * + 46 AS col2 FROM tab1 AS cor0
----
2162
230
644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8015
SELECT COUNT( * ) DIV 38 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8015
SELECT COUNT ( * ) / 38 AS col0 FROM tab2
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8017
SELECT - - COUNT( * ) DIV + + 78 AS col1 FROM tab2 WHERE col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8017
SELECT - - COUNT ( * ) / + + 78 AS col1 FROM tab2 WHERE col1 IS NOT NULL
----
0

query I rowsort
SELECT - col0 * + 0 + + - 45 FROM tab2
----
-45
-45
-45

query I rowsort
SELECT DISTINCT col1 + 92 AS col1 FROM tab2
----
143
159
169

query I rowsort
SELECT + 32 + - col0 AS col2 FROM tab1
----
-19
-53
-59

query I rowsort
SELECT + col0 + + 15 FROM tab1 AS cor0
----
100
106
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8022
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 50 + 33 - - - CAST( 48 AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 50 + 33 - - - CAST ( 48 AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 44 + col2 * - - col0 AS col2 FROM tab2 AS cor0
----
1102
2604
4394

query I rowsort
SELECT + col0 * - - col0 + + col0 * + ( + col1 ) * - col1 - + col2 * col1 AS col1 FROM tab2 cor0
----
-118703
-334936
-378440

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0, col1 / - col2 - col1 + + col1 - col0 / - col0 + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT DISTINCT col2 * col1 DIV - 9 AS col1 FROM tab2
----
-130
-342
-431

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT col2 * col1 / - 9 AS col1 FROM tab2
----
-130
-342
-431

query I rowsort
SELECT + 5 * 29 AS col1 FROM tab0
----
145
145
145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT + 80 - MAX( ( - - col0 ) ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8029
SELECT + 80 - MAX ( ( - - col0 ) ) FROM tab1 AS cor0
----
-11

query I rowsort
SELECT + col2 - + col0 * - col1 AS col0 FROM tab0 AS cor0
----
1262
1837
196

query II rowsort
SELECT - col0 - 82, - col0 AS col0 FROM tab1 AS cor0
----
-133
-51
-167
-85
-173
-91

query I rowsort
SELECT - + 42 - col2 - - + 87 * + col2 * col1 FROM tab2 cor0
----
101986
267878
337982

onlyif mysql # DIV for integer division: 
query I rowsort label-8033
SELECT ALL + + 87 DIV - - ( - col1 ) + + col2 + - - 62 AS col2 FROM tab0 AS cor0
----
108
68
74

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL + + 87 / - - ( - col1 ) + + col2 + - - 62 AS col2 FROM tab0 AS cor0
----
108
68
74

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

query I rowsort
SELECT ALL - col1 * - 18 + col2 FROM tab2 cor0
----
1264
1426
941

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8037
SELECT - + 1 FROM tab2 WHERE NOT 87 * - col0 * - CAST( + ( + col0 ) AS DECIMAL ) + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8037
SELECT - + 1 FROM tab2 WHERE NOT 87 * - col0 * - CAST ( + ( + col0 ) AS REAL ) + col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * + 95 FROM tab2
----
-2185
-3800
-5510

onlyif mysql # aggregate syntax: 
query II rowsort label-8039
SELECT ALL - COUNT( * ) col0, ( - + 72 ) + AVG ( ALL + 25 ) FROM tab2 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8039
SELECT ALL - COUNT ( * ) col0, ( - + 72 ) + AVG ( ALL + 25 ) FROM tab2 WHERE NULL IS NOT NULL
----
0
NULL

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

query I rowsort
SELECT DISTINCT ( + ( - 8 ) ) FROM tab2
----
-8

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT - + COUNT ( ALL - + col1 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - + col0, col0 AS col2 FROM tab0 cor0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8048
SELECT DISTINCT - CAST( - - 13 AS SIGNED ), + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8048
SELECT DISTINCT - CAST ( - - 13 AS INTEGER ), + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - 22 * - 11 AS col1, - 4 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
18 values hashing to 6b3f9bc96facc60c9cbb93dc6d7e4e2b

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL + COUNT( * ) + + 74 AS col1 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + COUNT ( * ) + + 74 AS col1 FROM tab1
----
77

query I rowsort
SELECT col1 * - + ( + 13 ) FROM tab0 AS cor0
----
-1053
-13
-273

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( - 44 ) AS col2 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT DISTINCT + ( + col2 ) * col2 + + + col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
110
2256
9900

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8055
SELECT - 27 DIV + + 67 + - + 2 + - - 47 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
45
-3

skipif mysql # not compatible
query II rowsort label-8055
SELECT - 27 / + + 67 + - + 2 + - - 47 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
45
-3

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

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

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 WHERE NOT + + 55 IS NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 1 + + - col2 col1 FROM tab0
----
-19
-197
-93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8060
SELECT - ( - col0 ) DIV - col2 AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8060
SELECT - ( - col0 ) / - col2 AS col2 FROM tab2
----
-1
-1
-2

query II rowsort
SELECT DISTINCT - col0 + - col2 + 90 * + col1 + + 55 AS col0, - 33 AS col0 FROM tab2
----
4576
-33
5952
-33
6881
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT ALL COUNT( - + col2 ) + 42 AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL COUNT ( - + col2 ) + 42 AS col0 FROM tab2
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 27 col1 FROM tab1
----
32
41
74

query I rowsort
SELECT DISTINCT - + 2 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND + 31
----

query II rowsort
SELECT + col2 * 4 - col1 AS col1, col2 - + + col0 + - 34 + - col0 FROM tab2 AS cor0
----
165
-126
41
-103
83
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8066
SELECT + SUM( + 24 ) DIV 71 + COUNT( 1 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-8066
SELECT + SUM ( + 24 ) / 71 + COUNT ( 1 ) FROM tab0
----
4

query I rowsort
SELECT - - col1 - - - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + 23 >= NULL
----

query I rowsort
SELECT ALL + + col1 * + 25 AS col1 FROM tab2 cor0
----
1275
1675
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT DISTINCT + COUNT( * ) * + 89 * 62 + COUNT( * ) + + + COUNT( * ) * + 60 AS col1 FROM tab1 AS cor0
----
16737

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT + COUNT ( * ) * + 89 * 62 + COUNT ( * ) + + + COUNT ( * ) * + 60 AS col1 FROM tab1 AS cor0
----
16737

query I rowsort
SELECT DISTINCT + 91 * + col2 AS col2 FROM tab1 cor0
----
5369
6188
8736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 14, col0 + - col0 col0 FROM tab1 AS cor0
----
14
0
14
0
14
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 >= col2 + + col1 + + - 18
----
87
21
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8074
SELECT + CAST( + - ( + col2 ) AS SIGNED ) col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8074
SELECT + CAST ( + - ( + col2 ) AS INTEGER ) col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8075
SELECT ALL + ( + col1 ) * 70 DIV col2 * 28 AS col2 FROM tab1 AS cor0
----
1344
140
280

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + ( + col1 ) * 70 / col2 * 28 AS col2 FROM tab1 AS cor0
----
1344
140
280

query I rowsort
SELECT - col2 * + - 97 FROM tab1
----
5723
6596
9312

query I rowsort
SELECT ALL 99 * + col2 AS col2 FROM tab2
----
2277
3960
5742

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

query I rowsort
SELECT ALL 66 * + + col2 AS col0 FROM tab2
----
1518
2640
3828

onlyif mysql # DIV for integer division: 
query II rowsort label-8080
SELECT ALL - 79 DIV + 3 col0, 22 + - col1 FROM tab1
----
-26
-25
-26
17
-26
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8080
SELECT ALL - 79 / + 3 col0, 22 + - col1 FROM tab1
----
-26
-25
-26
17
-26
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8081
SELECT DISTINCT + + MAX( - - CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT + + MAX ( - - CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT 67 * - col1 * + + 94 FROM tab2 AS cor0
----
-321198
-421966
-484946

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL - MIN( - - 5 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL - MIN ( - - 5 ) FROM tab1
----
-5

query I rowsort
SELECT DISTINCT - col2 + + 23 FROM tab2 AS cor0
----
-17
-35
0

query I rowsort
SELECT 58 * - - col0 FROM tab1 AS cor0
----
2958
4930
5278

query I rowsort
SELECT DISTINCT col0 + - ( - col2 ) FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8087
SELECT * FROM tab0 AS cor0 WHERE - - CAST( NULL AS SIGNED ) * 80 * - CAST( NULL AS SIGNED ) / - 43 IN ( + + col0, col2 + - col1 ) OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8087
SELECT * FROM tab0 AS cor0 WHERE - - CAST ( NULL AS INTEGER ) * 80 * - CAST ( NULL AS INTEGER ) / - 43 IN ( + + col0, col2 + - col1 ) OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT col1 * + - col1 AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

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

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT 55 + + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
55

query II rowsort
SELECT - + 45, col1 FROM tab0 AS cor0
----
-45
1
-45
21
-45
81

query I rowsort
SELECT - 27 + + 60 * - 40 AS col2 FROM tab1
----
-2427
-2427
-2427

query I rowsort
SELECT DISTINCT ( + + col2 ) + - 45 FROM tab1
----
14
23
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT COUNT( * ) + COUNT( * ) * + + 79 AS col0 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-8094
SELECT COUNT ( * ) + COUNT ( * ) * + + 79 AS col0 FROM tab1
----
240

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

query I rowsort
SELECT + col2 * - col1 + - 4 FROM tab2 AS cor0
----
-1177
-3084
-3890

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT + - COUNT( * ) * + + 49 + - 81 AS col2 FROM tab2 cor0
----
-228

skipif mysql # not compatible
query I rowsort label-8097
SELECT + - COUNT ( * ) * + + 49 + - 81 AS col2 FROM tab2 cor0
----
-228

query I rowsort
SELECT ALL col1 + - col0 - col1 * - ( + + 51 ) FROM tab1 cor0
----
175
2353
677

query II rowsort
SELECT DISTINCT - ( col2 ), 83 AS col0 FROM tab2 AS cor0
----
-23
83
-40
83
-58
83

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

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

query I rowsort
SELECT + ( - + 80 ) AS col2 FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT + + 19 AS col0 FROM tab0 cor0
----
19
19
19

query I rowsort
SELECT DISTINCT + - 98 * 74 * col1 AS col1 FROM tab0 AS cor0
----
-152292
-587412
-7252

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

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT - - COUNT ( ALL + ( 1 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT ALL - 75 * COUNT( * ) AS col1 FROM tab0 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL - 75 * COUNT ( * ) AS col1 FROM tab0 cor0
----
-225

query II rowsort
SELECT ALL 64 * col2 AS col1, col0 FROM tab1
----
3776
85
4352
91
6144
51

query I rowsort
SELECT ALL + ( - 27 ) FROM tab2
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8108
SELECT * FROM tab2 WHERE NOT + 7 + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-8108
SELECT * FROM tab2 WHERE NOT + 7 + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT DISTINCT - 52 * + COUNT( * ) AS col2 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT - 52 * + COUNT ( * ) AS col2 FROM tab1
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8110
SELECT ALL col1 - - + col1 + 12 * - 54, + 85 * + + col0 AS col2 FROM tab0 WHERE NOT + col2 BETWEEN - CAST( NULL AS SIGNED ) + - col0 * + + col0 AND - 80
----
-486
1275
-606
7395
-646
8245

skipif mysql # not compatible
query II rowsort label-8110
SELECT ALL col1 - - + col1 + 12 * - 54, + 85 * + + col0 AS col2 FROM tab0 WHERE NOT + col2 BETWEEN - CAST ( NULL AS INTEGER ) + - col0 * + + col0 AND - 80
----
-486
1275
-606
7395
-646
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT DISTINCT + MIN( DISTINCT - - 42 ) * - COUNT( * ) + - MIN( DISTINCT + - col1 ) FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT + MIN ( DISTINCT - - 42 ) * - COUNT ( * ) + - MIN ( DISTINCT + - col1 ) FROM tab1
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8112
SELECT ALL col0 / CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL col0 / CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8114
SELECT DISTINCT - ( - - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-3

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

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE - col0 + - 50 + + 90 + + - col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + 10 + - col1 AS col2 FROM tab2 AS cor0
----
-41
-57
-67

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - col1 + - ( + col1 ) col2 FROM tab0 AS cor0
----
-101
-209
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - col2 * col2 + - col1 * 9 col1 FROM tab2 AS cor0
----
122507
224785
26520

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8122
SELECT DISTINCT + 97 DIV COUNT( * ) AS col1, 72 AS col1 FROM tab1 AS cor0
----
32
72

skipif mysql # not compatible
query II rowsort label-8122
SELECT DISTINCT + 97 / COUNT ( * ) AS col1, 72 AS col1 FROM tab1 AS cor0
----
32
72

query III rowsort
SELECT * FROM tab1 WHERE - - 3 <= + - col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8124
SELECT DISTINCT + col1 / col1 col2 FROM tab1
----
1

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

query I rowsort
SELECT - col2 * - - 86 FROM tab1
----
-5074
-5848
-8256

query I rowsort
SELECT ( - - 36 ) AS col0 FROM tab0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL COUNT( * ) + + - 54 AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL COUNT ( * ) + + - 54 AS col0 FROM tab2
----
-51

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

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT + MIN ( - col2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-96

query I rowsort
SELECT col0 - 34 FROM tab1
----
17
51
57

query II rowsort
SELECT + col2 AS col1, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8132
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT - + COUNT( + - 19 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8134
SELECT - + COUNT ( + - 19 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab0 AS cor0 WHERE NOT 63 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT CAST( - - col0 AS SIGNED ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8137
SELECT CAST ( - - col0 AS INTEGER ) FROM tab0
----
15
87
97

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

skipif mysql # not compatible
query I rowsort label-8138
SELECT + COUNT ( + + 60 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8139
SELECT ALL - + col0 * + + CAST( NULL AS SIGNED ), col1 AS col2 FROM tab0 WHERE NOT - col0 IS NULL
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-8139
SELECT ALL - + col0 * + + CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab0 WHERE NOT - col0 IS NULL
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ALL 48 * 60 * + 93 + col1 AS col2 FROM tab1 AS cor0
----
267845
267854
267887

query I rowsort
SELECT col0 + 89 AS col0 FROM tab1 AS cor0
----
140
174
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col0 * 73 + - - 93 col2 FROM tab0 AS cor0
----
-51372
-63417
-700926

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 - + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - 89
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT + + SUM( + + col0 ) * - - ( 43 ) + 17 FROM tab1 AS cor0
----
9778

skipif mysql # not compatible
query I rowsort label-8146
SELECT + + SUM ( + + col0 ) * - - ( 43 ) + 17 FROM tab1 AS cor0
----
9778

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT - 53 + COUNT( * ) * + 3 * + COUNT( + 7 ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT - 53 + COUNT ( * ) * + 3 * + COUNT ( + 7 ) FROM tab0 AS cor0
----
-26

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) IN ( + + col1 * 53 + - + 70, 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 - + 43 * - - col1 * + col2 * + col2 FROM tab0 AS cor0
----
-421346
-7693932
-90213

query I rowsort
SELECT - + col2 - + col2 AS col0 FROM tab2 cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT - COUNT( * ) - + MAX( col2 ) AS col1 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-8152
SELECT - COUNT ( * ) - + MAX ( col2 ) AS col1 FROM tab0 AS cor0
----
-102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 * - + col2 col0 FROM tab0 AS cor0
----
-3760
-7920
-800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 - + 67 * - col0 col2 FROM tab1 AS cor0
----
3431
5700
6144

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col2 AND - - col2 + - 86 + - 31
----

query I rowsort
SELECT ALL ( - 88 ) * + 61 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e86d34754d54dbfa37964df3f2e46175

query I rowsort
SELECT ALL col0 * - col0 + ( + - col0 ) AS col2 FROM tab2
----
-2162
-4160
-5700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8158
SELECT 96 DIV 42 + COUNT( * ) - 93 DIV SUM( - col1 ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8158
SELECT 96 / 42 + COUNT ( * ) - 93 / SUM ( - col1 ) AS col2 FROM tab1
----
6

query I rowsort
SELECT ALL ( - col1 ) + + col0 AS col1 FROM tab2
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query II rowsort label-8160
SELECT + 63 DIV col1 AS col2, 75 FROM tab2 AS cor0
----
0
75
0
75
1
75

skipif mysql # not compatible
query II rowsort label-8160
SELECT + 63 / col1 AS col2, 75 FROM tab2 AS cor0
----
0
75
0
75
1
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT SUM( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8163
SELECT SUM ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-227

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

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

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

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

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

query I rowsort
SELECT ALL + + col2 + - - col0 * + 99 * col1 + - - col1 FROM tab0 cor0 WHERE NOT NULL < - col1 + + 41
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8168
SELECT + - CAST( NULL AS SIGNED ) * 23 + 61 + SUM( - + col0 ) + - AVG ( ALL - + ( - + col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT + - CAST ( NULL AS INTEGER ) * 23 + 61 + SUM ( - + col0 ) + - AVG ( ALL - + ( - + col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) * - col0 * - col1 + + ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8170
SELECT 86 / - - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT 86 / - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8172
SELECT DISTINCT * FROM tab1 WHERE + 85 / CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8172
SELECT DISTINCT * FROM tab1 WHERE + 85 / CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 74 NOT IN ( ( - col1 ) * - ( + - 38 ), - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND col1 + + col1 * 66
----

query I rowsort
SELECT ALL 70 + + col0 AS col1 FROM tab0
----
157
167
85

query I rowsort
SELECT + 55 * + col2 + col2 AS col2 FROM tab0
----
2632
5544
560

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * + 90 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL + COUNT( * ) + - - 17 AS col0 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL + COUNT ( * ) + - - 17 AS col0 FROM tab2
----
20

query I rowsort
SELECT - ( - 86 ) FROM tab1
----
86
86
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8181
SELECT ALL col2 * + col0 DIV col0 + + col2 * - 30 + col1 col1 FROM tab2
----
-1083
-1615
-616

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8181
SELECT ALL col2 * + col0 / col0 + + col2 * - 30 + col1 col1 FROM tab2
----
-1083
-1615
-616

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

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 * col2 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 72 * - 6 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 4 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL - MIN( - col1 ) - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL - MIN ( - col1 ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
50

query I rowsort
SELECT DISTINCT - - 68 - + col2 + col0 FROM tab2 AS cor0
----
85
91
92

query I rowsort
SELECT - col0 / + + col0 * col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 66 * + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT MIN( + col2 ) FROM tab1 WHERE 28 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT MIN ( + col2 ) FROM tab1 WHERE 28 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT MAX( ALL 14 ) * - ( - 46 ) FROM tab1
----
644

skipif mysql # not compatible
query I rowsort label-8189
SELECT MAX ( ALL 14 ) * - ( - 46 ) FROM tab1
----
644

onlyif mysql # DIV for integer division: 
query I rowsort label-8190
SELECT + col1 DIV col0 - - col1 AS col2 FROM tab2
----
52
67
78

skipif mysql # not compatible
query I rowsort label-8190
SELECT + col1 / col0 - - col1 AS col2 FROM tab2
----
52
67
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8191
SELECT ( + col1 ), + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE col1 + col0 > NULL
----

skipif mysql # not compatible
query II rowsort label-8191
SELECT ( + col1 ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE col1 + col0 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + col0 + + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8193
SELECT 69 DIV + + MAX( ALL + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8193
SELECT 69 / + + MAX ( ALL + col0 ) FROM tab1
----
0

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

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

query I rowsort
SELECT - - 9 AS col1 FROM tab0 AS cor0 WHERE NOT 15 + 24 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 24 / - col2 + - col0 + + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT + COUNT( ALL - ( col0 ) ) AS col0 FROM tab0 WHERE NOT col2 / + col1 <> - + col1
----
0

skipif mysql # not compatible
query I rowsort label-8197
SELECT + COUNT ( ALL - ( col0 ) ) AS col0 FROM tab0 WHERE NOT col2 / + col1 <> - + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT DISTINCT MIN( col2 ) FROM tab2 WHERE NOT col0 IN ( 71 )
----
23

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT MIN ( col2 ) FROM tab2 WHERE NOT col0 IN ( 71 )
----
23

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

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - ( col0 ) NOT IN ( - col2, col1, - col0, col1, - col1, col2, + + 59 )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8200
SELECT DISTINCT + 57 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT + 57 / + col0 AS col2 FROM tab0 AS cor0
----
0
3

query II rowsort
SELECT ( 71 ) AS col2, - col0 FROM tab0 AS cor0
----
71
-15
71
-87
71
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT ALL - COUNT( * ) - - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 35 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL - COUNT ( * ) - - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - 35 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 AS cor0 WHERE NOT col0 + + + col2 IS NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT ( + + col2 ) DIV + col2 + col1 * - - 97 AS col0 FROM tab2 cor0
----
4948
6500
7470

skipif mysql # not compatible
query I rowsort label-8204
SELECT ( + + col2 ) / + col2 + col1 * - - 97 AS col0 FROM tab2 cor0
----
4948
6500
7470

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8206
SELECT - CAST( + 80 AS SIGNED ) AS col2, + COUNT( * ) AS col1 FROM tab0 WHERE NOT ( NOT ( ( + col1 ) + - 0 ) IS NULL )
----
-80
0

skipif mysql # not compatible
query II rowsort label-8206
SELECT - CAST ( + 80 AS INTEGER ) AS col2, + COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( NOT ( ( + col1 ) + - 0 ) IS NULL )
----
-80
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8208
SELECT COUNT( - CAST( NULL AS SIGNED ) ) + + 51 * - COUNT( * ) AS col2 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-8208
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) + + 51 * - COUNT ( * ) AS col2 FROM tab0
----
-153

query I rowsort
SELECT col2 + + + col0 AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT ALL + + 26 + + col1 AS col2 FROM tab1 AS cor0
----
31
40
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT - + COUNT( * ) + - COUNT( * ) + - - 23 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
17

skipif mysql # not compatible
query I rowsort label-8211
SELECT - + COUNT ( * ) + - COUNT ( * ) + - - 23 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
17

query III rowsort
SELECT * FROM tab1 WHERE col2 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT 79 = - col0 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col1 ) + + 2 FROM tab0
----
23
3
83

query I rowsort
SELECT ALL 74 AS col2 FROM tab2 WHERE NOT - col0 + 57 <> ( - 26 )
----

query I rowsort
SELECT 71 FROM tab2 WHERE - col0 > NULL
----

query I rowsort
SELECT ALL - col2 * - 30 FROM tab1
----
1770
2040
2880

query I rowsort
SELECT ALL 0 + + col2 FROM tab2 WHERE col2 NOT IN ( + 66 )
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + 7 * - 24 )
----

query I rowsort
SELECT 80 + 53 FROM tab2
----
133
133
133

onlyif mysql # DIV for integer division: 
query I rowsort label-8221
SELECT - ( col2 ) DIV - 10 AS col0 FROM tab1
----
5
6
9

skipif mysql # not compatible
query I rowsort label-8221
SELECT - ( col2 ) / - 10 AS col0 FROM tab1
----
5
6
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + - 53 col0 FROM tab2
----
1120
3027
3833

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NULL <> col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8224
SELECT col2 DIV 61 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8224
SELECT col2 / 61 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ALL + COUNT( col0 ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL + COUNT ( col0 ) + COUNT ( * ) FROM tab1
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 10 + - col0 BETWEEN NULL AND - col1
----

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

query I rowsort
SELECT - 2 * 37 FROM tab2
----
-74
-74
-74

query I rowsort
SELECT col1 * + 99 + col0 FROM tab0
----
196
2166
8034

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * col1 col1 FROM tab1 WHERE ( 68 + - col2 ) IS NOT NULL
----
1372
4606
490

query I rowsort
SELECT DISTINCT + 40 + - col0 * + 9 AS col0 FROM tab2 WHERE NOT ( col2 ) BETWEEN NULL AND ( - col0 )
----
-374
-536
-635

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN + ( - 30 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN + ( - 30 ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT col2 * - 80 FROM tab0 AS cor0
----
-3760
-7920
-800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8238
SELECT + CAST( - MIN( DISTINCT col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8238
SELECT + CAST ( - MIN ( DISTINCT col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8239
SELECT ALL CAST( NULL AS SIGNED ) / + COUNT( * ) - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL CAST ( NULL AS INTEGER ) / + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT - MAX( DISTINCT + 82 ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT - MAX ( DISTINCT + 82 ) FROM tab1 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN col2 * - col1 + col0 * col1 AND + ( col1 )
----
2

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN col2 * - col1 + col0 * col1 AND + ( col1 )
----
2

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

query I rowsort
SELECT - col2 * 38 AS col2 FROM tab1
----
-2242
-2584
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT ALL + ( 25 ) - + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1
----
16

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL + ( 25 ) - + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1
----
16

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8247
SELECT * FROM tab0 AS cor0 WHERE NOT ( 78 ) * - col0 + CAST( col0 AS SIGNED ) * col0 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8247
SELECT * FROM tab0 AS cor0 WHERE NOT ( 78 ) * - col0 + CAST ( col0 AS INTEGER ) * col0 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8250
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= + 56 / col0 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= + 56 / col0 + + CAST ( NULL AS INTEGER )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT COUNT( * ) + 79 col1 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8252
SELECT COUNT ( * ) + 79 col1 FROM tab2 AS cor0
----
82

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

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

query I rowsort
SELECT ALL - + 20 AS col1 FROM tab2 cor0
----
-20
-20
-20

query I rowsort
SELECT + 43 + - col1 + col0 * + 49 FROM tab1
----
2528
4203
4455

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL <> col1
----

query I rowsort
SELECT DISTINCT + col0 * + 4 AS col0 FROM tab1
----
204
340
364

query I rowsort
SELECT + col1 * + 40 + - col2 FROM tab0
----
-59
3193
830

onlyif mysql # DIV for integer division: 
query I rowsort label-8260
SELECT 14 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8260
SELECT 14 / col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 23 AS col0 FROM tab1 WHERE NULL NOT BETWEEN ( col2 + col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col2 / col1 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE 48 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) NOT BETWEEN NULL AND ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 BETWEEN 64 + col2 AND NULL OR NULL IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN + col2 - 7 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8269
SELECT DISTINCT + col2 DIV + col1 + 17 FROM tab0
----
116
17

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT + col2 / + col1 + 17 FROM tab0
----
116
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT COUNT( - ( - col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8270
SELECT COUNT ( - ( - col0 ) ) FROM tab2
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT - col1 DIV - col1 - - 42 FROM tab0 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-8272
SELECT - col1 / - col1 - - 42 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT ALL + ( + + 93 ) FROM tab0 AS cor0
----
93
93
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT ALL ( col0 ) DIV - col2 - col0 FROM tab1 AS cor0
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL ( col0 ) / - col2 - col0 FROM tab1 AS cor0
----
-51
-86
-92

query I rowsort
SELECT DISTINCT - col1 - - 66 FROM tab0 AS cor0
----
-15
45
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8276
SELECT ALL + CAST( - SUM( + 11 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL + CAST ( - SUM ( + 11 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-33

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 IN ( 87 / - 23 + 30 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( - - col0 ) = NULL
----

query I rowsort
SELECT DISTINCT 96 + col2 FROM tab2
----
119
136
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 42 ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT + - 0 + - col1 * + - 73 AS col0 FROM tab1 AS cor0
----
1022
3431
365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 - col2 col1 FROM tab0 cor0
----
-31
-83
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8286
SELECT DISTINCT + col0 * - CAST( + ( + col0 ) AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
-178
-7559
-9310

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT + col0 * - CAST ( + ( + col0 ) AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
-178
-7559
-9310

query I rowsort
SELECT 98 * + + col0 FROM tab2 AS cor0
----
4508
6272
7350

query I rowsort
SELECT - 1 + + 69 FROM tab0 AS cor0 WHERE NULL IS NULL
----
68
68
68

query I rowsort
SELECT ALL 32 - - + ( + col0 ) AS col0 FROM tab2 AS cor0
----
107
78
96

query I rowsort
SELECT ALL + 47 * col0 FROM tab1 AS cor0 WHERE - 11 BETWEEN col2 AND + col1 * col0 + col0 * col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + 22 * - + COUNT( * ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8292
SELECT + 22 * - + COUNT ( * ) FROM tab0 AS cor0
----
-66

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 * + 11 NOT BETWEEN ( NULL ) AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8294
SELECT MIN( ALL + + 76 ), AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-8294
SELECT MIN ( ALL + + 76 ), AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
76
NULL

query I rowsort
SELECT 95 * - 53 AS col2 FROM tab2
----
-5035
-5035
-5035

query I rowsort
SELECT + 14 FROM tab2 WHERE NOT NULL <= + 38
----

query II rowsort
SELECT 13 * + 75 AS col2, col2 AS col2 FROM tab0
----
975
10
975
47
975
99

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 > - col1
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT ALL - - 73 * + MAX( - col2 ) FROM tab2 AS cor0
----
-1679

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL - - 73 * + MAX ( - col2 ) FROM tab2 AS cor0
----
-1679

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT MAX( col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT MAX ( col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * + + col1 * - col1 + + 44 FROM tab1 AS cor0
----
-1431
-150168
-18772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8305
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) + - + 88 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8305
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - + 88 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col0 * - 64 FROM tab2 WHERE ( NULL ) IN ( + col0 / - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 53 BETWEEN + 89 + col1 * - col0 AND 74 + ( + 76 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 < + - col1 * - + col1 * - col0 + ( col2 - + 6 )
----

query II rowsort
SELECT col1, 94 + col0 FROM tab2
----
51
140
67
169
77
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT DISTINCT SUM( ALL + 70 ) AS col1 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT SUM ( ALL + 70 ) AS col1 FROM tab1
----
210

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 5 NOT BETWEEN NULL AND + col1 - + 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( 12 / + 95 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-8316
SELECT - - ( - ( - - COUNT ( * ) ) ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8318
SELECT * FROM tab0 WHERE ( ( NOT ( CAST( NULL AS SIGNED ) * col2 ) IS NULL ) )
----

skipif mysql # not compatible
query III rowsort label-8318
SELECT * FROM tab0 WHERE ( ( NOT ( CAST ( NULL AS INTEGER ) * col2 ) IS NULL ) )
----

query I rowsort
SELECT ALL - 99 FROM tab1 WHERE ( 1 IS NOT NULL )
----
-99
-99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT - col2 DIV - 35 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8320
SELECT - col2 / - 35 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT + col2 + - 73 FROM tab1
----
-14
-5
23

query I rowsort
SELECT DISTINCT col0 * col2 + - 45 FROM tab1
----
4851
4970
6143

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL - 4 + - COUNT( * ) AS col1 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL - 4 + - COUNT ( * ) AS col1 FROM tab0
----
-7

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + - 44 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8325
SELECT - - CAST( 5 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8325
SELECT - - CAST ( 5 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN 56 * + - 2 AND col1 ) OR 30 IS NULL
----

query I rowsort
SELECT - col0 * + - col1 + + col1 FROM tab2 AS cor0
----
2397
5005
5092

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

query II rowsort
SELECT col0, col0 * + col1 FROM tab1 cor0
----
51
714
85
425
91
4277

query I rowsort
SELECT DISTINCT + + col1 - + col0 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8331
SELECT + 15 DIV - col1 + + - 50 * - - col2 FROM tab2 AS cor0
----
-1150
-2000
-2900

skipif mysql # not compatible
query I rowsort label-8331
SELECT + 15 / - col1 + + - 50 * - - col2 FROM tab2 AS cor0
----
-1150
-2000
-2900

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col2 )
----

query I rowsort
SELECT - ( 36 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 / + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT col1 * - 48 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - + 31 * + + 34 )
----

skipif mysql # not compatible
query I rowsort label-8334
SELECT col1 * - 48 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - + 31 * + + 34 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 84 ) col0 FROM tab1
----
84
84
84

query I rowsort
SELECT DISTINCT - 76 * + 80 FROM tab0
----
-6080

query II rowsort
SELECT - col1, 38 AS col0 FROM tab0
----
-1
38
-21
38
-81
38

query I rowsort
SELECT + col2 * ( ( col1 ) ) * + col2 AS col1 FROM tab2
----
123200
225388
26979

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

query II rowsort
SELECT - col1 AS col0, ( + col0 ) * - 39 * + - ( + 24 ) FROM tab0
----
-1
90792
-21
81432
-81
14040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8341
SELECT ALL - CAST( + col2 AS SIGNED ) * 87 + - col2 AS col0 FROM tab2 AS cor0
----
-2024
-3520
-5104

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL - CAST ( + col2 AS INTEGER ) * 87 + - col2 AS col0 FROM tab2 AS cor0
----
-2024
-3520
-5104

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - - col1 * - - 89 IS NOT NULL
----

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

query I rowsort
SELECT 74 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) BETWEEN - 23 AND + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT - 45 AS col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8348
SELECT - col1 AS col2, 45 AS col1 FROM tab2 cor0 WHERE + 79 * col1 + + 6 > ( col2 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-8348
SELECT - col1 AS col2, 45 AS col1 FROM tab2 cor0 WHERE + 79 * col1 + + 6 > ( col2 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE - 94 - - 9 > 49
----

query I rowsort
SELECT ALL col0 + - + col2 FROM tab2 cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT - 48 + + COUNT( * ) * - + 80 AS col0 FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-8351
SELECT - 48 + + COUNT ( * ) * - + 80 AS col0 FROM tab0 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT - COUNT( * ) * MAX( ALL + 63 ) AS col0 FROM tab2 AS cor0 WHERE NULL IN ( col0 * col1, + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT - COUNT ( * ) * MAX ( ALL + 63 ) AS col0 FROM tab2 AS cor0 WHERE NULL IN ( col0 * col1, + col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8353
SELECT DISTINCT * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) BETWEEN ( col0 ) AND - col0
----

skipif mysql # not compatible
query III rowsort label-8353
SELECT DISTINCT * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) BETWEEN ( col0 ) AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8354
SELECT + col1 DIV + + col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8354
SELECT + col1 / + + col1 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL 84 + + 88 AS col1 FROM tab2
----
172
172
172

onlyif mysql # DIV for integer division: 
query I rowsort label-8356
SELECT DISTINCT - 43 DIV + - col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT - 43 / + - col0 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL col2 + - col1 + - col1 AS col1 FROM tab2 WHERE NOT NULL < - col0 - - - col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 <> NULL
----

query I rowsort
SELECT ALL ( - col0 ) + - col2 * + + col1 FROM tab0
----
-196
-297
-3822

query I rowsort
SELECT DISTINCT ( + 31 ) + col0 AS col1 FROM tab0
----
118
128
46

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT 63 * + ( 93 ) + ( - col0 ) + + - 2 AS col0 FROM tab2 AS cor0 WHERE NOT ( - + 98 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT + CAST( NULL AS SIGNED ) + + + col1 + + - col1 + - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT + CAST ( NULL AS INTEGER ) + + + col1 + + - col1 + - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - col1 FROM tab1 WHERE + 6 NOT IN ( - - col2, ( - col0 ) )
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL MAX( - 52 ) + 53 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL MAX ( - 52 ) + 53 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL + - ( ( - - MAX( ALL - 70 ) ) ) * - + 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-490

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL + - ( ( - - MAX ( ALL - 70 ) ) ) * - + 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-490

query I rowsort
SELECT ALL 59 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # DIV for integer division: 
query II rowsort label-8368
SELECT 10 AS col2, col1 DIV - 96 + 44 + col2 * + - col2 * - 96 FROM tab0 AS cor0
----
10
212108
10
940940
10
9644

skipif mysql # not compatible
query II rowsort label-8368
SELECT 10 AS col2, col1 / - 96 + 44 + col2 * + - col2 * - 96 FROM tab0 AS cor0
----
10
212108
10
940940
10
9644

query I rowsort
SELECT ALL - ( col0 ) * + + col0 * 67 AS col0 FROM tab2 AS cor0
----
-141772
-274432
-376875

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - 77 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8371
SELECT + COUNT( * ) DIV 56 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8371
SELECT + COUNT ( * ) / 56 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

query II rowsort
SELECT - col2, col1 AS col0 FROM tab0 cor0 WHERE NOT col0 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL MAX( DISTINCT + 3 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL MAX ( DISTINCT + 3 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT MIN( ALL + col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8374
SELECT MIN ( ALL + col1 ) FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT - 98 + - col1 AS col1 FROM tab2 cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8376
SELECT ALL + ( - MAX( + + 45 ) ) DIV - 36 FROM tab2 WHERE NOT - col1 = - ( + col0 )
----
1

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL + ( - MAX ( + + 45 ) ) / - 36 FROM tab2 WHERE NOT - col1 = - ( + col0 )
----
1

query I rowsort
SELECT - col2 * - 63 * - - 9 FROM tab1 cor0
----
33453
38556
54432

query I rowsort
SELECT ALL ( - 76 ) * col1 + + col1 * + 6 FROM tab2 AS cor0
----
-3570
-4690
-5390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8379
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IN ( + - col0, CAST( NULL AS SIGNED ) + col0 * col2 )
----

skipif mysql # not compatible
query I rowsort label-8379
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IN ( + - col0, CAST ( NULL AS INTEGER ) + col0 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8380
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8380
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8381
SELECT ALL * FROM tab1 WHERE NULL IN ( - CAST( + col1 AS SIGNED ), col0 )
----

skipif mysql # not compatible
query III rowsort label-8381
SELECT ALL * FROM tab1 WHERE NULL IN ( - CAST ( + col1 AS INTEGER ), col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT col0 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8382
SELECT col0 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL = + col0 )
----

query I rowsort
SELECT DISTINCT - col0 * + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-2167
-4173
-5692

query I rowsort
SELECT ALL - 33 * + col1 AS col1 FROM tab1 AS cor0
----
-1551
-165
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT DISTINCT + + 70 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT + + 70 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col0 FROM tab0 AS cor0
----
47
47
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * - + 77 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + + col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT MIN( ALL ( col2 ) ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8390
SELECT MIN ( ALL ( col2 ) ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT - 75 * + col0 FROM tab2 AS cor0
----
-3450
-4800
-5625

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 65 NOT IN ( - col0 * col1, 41, + - col0 * + col0 - col1 * + + 89 )
----

query I rowsort
SELECT DISTINCT - col0 + - col0 * + 80 AS col2 FROM tab0 AS cor0
----
-1215
-7047
-7857

query II rowsort
SELECT DISTINCT col0, + 27 AS col2 FROM tab2
----
46
27
64
27
75
27

query I rowsort
SELECT DISTINCT + col1 * - 56 AS col1 FROM tab2
----
-2856
-3752
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT COUNT( * ) * - - 1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8396
SELECT COUNT ( * ) * - - 1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 55 * - + 32 * + + col1 AS col2 FROM tab2 AS cor0
----
117920
135520
89760

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 72 - - col2 = 14
----

query II rowsort
SELECT col0, ( col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - ( + + col2 ) )
----

query III rowsort
SELECT - col0, col0 AS col2, + col0 AS col0 FROM tab2
----
9 values hashing to 8ebbaa74e664d20c3a2272cbd927b619

query I rowsort
SELECT ALL ( + 35 ) AS col1 FROM tab0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT ALL + col2 * + col0 * - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8402
SELECT ALL + col2 * + col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col0, col1 col0 FROM tab2 WHERE ( NULL ) <= ( NULL )
----

query I rowsort
SELECT + 7 * - col0 AS col0 FROM tab1
----
-357
-595
-637

query II rowsort
SELECT ALL 86 * - 99 AS col1, 61 FROM tab2
----
-8514
61
-8514
61
-8514
61

query III rowsort
SELECT ALL * FROM tab1 WHERE 83 + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 60 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 17 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT col1 + 33 + + col0 AS col1 FROM tab2
----
130
174
175

query I rowsort
SELECT ALL + col1 + - col0 * + 52 AS col0 FROM tab1
----
-2638
-4415
-4685

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 AND - + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL - 18 - + COUNT( * ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - 18 - + COUNT ( * ) FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ALL - ( - 42 ) AS col0 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT col2 + + 19 FROM tab2
----
42
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT - MAX( DISTINCT - ( + col2 ) ) col0 FROM tab0 cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8415
SELECT - MAX ( DISTINCT - ( + col2 ) ) col0 FROM tab0 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT + COUNT( + - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8416
SELECT + COUNT ( + - col2 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL + COUNT( * ) * + - 27 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL + COUNT ( * ) * + - 27 FROM tab1
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 * 34 col0 FROM tab0
----
1428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8419
SELECT - COUNT( * ) + + COUNT( * ) DIV + 6 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT - ( + col1 ) <> NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8419
SELECT - COUNT ( * ) + + COUNT ( * ) / + 6 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT - ( + col1 ) <> NULL )
----
0

query I rowsort
SELECT ALL + col0 * - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-2093
-4056
-5567

query I rowsort
SELECT ALL - ( + 63 ) AS col2 FROM tab1 AS cor0
----
-63
-63
-63

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT NULL <= 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT + MAX( + - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8423
SELECT + MAX ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT 97 * col1 FROM tab0 AS cor0 WHERE NOT col0 >= - + col1
----

query I rowsort
SELECT DISTINCT - col0 * - 33 AS col2 FROM tab1
----
1683
2805
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT MIN( ALL col1 ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8426
SELECT MIN ( ALL col1 ) col2 FROM tab1
----
5

query I rowsort
SELECT ALL - col0 * 97 * 79 * - col1 AS col0 FROM tab1
----
3256775
32774651
5471382

query II rowsort
SELECT + col2, 42 FROM tab2
----
23
42
40
42
58
42

query I rowsort
SELECT ALL - - 7 / - col0 * + col2 AS col0 FROM tab0 WHERE NOT NULL = + col0
----

query I rowsort
SELECT + 65 + - 41 * + - col1 + col2 * - - col0 * col0 AS col0 FROM tab2 AS cor0
----
167062
329062
50824

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT + + 49 + - MIN( - + 32 ) col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8431
SELECT + + 49 + - MIN ( - + 32 ) col2 FROM tab0 AS cor0
----
81

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT DISTINCT 25, COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1
----
25
9

skipif mysql # not compatible
query II rowsort label-8433
SELECT DISTINCT 25, COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1
----
25
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT - col1 / - col2 - 91 - - 29 / + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT - col1 / - col2 - 91 - - 29 / + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + - - 57 FROM tab1 AS cor0
----
-28
-34
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 - + ( + - col1 ) = + col2 * - col2 * - 20 + + 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 - + + col2 * - col2 FROM tab2 AS cor0
----
1677
3431
580

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE - col1 / - col2 * 93 NOT IN ( - - col1 + + + col2 * col2 )
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 * + 87 - + 33 * + + 80 FROM tab1
----
1797
4755
5277

query II rowsort
SELECT ALL + ( - - 36 ) AS col2, + col1 + + + col2 AS col0 FROM tab0
----
36
100
36
128
36
31

query II rowsort
SELECT + col0 * + 81, - col2 + col0 AS col1 FROM tab2
----
3726
23
5184
24
6075
17

query I rowsort
SELECT ALL - 88 * + - col1 FROM tab2
----
4488
5896
6776

query I rowsort
SELECT ALL 1 * + ( - col2 ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT - COUNT( * ) * - 91 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-8444
SELECT - COUNT ( * ) * - 91 FROM tab2
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT ALL - col1 * 15 DIV + col1 AS col1 FROM tab1
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL - col1 * 15 / + col1 AS col1 FROM tab1
----
-15
-15
-15

query I rowsort
SELECT - 89 * col1 AS col0 FROM tab0
----
-1869
-7209
-89

query I rowsort
SELECT + 7 * - ( + + col1 ) AS col1 FROM tab2
----
-357
-469
-539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT ALL - + col1 AS col0 FROM tab1 AS cor0 WHERE CAST( 68 AS SIGNED ) - + col2 + 23 + ( + col0 ) * + col2 + + col1 + col0 * + + col1 BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL - + col1 AS col0 FROM tab1 AS cor0 WHERE CAST ( 68 AS INTEGER ) - + col2 + 23 + ( + col0 ) * + col2 + + col1 + col0 * + + col1 BETWEEN NULL AND col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + 58 + + ( col0 ) AND ( - 17 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * + col1 - - 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT ALL + col2 DIV - - 67 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL + col2 / - - 67 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8452
SELECT DISTINCT + - 20 AS col0, COUNT( * ) + - 52 - 34 FROM tab1 AS cor0
----
-20
-83

skipif mysql # not compatible
query II rowsort label-8452
SELECT DISTINCT + - 20 AS col0, COUNT ( * ) + - 52 - 34 FROM tab1 AS cor0
----
-20
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-8453
SELECT ALL COUNT( * ) AS col2, ( 45 ) AS col1 FROM tab0 AS cor0
----
3
45

skipif mysql # not compatible
query II rowsort label-8453
SELECT ALL COUNT ( * ) AS col2, ( 45 ) AS col1 FROM tab0 AS cor0
----
3
45

query I rowsort
SELECT 26 * + + col2 AS col1 FROM tab0 AS cor0
----
1222
2574
260

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 78 * - - 10 * + col2 >= - - col1 / + - 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT ALL MAX( ALL + - col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL MAX ( ALL + - col0 ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT 87 * + 59 AS col1 FROM tab0 AS cor0
----
5133

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 * - - col1 / 63 + 36 + + 1 + - + col1 / col0 / col1 IN ( - - col0 + - col0 * + + 90 + + 86 * + col0, - 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT ALL 7 + + ( - + 92 ) + + COUNT( * ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL 7 + + ( - + 92 ) + + COUNT ( * ) FROM tab1
----
-82

query I rowsort
SELECT ALL + 66 + - + ( - col2 ) FROM tab0
----
113
165
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT - COUNT( + 32 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8461
SELECT - COUNT ( + 32 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE - col0 * + - 89 + - col2 / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 97 + + - col2 AS col2 FROM tab2
----
-120
-137
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) + + + 49 FROM tab1 WHERE NOT NULL IS NOT NULL
----
49

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) + + + 49 FROM tab1 WHERE NOT NULL IS NOT NULL
----
49

query I rowsort
SELECT DISTINCT - ( + 76 ) FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8466
SELECT DISTINCT + col0 * + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT + col0 * + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT DISTINCT SUM( DISTINCT + 94 ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT SUM ( DISTINCT + 94 ) FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT DISTINCT + 76 + - MIN( ALL - + 84 ) AS col1 FROM tab1
----
160

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT + 76 + - MIN ( ALL - + 84 ) AS col1 FROM tab1
----
160

query II rowsort
SELECT - 77 + + 84 * - col1 - col2 + 38 * + col0 * - + col1 - - col0, col0 FROM tab0
----
-3849
97
-53083
15
-71190
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL - 34 * - COUNT( * ) + + COUNT( * ) AS col0 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL - 34 * - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1
----
105

query I rowsort
SELECT DISTINCT - col1 - 50 * - col1 FROM tab0 AS cor0
----
1029
3969
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT DISTINCT + 78 - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT + 78 - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col0 ) col1, col1 FROM tab2 AS cor0 WHERE col2 * + + col0 + col1 NOT IN ( - + col1, + col1 )
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL - - MIN( - - col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL - - MIN ( - - col2 ) FROM tab2 cor0
----
23

query II rowsort
SELECT col1 AS col0, - 97 AS col2 FROM tab2
----
51
-97
67
-97
77
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT + MIN( DISTINCT - - 85 ) * 3 AS col1 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-8476
SELECT + MIN ( DISTINCT - - 85 ) * 3 AS col1 FROM tab1
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT AVG ( + ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8477
SELECT AVG ( + ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8478
SELECT - CAST( NULL AS DECIMAL ) * - + 39 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT - CAST ( NULL AS REAL ) * - + 39 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 19 * + 20 FROM tab2
----
380
380
380

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 97 + - + 66 < 18 OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 9 FROM tab2 AS cor0 WHERE NOT col0 / - + col2 > + + col1
----
9
9
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - col1 <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - + 18 AS col1, 19 * - col2 * - col0 FROM tab2 AS cor0
----
-18
20102
-18
48640
-18
82650

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 16 * - col2 * col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL - - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8485
SELECT ALL - - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col0 BETWEEN col0 AND col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 23 * col1 * + + 14 FROM tab0
----
26082
322
6762

query I rowsort
SELECT ALL + - 93 AS col1 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT - + 9 * 31 AS col2 FROM tab1 AS cor0
----
-279
-279
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-8490
SELECT - col0 DIV 86 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT - col0 / 86 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - + col0
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT - - ( + 17 ) AS col2 FROM tab2 cor0
----
17

query I rowsort
SELECT + 18 AS col1 FROM tab2 AS cor0 WHERE + 93 + col2 * col0 IS NULL
----

query I rowsort
SELECT ALL - col0 * + 22 * 67 AS col0 FROM tab2 AS cor0
----
-110550
-67804
-94336

query I rowsort
SELECT + + col1 * + ( - 54 ) AS col2 FROM tab2 AS cor0
----
-2754
-3618
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL + ( - ( - + MAX( ALL + col2 ) ) ) * + COUNT( * ) + + 17 AS col0 FROM tab0 AS cor0
----
314

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL + ( - ( - + MAX ( ALL + col2 ) ) ) * + COUNT ( * ) + + 17 AS col0 FROM tab0 AS cor0
----
314

query I rowsort
SELECT DISTINCT - col2 * - 84 AS col2 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT ALL 90 + 54 AS col0 FROM tab0
----
144
144
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT ALL + COUNT( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL + COUNT ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8500
SELECT 99 DIV COUNT( * ) * - MIN( + col0 ) + + 42 AS col1 FROM tab0 AS cor0
----
-453

skipif mysql # not compatible
query I rowsort label-8500
SELECT 99 / COUNT ( * ) * - MIN ( + col0 ) + + 42 AS col1 FROM tab0 AS cor0
----
-453

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT ALL col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL col2 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT + 80 / - CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8502
SELECT + 80 / - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT DISTINCT 51 + + MIN( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT 51 + + MIN ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8504
SELECT + - col2 DIV + col2 - - + col1 FROM tab0 cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-8504
SELECT + - col2 / + col2 - - + col1 FROM tab0 cor0
----
0
20
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8505
SELECT col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8505
SELECT col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8506
SELECT SUM( 6 ) AS col1, + 83 - - - 29 FROM tab2 AS cor0
----
18
54

skipif mysql # not compatible
query II rowsort label-8506
SELECT SUM ( 6 ) AS col1, + 83 - - - 29 FROM tab2 AS cor0
----
18
54

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 9 IS NOT NULL
----

query I rowsort
SELECT col1 + + 83 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL 72 + COUNT( * ) * 88 AS col1 FROM tab2, tab1 AS cor0
----
864

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL 72 + COUNT ( * ) * 88 AS col1 FROM tab2, tab1 AS cor0
----
864

query I rowsort
SELECT + ( + 2 ) AS col0 FROM tab0
----
2
2
2

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab2 WHERE NOT + col1 + col2 IS NOT NULL
----

query I rowsort
SELECT 39 * ( + col2 ) FROM tab1
----
2301
2652
3744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 98 AS col2, + 33 col1 FROM tab0
----
-98
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT + MIN( - - 45 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-8514
SELECT + MIN ( - - 45 ) FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT 88 * - COUNT( * ) FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-8515
SELECT 88 * - COUNT ( * ) FROM tab2
----
-264

query I rowsort
SELECT DISTINCT - ( 1 ) AS col2 FROM tab2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8517
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * COUNT( * ) + - CAST( NULL AS SIGNED ) * 5 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT - CAST ( NULL AS REAL ) * COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 5 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8518
SELECT - 51 + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT - 51 + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT + MAX( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT + MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8520
SELECT * FROM tab0 AS cor0 WHERE CAST( col2 AS SIGNED ) / - - col0 - col0 BETWEEN NULL AND + + col1
----

skipif mysql # not compatible
query III rowsort label-8520
SELECT * FROM tab0 AS cor0 WHERE CAST ( col2 AS INTEGER ) / - - col0 - col0 BETWEEN NULL AND + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - - col2 col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT 95 * - 25 + - + col1 * + + ( col2 ) * - col2 FROM tab1
----
126649
15030
214953

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8523
SELECT - CAST( + ( - col2 ) AS SIGNED ), - col0 AS col2 FROM tab0
----
10
-87
47
-15
99
-97

skipif mysql # not compatible
query II rowsort label-8523
SELECT - CAST ( + ( - col2 ) AS INTEGER ), - col0 AS col2 FROM tab0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - - 67 + + + col0 col2 FROM tab0 WHERE NULL IS NULL
----
819
891
901

query III rowsort
SELECT * FROM tab0 WHERE + - 29 >= + col1 + - col1 / + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8527
SELECT col0 DIV + - 15 AS col1, + 50 DIV col2 FROM tab0
----
-1
1
-5
5
-6
0

skipif mysql # not compatible
query II rowsort label-8527
SELECT col0 / + - 15 AS col1, + 50 / col2 FROM tab0
----
-1
1
-5
5
-6
0

query I rowsort
SELECT + 88 * + - col1 FROM tab0
----
-1848
-7128
-88

query I rowsort
SELECT DISTINCT - col0 * - col2 + - 37 AS col1 FROM tab2
----
1021
2523
4313

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab0 WHERE NOT + 73 * + col2 + col0 + - + col1 + + + 13 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 73 * + col2 + col0 + - + col1 + + + 13 IS NOT NULL
----
0

query I rowsort
SELECT + 19 + - + col0 FROM tab1
----
-32
-66
-72

query I rowsort
SELECT - 86 + - 56 FROM tab2
----
-142
-142
-142

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT - 32 * 19 AS col0 FROM tab2 AS cor0
----
-608

onlyif mysql # DIV for integer division: 
query I rowsort label-8535
SELECT + + col2 DIV + 55 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8535
SELECT + + col2 / + 55 AS col1 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT DISTINCT 91 * col0 DIV - - 5 AS col2 FROM tab0
----
1583
1765
273

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT 91 * col0 / - - 5 AS col2 FROM tab0
----
1583
1765
273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + + 61 col0 FROM tab2
----
-1403
-2440
-3538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col2 ) * - col2 col2 FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT BETWEEN - 35 AND ( - col2 - + 8 + 46 * + ( - 98 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN - 23 * - + col1 + + 26 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN - 23 * - + col1 + + 26 AND - col0
----
0

query I rowsort
SELECT ALL + + 6 FROM tab2 AS cor0 WHERE NOT ( NOT ( 98 * - col2 * - col0 BETWEEN NULL AND ( + col2 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8543
SELECT + col0 DIV + 28 + - col0 * col2, + col1 AS col2 FROM tab2 AS cor0
----
-1057
51
-2558
77
-4348
67

skipif mysql # not compatible
query II rowsort label-8543
SELECT + col0 / + 28 + - col0 * col2, + col1 AS col2 FROM tab2 AS cor0
----
-1057
51
-2558
77
-4348
67

query I rowsort
SELECT + col1 + 91 * + + col2 AS col2 FROM tab1
----
5374
6235
8750

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = + - 70 + - col0
----

query II rowsort
SELECT DISTINCT - + ( - - col0 ) + - + col0 * - - ( + col2 ), - 2 FROM tab1 AS cor0 WHERE + ( + col1 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT ( - - MIN( ALL - col0 ) ) AS col0 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8547
SELECT ( - - MIN ( ALL - col0 ) ) AS col0 FROM tab0 cor0
----
-97

query I rowsort
SELECT + 30 * + 17 AS col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
510
510
510

onlyif mysql # DIV for integer division: 
query II rowsort label-8549
SELECT - 74 AS col0, col2 DIV - ( col1 ) FROM tab2 AS cor0
----
-74
0
-74
0
-74
0

skipif mysql # not compatible
query II rowsort label-8549
SELECT - 74 AS col0, col2 / - ( col1 ) FROM tab2 AS cor0
----
-74
0
-74
0
-74
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8550
SELECT DISTINCT + - col1 AS col0, CAST( NULL AS SIGNED ) - + col1 + + col1 / + + 81 / + + col2 AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-8550
SELECT DISTINCT + - col1 AS col0, CAST ( NULL AS INTEGER ) - + col1 + + col1 / + + 81 / + + col2 AS col2 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT COUNT( + - 93 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8551
SELECT COUNT ( + - 93 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT 31 * 37 * CAST( ( col0 ) AS SIGNED ) * - + ( + col0 ) - - + 76 FROM tab2 cor0
----
-2426976
-4698036
-6451799

skipif mysql # not compatible
query I rowsort label-8552
SELECT 31 * 37 * CAST ( ( col0 ) AS INTEGER ) * - + ( + col0 ) - - + 76 FROM tab2 cor0
----
-2426976
-4698036
-6451799

onlyif mysql # aggregate syntax: 
query II rowsort label-8553
SELECT DISTINCT + COUNT( * ), MAX( ALL + col0 ) AS col1 FROM tab0
----
3
97

skipif mysql # not compatible
query II rowsort label-8553
SELECT DISTINCT + COUNT ( * ), MAX ( ALL + col0 ) AS col1 FROM tab0
----
3
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col0 AND ( NULL )
----

query II rowsort
SELECT DISTINCT 69 AS col2, - col0 - - col2 AS col0 FROM tab1
----
69
-23
69
-26
69
45

query I rowsort
SELECT + col0 * - 75 + + 3 + + col2 FROM tab1
----
-3726
-6313
-6754

query III rowsort
SELECT * FROM tab2 WHERE + 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT COUNT( * ) + - MAX( - col0 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8558
SELECT COUNT ( * ) + - MAX ( - col0 ) FROM tab0 AS cor0
----
18

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 6 - + 32 IS NULL
----

query I rowsort
SELECT ALL + 47 - + + col0 FROM tab2 AS cor0
----
-17
-28
1

query II rowsort
SELECT DISTINCT col0 AS col2, col2 + - 37 + - - 14 FROM tab1 AS cor0
----
51
73
85
36
91
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 - + col1 * + col1 col1, + ( + ( - - col2 ) ) * + col2 AS col2 FROM tab1
----
-100
9216
-2141
4624
34
3481

onlyif mysql # DIV for integer division: 
query I rowsort label-8563
SELECT 83 * col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-8563
SELECT 83 * col1 / - col1 AS col1 FROM tab0 AS cor0
----
-83
-83
-83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NULL ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + ( col0 ) AS col2, + col0 * + ( + col1 ) FROM tab2 AS cor0
----
46
2346
64
4928
75
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT DISTINCT + MIN( - - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT + MIN ( - - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 * + col2 col0 FROM tab2 AS cor0
----
1320
1914
759

query I rowsort
SELECT DISTINCT - 10 * + - col2 FROM tab1
----
590
680
960

query I rowsort
SELECT ALL - + 83 FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT - 82 FROM tab1 WHERE NOT + col1 = - col1 * + + col0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT DISTINCT 88 * - COUNT( * ) AS col2 FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT 88 * - COUNT ( * ) AS col2 FROM tab1
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT DISTINCT + - col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + - col1 IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT + - col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT + CAST( NULL AS SIGNED ) * - 53 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT + CAST ( NULL AS INTEGER ) * - 53 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * + 81 * 57 AS col0 FROM tab1
----
235467
392445
420147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 43, + col1 * col2 col0 FROM tab2
----
43
1173
43
3080
43
3886

query I rowsort
SELECT 47 * + col1 FROM tab1
----
2209
235
658

query I rowsort
SELECT DISTINCT + 83 * + 21 FROM tab0
----
1743

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT ALL + col2 DIV + + col0 AS col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL + col2 / + + col0 AS col1 FROM tab0
----
0
1
3

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - - col1 IS NOT NULL OR NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 72 * + 4 AS col1 FROM tab1 AS cor0
----
288

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + - + col0 AS col2 FROM tab0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 + + col1 col2 FROM tab2 AS cor0
----
71
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT DISTINCT + MAX( DISTINCT + col0 ) + COUNT( * ) AS col1 FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-8584
SELECT DISTINCT + MAX ( DISTINCT + col0 ) + COUNT ( * ) AS col1 FROM tab1 cor0
----
94

query I rowsort
SELECT DISTINCT - - 87 * - - col1 FROM tab2 AS cor0
----
4437
5829
6699

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 IN ( - ( col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8587
SELECT + COUNT( * ) DIV 78 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8587
SELECT + COUNT ( * ) / 78 AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8588
SELECT * FROM tab2 WHERE col0 < CAST( NULL AS SIGNED ) * + + 8
----

skipif mysql # not compatible
query III rowsort label-8588
SELECT * FROM tab2 WHERE col0 < CAST ( NULL AS INTEGER ) * + + 8
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8589
SELECT - COUNT( - col1 ) DIV + COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8589
SELECT - COUNT ( - col1 ) / + COUNT ( * ) AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT 86 - - COUNT( * ) AS col0 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-8590
SELECT 86 - - COUNT ( * ) AS col0 FROM tab2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8591
SELECT DISTINCT + + CAST( + ( - + COUNT( * ) ) AS SIGNED ) + - ( + + 40 ) AS col0 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT + + CAST ( + ( - + COUNT ( * ) ) AS INTEGER ) + - ( + + 40 ) AS col0 FROM tab2 AS cor0
----
-43

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT - ( + 2 ) AS col0 FROM tab0 AS cor0
----
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT - 82 * - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8596
SELECT - CAST( NULL AS SIGNED ), COUNT( - + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8596
SELECT - CAST ( NULL AS INTEGER ), COUNT ( - + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT DISTINCT ( MAX( ALL - col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT ( MAX ( ALL - col0 ) ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT SUM( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT SUM ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL 87 * + - COUNT( * ) col2 FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8599
SELECT ALL 87 * + - COUNT ( * ) col2 FROM tab0 AS cor0
----
-261

query II rowsort
SELECT ALL - col0, 40 AS col2 FROM tab1 AS cor0
----
-51
40
-85
40
-91
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8601
SELECT DISTINCT 52 * COUNT( * ) AS col2, - 25 AS col2 FROM tab0
----
156
-25

skipif mysql # not compatible
query II rowsort label-8601
SELECT DISTINCT 52 * COUNT ( * ) AS col2, - 25 AS col2 FROM tab0
----
156
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8602
SELECT col2 DIV col0 FROM tab2 WHERE NOT + col2 = + - col0 * + + col0 + + - col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8602
SELECT col2 / col0 FROM tab2 WHERE NOT + col2 = + - col0 * + + col0 + + - col0
----
0
0
0

query I rowsort
SELECT DISTINCT 79 * + + ( - + col0 ) * + + col1 FROM tab2
----
-185334
-389312
-396975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8604
SELECT col1 * col1 + + + 86 * - 62 / - col0 FROM tab1 WHERE NOT + CAST( + - 93 AS SIGNED ) BETWEEN NULL AND CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8604
SELECT col1 * col1 + + + 86 * - 62 / - col0 FROM tab1 WHERE NOT + CAST ( + - 93 AS INTEGER ) BETWEEN NULL AND CAST ( col1 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT ALL 97 DIV + col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL 97 / + col2 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE col0 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL + col2 + ( + 34 ) FROM tab2 AS cor0
----
57
74
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8608
SELECT - + 35 DIV - 71 + + col2 * ( - - 33 ) FROM tab0 AS cor0
----
1551
3267
330

skipif mysql # not compatible
query I rowsort label-8608
SELECT - + 35 / - 71 + + col2 * ( - - 33 ) FROM tab0 AS cor0
----
1551
3267
330

query I rowsort
SELECT ( + + 20 ) + - 87 FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT - 38 + - ( + - col0 ) AS col2 FROM tab1
----
13
47
53

query II rowsort
SELECT ALL col2 * - - col2 * col1, col0 FROM tab2 AS cor0
----
123200
64
225388
75
26979
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT + + 0 - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8612
SELECT + + 0 - COUNT ( * ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT col2 - - ( - col1 ) - + - CAST( NULL AS SIGNED ) * - col1 * + 68 + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT col2 - - ( - col1 ) - + - CAST ( NULL AS INTEGER ) * - col1 * + 68 + - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col2 - + + 41 FROM tab1 AS cor0
----
4855
4974
6147

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL - + COUNT( * ) * + 80 AS col1 FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL - + COUNT ( * ) * + 80 AS col1 FROM tab0 AS cor0
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-8616
SELECT DISTINCT - col1 DIV col2 + 9 AS col2 FROM tab0 AS cor0
----
7
8
9

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT - col1 / col2 + 9 AS col2 FROM tab0 AS cor0
----
7
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT DISTINCT - 97 + - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + 8
----
-97

skipif mysql # not compatible
query I rowsort label-8617
SELECT DISTINCT - 97 + - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + 8
----
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT IN ( + 46, 44 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8619
SELECT ALL COUNT( * ) DIV + MAX( ALL 53 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL COUNT ( * ) / + MAX ( ALL 53 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT - 90 + - + ( + + col0 ) FROM tab0
----
-105
-177
-187

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT - 56 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT - 56 / + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL col0 + - col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL col0 + - col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT 40 * - SUM( + col2 ) AS col0 FROM tab2
----
-4840

skipif mysql # not compatible
query I rowsort label-8623
SELECT 40 * - SUM ( + col2 ) AS col0 FROM tab2
----
-4840

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col1 FROM tab2 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT - COUNT( - + col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8626
SELECT - COUNT ( - + col0 ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8627
SELECT + CAST( NULL AS DECIMAL ) FROM tab2 cor0 WHERE NOT NULL > col0
----

skipif mysql # not compatible
query I rowsort label-8627
SELECT + CAST ( NULL AS REAL ) FROM tab2 cor0 WHERE NOT NULL > col0
----

query I rowsort
SELECT DISTINCT - col2 * - - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - MIN( + + 98 ) FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-8629
SELECT - MIN ( + + 98 ) FROM tab0 AS cor0
----
-98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = col2 + + col1 * - col0
----

query II rowsort
SELECT DISTINCT col0, 30 AS col2 FROM tab0 AS cor0
----
15
30
87
30
97
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + - col1 * 81 - CAST( + col0 AS SIGNED ) + - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + - col1 * 81 - CAST ( + col0 AS INTEGER ) + - col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8633
SELECT - 70 DIV - + COUNT( * ) + + 18 FROM tab2 cor0
----
41

skipif mysql # not compatible
query I rowsort label-8633
SELECT - 70 / - + COUNT ( * ) + + 18 FROM tab2 cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8634
SELECT DISTINCT + 60, col2 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-8634
SELECT DISTINCT + 60, col2 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
60
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8635
SELECT DISTINCT col2 * 32 DIV 4 FROM tab1
----
472
544
768

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT col2 * 32 / 4 FROM tab1
----
472
544
768

query I rowsort
SELECT 98 + - ( + - col0 ) FROM tab1
----
149
183
189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8637
SELECT + CAST( NULL AS SIGNED ) AS col1, - col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-8637
SELECT + CAST ( NULL AS INTEGER ) AS col1, - col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col1 FROM tab0 WHERE + col0 NOT IN ( - col2 * + 55, + col1, + col1 )
----
3

query II rowsort
SELECT + 66, col1 FROM tab2
----
66
51
66
67
66
77

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 WHERE - + col2 + - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT ALL + COUNT( * ) + + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8642
SELECT DISTINCT + 34 * 24 DIV - col2 FROM tab0 cor0
----
-17
-8
-81

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT + 34 * 24 / - col2 FROM tab0 cor0
----
-17
-8
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT ALL - MAX( - - 74 ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL - MAX ( - - 74 ) FROM tab2 AS cor0
----
-74

query I rowsort
SELECT 36 + - col2 * - + col0 + - 40 - col0 * - col0 FROM tab1
----
12236
14465
7493

query III rowsort
SELECT ALL * FROM tab1 WHERE + 87 + - col1 > NULL
----

query I rowsort
SELECT ALL + 38 * col2 + - col2 + + 42 - col1 FROM tab0
----
1700
3704
391

query III rowsort
SELECT * FROM tab2 WHERE - + col0 - col0 + - + 64 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - 88 / + col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 39 * - 81 * 26 * + col1 FROM tab1 AS cor0
----
1149876
3860298
410670

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8650
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( + - 51 AS SIGNED ) - - col1 NOT BETWEEN + CAST( - col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8650
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( + - 51 AS INTEGER ) - - col1 NOT BETWEEN + CAST ( - col0 AS INTEGER ) AND NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE 31 / ( + + 83 ) + + + 91 BETWEEN ( NULL ) AND col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8652
SELECT AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT AVG ( DISTINCT CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8653
SELECT DISTINCT - 90 AS col0, + SUM( + col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-90
185

skipif mysql # not compatible
query II rowsort label-8653
SELECT DISTINCT - 90 AS col0, + SUM ( + col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-90
185

query I rowsort
SELECT ALL ( col1 ) * + col0 - - col1 AS col0 FROM tab1
----
430
4324
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, - col0 AS col2 FROM tab0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT col1 - + 3 + 3 AS col2 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 - - col2 col2 FROM tab2
----
101
119
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT ALL - COUNT( * ) - - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT 53 * + MIN( - + col0 ) AS col2 FROM tab0
----
-5141

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT 53 * + MIN ( - + col0 ) AS col2 FROM tab0
----
-5141

query II rowsort
SELECT ALL + 92 AS col2, - col2 FROM tab0 cor0
----
92
-10
92
-47
92
-99

query II rowsort
SELECT DISTINCT col0, - col1 AS col2 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8662
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <= col2 * col2
----

skipif mysql # not compatible
query III rowsort label-8662
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <= col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( 92 ) AS col1 FROM tab1 WHERE NOT col2 * + 65 <= col1
----
-92

query I rowsort
SELECT + 3 * - col0 FROM tab1 WHERE ( col1 + - col2 ) NOT BETWEEN col2 * + col1 + - col1 * 19 AND 12
----
-153
-255
-273

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * 61 NOT BETWEEN col0 + 71 * - col1 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8668
SELECT ALL CAST( SUM( ALL - col1 ) AS SIGNED ) FROM tab1 WHERE NOT - col1 * 21 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL CAST ( SUM ( ALL - col1 ) AS INTEGER ) FROM tab1 WHERE NOT - col1 * 21 < NULL
----
NULL

query I rowsort
SELECT col0 FROM tab1 WHERE NOT 13 + - col0 * - col1 IN ( col2 * - 29 )
----
51
85
91

query I rowsort
SELECT col0 FROM tab2 WHERE ( NULL ) NOT IN ( 64 )
----

query I rowsort
SELECT col0 * 30 + + 81 AS col2 FROM tab0
----
2691
2991
531

query I rowsort
SELECT ( - col1 ) + + 19 AS col1 FROM tab2
----
-32
-48
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 IN ( 8 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8674
SELECT - CAST( NULL AS SIGNED ) + - ( 74 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT - CAST ( NULL AS INTEGER ) + - ( 74 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + col0 + col0 AS col2 FROM tab0
----
1230
1914
194

query III rowsort
SELECT * FROM tab1 WHERE 86 * 59 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 29 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 58 * col1 + col1 AS col0 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT col1 * col1 + 37 AS col2 FROM tab2
----
2638
4526
5966

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 NOT BETWEEN 91 AND ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 col0 FROM tab2
----
-52

query I rowsort
SELECT DISTINCT 25 FROM tab2 WHERE NOT NULL = - col2 * ( 57 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 77 * col2 FROM tab1
----
4543
5236
7392

query I rowsort
SELECT ALL - 72 - - col0 FROM tab1 WHERE NOT ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 + ( + col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 - col0 FROM tab1 WHERE - col1 NOT BETWEEN NULL AND 43 * col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 8 * + col1 ) <> - 96 + col1
----

query I rowsort
SELECT - 20 FROM tab1 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT COUNT( * ) * 94 AS col0 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-8691
SELECT COUNT ( * ) * 94 AS col0 FROM tab2
----
282

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 / 58 ) IN ( 55 )
----

query I rowsort
SELECT - col2 + + col1 * 89 FROM tab2 AS cor0
----
4516
5905
6813

query I rowsort
SELECT + col2 * + col1 + ( + col1 ) FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT ALL ( + 54 ) FROM tab2 AS cor0
----
54
54
54

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN col2 AND col0 + + 51
----

query I rowsort
SELECT + 12 - col1 * col0 AS col0 FROM tab1
----
-413
-4265
-702

query I rowsort
SELECT DISTINCT - 96 + ( + 21 + col1 ) AS col1 FROM tab2 AS cor0
----
-24
-8
2

query I rowsort
SELECT + col2 - + 73 AS col0 FROM tab0 AS cor0
----
-26
-63
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT - COUNT( * ) + MAX( - col0 ) * 95 FROM tab1 AS cor0 WHERE + col1 NOT IN ( 18 )
----
-4848

skipif mysql # not compatible
query I rowsort label-8700
SELECT - COUNT ( * ) + MAX ( - col0 ) * 95 FROM tab1 AS cor0 WHERE + col1 NOT IN ( 18 )
----
-4848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 89 col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN + ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT - 9 + + COUNT( * ) * - COUNT( * ) col0 FROM tab0 cor0 WHERE ( + col0 ) IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8702
SELECT - 9 + + COUNT ( * ) * - COUNT ( * ) col0 FROM tab0 cor0 WHERE ( + col0 ) IS NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT - col1 * - CAST( NULL AS SIGNED ) + - 76 FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8703
SELECT - col1 * - CAST ( NULL AS INTEGER ) + - 76 FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + ( 93 ) - - 49 AS col0 FROM tab0 AS cor0
----
142
142
142

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 88 + 84 AS col0 FROM tab1 AS cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT + col2 * + CAST( col0 * col2 AS SIGNED ) FROM tab1 WHERE NOT - ( + 39 ) * - col0 BETWEEN col1 * col0 AND ( NULL )
----
420784

skipif mysql # not compatible
query I rowsort label-8708
SELECT + col2 * + CAST ( col0 * col2 AS INTEGER ) FROM tab1 WHERE NOT - ( + 39 ) * - col0 BETWEEN col1 * col0 AND ( NULL )
----
420784

query I rowsort
SELECT ALL - ( 18 ) AS col1 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT col2 * + + col2 * 37 FROM tab1
----
128797
171088
340992

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT - COUNT( ALL + 68 ) * - COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8711
SELECT - COUNT ( ALL + 68 ) * - COUNT ( * ) AS col0 FROM tab2
----
9

query I rowsort
SELECT 47 * + 25 FROM tab2 AS cor0
----
1175
1175
1175

query I rowsort
SELECT DISTINCT + - ( - 66 ) FROM tab1 AS cor0
----
66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * 15 + 34 <= ( NULL )
----

query I rowsort
SELECT ALL + + 80 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL - COUNT( ALL + - col2 ) + + 73 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL - COUNT ( ALL + - col2 ) + + 73 FROM tab0
----
70

query I rowsort
SELECT - 28 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query II rowsort
SELECT col2 AS col2, - 66 AS col2 FROM tab0
----
10
-66
47
-66
99
-66

query I rowsort
SELECT 52 * + ( 87 ) FROM tab2 WHERE NOT - col2 NOT BETWEEN ( NULL ) AND - col0 / - 80
----

query I rowsort
SELECT - 89 - 19 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab1bc5e2f6f0be65bdb55f5590ed33f3

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE ( 61 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - - col0 + + + 8 AS col0 FROM tab2 AS cor0
----
54
72
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8724
SELECT ALL CAST( COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NOT NULL >= - 34
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8724
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NOT NULL >= - 34
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 74 NOT IN ( + 60 )
----

query I rowsort
SELECT col1 * - col0 + - - col1 FROM tab0 AS cor0
----
-1134
-1806
-96

query I rowsort
SELECT DISTINCT - 89 + - + col1 FROM tab0 AS cor0
----
-110
-170
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8728
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8728
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - ( 32 ) + ( + col0 ) + + 80 AS col1 FROM tab1
----
133
139
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8730
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE col0 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8730
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE col0 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 21 * - 65 IS NULL
----

query I rowsort
SELECT + col2 FROM tab1 WHERE ( - col0 ) <= col2
----
59
68
96

query I rowsort
SELECT + col2 * - col1 * col2 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8734
SELECT - col0 AS col2 FROM tab2 WHERE ( - 70 ) BETWEEN + col2 AND col1 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8734
SELECT - col0 AS col2 FROM tab2 WHERE ( - 70 ) BETWEEN + col2 AND col1 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - col2 * col2 / - col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8736
SELECT ALL - 93 DIV + COUNT( * ) + + + COUNT( * ) AS col1 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL - 93 / + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT ALL col1 * - col1 - - CAST( NULL AS SIGNED ) + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL col1 * - col1 - - CAST ( NULL AS INTEGER ) + col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - 16 NOT IN ( - + ( 81 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 * - 63 < + - col2
----
0

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 * - 63 < + - col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8741
SELECT + 80 * - - 50 + - col2 + - 88 DIV - col0 - - 74 * - 58 col2 FROM tab0 AS cor0
----
-301
-334
-391

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8741
SELECT + 80 * - - 50 + - col2 + - 88 / - col0 - - 74 * - 58 col2 FROM tab0 AS cor0
----
-301
-334
-391

query I rowsort
SELECT col1 + - + col0 + + col2 FROM tab2 AS cor0
----
28
50
53

query I rowsort
SELECT ALL + 53 FROM tab0 AS cor0 WHERE NOT - col2 >= col1 - - 77
----
53
53
53

query I rowsort
SELECT - 75 * + + col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1725
-3000
-4350

query I rowsort
SELECT - 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query II rowsort
SELECT DISTINCT col2 AS col1, + 99 AS col2 FROM tab2
----
23
99
40
99
58
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT - SUM( ALL col1 ) AS col0 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8747
SELECT - SUM ( ALL col1 ) AS col0 FROM tab2 cor0
----
-195

query I rowsort
SELECT + 52 AS col0 FROM tab1 AS cor0 WHERE NOT + 35 BETWEEN NULL AND col2 + - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8749
SELECT DISTINCT + col0 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8749
SELECT DISTINCT + col0 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT col2 AS col1, 5 + - + col2 FROM tab0
----
10
-5
47
-42
99
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-8751
SELECT MIN( ALL - col2 ) AS col2, 25 FROM tab2
----
-58
25

skipif mysql # not compatible
query II rowsort label-8751
SELECT MIN ( ALL - col2 ) AS col2, 25 FROM tab2
----
-58
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT DISTINCT col0 * - + CAST( 80 AS SIGNED ) FROM tab1
----
-4080
-6800
-7280

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT col0 * - + CAST ( 80 AS INTEGER ) FROM tab1
----
-4080
-6800
-7280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8753
SELECT ALL + 62 * - - CAST( - ( + col2 ) AS SIGNED ) * + - col0 * - col0 * - 21 AS col1 FROM tab0
----
1212801282
13768650
98548380

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL + 62 * - - CAST ( - ( + col2 ) AS INTEGER ) * + - col0 * - col0 * - 21 AS col1 FROM tab0
----
1212801282
13768650
98548380

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND ( col2 + - 59 * + - col0 )
----

query I rowsort
SELECT ALL + + 3 AS col0 FROM tab2 WHERE NOT - - col2 * - + 8 / col1 IS NULL
----
3
3
3

query I rowsort
SELECT + col1 - - col1 AS col2 FROM tab1 WHERE NOT + 86 IN ( + ( - col0 ) + + col0 )
----
10
28
94

query II rowsort
SELECT ALL 61, col2 FROM tab2 AS cor0
----
61
23
61
40
61
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL - COUNT( + ( - col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 15 AND + 84 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL - COUNT ( + ( - col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 15 AND + 84 * - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT + - COUNT( - - col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8759
SELECT + - COUNT ( - - col2 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL - 66 * - COUNT( DISTINCT - - col1 ) * - + COUNT( * ) FROM tab1 AS cor0
----
-594

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL - 66 * - COUNT ( DISTINCT - - col1 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-594

query I rowsort
SELECT DISTINCT 27 * - 13 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-351

onlyif mysql # aggregate syntax: 
query II rowsort label-8762
SELECT DISTINCT COUNT( - col1 ) AS col0, - COUNT( * ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8762
SELECT DISTINCT COUNT ( - col1 ) AS col0, - COUNT ( * ) FROM tab0
----
3
-3

query I rowsort
SELECT DISTINCT + - col0 / + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + ( + - col0 ) + + - col1 FROM tab2 AS cor0
----
-141
-142
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 38 BETWEEN + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col2 FROM tab1 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 2 * col0, 84 col1 FROM tab0 AS cor0
----
174
84
194
84
30
84

query I rowsort
SELECT DISTINCT - col0 + ( + 38 ) AS col0 FROM tab1 AS cor0
----
-13
-47
-53

query I rowsort
SELECT DISTINCT 57 * - + col1 + col2 FROM tab2 AS cor0
----
-2884
-3761
-4349

query I rowsort
SELECT ALL + + 65 + - ( col0 ) + + col1 + + col2 * 55 FROM tab2 WHERE NOT NULL <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8771
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, - col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-8771
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + ( + + 42 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + + - col2 * - 92 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * - + 86 AS col2 FROM tab2 WHERE NOT NULL <= + - 45 + col0
----

query I rowsort
SELECT + col1 / 5 AS col1 FROM tab1 cor0 WHERE ( + 10 ) * - + col2 IS NULL
----

query I rowsort
SELECT ALL 0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 40 col0 FROM tab2 AS cor0
----
40

query II rowsort
SELECT + ( - 60 ) * - col0 AS col2, 11 * + - 54 FROM tab0 AS cor0
----
5220
-594
5820
-594
900
-594

onlyif mysql # aggregate syntax: 
query II rowsort label-8779
SELECT ALL - 3 - - COUNT( * ), COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
6
9

skipif mysql # not compatible
query II rowsort label-8779
SELECT ALL - 3 - - COUNT ( * ), COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
6
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ALL MIN( ALL + 83 ) AS col1 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL MIN ( ALL + 83 ) AS col1 FROM tab2 AS cor0
----
83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - 25 + + + col1 / + col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT - + ( - col2 ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT + + 2 * col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query II rowsort label-8785
SELECT - SUM( - 65 ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
195
3

skipif mysql # not compatible
query II rowsort label-8785
SELECT - SUM ( - 65 ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
195
3

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE - 40 IS NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT col0 * + col1 * col1 + + col2 + + col0 + - - col2 NOT BETWEEN + 60 AND - 29 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-8788
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT col0 * + col1 * col1 + + col2 + + col0 + - - col2 NOT BETWEEN + 60 AND - 29 + + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT ALL COUNT( * ) * COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab1 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8790
SELECT ( - col0 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT ( - col0 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT 21, + col2 FROM tab1
----
21
59
21
68
21
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + ( - col1 ) * - col0 FROM tab1 cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL - COUNT( * ) - + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL - COUNT ( * ) - + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT ( - SUM( ALL + col0 ) ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8795
SELECT ( - SUM ( ALL + col0 ) ) AS col0 FROM tab0
----
-199

query I rowsort
SELECT - col2 + 5 AS col0 FROM tab1
----
-54
-63
-91

query I rowsort
SELECT ALL + col2 + - col2 + + col2 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8798
SELECT - CAST( NULL AS DECIMAL ) * + col0 + + + col0 + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT - CAST ( NULL AS REAL ) * + col0 + + + col0 + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT - + col1 DIV 17 + - 63 FROM tab0 cor0
----
-63
-64
-67

skipif mysql # not compatible
query I rowsort label-8799
SELECT - + col1 / 17 + - 63 FROM tab0 cor0
----
-63
-64
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8800
SELECT DISTINCT + + col1 DIV - - CAST( ( col2 ) AS SIGNED ) + + col0 AS col0 FROM tab0 AS cor0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + + col1 / - - CAST ( ( col2 ) AS INTEGER ) + + col0 AS col0 FROM tab0 AS cor0
----
16
89
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8801
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + CAST( - - 49 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8801
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + CAST ( - - 49 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 - + - col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT DISTINCT COUNT( * ) * - SUM( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT COUNT ( * ) * - SUM ( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT - 53 * - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
477

skipif mysql # not compatible
query I rowsort label-8804
SELECT - 53 * - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
477

query I rowsort
SELECT ALL 76 + + 3 FROM tab2
----
79
79
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8806
SELECT col0 DIV + 21 col2 FROM tab0
----
0
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8806
SELECT col0 / + 21 col2 FROM tab0
----
0
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8807
SELECT col1 DIV - + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8807
SELECT col1 / - + col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8808
SELECT ALL * FROM tab0 WHERE NULL = + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8808
SELECT ALL * FROM tab0 WHERE NULL = + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8809
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) * col0, + col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8809
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) * col0, + col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT - CAST( 34 AS SIGNED ) FROM tab1
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-8810
SELECT - CAST ( 34 AS INTEGER ) FROM tab1
----
-34
-34
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 56 col0 FROM tab2 WHERE + col2 <> - col2
----
-56
-56
-56

query II rowsort
SELECT 3 AS col0, 60 AS col0 FROM tab2
----
3
60
3
60
3
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT MIN( DISTINCT + + col1 ) * + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8813
SELECT MIN ( DISTINCT + + col1 ) * + - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT - 55 * + - COUNT( * ) + 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
507

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT - 55 * + - COUNT ( * ) + 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
507

query I rowsort
SELECT 80 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # DIV for integer division: 
query II rowsort label-8816
SELECT - 52, 45 DIV - 10 + col1 DIV - 38 AS col0 FROM tab0 cor0
----
-52
-4
-52
-4
-52
-6

skipif mysql # not compatible
query II rowsort label-8816
SELECT - 52, 45 / - 10 + col1 / - 38 AS col0 FROM tab0 cor0
----
-52
-4
-52
-4
-52
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT DISTINCT - MAX( + col1 ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT - MAX ( + col1 ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-47

query II rowsort
SELECT + 67 AS col2, 89 + + col1 FROM tab1 AS cor0
----
67
103
67
136
67
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT DISTINCT - MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT - MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
77

query II rowsort
SELECT + 30 AS col1, 35 FROM tab1 AS cor0
----
30
35
30
35
30
35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 89 + 70 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + 64 AS col1 FROM tab1 WHERE NULL IN ( - col0 + - - col1 + + col2, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8823
SELECT DISTINCT * FROM tab0 WHERE + col2 - + col2 IN ( CAST( NULL AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query III rowsort label-8823
SELECT DISTINCT * FROM tab0 WHERE + col2 - + col2 IN ( CAST ( NULL AS INTEGER ), - col1 )
----

query I rowsort
SELECT DISTINCT - ( + ( + - 65 ) ) FROM tab0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT - 90 + 12 DIV + - col2 + - col2 * col1 FROM tab0 AS cor0
----
-189
-301
-3897

skipif mysql # not compatible
query I rowsort label-8825
SELECT - 90 + 12 / + - col2 + - col2 * col1 FROM tab0 AS cor0
----
-189
-301
-3897

query I rowsort
SELECT ALL AVG ( DISTINCT + + 60 ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT col2 + + col1 + + + col0 * - + col0 + + col1 AS col2 FROM tab1 cor0
----
-2477
-7156
-8119

query I rowsort
SELECT - + 12 + - - 33 * + + col0 AS col0 FROM tab0 AS cor0
----
2859
3189
483

query I rowsort
SELECT DISTINCT col1 * 34 FROM tab0
----
2754
34
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8830
SELECT * FROM tab2 WHERE + - col2 / + + CAST( - - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8830
SELECT * FROM tab2 WHERE + - col2 / + + CAST ( - - col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + 70 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8832
SELECT DISTINCT + ( + - 74 ) - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT + ( + - 74 ) - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + 81 col0 FROM tab0 AS cor0
----
-3807
-8019
-810

query I rowsort
SELECT col2 - - 32 AS col2 FROM tab1 cor0
----
100
128
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8835
SELECT + COUNT( * ) - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT + COUNT ( * ) - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8836
SELECT 26 + - col0 * 74 col1 FROM tab1 AS cor0 WHERE NOT - + 44 + - CAST( - - 2 AS SIGNED ) IS NULL OR - - 59 NOT BETWEEN - col2 * col2 + + - col0 - col0 / col1 + + col1 + 98 + CAST( NULL AS SIGNED ) + col1 AND NULL
----
-3748
-6264
-6708

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8836
SELECT 26 + - col0 * 74 col1 FROM tab1 AS cor0 WHERE NOT - + 44 + - CAST ( - - 2 AS INTEGER ) IS NULL OR - - 59 NOT BETWEEN - col2 * col2 + + - col0 - col0 / col1 + + col1 + 98 + CAST ( NULL AS INTEGER ) + col1 AND NULL
----
-3748
-6264
-6708

query I rowsort
SELECT - 83 FROM tab0 WHERE NULL = + col1
----

query I rowsort
SELECT ALL + col1 + 2 * + + 15 - + col0 * + col1 AS col0 FROM tab2
----
-2265
-4821
-4928

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8839
SELECT ALL * FROM tab0 WHERE ( + col2 / col2 * + col1 ) NOT IN ( col2 + - col0 / 0, - 1, + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8839
SELECT ALL * FROM tab0 WHERE ( + col2 / col2 * + col1 ) NOT IN ( col2 + - col0 / 0, - 1, + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT DISTINCT 68 + col2 + - + col2 DIV 51 * - 65 FROM tab0 AS cor0
----
115
232
78

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT 68 + col2 + - + col2 / 51 * - 65 FROM tab0 AS cor0
----
115
232
78

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 * 81 IS NULL
----

query II rowsort
SELECT 26, col2 AS col0 FROM tab1 cor0
----
26
59
26
68
26
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8843
SELECT DISTINCT col0 col0, CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8843
SELECT DISTINCT col0 col0, CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ( - COUNT( + 61 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8844
SELECT ( - COUNT ( + 61 ) ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8845
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( + CAST( + 63 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8845
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( + CAST ( + 63 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8846
SELECT DISTINCT - 52 DIV - 96 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT - 52 / - 96 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8847
SELECT col1 DIV + 9 - - - 42 * 52 col0 FROM tab0 AS cor0
----
-2175
-2182
-2184

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8847
SELECT col1 / + 9 - - - 42 * 52 col0 FROM tab0 AS cor0
----
-2175
-2182
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT + SUM( ALL + + col0 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-8848
SELECT + SUM ( ALL + + col0 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-555

query I rowsort
SELECT ALL - col2 * + + ( - 56 ) + 33 FROM tab1
----
3337
3841
5409

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + SUM( 3 ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8850
SELECT + SUM ( 3 ) col1 FROM tab2
----
9

query I rowsort
SELECT DISTINCT + col0 + + col1 * - + col0 * col1 FROM tab0
----
-38280
-98400
0

query I rowsort
SELECT col0 * 40 * col1 FROM tab1
----
17000
171080
28560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT DISTINCT CAST( + ( 89 ) AS SIGNED ) + - - 10 col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8853
SELECT DISTINCT CAST ( + ( 89 ) AS INTEGER ) + - - 10 col1 FROM tab0
----
99

query I rowsort
SELECT DISTINCT - 64 AS col2 FROM tab2 WHERE NOT - 5 < - col0
----
-64

query II rowsort
SELECT ALL - col2, + ( 7 ) - + - col1 * + - 1 AS col0 FROM tab1 cor0
----
-59
2
-68
-40
-96
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8856
SELECT CAST( NULL AS SIGNED ), ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8856
SELECT CAST ( NULL AS INTEGER ), ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
NULL
3

query III rowsort
SELECT ALL * FROM tab2 WHERE 23 IS NOT NULL AND ( NULL ) < ( + - 19 ) + + 29
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 IN ( - 42 / col2 )
----

query I rowsort
SELECT ALL - col1 - - + 29 + - + 28 AS col0 FROM tab1 cor0
----
-13
-4
-46

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 / + ( - 64 ) + - + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8861
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + 80 + ( + - ( + CAST( NULL AS DECIMAL ) ) ) / - CAST( NULL AS SIGNED ) - col1 * + - col0 + + col1 NOT BETWEEN ( - CAST( - col0 AS SIGNED ) * - + col1 ) AND col0 * - col0 + + col2
----

skipif mysql # not compatible
query III rowsort label-8861
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + 80 + ( + - ( + CAST ( NULL AS REAL ) ) ) / - CAST ( NULL AS INTEGER ) - col1 * + - col0 + + col1 NOT BETWEEN ( - CAST ( - col0 AS INTEGER ) * - + col1 ) AND col0 * - col0 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8862
SELECT - - col1 DIV - - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8862
SELECT - - col1 / - - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE - col1 - + - col1 * 30 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE - col1 - + - col1 * 30 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL - 0 + + COUNT( - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL - 0 + + COUNT ( - col1 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 50 BETWEEN NULL AND ( - - col2 )
----
15
81
47
87
21
10

query II rowsort
SELECT 95 - - 7 * 0 AS col0, col1 AS col0 FROM tab2
----
95
51
95
67
95
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL MAX( - 99 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL MAX ( - 99 ) FROM tab1
----
-99

query I rowsort
SELECT - col2 - - 39 FROM tab2
----
-1
-19
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8869
SELECT 3 - - col1 DIV - 89 AS col2 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-8869
SELECT 3 - - col1 / - 89 AS col2 FROM tab1
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT + 1 - COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-8870
SELECT + 1 - COUNT ( * ) FROM tab1
----
-2

query I rowsort
SELECT ALL col2 + col1 + + ( + + col2 ) FROM tab2
----
157
183
97

query I rowsort
SELECT 44 - col2 * 80 - col2 FROM tab1
----
-4735
-5464
-7732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * col1 col1 FROM tab1 AS cor0
----
1128
120
336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 * col2 col0 FROM tab0
----
4089
8613
870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8875
SELECT ALL 19 DIV - SUM( + col1 ) col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8875
SELECT ALL 19 / - SUM ( + col1 ) col1 FROM tab2 cor0
----
0

query II rowsort
SELECT ALL + - col1, ( + col2 ) FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT + 1 * + ( - - col0 ) FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT - - 1, col2 AS col0 FROM tab1 AS cor0
----
1
59
1
68
1
96

query II rowsort
SELECT + col2, + col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL + col2 + + - 21 AS col0 FROM tab0
----
-11
26
78

query III rowsort
SELECT * FROM tab2 WHERE NOT - 47 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8882
SELECT col1 DIV + - col0 col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8882
SELECT col1 / + - col0 col2 FROM tab0
----
-5
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 90 + - col0 AS col2 FROM tab2
----
15
26
44

query I rowsort
SELECT - + AVG ( ALL col1 ) FROM tab2 WHERE NOT NULL = + 47
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 48 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8887
SELECT * FROM tab1 WHERE - CAST( col0 AS DECIMAL ) NOT BETWEEN - CAST( NULL AS SIGNED ) AND + 81
----

skipif mysql # not compatible
query III rowsort label-8887
SELECT * FROM tab1 WHERE - CAST ( col0 AS REAL ) NOT BETWEEN - CAST ( NULL AS INTEGER ) AND + 81
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 76 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8889
SELECT CAST( - AVG ( ALL + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS SIGNED ) + + + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT CAST ( - AVG ( ALL + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) AS INTEGER ) + + + COUNT ( * ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col1 + col0, - col1 * - col0 AS col2 FROM tab0 AS cor0
----
108
1827
96
1215
98
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT - 25 + + - COUNT( * ) FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8891
SELECT - 25 + + - COUNT ( * ) FROM tab0 AS cor0
----
-28

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab1 WHERE + 83 < - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8894
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) * col1 + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) * col1 + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( + + col1 ) - + col1 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT + col2 * + col2 - + 37 AS col1 FROM tab1 AS cor0
----
3444
4587
9179

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT + 4 + + 23 + + COUNT( * ) col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8897
SELECT + 4 + + 23 + + COUNT ( * ) col0 FROM tab0 AS cor0
----
30

query I rowsort
SELECT ALL - col0 - - col0 + - col0 + col2 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT + - 94 * + col0 + + 11 * - - col0 FROM tab2 AS cor0
----
-3818
-5312
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT DISTINCT 86 - - - SUM( - col1 ) FROM tab1 AS cor0
----
152

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT 86 - - - SUM ( - col1 ) FROM tab1 AS cor0
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT - COUNT( * ) + + COUNT( * ) + - 16 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
-16

skipif mysql # not compatible
query I rowsort label-8901
SELECT - COUNT ( * ) + + COUNT ( * ) + - 16 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
-16

query I rowsort
SELECT 64 * + ( + - 22 ) FROM tab0
----
-1408
-1408
-1408

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT COUNT( * ) * + MAX( ALL - - 24 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-8903
SELECT COUNT ( * ) * + MAX ( ALL - - 24 ) FROM tab0
----
72

query I rowsort
SELECT 5 * - col1 * - col2 AS col1 FROM tab0
----
1050
19035
495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT DISTINCT - + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT - + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT DISTINCT - - 54 * COUNT( * ) FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-8906
SELECT DISTINCT - - 54 * COUNT ( * ) FROM tab2 AS cor0
----
162

query II rowsort
SELECT DISTINCT + - col2 * - + 64 + + 99 + + - col1, - col1 AS col2 FROM tab1 AS cor0 WHERE + 8 * - 74 / col0 <= - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT ALL + 67 * - - SUM( + - col1 ) FROM tab2
----
-13065

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL + 67 * - - SUM ( + - col1 ) FROM tab2
----
-13065

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 78 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * 9 AS col2 FROM tab2
----
459
603
693

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT ALL + ( 25 ) + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL + ( 25 ) + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

query I rowsort
SELECT - col0 * + 58 FROM tab0 AS cor0
----
-5046
-5626
-870

query I rowsort
SELECT - 62 * - col1 * - 19 FROM tab2 AS cor0
----
-60078
-78926
-90706

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT + + COUNT( * ) + + - 49 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8914
SELECT + + COUNT ( * ) + + - 49 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT DISTINCT MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT + 90 AS col2 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN 31 / + 52 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT - COUNT( * ) + - 4 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8917
SELECT - COUNT ( * ) + - 4 FROM tab2 AS cor0
----
-7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 65 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8919
SELECT DISTINCT - 29 / - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT - 29 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + - col1 FROM tab0 WHERE - col2 * + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col2 * col2 - col2 col2 FROM tab2
----
46
506
64
1560
75
3306

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NULL NOT IN ( - - col0 * 78 * 61 + - 57 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 55 + - 90, + col2 col1 FROM tab2
----
-35
23
-35
40
-35
58

query III rowsort
SELECT * FROM tab2 WHERE col1 * - 51 IS NULL
----

query II rowsort
SELECT + col2 AS col1, + 78 - - + 59 AS col1 FROM tab0
----
10
137
47
137
99
137

query I rowsort
SELECT ALL + col1 + + ( - 51 ) FROM tab1
----
-37
-4
-46

query I rowsort
SELECT DISTINCT + col2 * - ( 55 ) FROM tab1 AS cor0
----
-3245
-3740
-5280

query I rowsort
SELECT ALL col0 * + 31 AS col1 FROM tab1 AS cor0
----
1581
2635
2821

onlyif mysql # aggregate syntax: 
query II rowsort label-8929
SELECT - - ( ( COUNT( * ) ) ) + 25 AS col0, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
28
3

skipif mysql # not compatible
query II rowsort label-8929
SELECT - - ( ( COUNT ( * ) ) ) + 25 AS col0, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
28
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > - col0
----

query I rowsort
SELECT ALL - 33 * + 96 AS col1 FROM tab1
----
-3168
-3168
-3168

query I rowsort
SELECT DISTINCT 49 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT COUNT( * ) + + SUM( - + 88 ) col1 FROM tab0
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8933
SELECT COUNT ( * ) + + SUM ( - + 88 ) col1 FROM tab0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT DISTINCT COUNT( * ) * COUNT( * ) + - + 42 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
39

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + - + 42 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT col0 + + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
141
142
97

query II rowsort
SELECT DISTINCT - ( + 33 ) + 96 AS col0, col1 FROM tab1 cor0
----
63
14
63
47
63
5

query I rowsort
SELECT DISTINCT - - 50 FROM tab0 AS cor0 WHERE + col2 + col0 + + col0 > + 3 * + 38
----
50

query I rowsort
SELECT ALL + + 53 AS col0 FROM tab2 cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT - ( + MIN( 69 ) ) * COUNT( * ) FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-8940
SELECT - ( + MIN ( 69 ) ) * COUNT ( * ) FROM tab2
----
-207

onlyif mysql # DIV for integer division: 
query II rowsort label-8941
SELECT DISTINCT + 51 AS col2, + col0 DIV col0 * + col0 FROM tab0
----
51
15
51
87
51
97

skipif mysql # not compatible
query II rowsort label-8941
SELECT DISTINCT + 51 AS col2, + col0 / col0 * + col0 FROM tab0
----
51
15
51
87
51
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * + 37 col1 FROM tab2
----
111
111
111

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - 77 + + col2 + - col2 + + col1 * - col1 / - 20 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8944
SELECT - - col2 DIV - - 71 * ( 7 ) FROM tab2 WHERE NOT - 66 + 39 * col2 DIV - - col2 * - - CAST( NULL AS SIGNED ) + + 6 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8944
SELECT - - col2 / - - 71 * ( 7 ) FROM tab2 WHERE NOT - 66 + 39 * col2 / - - col2 * - - CAST ( NULL AS INTEGER ) + + 6 IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL - 49 FROM tab1 WHERE NOT + + col1 NOT IN ( + 73 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col1 FROM tab0 cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT + ( + SUM( DISTINCT 68 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
68

skipif mysql # not compatible
query I rowsort label-8947
SELECT + ( + SUM ( DISTINCT 68 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT - COUNT( 8 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT - COUNT ( 8 ) FROM tab1
----
-3

query II rowsort
SELECT DISTINCT - col0 + col1, - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-37
-714
-44
-4277
-80
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT - ( + 2 ) * + MIN( ALL - col2 ) FROM tab2 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-8950
SELECT - ( + 2 ) * + MIN ( ALL - col2 ) FROM tab2 AS cor0
----
116

query I rowsort
SELECT 23 * - - col2 * - col2 FROM tab2 AS cor0
----
-12167
-36800
-77372

query I rowsort
SELECT col2 * + 86 * - + col1 AS col2 FROM tab0 AS cor0
----
-18060
-327402
-8514

query I rowsort
SELECT ALL + 48 * col2 AS col2 FROM tab1 AS cor0
----
2832
3264
4608

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT + 26 DIV col1 AS col2 FROM tab0
----
0
1
26

skipif mysql # not compatible
query I rowsort label-8954
SELECT + 26 / col1 AS col2 FROM tab0
----
0
1
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8955
SELECT DISTINCT - col2 * - 70 * + col2 DIV - + col2 AS col2 FROM tab0
----
-3290
-6930
-700

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT - col2 * - 70 * + col2 / - + col2 AS col2 FROM tab0
----
-3290
-6930
-700

query III rowsort
SELECT * FROM tab0 WHERE ( - + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + 20 FROM tab2
----
66
84
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT 27 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8958
SELECT 27 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - 51 - - 57 FROM tab1 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8960
SELECT DISTINCT + 13 DIV - CAST( + ( + + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT + 13 / - CAST ( + ( + + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT + col0, col0 * + col2 + - 72 + - 54 FROM tab2 AS cor0
----
46
932
64
2434
75
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT COUNT( 84 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8962
SELECT COUNT ( 84 ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + 23 AS col1, ( - col1 ) FROM tab1 cor0
----
23
-14
23
-47
23
-5

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT 23 * + COUNT( * ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-8965
SELECT 23 * + COUNT ( * ) AS col0 FROM tab2
----
69

query I rowsort
SELECT + 5 * - + col0 * 10 AS col1 FROM tab1
----
-2550
-4250
-4550

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8967
SELECT - ( + + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT - ( + + CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL + 25 + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + 25 + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
34

query I rowsort
SELECT 28 + + + col2 FROM tab0 AS cor0
----
127
38
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8971
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col0 * CAST( NULL AS SIGNED ) + 36
----

skipif mysql # not compatible
query III rowsort label-8971
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col0 * CAST ( NULL AS INTEGER ) + 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8972
SELECT - col0 * + col0 + 73 + - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE + 72 IS NOT NULL
----
-2432
-7093
-8140

skipif mysql # not compatible
query I rowsort label-8972
SELECT - col0 * + col0 + 73 + - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE + 72 IS NOT NULL
----
-2432
-7093
-8140

query I rowsort
SELECT DISTINCT + 30 * - col0 AS col0 FROM tab1 cor0
----
-1530
-2550
-2730

query II rowsort
SELECT DISTINCT + 67 * col1 AS col0, + col1 FROM tab1
----
3149
47
335
5
938
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8975
SELECT + CAST( + + 48 AS SIGNED ) AS col2, col2 FROM tab1
----
48
59
48
68
48
96

skipif mysql # not compatible
query II rowsort label-8975
SELECT + CAST ( + + 48 AS INTEGER ) AS col2, col2 FROM tab1
----
48
59
48
68
48
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT 27 * - - COUNT( DISTINCT 21 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-8976
SELECT 27 * - - COUNT ( DISTINCT 21 ) FROM tab2
----
27

query III rowsort
SELECT * FROM tab1 WHERE 84 >= NULL
----

query II rowsort
SELECT DISTINCT + 35 + + 52, col0 FROM tab0 AS cor0
----
87
15
87
87
87
97

query I rowsort
SELECT ALL ( - 76 ) FROM tab1
----
-76
-76
-76

query I rowsort
SELECT ALL - 56 * + col2 AS col1 FROM tab2
----
-1288
-2240
-3248

query I rowsort
SELECT DISTINCT - 8 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + col1 + 14 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 72 * + + 47 AS col1 FROM tab2 cor0
----
-3384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8984
SELECT + 9 * CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT + 9 * CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col0 ) * - col1 - + col2 FROM tab2 AS cor0 WHERE NOT col0 IN ( - col0 )
----
-2369
-4968
-5083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8986
SELECT + COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8986
SELECT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT + SUM( DISTINCT - 51 ) AS col0 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8987
SELECT + SUM ( DISTINCT - 51 ) AS col0 FROM tab2 cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + 7 / + 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * ( + col1 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT ALL + col0 * 76 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + col0 * 76 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - + col2 * - ( + col2 ) FROM tab1
----
-205379
-314432
-884736

query I rowsort
SELECT ALL col2 * - - ( + col1 ) AS col2 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT ALL 39 AS col1, + col2 * 70 FROM tab2
----
39
1610
39
2800
39
4060

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8995
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8995
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8996
SELECT ALL + ( + ( - ( - 97 ) ) ) * col1 * - CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL + ( + ( - ( - 97 ) ) ) * col1 * - CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT DISTINCT + 62 + - + COUNT( * ) col2 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8997
SELECT DISTINCT + 62 + - + COUNT ( * ) col2 FROM tab2 AS cor0
----
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 85 IS NULL
----

query I rowsort
SELECT 87 + + col1 FROM tab2 cor0
----
138
154
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9000
SELECT + - CAST( NULL AS SIGNED ) + - + 21 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9000
SELECT + - CAST ( NULL AS INTEGER ) + - + 21 col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9001
SELECT DISTINCT SUM( ALL + col0 ) col0, - COUNT( * ) col1 FROM tab0 AS cor0
----
199
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9001
SELECT DISTINCT SUM ( ALL + col0 ) col0, - COUNT ( * ) col1 FROM tab0 AS cor0
----
199
-3

query I rowsort
SELECT col2 * col0 + + 36 + - - 41 + + + col2 AS col2 FROM tab2
----
1158
2677
4485

query II rowsort
SELECT DISTINCT - 58, + col1 AS col2 FROM tab2
----
-58
51
-58
67
-58
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT + COUNT( * ) + + 49 AS col0 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-9004
SELECT + COUNT ( * ) + + 49 AS col0 FROM tab1
----
52

query I rowsort
SELECT DISTINCT + col1 * 75 + + col1 * - + col0 - col1 FROM tab1
----
-55
-799
322

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9006
SELECT + AVG ( DISTINCT + col1 ) + - - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9006
SELECT + AVG ( DISTINCT + col1 ) + - - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT + col2 + - 17 + - - 69 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
110
75
92

query II rowsort
SELECT + col1 AS col0, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-9009
SELECT DISTINCT - MAX( col2 ) AS col1, + 9 FROM tab0
----
-99
9

skipif mysql # not compatible
query II rowsort label-9009
SELECT DISTINCT - MAX ( col2 ) AS col1, + 9 FROM tab0
----
-99
9

query I rowsort
SELECT DISTINCT 7 * - 96 AS col2 FROM tab1
----
-672

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN - 30 AND 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT DISTINCT + + COUNT( * ) * - - ( - COUNT( * ) ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT + + COUNT ( * ) * - - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9013
SELECT ALL col1 DIV 27 AS col2 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL col1 / 27 AS col2 FROM tab2 AS cor0
----
1
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9014
SELECT + - 58 DIV + col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9014
SELECT + - 58 / + col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT + ( + col1 ) / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9015
SELECT + ( + col1 ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 42 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9018
SELECT ALL CAST( NULL AS SIGNED ) * - - col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9018
SELECT ALL CAST ( NULL AS INTEGER ) * - - col2 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9019
SELECT * FROM tab1 WHERE NOT CAST( col0 AS SIGNED ) = col0
----

skipif mysql # not compatible
query III rowsort label-9019
SELECT * FROM tab1 WHERE NOT CAST ( col0 AS INTEGER ) = col0
----

query I rowsort
SELECT DISTINCT 32 + - + col2 AS col0 FROM tab1
----
-27
-36
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9021
SELECT ALL + col1 DIV + 31 AS col1 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL + col1 / + 31 AS col1 FROM tab0 AS cor0
----
0
0
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT MAX( - 74 ) + 30 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT MAX ( - 74 ) + 30 FROM tab0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL COUNT( * ) + + - MIN( + ( col0 ) ) AS col1 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL COUNT ( * ) + + - MIN ( + ( col0 ) ) AS col1 FROM tab2
----
-43

query I rowsort
SELECT - - 46 * - col2 * - ( + 72 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
155664
327888
33120

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * 46 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - 80 * + - col1 FROM tab1 AS cor0
----
1069
315
3669

query I rowsort
SELECT DISTINCT - + col1 * + 42 * + col2 FROM tab0 AS cor0
----
-159894
-4158
-8820

query I rowsort
SELECT ALL 69 - + ( + col1 ) * - + 28 * + 89 * - col0 + + - col1 FROM tab0 AS cor0
----
-241656
-3027792
-4552836

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT DISTINCT + SUM( DISTINCT + - col2 ) col0 FROM tab0 AS cor0 WHERE NULL > col2 * - 33
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9030
SELECT DISTINCT + SUM ( DISTINCT + - col2 ) col0 FROM tab0 AS cor0 WHERE NULL > col2 * - 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9031
SELECT ALL - CAST( NULL AS DECIMAL ) * + + SUM( col1 ) AS col2 FROM tab0 AS cor0 WHERE + 79 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - CAST ( NULL AS REAL ) * + + SUM ( col1 ) AS col2 FROM tab0 AS cor0 WHERE + 79 IS NOT NULL
----
NULL

query I rowsort
SELECT + col0 * - 38 AS col2 FROM tab0 AS cor0
----
-3306
-3686
-570

query I rowsort
SELECT DISTINCT - col2 * + col1 - - col0 AS col0 FROM tab2 AS cor0
----
-1127
-3016
-3811

query II rowsort
SELECT + col0 AS col1, - 84 AS col1 FROM tab2 AS cor0
----
46
-84
64
-84
75
-84

query II rowsort
SELECT ALL + col2, - col2 * - col1 * col0 AS col0 FROM tab1 AS cor0
----
59
25075
68
290836
96
68544

onlyif mysql # DIV for integer division: 
query I rowsort label-9036
SELECT ( + col0 ) DIV + 42 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-9036
SELECT ( + col0 ) / + 42 FROM tab0
----
0
2
2

onlyif mysql # DIV for integer division: 
query II rowsort label-9037
SELECT + col0 - col2 DIV 91 + 25 * - col1 AS col2, - col0 FROM tab0
----
-2010
-15
-438
-87
71
-97

skipif mysql # not compatible
query II rowsort label-9037
SELECT + col0 - col2 / 91 + 25 * - col1 AS col2, - col0 FROM tab0
----
-2010
-15
-438
-87
71
-97

query II rowsort
SELECT ALL col1 + - col0 AS col1, 79 FROM tab0
----
-66
79
-96
79
66
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9039
SELECT COUNT( * ) - - + CAST( - 26 AS SIGNED ) FROM tab1, tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-9039
SELECT COUNT ( * ) - - + CAST ( - 26 AS INTEGER ) FROM tab1, tab1 AS cor0
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9040
SELECT + col2 * + + col0 - + + 94 + + 77 + - CAST( NULL AS DECIMAL ) AS col0, + col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9040
SELECT + col2 * + + col0 - + + 94 + + 77 + - CAST ( NULL AS REAL ) AS col0, + col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + - col1 * + + ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ( - MAX( DISTINCT + + 81 ) ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9042
SELECT ( - MAX ( DISTINCT + + 81 ) ) FROM tab2 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9043
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) / - col0 < - 64 + - 34 * - CAST( + col2 AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-9043
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) / - col0 < - 64 + - 34 * - CAST ( + col2 AS INTEGER ) + col0
----

query I rowsort
SELECT col2 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 + + + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT COUNT( ALL 49 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9045
SELECT COUNT ( ALL 49 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT 98 AS col0, + col1 * + col1 AS col0 FROM tab2
----
98
2601
98
4489
98
5929

query I rowsort
SELECT DISTINCT - col1 * 83 AS col2 FROM tab0
----
-1743
-6723
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9048
SELECT CAST( NULL AS SIGNED ) AS col1, col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9048
SELECT CAST ( NULL AS INTEGER ) AS col1, col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9049
SELECT ALL * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) / - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9049
SELECT ALL * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) / - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT + ( + MIN( ALL - 99 ) ) AS col1 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT + ( + MIN ( ALL - 99 ) ) AS col1 FROM tab2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT DISTINCT MAX( - 0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT MAX ( - 0 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 82 ) col1 FROM tab0 cor0
----
-82
-82
-82

query I rowsort
SELECT ALL 50 * - - 15 AS col2 FROM tab0 AS cor0
----
750
750
750

query I rowsort
SELECT ( + 28 ) FROM tab1 cor0
----
28
28
28

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 * - 73 col0 FROM tab1
----
-3819
-6264
-6711

query I rowsort
SELECT ALL col1 * - - 1 AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT DISTINCT - + 39 + + COUNT( * ) FROM tab1 WHERE + col2 <= NULL
----
-39

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT - + 39 + + COUNT ( * ) FROM tab1 WHERE + col2 <= NULL
----
-39

query I rowsort
SELECT ALL 87 + + col1 AS col2 FROM tab0
----
108
168
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 8 NOT BETWEEN + col0 AND - col1 * - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 95 + ( - 93 ) FROM tab0
----
-188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < 78
----

query I rowsort
SELECT ALL ( - + col0 ) - col2 + + col1 - - col0 FROM tab2 cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT DISTINCT + SUM( + - col1 ) * + MIN( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
6006

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT + SUM ( + - col1 ) * + MIN ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
6006

query I rowsort
SELECT - col2 - col2 + + col2 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9066
SELECT - + CAST( col0 AS SIGNED ) + - 97 AS col0 FROM tab2 AS cor0
----
-143
-161
-172

skipif mysql # not compatible
query I rowsort label-9066
SELECT - + CAST ( col0 AS INTEGER ) + - 97 AS col0 FROM tab2 AS cor0
----
-143
-161
-172

onlyif mysql # DIV for integer division: 
query I rowsort label-9067
SELECT ALL col2 DIV - 85 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL col2 / - 85 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 6 * ( ( - 13 ) ) col1, ( + ( - 78 ) ) FROM tab2
----
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9069
SELECT * FROM tab1 WHERE col0 + CAST( + col1 AS SIGNED ) + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9069
SELECT * FROM tab1 WHERE col0 + CAST ( + col1 AS INTEGER ) + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * - ( + 91 ) + 28 FROM tab2
----
-4158
-5796
-6797

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9071
SELECT - 87 AS col0, ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
-87
NULL
-87
NULL
-87
NULL

skipif mysql # not compatible
query II rowsort label-9071
SELECT - 87 AS col0, ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
-87
NULL
-87
NULL
-87
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT - col1 DIV col2 * + col2 FROM tab2 AS cor0
----
-40
-46
-58

skipif mysql # not compatible
query I rowsort label-9072
SELECT - col1 / col2 * + col2 FROM tab2 AS cor0
----
-40
-46
-58

query I rowsort
SELECT + + 44 * - + 50 FROM tab2 AS cor0
----
-2200
-2200
-2200

query II rowsort
SELECT - 22, + col0 * col1 AS col0 FROM tab2 AS cor0
----
-22
2346
-22
4928
-22
5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + col2 ) col0 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9077
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) + + + COUNT( * ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + + COUNT ( * ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT col0 * - 15 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9078
SELECT col0 * - 15 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + + ( + + col1 ) AS col2, 29 AS col2 FROM tab2 AS cor0
----
51
29
67
29
77
29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 15 IS NULL
----

query I rowsort
SELECT ALL col1 * col2 * col2 AS col0 FROM tab0 AS cor0
----
178929
2100
9801

query I rowsort
SELECT ALL col1 + + - col0 AS col0 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT DISTINCT MIN( DISTINCT - col0 ) + - MIN( ALL - - ( - 4 ) ) * + 29 col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9083
SELECT DISTINCT MIN ( DISTINCT - col0 ) + - MIN ( ALL - - ( - 4 ) ) * + 29 col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + col2 / col2 >= + 4
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 75 * - - 19, col0 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( + col1 ) + col1 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL + 9 * - COUNT( * ) col2 FROM tab0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9087
SELECT ALL + 9 * - COUNT ( * ) col2 FROM tab0
----
-27

query I rowsort
SELECT ALL + col1 * + ( - col0 ) FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9089
SELECT + CAST( NULL AS SIGNED ) * + 32 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9089
SELECT + CAST ( NULL AS INTEGER ) * + 32 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 54 + - 28 * - col1 FROM tab0
----
-26
2214
534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT ALL + CAST( - col1 AS SIGNED ) col1 FROM tab2 WHERE NULL > col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9091
SELECT ALL + CAST ( - col1 AS INTEGER ) col1 FROM tab2 WHERE NULL > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9092
SELECT - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9092
SELECT - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 44 + - col2 FROM tab2
----
-14
21
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab2 WHERE NOT col0 - - col2 <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT + SUM( 71 ) * COUNT( * ) AS col0 FROM tab0
----
639

skipif mysql # not compatible
query I rowsort label-9095
SELECT + SUM ( 71 ) * COUNT ( * ) AS col0 FROM tab0
----
639

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT - COUNT( + 59 ) * 61 AS col1 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-9096
SELECT - COUNT ( + 59 ) * 61 AS col1 FROM tab1
----
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( - 11 ) ) * col2 col1 FROM tab2
----
253
440
638

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2 + - 31 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9099
SELECT DISTINCT col2 DIV 78 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT col2 / 78 AS col1 FROM tab1
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT DISTINCT 37 DIV col0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT 37 / col0 AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - ( 69 ) - + col0 AS col1 FROM tab2
----
-115
-133
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9102
SELECT + 26 DIV - COUNT( * ) AS col2 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-9102
SELECT + 26 / - COUNT ( * ) AS col2 FROM tab2
----
-8

query I rowsort
SELECT + col2 + + 2 AS col2 FROM tab0
----
101
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT MAX( DISTINCT col2 ) + 44 FROM tab1
----
140

skipif mysql # not compatible
query I rowsort label-9104
SELECT MAX ( DISTINCT col2 ) + 44 FROM tab1
----
140

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col0 * - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9106
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9107
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NULL < - CAST( NULL AS SIGNED ) * col2 - + 53 * - 21
----

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NULL < - CAST ( NULL AS INTEGER ) * col2 - + 53 * - 21
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE - 65 / 11 = ( + col1 )
----

query I rowsort
SELECT + col1 * 67 - + col0 * + col0 FROM tab2
----
-1136
1063
1301

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 = 29
----
3

skipif mysql # not compatible
query I rowsort label-9110
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 = 29
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 24 ) IN ( 91 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + ( 18 ) col2 FROM tab2
----
-1152
-1350
-828

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 57 + col1 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - ( + 47 ) FROM tab2 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT 30 * + COUNT( col2 ) AS col1 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT 30 * + COUNT ( col2 ) AS col1 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + COUNT( - col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9117
SELECT + COUNT ( - col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT - COUNT( * ) * + 54 AS col1 FROM tab2 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-9118
SELECT - COUNT ( * ) * + 54 AS col1 FROM tab2 cor0
----
-162

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 36 + - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 5 * 60 FROM tab2 cor0 WHERE + 85 BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 94 col1 FROM tab2 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT 77 * - COUNT( * ) AS col2 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-9122
SELECT 77 * - COUNT ( * ) AS col2 FROM tab0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT - SUM( - 83 ) FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-9123
SELECT - SUM ( - 83 ) FROM tab0
----
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-9124
SELECT col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT COUNT( * ) * MAX( 20 ) + + COUNT( * ) * + 97 FROM tab0
----
351

skipif mysql # not compatible
query I rowsort label-9125
SELECT COUNT ( * ) * MAX ( 20 ) + + COUNT ( * ) * + 97 FROM tab0
----
351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT ALL - col2 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL - col2 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9127
SELECT DISTINCT - COUNT( * ) + COUNT( * ) * + COUNT( * ) FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * + col0 IS NULL OR NOT - 10 * col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * + col0 IS NULL OR NOT - 10 * col1 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 WHERE ( col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 * - + 48 + - col1 FROM tab1
----
-2837
-3311
-4622

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 12 ) > NULL
----

query I rowsort
SELECT + 71 + - col2 FROM tab2 cor0
----
13
31
48

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT 12 + 86 FROM tab1 AS cor0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 20 col0 FROM tab2 AS cor0
----
-20
-3
-38

query I rowsort
SELECT DISTINCT 8 FROM tab1 AS cor0 WHERE NOT - 42 * - col2 + col0 * col0 IS NULL
----
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( col2 / - 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN ( NULL ) AND col0
----
14

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 / 88 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9139
SELECT col1 DIV - 60 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9139
SELECT col1 / - 60 AS col2 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT 60 - - - col0 AS col1 FROM tab0
----
-27
-37
45

query I rowsort
SELECT + col1 - + - ( ( - ( col2 ) ) ) AS col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 16 col1 FROM tab2 AS cor0
----
35
51
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 + 26 col2 FROM tab1 AS cor0
----
45

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 82 NOT IN ( + - 27 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + - col0 * - ( - col0 ) * + col2 FROM tab2 AS cor0
----
-163776
-326175
-48622

query I rowsort
SELECT + 76 * col1 + - col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( 31 * - - 28 ) AND 44
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 19 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 82 AS col1, - col2 col2 FROM tab2 AS cor0
----
-82
-23
-82
-40
-82
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9151
SELECT ALL - CAST( + 27 AS SIGNED ) FROM tab1
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL - CAST ( + 27 AS INTEGER ) FROM tab1
----
-27
-27
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9152
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) * + col1 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) * + col1 ) IS NULL
----
-3

query I rowsort
SELECT ALL col2 * 97 FROM tab0 WHERE NOT - - ( - 51 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT ( + + col0 ) AS col1, - col1 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT ALL + CAST( NULL AS SIGNED ) * - + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + CAST ( NULL AS INTEGER ) * - + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT DISTINCT SUM( + col1 ) FROM tab2 WHERE NOT + 46 * + 35 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT SUM ( + col1 ) FROM tab2 WHERE NOT + 46 * + 35 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT ( 76 ) AS col0 FROM tab2
----
76

query I rowsort
SELECT DISTINCT + 83 FROM tab0 WHERE NOT NULL = 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT - 95 * - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
-855

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT - 95 * - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
-855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT 56 * - CAST( NULL AS SIGNED ) - col1 * + - 94 * col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9160
SELECT 56 * - CAST ( NULL AS INTEGER ) - col1 * + - 94 * col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT + + 74 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT + + 74 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + 75 AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
122
80
89

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE ( - 75 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT 48 + - + 13 - + ( - col0 ) - + col0 * - col1 AS col0 FROM tab2 AS cor0
----
2427
5027
5135

query I rowsort
SELECT ALL + ( + 44 ) FROM tab1 cor0
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9166
SELECT + CAST( + + col2 AS SIGNED ) DIV + col1 + + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9166
SELECT + CAST ( + + col2 AS INTEGER ) / + col1 + + + col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9167
SELECT + ( + + MAX( - + col1 ) ) * CAST( MIN( CAST( - col0 AS SIGNED ) ) AS SIGNED ) * 22 FROM tab0 AS cor0
----
2134

skipif mysql # not compatible
query I rowsort label-9167
SELECT + ( + + MAX ( - + col1 ) ) * CAST ( MIN ( CAST ( - col0 AS INTEGER ) ) AS INTEGER ) * 22 FROM tab0 AS cor0
----
2134

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9169
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + ( - 90 ) * - col0 + 90 + - col1 * - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9171
SELECT * FROM tab0 WHERE NULL > - CAST( + - ( 59 ) AS DECIMAL ) + col1 + - col0
----

skipif mysql # not compatible
query III rowsort label-9171
SELECT * FROM tab0 WHERE NULL > - CAST ( + - ( 59 ) AS REAL ) + col1 + - col0
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 + 51 ) BETWEEN col2 AND 96
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT - 53 + - col2 FROM tab2
----
-111
-76
-93

query I rowsort
SELECT DISTINCT + col1 * - 52 AS col2 FROM tab1
----
-2444
-260
-728

query I rowsort
SELECT ALL + col0 + + 83 FROM tab1
----
134
168
174

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9176
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT CAST ( NULL AS REAL ) + - col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT + 12 * COUNT( col1 ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9177
SELECT + 12 * COUNT ( col1 ) AS col1 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL COUNT( * ) + - COUNT( DISTINCT - 35 ) col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9178
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT - 35 ) col0 FROM tab2 AS cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 BETWEEN - ( col2 ) + - 72 + + 92 * 57 AND + col2
----

query I rowsort
SELECT - col1 - - ( col1 ) * - 59 AS col0 FROM tab1 AS cor0
----
-2820
-300
-840

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 / - 55 ) NOT IN ( - col0 / + col2 + - + 45 * - col0 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - 76 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 59 * - 16 * + + col2 AS col1 FROM tab1
----
3286064
4365056
8699904

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9185
SELECT ALL + CAST( + col2 AS SIGNED ) AS col1, + col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

skipif mysql # not compatible
query II rowsort label-9185
SELECT ALL + CAST ( + col2 AS INTEGER ) AS col1, + col1 AS col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT - - COUNT( + col2 ) * - 26 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9186
SELECT - - COUNT ( + col2 ) * - 26 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT + + 92 * + col1 AS col1 FROM tab2 cor0
----
4692
6164
7084

query I rowsort
SELECT ALL - - 0 + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + col1 * + + col1 * + col1 * - col0 AS col1 FROM tab0
----
-7971615
-805707
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - col2 * - col2 col1 FROM tab2
----
102400
24334
252300

query II rowsort
SELECT col0, - 46 + col2 FROM tab0
----
15
1
87
-36
97
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ( + - MAX( + col2 ) ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9192
SELECT ( + - MAX ( + col2 ) ) AS col0 FROM tab2
----
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 84 + col0 / ( - + 88 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9194
SELECT 60 DIV 35 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9194
SELECT 60 / 35 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT - + 10 * - + COUNT( * ) AS col2 FROM tab1 WHERE NOT col0 * + 55 IS NULL
----
30

skipif mysql # not compatible
query I rowsort label-9195
SELECT - + 10 * - + COUNT ( * ) AS col2 FROM tab1 WHERE NOT col0 * + 55 IS NULL
----
30

query I rowsort
SELECT DISTINCT + - col2 / + col0 AS col2 FROM tab2 WHERE NOT + ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - 38 AS col2 FROM tab2
----
-1748
-2432
-2850

query I rowsort
SELECT - + 30 * col1 * + - col2 + - col2 + - - col2 * + 19 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
42048
97104
9912

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT - ( - col0 ) DIV - 59 AS col1 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT - ( - col0 ) / - 59 AS col1 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 / + - 79 * - - col1 <> ( + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 / + - 79 * - - col1 <> ( + + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT + COUNT( * ) * 12 + + 27 AS col0 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9201
SELECT + COUNT ( * ) * 12 + + 27 AS col0 FROM tab2 AS cor0
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9202
SELECT 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-9202
SELECT DISTINCT - - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * - col0 * col0 FROM tab2
----
-163840
-326250
-48668

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + col0 * col0 + - + 75 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 22 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + 82 * + col0 + - + 34 AND + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9207
SELECT DISTINCT + - MAX( DISTINCT - CAST( - + col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT + - MAX ( DISTINCT - CAST ( - + col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT - col1 + + col2 * col2 * + + col0 AS col2 FROM tab1 AS cor0
----
295880
420737
470002

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT + COUNT( * ) * COUNT( DISTINCT + col2 ) + - 14 AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9209
SELECT + COUNT ( * ) * COUNT ( DISTINCT + col2 ) + - 14 AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9210
SELECT - + col2 DIV - - col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9210
SELECT - + col2 / - - col2 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - 51 + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 51 + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT + - COUNT( * ) + - 0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9212
SELECT + - COUNT ( * ) + - 0 FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 78 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9214
SELECT - col2 + + + CAST( NULL AS DECIMAL ) + - - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT - col2 + + + CAST ( NULL AS REAL ) + - - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - - 4 FROM tab2
----
50
68
79

query I rowsort
SELECT DISTINCT col2 + 72 * - col1 AS col2 FROM tab1
----
-301
-3316
-912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9217
SELECT CAST( 57 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-9217
SELECT CAST ( 57 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
57
57
57

query II rowsort
SELECT DISTINCT + - ( - - ( col0 ) ), col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query II rowsort
SELECT - + col1, 73 AS col1 FROM tab0 AS cor0
----
-1
73
-21
73
-81
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9220
SELECT ALL CAST( NULL AS SIGNED ) * - - col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL CAST ( NULL AS INTEGER ) * - - col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9221
SELECT DISTINCT 62 DIV + COUNT( * ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT 62 / + COUNT ( * ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
20

query I rowsort
SELECT DISTINCT + 73 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT + 87 * - COUNT( * ) FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-9223
SELECT + 87 * - COUNT ( * ) FROM tab2 AS cor0
----
-261

onlyif mysql # DIV for integer division: 
query I rowsort label-9224
SELECT col2 DIV + 92 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9224
SELECT col2 / + 92 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT - SUM( DISTINCT + ( + 87 ) ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9225
SELECT - SUM ( DISTINCT + ( + 87 ) ) FROM tab1 AS cor0
----
-87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 75 + + + col0 BETWEEN + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL - 41 * + COUNT( * ) FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL - 41 * + COUNT ( * ) FROM tab1 AS cor0
----
-123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9228
SELECT DISTINCT ( col2 ) * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT ( col2 ) * + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - - col2 + + - col0 AS col1 FROM tab1 WHERE NULL NOT IN ( col0, col2 * 35 + 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT + ( + COUNT( DISTINCT col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9230
SELECT + ( + COUNT ( DISTINCT col2 ) ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 NOT BETWEEN NULL AND - 62
----

query I rowsort
SELECT + 2 AS col2 FROM tab1 WHERE NOT + - col2 IN ( + 88, 1 )
----
2
2
2

query I rowsort
SELECT 36 * col2 FROM tab0
----
1692
3564
360

query I rowsort
SELECT ALL 9 * - 63 AS col2 FROM tab1 AS cor0
----
-567
-567
-567

onlyif mysql # DIV for integer division: 
query I rowsort label-9235
SELECT col2 DIV - - col2 + - col2 * + col1 * + col1 + - + col2 AS col0 FROM tab0
----
-197
-308413
-4419

skipif mysql # not compatible
query I rowsort label-9235
SELECT col2 / - - col2 + - col2 * + col1 * + col1 + - + col2 AS col0 FROM tab0
----
-197
-308413
-4419

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9236
SELECT DISTINCT COUNT( * ) + + COUNT( * ) DIV - 20 AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) / - 20 AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + col2 * + - 92 * + col2 + col2 * - col0 AS col2 FROM tab2 AS cor0
----
144640
305138
47610

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL + MIN( + - col1 ) + + 89 col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9238
SELECT ALL + MIN ( + - col1 ) + + 89 col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col2 * + col2 + col1 FROM tab1 AS cor0
----
-3476
-4577
-9202

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - col0 + 38 = ( NULL )
----

query I rowsort
SELECT ALL 66 + - col1 AS col1 FROM tab1
----
19
52
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9242
SELECT 12 * + 95 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT 12 * + 95 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9243
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT CAST ( NULL AS REAL ) * + col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT COUNT( * ) AS col1 FROM tab1 WHERE ( - col0 ) / - col0 + - + col1 * + 58 * col1 / 51 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9244
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE ( - col0 ) / - col0 + - + col1 * + 58 * col1 / 51 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9245
SELECT ALL + 58 DIV + col2 col1, + col0 * + col1 FROM tab1
----
0
425
0
4277
0
714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9245
SELECT ALL + 58 / + col2 col1, + col0 * + col1 FROM tab1
----
0
425
0
4277
0
714

query I rowsort
SELECT DISTINCT - col0 + + - col1 * - col2 FROM tab0
----
123
2
3792

onlyif mysql # DIV for integer division: 
query I rowsort label-9247
SELECT + 20 DIV ( col2 ) FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9247
SELECT + 20 / ( col2 ) FROM tab0
----
0
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9248
SELECT ALL + col2 DIV col1 + - ( - 85 ) FROM tab2 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL + col2 / col1 + - ( - 85 ) FROM tab2 AS cor0
----
85
85
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9249
SELECT DISTINCT + AVG ( + col1 ) * + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9249
SELECT DISTINCT + AVG ( + col1 ) * + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT + SUM( col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9250
SELECT + SUM ( col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT - col2 DIV - 73 col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9251
SELECT - col2 / - 73 col2 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9253
SELECT ALL + col0 * - col1 - col2 col0, + col2 DIV 8 FROM tab0 AS cor0
----
-1262
5
-1837
1
-196
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9253
SELECT ALL + col0 * - col1 - col2 col0, + col2 / 8 FROM tab0 AS cor0
----
-1262
5
-1837
1
-196
12

query II rowsort
SELECT DISTINCT + + col1 AS col1, + col0 FROM tab2 cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT + COUNT( ALL + 18 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9255
SELECT + COUNT ( ALL + 18 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 19 * + col1 * - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 / - col0 AS col1 FROM tab0 WHERE + + 32 - + - col1 IS NULL
----

query II rowsort
SELECT - col0 AS col0, + col0 + + col2 FROM tab1
----
-51
147
-85
144
-91
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col2, 89 col1 FROM tab0
----
-1
89
-21
89
-81
89

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 38 > + col2 + + col2 - + - col2
----
15
81
47
97
1
99

query II rowsort
SELECT - + 93 + + col2 AS col1, + col0 FROM tab1 AS cor0
----
-25
91
-34
85
3
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * 37 * + + 63 AS col2 FROM tab0 cor0
----
109557
230769
23310

query I rowsort
SELECT ( + 62 ) AS col0 FROM tab1
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT DISTINCT - + SUM( ALL col2 ) FROM tab2 WHERE 84 < + - 48 + - col2 + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT - + SUM ( ALL col2 ) FROM tab2 WHERE 84 < + - 48 + - col2 + - 81
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9266
SELECT - CAST( + - col2 AS SIGNED ), - col1 AS col2 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

skipif mysql # not compatible
query II rowsort label-9266
SELECT - CAST ( + - col2 AS INTEGER ), - col1 AS col2 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 19 + col1, 80 col1 FROM tab1 cor0
----
24
80
33
80
66
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + 56 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 - + 41 FROM tab2 AS cor0
----
-1
-18
17

query I rowsort
SELECT + col2 + - col2 - 42 AS col2 FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9271
SELECT DISTINCT - 97 DIV + CAST( - + 95 AS SIGNED ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT - 97 / + CAST ( - + 95 AS INTEGER ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + - 83 FROM tab1
----
-130
-88
-97

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT + + 75 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ALL 48 + + - col0 FROM tab2
----
-16
-27
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL - COUNT( * ) + 81 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - COUNT ( * ) + 81 FROM tab2 AS cor0
----
78

query II rowsort
SELECT col0 AS col0, 85 AS col0 FROM tab0 AS cor0
----
15
85
87
85
97
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9278
SELECT DISTINCT + 76 DIV - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT + 76 / - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT + MAX( + 43 ) AS col0 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT + MAX ( + 43 ) AS col0 FROM tab2 AS cor0
----
43

query I rowsort
SELECT + 65 FROM ( tab2 cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9281
SELECT ALL - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9282
SELECT - + ( + col1 ) DIV - + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9282
SELECT - + ( + col1 ) / - + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT MIN( DISTINCT + 35 ) FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9283
SELECT MIN ( DISTINCT + 35 ) FROM tab1 AS cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + col0 col2 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9285
SELECT CAST( NULL AS DECIMAL ) * - - ( - 64 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT CAST ( NULL AS REAL ) * - - ( - 64 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 20 + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - col0 ) col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT + ( - 55 ) AS col2 FROM tab1
----
-55
-55
-55

query I rowsort
SELECT ALL 88 + col1 * + col2 + + col2 FROM tab2
----
1284
3208
4032

query I rowsort
SELECT 21 * + col2 + + col1 AS col2 FROM tab0
----
1068
2080
231

query III rowsort
SELECT * FROM tab1 WHERE + 32 * 79 >= NULL
----

query I rowsort
SELECT ALL - 65 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT DISTINCT - COUNT( * ) + 74 FROM tab1 WHERE ( NOT col2 * 3 * - + col1 IS NOT NULL )
----
74

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT - COUNT ( * ) + 74 FROM tab1 WHERE ( NOT col2 * 3 * - + col1 IS NOT NULL )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT - ( MAX( DISTINCT 59 ) ) - + - 34 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-25

skipif mysql # not compatible
query I rowsort label-9294
SELECT - ( MAX ( DISTINCT 59 ) ) - + - 34 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-25

query II rowsort
SELECT col1 + - 40 - col2 + col1, - col2 * - + col1 AS col1 FROM tab1
----
-108
1344
-14
3196
-89
295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9296
SELECT - col1 + CAST( - + 28 AS SIGNED ) + + 62 FROM tab0 AS cor0
----
-47
13
33

skipif mysql # not compatible
query I rowsort label-9296
SELECT - col1 + CAST ( - + 28 AS INTEGER ) + + 62 FROM tab0 AS cor0
----
-47
13
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9297
SELECT ALL col0 * + - CAST( NULL AS SIGNED ) + + 61 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL col0 * + - CAST ( NULL AS INTEGER ) + + 61 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + ( + - col0 ) NOT IN ( 48 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9299
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2, + 86 * - col1 col1 FROM tab2 AS cor0
----
NULL
-4386
NULL
-5762
NULL
-6622

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9299
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2, + 86 * - col1 col1 FROM tab2 AS cor0
----
NULL
-4386
NULL
-5762
NULL
-6622

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > col2 - + - 79 * - col0
----

query I rowsort
SELECT ALL + col2 - + + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND - col2 * + col2 - + col0
----

query I rowsort
SELECT - col1 * + 43 * - col2 AS col0 FROM tab0
----
163701
4257
9030

query I rowsort
SELECT 78 * col2 * + col0 - + - ( col1 ) * col1 - - 10 FROM tab1
----
382094
391205
484883

query III rowsort
SELECT * FROM tab1 WHERE - col2 * col2 - + col0 <> - col2 + - + col1 - col1 * + 54 - + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT 43 DIV 84 - col1 + - col0 * 92 * 16 AS col1 FROM tab0
----
-128085
-142785
-22161

skipif mysql # not compatible
query I rowsort label-9305
SELECT 43 / 84 - col1 + - col0 * 92 * 16 AS col1 FROM tab0
----
-128085
-142785
-22161

query I rowsort
SELECT - 73 - + ( 60 ) AS col0 FROM tab2
----
-133
-133
-133

query I rowsort
SELECT - ( + col1 ) - col2 AS col0 FROM tab0
----
-100
-128
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9308
SELECT + 39 * + CAST( NULL AS DECIMAL ) * col2, + 98 + + - col0 * + + 72 col2 FROM tab2
----
NULL
-3214
NULL
-4510
NULL
-5302

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9308
SELECT + 39 * + CAST ( NULL AS REAL ) * col2, + 98 + + - col0 * + + 72 col2 FROM tab2
----
NULL
-3214
NULL
-4510
NULL
-5302

query III rowsort
SELECT * FROM tab2 WHERE NOT + 36 < ( - 6 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT - MIN( col2 ) - - 67 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT - MIN ( col2 ) - - 67 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT + col1, 5 + - - col0 AS col0 FROM tab1
----
14
56
47
96
5
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, 93 + - + 61 * + col1 col2 FROM tab2
----
-46
-3018
-64
-4604
-75
-3994

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT COUNT( * ) * + 36 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-9313
SELECT COUNT ( * ) * + 36 FROM tab1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 72 BETWEEN NULL AND 87
----
0

skipif mysql # not compatible
query I rowsort label-9314
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 72 BETWEEN NULL AND 87
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 31 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 96 * col0 FROM tab1 cor0
----
-4896
-8160
-8736

query II rowsort
SELECT DISTINCT + col2, - 75 * + - col2 + + - col0 FROM tab0 AS cor0
----
10
663
47
3510
99
7328

query I rowsort
SELECT - - 46 AS col1 FROM tab1 AS cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 80 col0, col2 + - 95 FROM tab1 AS cor0
----
-80
-27
-80
-36
-80
1

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL > ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9321
SELECT DISTINCT CAST( MAX( ( - col2 ) ) AS SIGNED ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT CAST ( MAX ( ( - col2 ) ) AS INTEGER ) FROM tab0
----
-10

query I rowsort
SELECT ALL - - col1 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col0 + + 83 FROM tab2
----
2429
5011
5108

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT MIN( - + 66 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9324
SELECT MIN ( - + 66 ) FROM tab1
----
-66

query II rowsort
SELECT DISTINCT + col0 * col2 AS col0, + col0 AS col1 FROM tab2
----
1058
46
2560
64
4350
75

query I rowsort
SELECT ALL col1 + - - 12 FROM tab1
----
17
26
59

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + 57 AND - col0
----

query I rowsort
SELECT DISTINCT + col1 * + - ( + col0 ) FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL - col0 + col0 + + 0 * - + col1 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9330
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL = NULL
----
0

query I rowsort
SELECT - 16 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL 87 + - MIN( ALL 12 ) AS col0 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL 87 + - MIN ( ALL 12 ) AS col0 FROM tab0 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - + 24 + col0 col2 FROM tab0 AS cor0
----
-42
120
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9334
SELECT ALL + CAST( + col1 AS SIGNED ), col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2 * + - col0 - + ( - col2 ), 63 * + col2, - - col1 + + - ( + col0 ) + + col0 + - - col1 )
----

skipif mysql # not compatible
query II rowsort label-9334
SELECT ALL + CAST ( + col1 AS INTEGER ), col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2 * + - col0 - + ( - col2 ), 63 * + col2, - - col1 + + - ( + col0 ) + + col0 + - - col1 )
----

query I rowsort
SELECT DISTINCT 3 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL COUNT( * ) - - 12 AS col2 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL COUNT ( * ) - - 12 AS col2 FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT - - 66 * - COUNT( * ) + + - 66 + - + COUNT( * ) FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-9337
SELECT - - 66 * - COUNT ( * ) + + - 66 + - + COUNT ( * ) FROM tab2 AS cor0
----
-267

query I rowsort
SELECT DISTINCT col0 * col2 AS col0 FROM tab2 WHERE NOT col0 NOT IN ( + - ( col2 ), col0 * - col2, col2 )
----

query I rowsort
SELECT + 8 * + 94 FROM tab1
----
752
752
752

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT MIN( ALL + 40 ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-9340
SELECT MIN ( ALL + 40 ) FROM tab0
----
40

query II rowsort
SELECT ALL + 48, col1 * col1 AS col0 FROM tab0
----
48
1
48
441
48
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9342
SELECT + - CAST( - 11 AS SIGNED ) + - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-4
-76
-86

skipif mysql # not compatible
query I rowsort label-9342
SELECT + - CAST ( - 11 AS INTEGER ) + - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-4
-76
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT + COUNT( - 80 ), 94 AS col1 FROM tab0 WHERE NOT col1 * + 41 IS NULL
----
3
94

skipif mysql # not compatible
query II rowsort label-9343
SELECT + COUNT ( - 80 ), 94 AS col1 FROM tab0 WHERE NOT col1 * + 41 IS NULL
----
3
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT DISTINCT + MAX( DISTINCT + 15 ) FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9344
SELECT DISTINCT + MAX ( DISTINCT + 15 ) FROM tab1 cor0
----
15

query I rowsort
SELECT ALL + col2 * - - ( 47 ) AS col1 FROM tab0 AS cor0
----
2209
4653
470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col0 FROM tab2 WHERE NOT ( + 52 ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT - 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + + col0 ) <> - + col0 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-21

query I rowsort
SELECT + + 56 * - 56 FROM tab0 AS cor0
----
-3136
-3136
-3136

query I rowsort
SELECT DISTINCT - ( + ( - - 71 ) ) + + 80 - col0 FROM tab0 AS cor0
----
-6
-78
-88

query I rowsort
SELECT col2 + - + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT - 39 + + 13 AS col1 FROM tab0 AS cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL SUM( DISTINCT col0 ) FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL SUM ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT + 96 * - - COUNT( * ) * COUNT( - col0 ) FROM tab1
----
864

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT + 96 * - - COUNT ( * ) * COUNT ( - col0 ) FROM tab1
----
864

query II rowsort
SELECT col2 AS col0, col1 * + 73 + - ( - col0 ) AS col2 FROM tab2
----
23
3769
40
5685
58
4966

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT MAX( ALL col2 ) col1 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9357
SELECT MAX ( ALL col2 ) col1 FROM tab2
----
58

query III rowsort
SELECT ALL * FROM tab0 WHERE + 0 IS NULL
----

query I rowsort
SELECT ( + - ( + 26 ) ) FROM tab0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT + COUNT( 28 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9360
SELECT + COUNT ( 28 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9361
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL BETWEEN 4 AND - + col0 * - + 64 + - + col1
----

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL BETWEEN 4 AND - + col0 * - + 64 + - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9362
SELECT ALL - 92 + + col0 DIV - col2 + - - col2 FROM tab2
----
-35
-53
-71

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL - 92 + + col0 / - col2 + - - col2 FROM tab2
----
-35
-53
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9363
SELECT ALL - ( + 91 ) * - col1 + - 73 + + ( col1 ) + - CAST( NULL AS SIGNED ) + - col0 / + 90 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - ( + 91 ) * - col1 + - 73 + + ( col1 ) + - CAST ( NULL AS INTEGER ) + - col0 / + 90 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL BETWEEN - - col2 AND ( 12 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9365
SELECT ALL 95 * - - CAST( 53 AS SIGNED ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
5032

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL 95 * - - CAST ( 53 AS INTEGER ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
5032

query II rowsort
SELECT ALL col0 + - + 68 AS col1, col0 FROM tab1
----
-17
51
17
85
23
91

query II rowsort
SELECT - ( 0 ) * - col2 + col0 * - - col0 AS col2, - col2 AS col1 FROM tab0
----
225
-47
7569
-10
9409
-99

query I rowsort
SELECT - - 25 FROM tab2 WHERE 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL + - ( + - MIN( ALL - col1 ) ) - - 79 AS col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL + - ( + - MIN ( ALL - col1 ) ) - - 79 AS col0 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT - 49 * col1 * - col2 + col1 FROM tab2 AS cor0
----
150997
190481
57528

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL COUNT( ( + - col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL COUNT ( ( + - col1 ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9372
SELECT DISTINCT - CAST( + + COUNT( ALL - col0 ) AS SIGNED ) AS col2, + 23 FROM tab0
----
-3
23

skipif mysql # not compatible
query II rowsort label-9372
SELECT DISTINCT - CAST ( + + COUNT ( ALL - col0 ) AS INTEGER ) AS col2, + 23 FROM tab0
----
-3
23

query II rowsort
SELECT DISTINCT + 76 AS col1, - 7 AS col0 FROM tab1
----
76
-7

query I rowsort
SELECT - col2 * + col1 FROM tab2 WHERE NOT ( NOT + col0 + + col0 IS NOT NULL )
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - 59 * - - 24 FROM tab1
----
-1416

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE NOT NULL >= col0 + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9377
SELECT ALL COUNT( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL COUNT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9378
SELECT + 67 DIV + - ( col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
32
47
7

skipif mysql # not compatible
query I rowsort label-9378
SELECT + 67 / + - ( col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
32
47
7

query I rowsort
SELECT - - col0 * + - 58 FROM tab2 AS cor0
----
-2668
-3712
-4350

query I rowsort
SELECT ALL + 34 - - + 48 FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NULL <= NULL
----

query II rowsort
SELECT 46 AS col1, - 84 AS col1 FROM tab1
----
46
-84
46
-84
46
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9382
SELECT + ( COUNT( * ) ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9382
SELECT + ( COUNT ( * ) ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9383
SELECT ALL col2 DIV col0 + + - 84 FROM tab2
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL col2 / col0 + + - 84 FROM tab2
----
-84
-84
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL > + col2
----

skipif mysql # not compatible
query I rowsort label-9384
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL > + col2
----

query I rowsort
SELECT + - 48 * + - 52 FROM tab0 cor0
----
2496
2496
2496

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 56 + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9387
SELECT ALL - - CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL - - CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 * + + 6 col1 FROM tab2 AS cor0
----
-480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * + - col2 col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - 41 * - col2 + + col2 * col0 + col2 AS col0 FROM tab1 AS cor0
----
7493
8928
9044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9391
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 58 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 58 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 18 col2 FROM tab1 AS cor0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-9393
SELECT + ( - col2 ) DIV - 80 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9393
SELECT + ( - col2 ) / - 80 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + col1 * - 68 + + + col1 + 66 AS col0 FROM tab1 AS cor0
----
-269
-3083
-872

query I rowsort
SELECT + col1 + + 44 AS col0 FROM tab0 AS cor0
----
125
45
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT DISTINCT - COUNT( * ) DIV MIN( - + 46 ) * + 86 + + SUM( DISTINCT - 0 ) + - 9 * 8 AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT - COUNT ( * ) / MIN ( - + 46 ) * + 86 + + SUM ( DISTINCT - 0 ) + - 9 * 8 AS col2 FROM tab2
----
-72

query I rowsort
SELECT ALL col1 * + col0 + - col1 + 25 * - - col1 * - + col1 FROM tab1
----
-205
-4200
-50995

query I rowsort
SELECT DISTINCT + 26 + + 79 FROM tab0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-9399
SELECT col0 + + - col1 + + col0 + col1 DIV - - col0 AS col2 FROM tab1
----
135
165
88

skipif mysql # not compatible
query I rowsort label-9399
SELECT col0 + + - col1 + + col0 + col1 / - - col0 AS col2 FROM tab1
----
135
165
88

query I rowsort
SELECT ALL 58 + + - 5 * - col2 FROM tab0
----
108
293
553

query I rowsort
SELECT DISTINCT 1 - - col0 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT ALL - col2 * + 45 + - col2 * - col2 FROM tab2 AS cor0
----
-200
-506
754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9403
SELECT - - CAST( NULL AS SIGNED ) * 99 / col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT - - CAST ( NULL AS INTEGER ) * 99 / col2 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + ( - + col0 ), col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL MAX( ALL + col1 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL MAX ( ALL + col1 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT ALL + 47 + + - COUNT( * ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL + 47 + + - COUNT ( * ) FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT DISTINCT MIN( ALL + + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT MIN ( ALL + + col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-9408
SELECT ALL col1 DIV + 91 * + - col0 AS col2, 44 FROM tab0 AS cor0
----
0
44
0
44
0
44

skipif mysql # not compatible
query II rowsort label-9408
SELECT ALL col1 / + 91 * + - col0 AS col2, 44 FROM tab0 AS cor0
----
0
44
0
44
0
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT ALL - COUNT( + 69 ) AS col1 FROM tab0 AS cor0 WHERE 42 * + - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL - COUNT ( + 69 ) AS col1 FROM tab0 AS cor0 WHERE 42 * + - col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT MAX( DISTINCT ( + col2 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - 42 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-9410
SELECT MAX ( DISTINCT ( + col2 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT - 42 IS NULL
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT COUNT( * ) * + MAX( - 40 ) FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-9411
SELECT COUNT ( * ) * + MAX ( - 40 ) FROM tab1
----
-120

query I rowsort
SELECT col2 * - 21 FROM tab1
----
-1239
-1428
-2016

query III rowsort
SELECT * FROM tab1 WHERE NOT - 94 + ( - - col0 ) + - col1 IS NOT NULL
----

query I rowsort
SELECT - col0 * + + 14 FROM tab1
----
-1190
-1274
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT ALL MIN( + - col2 ) * 24 AS col2 FROM tab1
----
-2304

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL MIN ( + - col2 ) * 24 AS col2 FROM tab1
----
-2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9416
SELECT - COUNT( * ) * + MIN( - CAST( col0 AS SIGNED ) ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-9416
SELECT - COUNT ( * ) * + MIN ( - CAST ( col0 AS INTEGER ) ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
222

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9417
SELECT CAST( NULL AS DECIMAL ) * - - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT CAST ( NULL AS REAL ) * - - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT + SUM( ALL + col0 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT + SUM ( ALL + col0 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - + col1 AS col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT - 35 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-35

query I rowsort
SELECT 66 * + + col2 + + col2 AS col2 FROM tab2 AS cor0
----
1541
2680
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9422
SELECT - 19 + - MIN( ALL - CAST( + col2 AS SIGNED ) ) * + COUNT( * ) * 22 + - ( - COUNT( * ) ) FROM tab1 AS cor0
----
6320

skipif mysql # not compatible
query I rowsort label-9422
SELECT - 19 + - MIN ( ALL - CAST ( + col2 AS INTEGER ) ) * + COUNT ( * ) * 22 + - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
6320

query I rowsort
SELECT - + col2 + - 85 FROM tab0 AS cor0
----
-132
-184
-95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - + 56 + + ( 91 ) * + - col0 + col0 = NULL
----

query I rowsort
SELECT - col0 + - - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 86 * - col1 AS col0 FROM tab2 cor0
----
4386
5762
6622

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + MIN( + 70 ) AS col0 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-9428
SELECT + MIN ( + 70 ) AS col0 FROM tab0
----
70

query II rowsort
SELECT + 9 AS col2, + col1 AS col2 FROM tab2
----
9
51
9
67
9
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9430
SELECT DISTINCT col2 DIV + col1 + col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT col2 / + col1 + col1 AS col2 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT 11 DIV + col0 * + + col2 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9431
SELECT 11 / + col0 * + + col2 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT DISTINCT ( + COUNT( * ) ) + 59 - + COUNT( * ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT ( + COUNT ( * ) ) + 59 - + COUNT ( * ) FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 NOT IN ( + col1, 73, - 2 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT + + COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9434
SELECT + + COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
0

query I rowsort
SELECT DISTINCT + + col2 * - 94 FROM tab0 AS cor0 WHERE - col1 + ( - 63 ) + col0 > + col0 + - 47 * - col0 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT - 52 + + - col0 FROM tab1 AS cor0 WHERE 80 >= - col2 * - - CAST( NULL AS SIGNED ) * + 23
----

skipif mysql # not compatible
query I rowsort label-9436
SELECT - 52 + + - col0 FROM tab1 AS cor0 WHERE 80 >= - col2 * - - CAST ( NULL AS INTEGER ) * + 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9437
SELECT ALL - AVG ( ALL - col2 ) col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9437
SELECT ALL - AVG ( ALL - col2 ) col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT col2 + + col1 - + + col2 AS col1 FROM tab1 AS cor0 WHERE col2 + - col2 IS NULL
----

query II rowsort
SELECT ALL + ( - + col1 ) AS col0, + 45 - + 5 AS col1 FROM tab0 AS cor0
----
-1
40
-21
40
-81
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT DISTINCT + MIN( 9 ) * - 19 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT + MIN ( 9 ) * - 19 FROM tab2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT DISTINCT + + MAX( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT + + MAX ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9442
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 / - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9442
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 / - - CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT + MIN( - 4 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4

skipif mysql # not compatible
query I rowsort label-9444
SELECT + MIN ( - 4 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4

query I rowsort
SELECT ALL ( - 36 ) FROM tab2
----
-36
-36
-36

query II rowsort
SELECT DISTINCT + col0, col2 * col0 FROM tab2
----
46
1058
64
2560
75
4350

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9447
SELECT 50 * - CAST( + + col0 AS SIGNED ) * col0 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT 50 * - CAST ( + + col0 AS INTEGER ) * col0 * CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT ALL + MIN( col1 ) * - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL + MIN ( col1 ) * - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT - 64 * COUNT( * ) AS col1 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT - 64 * COUNT ( * ) AS col1 FROM tab0
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-9450
SELECT ALL 20 DIV - col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL 20 / - col2 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 >= - 73
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col1 + + 10 AS col1 FROM tab0
----
11
31
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 39 > - + col2 + - col0 + - col1 - + col1
----

query II rowsort
SELECT DISTINCT + - col2, + col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9455
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 >= - - CAST( - + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9455
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 >= - - CAST ( - + col0 AS INTEGER )
----

query II rowsort
SELECT ALL 97, col1 * 87 * - - ( + - col0 ) AS col2 FROM tab2 WHERE - + col1 IS NOT NULL
----
97
-204102
97
-428736
97
-437175

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL + ( - 51 ) + + - COUNT( * ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL + ( - 51 ) + + - COUNT ( * ) FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT COUNT( * ) AS col1 FROM tab0 cor0 WHERE ( NULL ) <> 89
----
0

skipif mysql # not compatible
query I rowsort label-9458
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE ( NULL ) <> 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL SUM( ALL + col2 ) + + 96 FROM tab2 AS cor0
----
217

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL SUM ( ALL + col2 ) + + 96 FROM tab2 AS cor0
----
217

query I rowsort
SELECT + ( 20 ) FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT - + col0 * - - col1 AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT + COUNT( * ) + + COUNT( * ) - - + COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9462
SELECT + COUNT ( * ) + + COUNT ( * ) - - + COUNT ( * ) FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL + + SUM( - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + + SUM ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL - MAX( 32 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL - MAX ( 32 ) FROM tab1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9465
SELECT * FROM tab2 WHERE + + ( - CAST( NULL AS SIGNED ) ) * - - col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-9465
SELECT * FROM tab2 WHERE + + ( - CAST ( NULL AS INTEGER ) ) * - - col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT DISTINCT col1 * 12 DIV + + col1 + - - 24 AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT col1 * 12 / + + col1 + - - 24 AS col0 FROM tab0
----
36

query I rowsort
SELECT DISTINCT + 25 * + col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9468
SELECT DISTINCT ( - - col1 ) + - col2 + - + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT ( - - col1 ) + - col2 + - + CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 51 + 86 - + - 34 + + col1 * col1 * - - col1 FROM tab2
----
132822
300934
456704

query III rowsort
SELECT * FROM tab2 WHERE + col0 < + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9471
SELECT 21 DIV MAX( - + 58 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9471
SELECT 21 / MAX ( - + 58 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9472
SELECT ALL + col1 + + col0 DIV - 18 AS col1 FROM tab1 cor0
----
1
12
42

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL + col1 + + col0 / - 18 AS col1 FROM tab1 cor0
----
1
12
42

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL + COUNT( * ) FROM tab0 cor0 WHERE 50 IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL + COUNT ( * ) FROM tab0 cor0 WHERE 50 IN ( + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT - COUNT( * ) - - 39 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT - COUNT ( * ) - - 39 FROM tab2 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT DISTINCT + col2 DIV col1 - + 95 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT + col2 / col1 - + 95 FROM tab2 AS cor0
----
-95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 < 86 / - + 76 + + col0
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + col2 col0, - col1 FROM tab0
----
-705
-81
-870
-21
-9603
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9479
SELECT + 91 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT + 91 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + col0 AS col0, col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT COUNT( - 71 ) * + + COUNT( * ) AS col1 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9481
SELECT COUNT ( - 71 ) * + + COUNT ( * ) AS col1 FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT + SUM( - + col0 ) col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9482
SELECT + SUM ( - + col0 ) col2 FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 98 col1, + ( col0 ) AS col2 FROM tab2 AS cor0
----
98
46
98
64
98
75

query II rowsort
SELECT DISTINCT + + col0, - 52 * - ( col1 ) FROM tab0 AS cor0
----
15
4212
87
1092
97
52

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE + col0 <> + col2 + - col1 - + - 22 * - + col2
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT - 42 * - + COUNT( * ) AS col2 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT - 42 * - + COUNT ( * ) AS col2 FROM tab1
----
126

query I rowsort
SELECT + 36 * col2 AS col0 FROM tab2
----
1440
2088
828

query I rowsort
SELECT DISTINCT - col0 * - - col0 AS col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9489
SELECT ALL - COUNT( * ) DIV ( - - 30 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - COUNT ( * ) / ( - - 30 ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9490
SELECT 63 DIV - + col0 AS col2 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-9490
SELECT 63 / - + col0 AS col2 FROM tab0
----
-4
0
0

query I rowsort
SELECT - 46 AS col2 FROM tab0 WHERE NOT + col2 NOT BETWEEN ( - col1 ) AND + 27 * col2 + - - col0 * 27
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT MAX( - col2 ) * + 52 FROM tab1
----
-3068

skipif mysql # not compatible
query I rowsort label-9492
SELECT MAX ( - col2 ) * + 52 FROM tab1
----
-3068

onlyif mysql # aggregate syntax: 
query II rowsort label-9493
SELECT - + COUNT( * ) * + 28 AS col1, + 77 FROM tab2 AS cor0
----
-84
77

skipif mysql # not compatible
query II rowsort label-9493
SELECT - + COUNT ( * ) * + 28 AS col1, + 77 FROM tab2 AS cor0
----
-84
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT SUM( DISTINCT - - 45 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
45

skipif mysql # not compatible
query I rowsort label-9494
SELECT SUM ( DISTINCT - - 45 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - col0 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT DISTINCT + 19 + col1 FROM tab2
----
70
86
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col2 * + col0 - + col0 * + col1 * + 77 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL COUNT( * ) - + MAX( ALL + - 87 ) AS col2 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL COUNT ( * ) - + MAX ( ALL + - 87 ) AS col2 FROM tab0 AS cor0
----
90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9501
SELECT ALL - - col0 + + col2 - + col0 DIV col2 FROM tab2 AS cor0
----
103
132
67

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - - col0 + + col2 - + col0 / col2 FROM tab2 AS cor0
----
103
132
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT ALL - MAX( ALL col0 ) - - - 13 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL - MAX ( ALL col0 ) - - - 13 FROM tab2 AS cor0
----
-88

query II rowsort
SELECT + col1 AS col0, col2 * col0 FROM tab0 cor0
----
1
9603
21
870
81
705

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + + col1 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT + + col0 DIV - ( + 5 ) + + + 89 FROM tab1 AS cor0
----
71
72
79

skipif mysql # not compatible
query I rowsort label-9505
SELECT + + col0 / - ( + 5 ) + + + 89 FROM tab1 AS cor0
----
71
72
79

query I rowsort
SELECT ALL 43 - - 83 FROM tab0
----
126
126
126

query I rowsort
SELECT DISTINCT + 82 + - 72 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 46 + - col2
----

query I rowsort
SELECT DISTINCT + col2 + 23 FROM tab2
----
46
63
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT - ( - - CAST( NULL AS SIGNED ) ) - + 81 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT - ( - - CAST ( NULL AS INTEGER ) ) - + 81 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col2 - col2 AS col1, + col0 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT + 9 - - col1 + + - col0 * + col2 FROM tab1
----
-4873
-5001
-6132

query I rowsort
SELECT + col0 - - col0 + - col0 FROM tab0
----
15
87
97

query I rowsort
SELECT col2 - + - 91 + + col1 FROM tab1
----
155
201
206

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL - COUNT( * ) * 69 + - - COUNT( * ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL - COUNT ( * ) * 69 + - - COUNT ( * ) FROM tab1
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT - 7 - COUNT( * ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9515
SELECT - 7 - COUNT ( * ) FROM tab0
----
-10

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE 65 IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9517
SELECT 41 * + col1 DIV - col1 FROM tab0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-9517
SELECT 41 * + col1 / - col1 FROM tab0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT - - 90 * col2 FROM tab1 AS cor0
----
5310
6120
8640

onlyif mysql # DIV for integer division: 
query I rowsort label-9519
SELECT + col0 DIV + col0 - + col1 FROM tab0 cor0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-9519
SELECT + col0 / + col0 - + col1 FROM tab0 cor0
----
-20
-80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT ALL - COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col0 AS col1, - 91 * - + col0 * 43 FROM tab0
----
15
58695
87
340431
97
379561

query II rowsort
SELECT 15, col1 FROM tab2
----
15
51
15
67
15
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT COUNT( - - 46 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9524
SELECT COUNT ( - - 46 ) FROM tab0
----
3

query I rowsort
SELECT ALL col2 + + - col1 + + 65 FROM tab2
----
28
37
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9526
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + + col2 * - 75 + - - col0 AS col1 FROM tab0 AS cor0
----
-3510
-663
-7328

query I rowsort
SELECT + 93 + - col1 AS col0 FROM tab0 AS cor0
----
12
72
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT col2 * CAST( ( - col0 ) AS SIGNED ) * + 80 FROM tab1 AS cor0
----
-391680
-401200
-495040

skipif mysql # not compatible
query I rowsort label-9529
SELECT col2 * CAST ( ( - col0 ) AS INTEGER ) * + 80 FROM tab1 AS cor0
----
-391680
-401200
-495040

query II rowsort
SELECT ALL col2 + - 52 AS col0, col0 AS col1 FROM tab2 AS cor0
----
-12
64
-29
46
6
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 + - col1 col2, - 89 AS col1 FROM tab1 cor0
----
37
-89
44
-89
80
-89

query I rowsort
SELECT ( - + col0 ) + - 50 * col0 * 60 AS col0 FROM tab0 AS cor0
----
-261087
-291097
-45015

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + - 66 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9533
SELECT + - 66 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT + - 4 - + COUNT( ALL col1 ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT + - 4 - + COUNT ( ALL col1 ) FROM tab0 AS cor0
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-9535
SELECT ALL 17 DIV - col1 AS col2, col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-9535
SELECT ALL 17 / - col1 AS col2, col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT DISTINCT col0 DIV - + 97 - - - 67 AS col2 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT col0 / - + 97 - - - 67 AS col2 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT - - col2 AS col1 FROM tab1 WHERE NULL > 34
----

query III rowsort
SELECT * FROM tab0 WHERE ( 35 + - - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT + ( - CAST( - - 73 AS SIGNED ) ) FROM tab0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-9539
SELECT + ( - CAST ( - - 73 AS INTEGER ) ) FROM tab0
----
-73
-73
-73

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 45 IS NOT NULL
----

query II rowsort
SELECT col0 * - col2 + 87 AS col2, 45 FROM tab2 AS cor0
----
-2473
45
-4263
45
-971
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9542
SELECT 67, ( COUNT( 0 ) ) - + - COUNT( * ) AS col1 FROM tab0 cor0
----
67
6

skipif mysql # not compatible
query II rowsort label-9542
SELECT 67, ( COUNT ( 0 ) ) - + - COUNT ( * ) AS col1 FROM tab0 cor0
----
67
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT + 73 * MIN( DISTINCT - 20 ) AS col2 FROM tab2 cor0
----
-1460

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT + 73 * MIN ( DISTINCT - 20 ) AS col2 FROM tab2 cor0
----
-1460

query I rowsort
SELECT ALL - col2 / - 78 - 46 FROM tab2 WHERE NOT ( NULL ) >= col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT ( col0 + col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9545
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( col0 + col0 ) IS NULL
----
3

query I rowsort
SELECT - 19 + + col1 AS col2 FROM tab2 WHERE NOT + 13 + - col1 NOT BETWEEN NULL AND ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9547
SELECT ALL - ( - MIN( DISTINCT CAST( - 23 AS SIGNED ) ) ) col0 FROM tab0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9547
SELECT ALL - ( - MIN ( DISTINCT CAST ( - 23 AS INTEGER ) ) ) col0 FROM tab0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + ( 33 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ( MIN( + 28 ) ) * + COUNT( * ) AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9549
SELECT ( MIN ( + 28 ) ) * + COUNT ( * ) AS col2 FROM tab0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9550
SELECT DISTINCT + col1 col0 FROM tab0 WHERE col1 / + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9550
SELECT DISTINCT + col1 col0 FROM tab0 WHERE col1 / + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 0 + col0 * col0 AS col1 FROM tab0
----
225
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( col0 )
----

query I rowsort
SELECT 92 * col0 AS col1 FROM tab0 WHERE NOT - col1 <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( + 99 * 97 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9555
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE + col2 NOT IN ( - col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE + col2 NOT IN ( - col0 )
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 2 FROM tab2
----
48
66
77

query I rowsort
SELECT - 14 + col0 * 62 AS col0 FROM tab0
----
5380
6000
916

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9558
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9558
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT MIN( + 87 ) AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-9559
SELECT MIN ( + 87 ) AS col1 FROM tab0
----
87

query III rowsort
SELECT * FROM tab0 WHERE ( col2 - + col2 / col1 ) IS NULL
----

query I rowsort
SELECT ALL 48 * 9 FROM tab0
----
432
432
432

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT DISTINCT SUM( col0 ) * 6 AS col1 FROM tab0
----
1194

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT SUM ( col0 ) * 6 AS col1 FROM tab0
----
1194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col0 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT DISTINCT - col0 / CAST( + col0 * col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IN ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT - col0 / CAST ( + col0 * col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IN ( - col2 )
----

query I rowsort
SELECT ALL 64 * - col2 AS col0 FROM tab1 cor0
----
-3776
-4352
-6144

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT 49 * + COUNT( * ) col1 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9566
SELECT DISTINCT 49 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT + CAST( + ( 93 ) AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
107
140
98

skipif mysql # not compatible
query I rowsort label-9567
SELECT + CAST ( + ( 93 ) AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
107
140
98

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab1 ON NOT NULL IS NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9569
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9569
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

query I rowsort
SELECT - col1 * 26 + + col1 FROM tab0
----
-2025
-25
-525

query I rowsort
SELECT 95 * - 12 + - col2 * - ( - 4 ) FROM tab1
----
-1376
-1412
-1524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9572
SELECT DISTINCT CAST( - 99 AS SIGNED ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT CAST ( - 99 AS INTEGER ) FROM tab2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 WHERE NOT ( - col0 ) IN ( - 50 + - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 WHERE NOT ( - col0 ) IN ( - 50 + - col0 )
----
3

query I rowsort
SELECT ALL + col1 - 22 FROM tab2 cor0
----
29
45
55

query I rowsort
SELECT DISTINCT - col0 - - 43 AS col2 FROM tab2 AS cor0
----
-21
-3
-32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + col1 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( + col0 / col2 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT - - 55 - - COUNT( col0 ) col1 FROM tab2 cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9578
SELECT - - 55 - - COUNT ( col0 ) col1 FROM tab2 cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9579
SELECT DISTINCT - + 32 - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT - + 32 - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 49 * - col0 AND + 11 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 49 * - col0 AND + 11 * - col2
----
0

query I rowsort
SELECT 23 / - AVG ( DISTINCT col2 ) + - 21 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT - 35 * + SUM( ALL col2 ) FROM tab2
----
-4235

skipif mysql # not compatible
query I rowsort label-9582
SELECT - 35 * + SUM ( ALL col2 ) FROM tab2
----
-4235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * 27 col1 FROM tab0
----
54
54
54

query I rowsort
SELECT - 42 AS col1 FROM tab0 WHERE NOT ( col2 + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9585
SELECT - col2 AS col2 FROM tab1 WHERE NOT col0 <> ( - col1 + - CAST( NULL AS DECIMAL ) * + 18 )
----

skipif mysql # not compatible
query I rowsort label-9585
SELECT - col2 AS col2 FROM tab1 WHERE NOT col0 <> ( - col1 + - CAST ( NULL AS REAL ) * + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT ALL COUNT( col2 ) * - 63 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL COUNT ( col2 ) * - 63 FROM tab1
----
-189

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col1 ) > + col2 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + col2 AS col2 FROM tab1 cor0 WHERE NOT 15 + col0 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9589
SELECT DISTINCT - ( - COUNT( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT - ( - COUNT ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL MIN( - - col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL MIN ( - - col0 ) FROM tab1 cor0
----
51

query I rowsort
SELECT - 17 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT 46 FROM tab1 AS cor0 WHERE NOT NULL > ( col0 )
----

query I rowsort
SELECT ALL - + 21 AS col1 FROM tab0 cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT MAX( 57 ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-9596
SELECT MAX ( 57 ) FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL - + col2 * + col2 + col1 FROM tab2 AS cor0 WHERE NOT NULL <> + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9598
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) <= - col2
----

skipif mysql # not compatible
query I rowsort label-9598
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT - MAX( + 88 ) col0 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9600
SELECT - MAX ( + 88 ) col0 FROM tab1 AS cor0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9601
SELECT ALL - COUNT( * ) + 20 AS col1 FROM tab0 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
17

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL - COUNT ( * ) + 20 AS col1 FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL - - MIN( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL - - MIN ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9603
SELECT ALL + CAST( MIN( ALL - 85 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL + CAST ( MIN ( ALL - 85 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL 87 * - SUM( + 53 ) - + 42 AS col2 FROM tab2 AS cor0
----
-13875

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL 87 * - SUM ( + 53 ) - + 42 AS col2 FROM tab2 AS cor0
----
-13875

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT + COUNT( - col2 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9606
SELECT + COUNT ( - col2 ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + ( - 78 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL AND + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9608
SELECT ALL COUNT( * ) + - - 87, COUNT( * ) AS col1 FROM tab0
----
90
3

skipif mysql # not compatible
query II rowsort label-9608
SELECT ALL COUNT ( * ) + - - 87, COUNT ( * ) AS col1 FROM tab0
----
90
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT DISTINCT ( + + MIN( + - col1 ) ) + COUNT( * ) * COUNT( * ) FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT ( + + MIN ( + - col1 ) ) + COUNT ( * ) * COUNT ( * ) FROM tab2
----
-68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 65 <= col0 + - col1
----
85
5
59

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9612
SELECT ALL - CAST( NULL AS DECIMAL ) + + COUNT( + col0 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL - CAST ( NULL AS REAL ) + + COUNT ( + col0 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT - MAX( + col0 ) AS col1 FROM tab0 AS cor0 WHERE - col0 * col2 NOT IN ( col0 * col2 )
----
-97

skipif mysql # not compatible
query I rowsort label-9613
SELECT - MAX ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE - col0 * col2 NOT IN ( col0 * col2 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9614
SELECT + CAST( + 9 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0 WHERE col2 NOT IN ( + - 51 * + - 9 )
----
207
360
522

skipif mysql # not compatible
query I rowsort label-9614
SELECT + CAST ( + 9 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0 WHERE col2 NOT IN ( + - 51 * + - 9 )
----
207
360
522

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT DISTINCT + 22 - + col1 DIV - 90 * - col0 * col1 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT + 22 - + col1 / - 90 * - col0 * col1 FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL COUNT( ALL - 19 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9616
SELECT ALL COUNT ( ALL - 19 ) col2 FROM tab2
----
3

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NULL <= ( - ( 13 ) )
----

query I rowsort
SELECT - - 46 + + 21 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT col0 + - 98 FROM tab1 AS cor0
----
-13
-47
-7

query I rowsort
SELECT + col1 + - 65 AS col2 FROM tab1 cor0
----
-18
-51
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT ALL + 27 + + + col2 + CAST( 19 AS SIGNED ) FROM tab0 AS cor0
----
145
56
93

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL + 27 + + + col2 + CAST ( 19 AS INTEGER ) FROM tab0 AS cor0
----
145
56
93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 21 + - col0 + - col0 + - 56 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT - MAX( DISTINCT 71 ) AS col1 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-9623
SELECT - MAX ( DISTINCT 71 ) AS col1 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 AND col2 + + - 73 + - + col0
----

query II rowsort
SELECT + 78 * + col0 * + + col0, col2 * + col1 * + ( 87 ) AS col2 FROM tab1 AS cor0
----
202878
116928
563550
25665
645918
278052

query I rowsort
SELECT - 83 * 95 AS col1 FROM tab0 cor0
----
-7885
-7885
-7885

onlyif mysql # DIV for integer division: 
query I rowsort label-9627
SELECT ALL + - 58 DIV - col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL + - 58 / - col0 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 BETWEEN - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT DISTINCT - COUNT( ALL - 69 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 87 AND 74
----
0

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT - COUNT ( ALL - 69 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 87 AND 74
----
0

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + ( + 60 ) + + col0 <> - + col2 * col0 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9631
SELECT CAST( NULL AS SIGNED ) / 95 * + col1 / - - col2 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-9631
SELECT CAST ( NULL AS INTEGER ) / 95 * + col1 / - - col2 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( col2 ) * - + 84 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9633
SELECT + col1 * - CAST( NULL AS SIGNED ) AS col1, 84 FROM tab2
----
NULL
84
NULL
84
NULL
84

skipif mysql # not compatible
query II rowsort label-9633
SELECT + col1 * - CAST ( NULL AS INTEGER ) AS col1, 84 FROM tab2
----
NULL
84
NULL
84
NULL
84

query II rowsort
SELECT DISTINCT 92 * + col0, col1 FROM tab0
----
1380
81
8004
21
8924
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT - SUM( DISTINCT + col1 ) * 86 FROM tab1
----
-5676

skipif mysql # not compatible
query I rowsort label-9635
SELECT - SUM ( DISTINCT + col1 ) * 86 FROM tab1
----
-5676

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT col2 DIV 76 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9636
SELECT col2 / 76 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 + ( + 65 )
----
0

skipif mysql # not compatible
query I rowsort label-9637
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 + ( + 65 )
----
0

query II rowsort
SELECT + 82, + col0 * 37 AS col2 FROM tab1 AS cor0
----
82
1887
82
3145
82
3367

onlyif mysql # DIV for integer division: 
query I rowsort label-9639
SELECT DISTINCT - + col0 DIV col2 + + col2 FROM tab0 AS cor0
----
2
47
99

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT - + col0 / col2 + + col2 FROM tab0 AS cor0
----
2
47
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 99 / + 66 IS NULL
----

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab2 WHERE NULL IS NULL
----
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + - col0 + - col2 AND + 21
----

query I rowsort
SELECT col2 * + col1 * - col1 + + col0 + + - col1 - + 7 * - col1 AS col2 FROM tab1 AS cor0
----
-1360
-149839
-18681

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - col1 IN ( - col1 + + + col2, 78 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 3 IS NULL
----

query I rowsort
SELECT - 7 * + + 83 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 69 + - + 72 FROM tab2 AS cor0
----
-141
-141
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-9648
SELECT col2 DIV - 88 + ( - + col1 ) FROM tab1 AS cor0
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-9648
SELECT col2 / - 88 + ( - + col1 ) FROM tab1 AS cor0
----
-15
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9649
SELECT ( col0 ) DIV + 16 FROM tab1
----
3
5
5

skipif mysql # not compatible
query I rowsort label-9649
SELECT ( col0 ) / + 16 FROM tab1
----
3
5
5

query I rowsort
SELECT ( - 21 ) * + + col0 * + col2 + - + col2 FROM tab2
----
-22241
-53800
-91408

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT ( + MAX( + 51 ) ) * 47 FROM tab2
----
2397

skipif mysql # not compatible
query I rowsort label-9651
SELECT ( + MAX ( + 51 ) ) * 47 FROM tab2
----
2397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT ALL + 68 * col2 + + col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL + 68 * col2 + + col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT COUNT( - 66 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9653
SELECT COUNT ( - 66 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 83 + + col2 FROM tab2
----
106
123
141

query II rowsort
SELECT col1 AS col1, + col2 - - col1 * + 25 FROM tab0
----
1
124
21
535
81
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT ALL COUNT( ( - col2 ) ) + 34 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL COUNT ( ( - col2 ) ) + 34 FROM tab1
----
37

query I rowsort
SELECT ALL col1 + - + col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - 97 FROM tab1 cor0
----
-5723
-6596
-9312

query I rowsort
SELECT - ( + - 67 ) FROM tab2 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT + - COUNT( DISTINCT 3 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9660
SELECT + - COUNT ( DISTINCT 3 ) AS col1 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col0 + 88 col1 FROM tab2
----
-46
134
-64
152
-75
163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9662
SELECT ALL + COUNT( * ) FROM tab2 WHERE - CAST( NULL AS SIGNED ) NOT IN ( - 71 )
----
0

skipif mysql # not compatible
query I rowsort label-9662
SELECT ALL + COUNT ( * ) FROM tab2 WHERE - CAST ( NULL AS INTEGER ) NOT IN ( - 71 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, + col2 * 55 + - col1 col2 FROM tab1
----
51
5266
85
3240
91
3693

query I rowsort
SELECT ALL - + 32 AS col0 FROM tab1 WHERE - - 41 NOT IN ( - + col2 + - ( 49 ), col1 + - col2 )
----
-32
-32
-32

query I rowsort
SELECT col2 * 21 AS col0 FROM tab0
----
2079
210
987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT ALL col2 * + + 49 FROM tab0
----
2303
4851
490

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT DISTINCT - 83 DIV + col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT - 83 / + col2 FROM tab1
----
-1
0

query I rowsort
SELECT ALL - 16 FROM tab1 WHERE NOT ( + ( col1 ) ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - + col0 + + ( + + 26 ) AS col2 FROM tab0 AS cor0
----
-61
-71
11

query I rowsort
SELECT - - ( + 50 ) FROM tab2 AS cor0
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9672
SELECT * FROM tab1 WHERE NOT NULL <= CAST( NULL AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-9672
SELECT * FROM tab1 WHERE NOT NULL <= CAST ( NULL AS INTEGER ) + + col1
----

query I rowsort
SELECT DISTINCT - col0 + + + 74 AS col1 FROM tab1
----
-11
-17
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT + 32 + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-9674
SELECT + 32 + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
41

query I rowsort
SELECT DISTINCT - 72 + + col1 FROM tab0
----
-51
-71
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9676
SELECT + col1 AS col0, col2 * - + CAST( NULL AS SIGNED ) col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9676
SELECT + col1 AS col0, col2 * - + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * 14 * - col2 IN ( - col1, + col1 + - 12, + 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + 69 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT + + MAX( + col2 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT + + MAX ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL - MAX( ALL col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL - MAX ( ALL col0 ) AS col2 FROM tab0 cor0
----
-97

query I rowsort
SELECT - + col2 AS col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT ALL - COUNT( * ) + + MAX( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL - COUNT ( * ) + + MAX ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
44

query II rowsort
SELECT DISTINCT + + col2, 51 AS col0 FROM tab0 AS cor0
----
10
51
47
51
99
51

query II rowsort
SELECT ALL + + 70, - 68 - + col0 AS col0 FROM tab0 AS cor0
----
70
-155
70
-165
70
-83

query II rowsort
SELECT col2 + - 88 AS col0, 39 FROM tab2 AS cor0
----
-30
39
-48
39
-65
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9686
SELECT ALL - COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9686
SELECT ALL - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9687
SELECT - 56 + - - COUNT( * ) + + ( + + COUNT( * ) ) DIV COUNT( * ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-9687
SELECT - 56 + - - COUNT ( * ) + + ( + + COUNT ( * ) ) / COUNT ( * ) FROM tab0 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9688
SELECT DISTINCT + - 24, 25 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-24
22

skipif mysql # not compatible
query II rowsort label-9688
SELECT DISTINCT + - 24, 25 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-24
22

query I rowsort
SELECT ( + - col1 ) + - ( - - col2 ) * - 95 * - col2 AS col2 FROM tab2
----
-152077
-319647
-50306

query III rowsort
SELECT * FROM tab2 WHERE ( 25 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT - COUNT( * ) - 56 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9691
SELECT - COUNT ( * ) - 56 FROM tab2 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT ALL CAST( NULL AS SIGNED ) - 28 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL CAST ( NULL AS INTEGER ) - 28 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT ALL col1 * - + CAST( - ( + col2 ) AS SIGNED ) * + col1 col0 FROM tab1
----
1475
150212
18816

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9693
SELECT ALL col1 * - + CAST ( - ( + col2 ) AS INTEGER ) * + col1 col0 FROM tab1
----
1475
150212
18816

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT - col2 * ( + + col1 ) + 15 FROM tab2 AS cor0
----
-1158
-3065
-3871

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ALL - MAX( DISTINCT - + ( - + col1 ) ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL - MAX ( DISTINCT - + ( - + col1 ) ) FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9697
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - col0 * - col1 + + 84 + - CAST( NULL AS SIGNED ) * 36
----

skipif mysql # not compatible
query III rowsort label-9697
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - col0 * - col1 + + 84 + - CAST ( NULL AS INTEGER ) * 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT + MIN( + + 44 ) AS col2 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-9698
SELECT + MIN ( + + 44 ) AS col2 FROM tab1 AS cor0
----
44

query I rowsort
SELECT - - col2 AS col1 FROM tab2 cor0 WHERE NOT 75 + - 85 = + 13 * + col0 + ( + col2 )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9700
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL + - MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL + - MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9702
SELECT DISTINCT col2 DIV + col1 FROM tab1 WHERE NOT col1 - col2 IS NULL
----
1
11
6

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT col2 / + col1 FROM tab1 WHERE NOT col1 - col2 IS NULL
----
1
11
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT DISTINCT + 22 * - + COUNT( * ) * - + SUM( ALL - + col1 ) FROM tab1
----
-4356

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT + 22 * - + COUNT ( * ) * - + SUM ( ALL - + col1 ) FROM tab1
----
-4356

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 > ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9705
SELECT + ( - COUNT( * ) ) DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9705
SELECT + ( - COUNT ( * ) ) / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9706
SELECT + - col1 DIV + - col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9706
SELECT + - col1 / + - col1 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + 93 * - 54 + + - col0 FROM tab2 AS cor0
----
-5068
-5086
-5097

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 <> - col2 / - - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT 58 + + - 32 FROM tab2
----
26

query I rowsort
SELECT DISTINCT col0 + 86 + + 17 * - 26 FROM tab1
----
-265
-271
-305

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT DISTINCT SUM( 4 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT SUM ( 4 ) FROM tab0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT + CAST( + - col1 AS SIGNED ) + + col0 * - + col1 AS col0 FROM tab2 AS cor0
----
-2397
-5005
-5092

skipif mysql # not compatible
query I rowsort label-9713
SELECT + CAST ( + - col1 AS INTEGER ) + + col0 * - + col1 AS col0 FROM tab2 AS cor0
----
-2397
-5005
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT DISTINCT - + 53 * COUNT( * ) FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT - + 53 * COUNT ( * ) FROM tab1 AS cor0
----
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 + 58 * - - col1 * + + 84 * - col1 col2 FROM tab2 AS cor0
----
-12672038
-21870374
-28886054

query I rowsort
SELECT DISTINCT - 59 - + 26 AS col0 FROM tab1 AS cor0
----
-85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 52 + 91 BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 * 26 col2 FROM tab1 AS cor0
----
650
650
650

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col1 * - - 71, 37 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9720
SELECT ALL - 16 DIV + + 96 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL - 16 / + + 96 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + 52 BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9722
SELECT - COUNT( * ) * CAST( 70 AS SIGNED ) AS col2 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-9722
SELECT - COUNT ( * ) * CAST ( 70 AS INTEGER ) AS col2 FROM tab0
----
-210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col2 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT - 17 * - + col2 DIV + - col2 - - col0 * 42 AS col2 FROM tab2
----
1915
2671
3133

skipif mysql # not compatible
query I rowsort label-9724
SELECT - 17 * - + col2 / + - col2 - - col0 * 42 AS col2 FROM tab2
----
1915
2671
3133

query I rowsort
SELECT DISTINCT col0 + 22 AS col2 FROM tab1
----
107
113
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ( - - 40 ) * - 91 * - COUNT( * ) - + + 9 - + COUNT( * ) FROM tab1
----
10908

skipif mysql # not compatible
query I rowsort label-9726
SELECT ( - - 40 ) * - 91 * - COUNT ( * ) - + + 9 - + COUNT ( * ) FROM tab1
----
10908

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT + COUNT( * ) - 70 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-9727
SELECT + COUNT ( * ) - 70 FROM tab1
----
-67

query I rowsort
SELECT DISTINCT ( - - 49 ) + col0 FROM tab0 cor0
----
136
146
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2 * + col1 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2 * + col1 + + col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 69 >= col0 + col2
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9731
SELECT ALL CAST( col0 AS SIGNED ) AS col0, + col0 col1 FROM tab2
----
46
46
64
64
75
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9731
SELECT ALL CAST ( col0 AS INTEGER ) AS col0, + col0 col1 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 AS cor0 WHERE NOT 49 + col2 * - + col2 = + col1 / + col2
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9736
SELECT + + 27 DIV + COUNT( ALL 38 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9736
SELECT + + 27 / + COUNT ( ALL 38 ) FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9737
SELECT 52 + + 6 + + ( + col0 ) DIV col2 * - col0 AS col2 FROM tab2 WHERE NOT + + 40 IS NULL
----
-17
-34
-6

skipif mysql # not compatible
query I rowsort label-9737
SELECT 52 + + 6 + + ( + col0 ) / col2 * - col0 AS col2 FROM tab2 WHERE NOT + + 40 IS NULL
----
-17
-34
-6

query I rowsort
SELECT + ( - 19 ) FROM tab1
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + + col2 * + + 6 col0 FROM tab0
----
-13254
-58806
-600

query I rowsort
SELECT ALL 81 * 0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + ( + 64 ) AS col1 FROM tab0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT DISTINCT - 89 * + MIN( + 37 ) FROM tab0
----
-3293

skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT - 89 * + MIN ( + 37 ) FROM tab0
----
-3293

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 < - col0 * col0
----

query I rowsort
SELECT col0 + + ( + - 20 ) + + 49 FROM tab0 cor0
----
116
126
44

query I rowsort
SELECT DISTINCT - col0 * - + 30 - + col2 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 - col0 + - col1 / - - 65 * - ( + - ( + + col1 ) ) AND 83 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL - SUM( ( 66 ) ) FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL - SUM ( ( 66 ) ) FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col2 + - + col1 AS col1, + 18 * + + col1 + + - ( + 81 ) FROM tab0
----
-11
297
-34
1377
98
-63

query I rowsort
SELECT - 94 - - col2 AS col2 FROM tab0 AS cor0
----
-47
-84
5

query I rowsort
SELECT + - col0 + - + col0 FROM tab1 AS cor0
----
-102
-170
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 - + + col2 * + 95 + - 58 * - 45 col1 FROM tab2 AS cor0
----
1598
1890
986

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT DISTINCT + 37 * - COUNT( * ) FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT + 37 * - COUNT ( * ) FROM tab1 AS cor0
----
-111

query I rowsort
SELECT + col1 + - + col0 AS col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9753
SELECT + + 23 + - + MAX( ALL - ( - CAST( + 82 AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9753
SELECT + + 23 + - + MAX ( ALL - ( - CAST ( + 82 AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT - - col1 + - + col2 * + ( - 56 ) AS col2 FROM tab2 AS cor0
----
1339
2317
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT - MAX( ALL - col1 ) + - - 13 AS col2 FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-9755
SELECT - MAX ( ALL - col1 ) + - - 13 AS col2 FROM tab1 cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9756
SELECT ALL col0 DIV - ( + - 52 ) AS col2 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL col0 / - ( + - 52 ) AS col2 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT DISTINCT - + MAX( - col2 ) * + 82 - 65 + + 24 FROM tab1 AS cor0
----
4797

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT - + MAX ( - col2 ) * + 82 - 65 + + 24 FROM tab1 AS cor0
----
4797

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 + col0 col2 FROM tab2
----
62
80
91

query I rowsort
SELECT col0 * + 20 + col1 FROM tab2 WHERE NULL IS NULL
----
1357
1567
971

query II rowsort
SELECT ALL 79 AS col1, col1 FROM tab1
----
79
14
79
47
79
5

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE NULL NOT BETWEEN + + col1 + + col1 AND NULL
----

query I rowsort
SELECT + ( 17 ) AS col1 FROM tab2 cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 * - ( - + 62 ) + - col0 col1 FROM tab1 AS cor0 WHERE NOT col1 + - + col1 * - col1 * - 16 / - 10 * col1 > NULL
----

query II rowsort
SELECT DISTINCT - 42 AS col2, col2 AS col1 FROM tab0 AS cor0
----
-42
10
-42
47
-42
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT + + MAX( - + 47 ) FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9765
SELECT + + MAX ( - + 47 ) FROM tab0 AS cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 0 >= - col1
----

query I rowsort
SELECT - 74 * col2 * + + col0 AS col2 FROM tab1
----
-362304
-371110
-457912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9768
SELECT 90 DIV COUNT( * ) AS col2 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-9768
SELECT 90 / COUNT ( * ) AS col2 FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL - 22 * + + 3 * + - COUNT( * ) FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - 22 * + + 3 * + - COUNT ( * ) FROM tab0 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT + 94 * - COUNT( * ) FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-9770
SELECT + 94 * - COUNT ( * ) FROM tab2 AS cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + - 79 * ( COUNT( * ) ) col1 FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9771
SELECT + - 79 * ( COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT - SUM( ALL - ( + col0 ) ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-9772
SELECT - SUM ( ALL - ( + col0 ) ) FROM tab0 cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 2 AS col0, 84 * - 59 col0 FROM tab0 cor0
----
2
-4956
2
-4956
2
-4956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT + CAST( + + 97 AS SIGNED ) FROM tab0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-9774
SELECT + CAST ( + + 97 AS INTEGER ) FROM tab0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT - COUNT( col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9775
SELECT - COUNT ( col2 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col1 * - 2 + - + col2 + + col2 * + 14 FROM tab0
----
1285
449
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NOT - col1 NOT IN ( - 73, col2 - col1 * - col0, + - 92 * col0 - - col2 + + col0 + - col0 * 17 )
----
0

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NOT - col1 NOT IN ( - 73, col2 - col1 * - col0, + - 92 * col0 - - col2 + + col0 + - col0 * 17 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9778
SELECT ( - CAST( COUNT( + - col2 ) AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9778
SELECT ( - CAST ( COUNT ( + - col2 ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + col2 * - 45, + 70 AS col0 FROM tab2 cor0
----
-1035
70
-1800
70
-2610
70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> - col0 * - col1 * - ( col0 )
----

query I rowsort
SELECT ALL col1 * col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9782
SELECT + 59 DIV - col2 + col2 AS col1 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-9782
SELECT + 59 / - col2 + col2 AS col1 FROM tab2
----
21
39
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 + - col1 col1 FROM tab0
----
-12
-32
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 27 AND col0 * + + 56 / 21 * - + col2 + + + 23
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 <= - col1 + - col1
----

query I rowsort
SELECT DISTINCT - + col1 - + 35 + + - 40 - - 54 + + col0 FROM tab0 AS cor0
----
-87
45
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9787
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) * + + col2 AND + CAST( + + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9787
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) * + + col2 AND + CAST ( + + col0 AS INTEGER )
----

query II rowsort
SELECT ALL + col0, - col2 AS col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query I rowsort
SELECT + col2 * - 3 - + 71 + - 6 * col1 FROM tab1
----
-278
-443
-557

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 9 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 - - col2 + col0 FROM tab0
----
15
87
97

query I rowsort
SELECT + + col1 FROM tab0 WHERE NOT NULL > + + col1
----

query I rowsort
SELECT ALL ( - + col2 ) * - - col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT COUNT( * ) * SUM( - 96 ) AS col1 FROM tab0
----
-864

skipif mysql # not compatible
query I rowsort label-9794
SELECT COUNT ( * ) * SUM ( - 96 ) AS col1 FROM tab0
----
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + col2 ) col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT DISTINCT 98 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT 98 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9798
SELECT ALL COUNT( * ) DIV - 12 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL COUNT ( * ) / - 12 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9799
SELECT ALL - col0 DIV + + 46 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL - col0 / + + 46 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 65 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN col0 AND 62
----
65
65
65

query II rowsort
SELECT ALL col1 * + + 76 * - + 88, - 24 * - col2 AS col1 FROM tab2
----
-341088
552
-448096
1392
-514976
960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9802
SELECT DISTINCT - 83 * MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT - 83 * MAX ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 44 col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
44

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + 49 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9805
SELECT ALL col2 DIV col1 * - + 38 FROM tab1 AS cor0
----
-228
-38
-418

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL col2 / col1 * - + 38 FROM tab1 AS cor0
----
-228
-38
-418

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9806
SELECT * FROM tab2 cor0 WHERE NOT ( ( NOT ( NOT - CAST( - - col2 AS SIGNED ) <> + + col0 ) ) )
----

skipif mysql # not compatible
query III rowsort label-9806
SELECT * FROM tab2 cor0 WHERE NOT ( ( NOT ( NOT - CAST ( - - col2 AS INTEGER ) <> + + col0 ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 10 NOT IN ( col2, col2, 4, + col2 )
----

query I rowsort
SELECT ALL col0 * + col2 + col1 + + col2 FROM tab2
----
1132
2677
4475

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL - 5 + - COUNT( * ) AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL - 5 + - COUNT ( * ) AS col0 FROM tab1
----
-8

query I rowsort
SELECT col2 + + - col0 + - col0 FROM tab0
----
-164
-95
17

query I rowsort
SELECT DISTINCT - col2 * 72 + - - col1 AS col2 FROM tab2 cor0
----
-1605
-2803
-4109

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT - SUM( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9812
SELECT - SUM ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
66

query II rowsort
SELECT DISTINCT col2, + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT + + COUNT( * ) * SUM( ALL - + col0 ) AS col1 FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-9814
SELECT + + COUNT ( * ) * SUM ( ALL - + col0 ) AS col1 FROM tab0 AS cor0
----
-597

query I rowsort
SELECT ALL - + col2 + - + col2 FROM tab0 AS cor0
----
-198
-20
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col2 * + + col0 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT ( + col1 ) + CAST( + col0 AS SIGNED ) * - 33 col1 FROM tab1 AS cor0
----
-1669
-2800
-2956

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9817
SELECT ( + col1 ) + CAST ( + col0 AS INTEGER ) * - 33 col1 FROM tab1 AS cor0
----
-1669
-2800
-2956

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + col0 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE + col1 * - - ( col0 ) IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 10 * - - col0 * + 85 IN ( - col2 * + 75 + - col1 / 82 + col2, + col0 * - 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col0 FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
26
26
26

query I rowsort
SELECT DISTINCT + 78 * + col0 FROM tab2
----
3588
4992
5850

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT - - col2 DIV - + col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9823
SELECT - - col2 / - + col0 FROM tab1 AS cor0
----
-1
0
0

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT + 46 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT 60 * + 61 + - 17 AS col1 FROM tab1
----
3643
3643
3643

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + 26 AND NULL
----

query I rowsort
SELECT DISTINCT 38 * + col0 AS col0 FROM tab1
----
1938
3230
3458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9828
SELECT MIN( ALL - CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9828
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT - COUNT( ALL 7 ) FROM tab0 WHERE ( - + 83 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9829
SELECT - COUNT ( ALL 7 ) FROM tab0 WHERE ( - + 83 ) IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col2 * - col0 + - + 26 * col0 FROM tab2
----
-2254
-4224
-6300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9831
SELECT - CAST( + + col0 AS SIGNED ) AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9831
SELECT - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + col0 col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9833
SELECT 17 + + col2 DIV + 44 FROM tab0
----
17
18
19

skipif mysql # not compatible
query I rowsort label-9833
SELECT 17 + + col2 / + 44 FROM tab0
----
17
18
19

query II rowsort
SELECT + + 5 - col0 * + + 89 AS col0, - col1 + + 51 AS col2 FROM tab0 AS cor0 WHERE + 75 / + + ( + ( 38 ) ) + + + 50 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9835
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9835
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col1 / - ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT DISTINCT SUM( DISTINCT + + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT SUM ( DISTINCT + + col0 ) AS col0 FROM tab2 AS cor0
----
185

query II rowsort
SELECT ALL + col0 AS col0, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9839
SELECT COUNT( * ) AS col2, 14 col1 FROM tab0 cor0
----
3
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9839
SELECT COUNT ( * ) AS col2, 14 col1 FROM tab0 cor0
----
3
14

query I rowsort
SELECT DISTINCT ( ( - - col2 ) ) AS col0 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + 37
----

query II rowsort
SELECT ( + col2 ) AS col1, col2 * - ( + 56 ) FROM tab2
----
23
-1288
40
-2240
58
-3248

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT + + col2 + + col1 DIV - 88 + + + 42 + - 96 + - col0 AS col0 FROM tab2 WHERE NOT - col2 < + 80 * - col1
----
-71
-77
-78

skipif mysql # not compatible
query I rowsort label-9843
SELECT + + col2 + + col1 / - 88 + + + 42 + - 96 + - col0 AS col0 FROM tab2 WHERE NOT - col2 < + 80 * - col1
----
-71
-77
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT SUM( ALL - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9844
SELECT SUM ( ALL - - col1 ) FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 95 col0 FROM tab1
----
5605
6460
9120

query II rowsort
SELECT - 71 * 55 AS col0, col1 AS col1 FROM tab0
----
-3905
1
-3905
21
-3905
81

query I rowsort
SELECT - 89 * - + col0 AS col0 FROM tab0
----
1335
7743
8633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9848
SELECT + MAX( + 30 ) * + CAST( - + 30 AS SIGNED ) AS col2 FROM tab0
----
-900

skipif mysql # not compatible
query I rowsort label-9848
SELECT + MAX ( + 30 ) * + CAST ( - + 30 AS INTEGER ) AS col2 FROM tab0
----
-900

query I rowsort
SELECT DISTINCT + 62 FROM tab2 WHERE NOT NULL IS NOT NULL
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL MAX( DISTINCT + 93 ) FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL MAX ( DISTINCT + 93 ) FROM tab0 AS cor0
----
93

query II rowsort
SELECT DISTINCT - col2 * + col0, col1 + col2 AS col1 FROM tab2 AS cor0
----
-1058
74
-2560
117
-4350
125

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col0 * ( - 89 )
----

query I rowsort
SELECT ALL ( - col1 ) AS col1 FROM tab1 WHERE NOT NULL >= col1
----

query I rowsort
SELECT DISTINCT - - 59 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9855
SELECT DISTINCT + col2 * + col2 + col1 + col0 / + - CAST( NULL AS SIGNED ) + 3 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT + col2 * + col2 + col1 + col0 / + - CAST ( NULL AS INTEGER ) + 3 AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 30 * + + col1 * + col2 col2, col1 AS col1 FROM tab1 AS cor0
----
40320
14
8850
5
95880
47

query I rowsort
SELECT ALL + - 90 + - col2 AS col2 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
-113
-130
-148

query I rowsort
SELECT DISTINCT + col2 * - col1 + + 92 AS col1 FROM tab2 AS cor0
----
-1081
-2988
-3794

query I rowsort
SELECT col0 * - col0 + col0 * + col1 AS col2 FROM tab2 AS cor0
----
-600
230
832

query II rowsort
SELECT - col0 + 31 + + 55 AS col2, col1 AS col0 FROM tab1 AS cor0
----
-5
47
1
5
35
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9861
SELECT + col0 + - 74 DIV col0 AS col0 FROM tab0 AS cor0
----
11
87
97

skipif mysql # not compatible
query I rowsort label-9861
SELECT + col0 + - 74 / col0 AS col0 FROM tab0 AS cor0
----
11
87
97

query I rowsort
SELECT DISTINCT col2 * - ( col1 ) AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9863
SELECT ALL + col0 DIV CAST( - + 1 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL + col0 / CAST ( - + 1 AS INTEGER ) FROM tab1
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 ) * + ( + 66 ) + col0 * + 97 * + 89 + col1 + - col0 <= col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9865
SELECT MIN( + 7 ) FROM tab1 WHERE - - CAST( NULL AS SIGNED ) IS NULL
----
7

skipif mysql # not compatible
query I rowsort label-9865
SELECT MIN ( + 7 ) FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) IS NULL
----
7

query I rowsort
SELECT DISTINCT 81 + - + col1 + - - col1 FROM tab2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT DISTINCT - 16 + + - CAST( + col0 AS SIGNED ) col0 FROM tab2
----
-62
-80
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9867
SELECT DISTINCT - 16 + + - CAST ( + col0 AS INTEGER ) col0 FROM tab2
----
-62
-80
-91

query I rowsort
SELECT DISTINCT + 82 + - - 70 * + 0 AS col2 FROM tab2
----
82

query I rowsort
SELECT DISTINCT + col2 * col0 - col1 AS col1 FROM tab0 AS cor0
----
624
849
9602

query I rowsort
SELECT DISTINCT col2 * 49 AS col2 FROM tab1 AS cor0
----
2891
3332
4704

query II rowsort
SELECT DISTINCT - + 80 * - col1 * - - col0 AS col1, 46 FROM tab1 AS cor0
----
34000
46
342160
46
57120
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9872
SELECT DISTINCT - col2 DIV - 14 AS col1 FROM tab0 AS cor0
----
0
3
7

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT - col2 / - 14 AS col1 FROM tab0 AS cor0
----
0
3
7

query I rowsort
SELECT + - col2 * 22 AS col1 FROM tab2 cor0
----
-1276
-506
-880

query II rowsort
SELECT ALL col1 AS col2, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN + col1 * col0 AND + - 79
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 4 * - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 40 * + col2 AS col0 FROM tab2
----
-1600
-2320
-920

query I rowsort
SELECT DISTINCT - 38 FROM tab0 WHERE NOT col0 + col2 IS NULL
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9879
SELECT ALL + CAST( + + 13 AS SIGNED ) FROM tab1
----
13
13
13

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL + CAST ( + + 13 AS INTEGER ) FROM tab1
----
13
13
13

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT + - col0 <= 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT DISTINCT + MAX( - - 7 ) AS col0 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT + MAX ( - - 7 ) AS col0 FROM tab1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9882
SELECT 30 DIV + + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9882
SELECT 30 / + + col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 95 - - col0 * + ( + col1 ) + col1 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 NOT BETWEEN + col0 AND - col2
----

query I rowsort
SELECT DISTINCT + 74 + - 54 * col1 FROM tab2 AS cor0
----
-2680
-3544
-4084

query I rowsort
SELECT + col0 + - + col2 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT - col1 * - - 29 FROM tab2 AS cor0
----
-1479
-1943
-2233

query I rowsort
SELECT ALL 5 * ( col0 ) AS col2 FROM tab2 cor0
----
230
320
375

query II rowsort
SELECT DISTINCT - col2 * - col0 AS col0, - col0 FROM tab2 AS cor0
----
1058
-46
2560
-64
4350
-75

query II rowsort
SELECT ALL - col0 * col1 AS col0, + 96 * + ( 14 ) FROM tab2 AS cor0
----
-2346
1344
-4928
1344
-5025
1344

query I rowsort
SELECT DISTINCT + - col1 * - + col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT - + 58 / - + col1 + ( - - col2 ) AS col0 FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND - + 30 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL COUNT( ALL - 5 ) * - - 77 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL COUNT ( ALL - 5 ) * - - 77 FROM tab1 AS cor0
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-9894
SELECT col1 DIV - + col1 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9894
SELECT col1 / - + col1 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9895
SELECT - COUNT( * ), MAX( col0 ) AS col1 FROM tab2
----
-3
75

skipif mysql # not compatible
query II rowsort label-9895
SELECT - COUNT ( * ), MAX ( col0 ) AS col1 FROM tab2
----
-3
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * + 32 col1 FROM tab2
----
896
896
896

query III rowsort
SELECT * FROM tab0 WHERE - + col2 / - 28 + - 13 + + 43 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 - - - ( + + col2 ) * col0 AS col1 FROM tab2
----
-1012
-2496
-4275

query I rowsort
SELECT ALL col2 + + col0 * + col0 FROM tab0
----
272
7579
9508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9900
SELECT DISTINCT - + AVG ( DISTINCT col0 ) FROM tab2 WHERE col0 + col1 NOT BETWEEN - - CAST( NULL AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT - + AVG ( DISTINCT col0 ) FROM tab2 WHERE col0 + col1 NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9901
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9901
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < ( - 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT DISTINCT + - COUNT( * ) - 24 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT + - COUNT ( * ) - 24 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT - col2 + 22 FROM tab1 AS cor0
----
-37
-46
-74

query II rowsort
SELECT - 8 + col1 * - - 93 AS col1, + col0 AS col2 FROM tab0 AS cor0
----
1945
87
7525
15
85
97

query I rowsort
SELECT 55 * col0 AS col1 FROM tab2
----
2530
3520
4125

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT ALL - col0 DIV - col2 - + col1 - - - col0 * - 85 AS col2 FROM tab2
----
3861
5364
6309

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL - col0 / - col2 - + col1 - - - col0 * - 85 AS col2 FROM tab2
----
3861
5364
6309

query II rowsort
SELECT ( - col2 ), col0 + 30 * + col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col1 AS col2, + col2 * 47 FROM tab2 WHERE NOT + col0 IS NULL
----
51
1081
67
2726
77
1880

query I rowsort
SELECT + 71 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT - 38 * - col0 FROM tab0
----
3306
3686
570

query I rowsort
SELECT DISTINCT + 15 * - + col1 * 97 FROM tab1 AS cor0
----
-20370
-68385
-7275

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9914
SELECT ALL - col2 DIV + ( col2 ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL - col2 / + ( col2 ) FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 58 AS col1 FROM tab0 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9917
SELECT DISTINCT MAX( - + ( + + CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT MAX ( - + ( + + CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT 93 * - MAX( + 94 ) FROM tab2
----
-8742

skipif mysql # not compatible
query I rowsort label-9918
SELECT 93 * - MAX ( + 94 ) FROM tab2
----
-8742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 * + - 81 col1 FROM tab1
----
7857
7857
7857

query I rowsort
SELECT - 64 * col0 FROM tab2
----
-2944
-4096
-4800

query I rowsort
SELECT 42 * - - 22 * - col2 AS col2 FROM tab0
----
-43428
-91476
-9240

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 + + col0 - + 50 / - col2 <= - - col2 + - - 24
----
-4

skipif mysql # not compatible
query I rowsort label-9922
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 + + col0 - + 50 / - col2 <= - - col2 + - - 24
----
-4

query II rowsort
SELECT ALL - 2 AS col1, + 52 AS col2 FROM tab2 AS cor0
----
-2
52
-2
52
-2
52

query I rowsort
SELECT + col0 + - 79 AS col1 FROM tab2 AS cor0
----
-15
-33
-4

query II rowsort
SELECT col2 + + - col2 + - col1, col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT DISTINCT MIN( + - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT MIN ( + - col2 ) FROM tab1
----
-96

query II rowsort
SELECT ALL - col1 * + col0 + - ( - col0 ), col2 FROM tab0
----
-1200
47
-1740
10
0
99

query II rowsort
SELECT 27 AS col2, 1 FROM tab1
----
27
1
27
1
27
1

query I rowsort
SELECT DISTINCT 64 + + col0 * + col1 FROM tab2 AS cor0
----
2410
4992
5089

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT - COUNT( * ) + + - 75 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9930
SELECT - COUNT ( * ) + + - 75 FROM tab0 AS cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - + col0 + + 56 col1 FROM tab0 AS cor0
----
281
7625
9465

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9932
SELECT DISTINCT - 39 AS col2, + col1 - CAST( 48 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-39
-27
-39
-47
-39
33

skipif mysql # not compatible
query II rowsort label-9932
SELECT DISTINCT - 39 AS col2, + col1 - CAST ( 48 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-39
-27
-39
-47
-39
33

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9933
SELECT ALL CAST( NULL AS DECIMAL ), 24 AS col2 FROM tab0 AS cor0
----
NULL
24
NULL
24
NULL
24

skipif mysql # not compatible
query II rowsort label-9933
SELECT ALL CAST ( NULL AS REAL ), 24 AS col2 FROM tab0 AS cor0
----
NULL
24
NULL
24
NULL
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 51 * - col0 + + col2 + + 27 + - col1 * - 88 AS col2, - col2 + col0 col2 FROM tab0 AS cor0
----
5161
-2
6322
77
7967
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9935
SELECT ALL - CAST( + 4 AS SIGNED ) FROM tab0 cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL - CAST ( + 4 AS INTEGER ) FROM tab0 cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - 69 - - col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT - 73 * + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0, tab0 AS cor0
----
-666

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT - 73 * + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0
----
-666

query I rowsort
SELECT ALL - + ( col1 ) + - + col0 + + 45 AS col2 FROM tab0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
-51
-53
-63

query I rowsort
SELECT ALL + - col1 - + - col0 FROM tab0 AS cor0
----
-66
66
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 25 * + 57 > NULL
----

query I rowsort
SELECT + col2 - - + col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT col0 - + + 49 DIV + col0 FROM tab2 cor0
----
45
64
75

skipif mysql # not compatible
query I rowsort label-9942
SELECT col0 - + + 49 / + col0 FROM tab2 cor0
----
45
64
75

query I rowsort
SELECT ALL - 51 FROM tab0 AS cor0 WHERE NOT - 92 * 35 - col2 IS NULL
----
-51
-51
-51

query I rowsort
SELECT ALL - - col0 * + - 45 FROM tab2 AS cor0
----
-2070
-2880
-3375

query II rowsort
SELECT - col0, + 95 AS col0 FROM tab2 AS cor0
----
-46
95
-64
95
-75
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT + COUNT( * ) * - + COUNT( col0 ) + - 35 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-35

skipif mysql # not compatible
query I rowsort label-9946
SELECT + COUNT ( * ) * - + COUNT ( col0 ) + - 35 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-35

query II rowsort
SELECT - col1, 89 AS col1 FROM tab2 AS cor0
----
-51
89
-67
89
-77
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9948
SELECT ALL + MAX( ALL + col0 ) DIV - ( 29 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL + MAX ( ALL + col0 ) / - ( 29 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT - MIN( + + 17 ) col2 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9949
SELECT - MIN ( + + 17 ) col2 FROM tab1 AS cor0
----
-17

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * col0 * - 81 / - - 1 * - 18 + + 52 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT 62 * CAST( NULL AS SIGNED ) * - col0 / - 10 * - + col0 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9951
SELECT 62 * CAST ( NULL AS INTEGER ) * - col0 / - 10 * - + col0 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab1 WHERE col0 / + + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9953
SELECT DISTINCT + COUNT( * ) DIV - - 96 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9953
SELECT DISTINCT + COUNT ( * ) / - - 96 col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT ( - 40 ) * + + MAX( + col1 ) AS col2 FROM tab0
----
-3240

skipif mysql # not compatible
query I rowsort label-9954
SELECT ( - 40 ) * + + MAX ( + col1 ) AS col2 FROM tab0
----
-3240

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT DISTINCT + + 84 DIV - 93 * + col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT + + 84 / - 93 * + col1 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> col0 * + - col1 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 col0 FROM tab2 AS cor0
----
27
27
27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT - col2 IS NOT NULL )
----

query I rowsort
SELECT + col0 + - + col0 * + 7 FROM tab2
----
-276
-384
-450

query I rowsort
SELECT ALL - col2 + - - col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT - col2 + - col0 - + - col0 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT 4, - 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to c0233239a18a3065846096f0bf5efff8

query I rowsort
SELECT + 46 + - col2 * - col1 FROM tab0
----
145
256
3853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col0, + col1 col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9965
SELECT ALL + 26 + col1 DIV col0 AS col1 FROM tab0 cor0
----
26
26
31

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL + 26 + col1 / col0 AS col1 FROM tab0 cor0
----
26
26
31

query I rowsort
SELECT DISTINCT + + ( + ( - col2 ) ) / + + col2 - - ( + 71 ) FROM tab2 AS cor0 WHERE NULL < col2
----

query I rowsort
SELECT col0 * - + 48 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2208
-3072
-3600

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( 11 ) + - ( + col2 ) + - + col1 IN ( 77 )
----
51
85
91

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE + col2 < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT DISTINCT + - CAST( 4 AS SIGNED ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT + - CAST ( 4 AS INTEGER ) FROM tab0 AS cor0
----
-4

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + 4
----

query I rowsort
SELECT 53 - + 2 FROM tab2
----
51
51
51

query I rowsort
SELECT + col0 - - 43 FROM tab2
----
107
118
89

query II rowsort
SELECT 61 - - + col0, col0 + - col1 AS col1 FROM tab0
----
148
66
158
96
76
-66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < NULL AND - 97 - - - col1 - - 34 + 72 * + col1 IS NOT NULL
----

query II rowsort
SELECT ALL - 69 AS col2, 14 AS col1 FROM tab1
----
-69
14
-69
14
-69
14

query I rowsort
SELECT ALL + col2 + - col0 - 17 AS col1 FROM tab0
----
-15
-94
15

query II rowsort
SELECT DISTINCT col0, 14 * + + col1 FROM tab1
----
51
196
85
70
91
658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 + - col0 col1 FROM tab2
----
-12
-23
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( 96 ), - 80 col0 FROM tab0 AS cor0 WHERE ( - 69 ) IS NOT NULL
----
96
-80
96
-80
96
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-9981
SELECT DISTINCT COUNT( * ) col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9981
SELECT DISTINCT COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9982
SELECT DISTINCT - 44 * 67 DIV - - COUNT( * ) FROM tab1
----
-982

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT - 44 * 67 / - - COUNT ( * ) FROM tab1
----
-982

query I rowsort
SELECT ALL + 76 + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9984
SELECT DISTINCT - + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT - + col1 / col0 AS col1 FROM tab0 AS cor0
----
-5
0

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - col1 * col0 / + col2 * + - col2 IS NULL
----
59
68
96

query I rowsort
SELECT - col2 * + 84 * - - col0 AS col1 FROM tab0 cor0
----
-59220
-73080
-806652

query I rowsort
SELECT ( ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + 29 * col0 + - col2 FROM tab2 AS cor0
----
1311
1816
2117

query I rowsort
SELECT ALL col0 * - 90 FROM tab2
----
-4140
-5760
-6750

query I rowsort
SELECT ALL col0 FROM tab0 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col2 * - 48, + 73, 23, + col2 * + 30, - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT DISTINCT col2 / - - col1 + 20 * + 89 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT col2 / - - col1 + 20 * + 89 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 4 + + + 14 IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT + col1 * + + col2 + - - 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT - + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9995
SELECT - + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 17 * 14 + col2 AS col2 FROM tab1 AS cor0
----
-142
-170
-179

query I rowsort
SELECT - ( - 95 ) AS col2 FROM tab2 AS cor0
----
95
95
95

query II rowsort
SELECT + col1, - 54 FROM tab2 AS cor0
----
51
-54
67
-54
77
-54

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + 82 AND ( + 59 )
----

