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)

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-0
SELECT + - ( - col2 ) AS col0, + col2 AS col2 FROM tab2 cor0 WHERE - col2 IN ( - 14 * - + 11, col2, CAST( + + col1 AS SIGNED ) * - CAST( - col0 AS SIGNED ), + col1 )
----

skipif mysql # not compatible
query II rowsort label-0
SELECT + - ( - col2 ) AS col0, + col2 AS col2 FROM tab2 cor0 WHERE - col2 IN ( - 14 * - + 11, col2, CAST ( + + col1 AS INTEGER ) * - CAST ( - col0 AS INTEGER ), + col1 )
----

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

query I rowsort
SELECT - + col0 + - + 22 FROM tab1 AS cor0
----
-107
-113
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 * - col1 col0 FROM tab2 AS cor0
----
2392
4992
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT 85 + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4
SELECT 85 + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
88

query I rowsort
SELECT - 50 + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-10
-27
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * col2 < - - col2
----

skipif mysql # not compatible
query III rowsort label-6
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * col2 < - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7
SELECT + CAST( NULL AS SIGNED ) AS col2, + col0 * - ( 81 ) FROM tab0
----
NULL
-1215
NULL
-7047
NULL
-7857

skipif mysql # not compatible
query II rowsort label-7
SELECT + CAST ( NULL AS INTEGER ) AS col2, + col0 * - ( 81 ) FROM tab0
----
NULL
-1215
NULL
-7047
NULL
-7857

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT - - SUM( - + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9
SELECT - - SUM ( - + col1 ) FROM tab2 AS cor0
----
-195

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

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

query I rowsort
SELECT + 21 * col0 FROM tab2
----
1344
1575
966

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + 16 * + + col0 FROM tab2 AS cor0
----
1024
1200
736

query I rowsort
SELECT ALL + 67 * - col2 AS col2 FROM tab1 AS cor0
----
-3953
-4556
-6432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col2 col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-118
-136
-192

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

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

query I rowsort
SELECT DISTINCT + col1 + 47 - + 45 FROM tab1 AS cor0
----
16
49
7

query I rowsort
SELECT DISTINCT + + col0 * + - 95 AS col2 FROM tab1 AS cor0
----
-4845
-8075
-8645

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 25 BETWEEN 97 * - col0 AND col1 + - + col0
----

query I rowsort
SELECT ALL + 99 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-21
SELECT 8 * + + COUNT( * ) DIV + MIN( + - ( - - col2 ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-21
SELECT 8 * + + COUNT ( * ) / + MIN ( + - ( - - col2 ) ) AS col0 FROM tab1
----
0

query I rowsort
SELECT + + col1 + - col1 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL 67 * col1 FROM tab0
----
1407
5427
67

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT COUNT( DISTINCT col1 ) AS col0 FROM tab2 WHERE NOT col2 - - col1 BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-24
SELECT COUNT ( DISTINCT col1 ) AS col0 FROM tab2 WHERE NOT col2 - - col1 BETWEEN col2 AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 - ( - col1 ) * - 96 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-26
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 * 60 ) = ( col2 * + CAST( NULL AS SIGNED ) + col1 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-26
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 * 60 ) = ( col2 * + CAST ( NULL AS INTEGER ) + col1 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-27
SELECT col1 AS col0 FROM tab2 WHERE NOT CAST( + col0 AS SIGNED ) > + 26
----

skipif mysql # not compatible
query I rowsort label-27
SELECT col1 AS col0 FROM tab2 WHERE NOT CAST ( + col0 AS INTEGER ) > + 26
----

query I rowsort
SELECT + 40 * 55 FROM tab1
----
2200
2200
2200

onlyif mysql # DIV for integer division: 
query I rowsort label-29
SELECT ALL + 5 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL + 5 / col2 AS col1 FROM tab1
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ( - MIN( DISTINCT 6 ) ) col0 FROM tab1 WHERE NOT 64 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-31
SELECT ( - MIN ( DISTINCT 6 ) ) col0 FROM tab1 WHERE NOT 64 IS NOT NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col1 FROM tab2
----
87
87
87

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

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

query I rowsort
SELECT 1 + + col0 FROM tab1
----
52
86
92

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 77 ) IN ( col1 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT col1 * + col2 + col0 AS col0 FROM tab2
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT - MIN( DISTINCT 81 ) AS col0 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-39
SELECT - MIN ( DISTINCT 81 ) AS col0 FROM tab1
----
-81

query I rowsort
SELECT ALL - col1 + col2 AS col2 FROM tab1 WHERE NOT ( col0 * + col1 + + col2 / + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 - + 7 col2 FROM tab1
----
1337
288
3189

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

onlyif mysql # DIV for integer division: 
query I rowsort label-43
SELECT - col2 DIV + 69 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-43
SELECT - col2 / + 69 col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * col2 - 99 col0 FROM tab0
----
1781
301
3861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-45
SELECT DISTINCT 81 + 70 * 92 AS col2 FROM tab2 WHERE NULL NOT IN ( - CAST( 90 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT 81 + 70 * 92 AS col2 FROM tab2 WHERE NULL NOT IN ( - CAST ( 90 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-46
SELECT + 58 DIV COUNT( * ) + 9 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-46
SELECT + 58 / COUNT ( * ) + 9 FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT DISTINCT + COUNT( * ) + + 56 * 92 FROM tab1
----
5155

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT + COUNT ( * ) + + 56 * 92 FROM tab1
----
5155

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT ALL SUM( + col1 ) + 84 * + COUNT( * ) FROM tab0
----
355

skipif mysql # not compatible
query I rowsort label-48
SELECT ALL SUM ( + col1 ) + 84 * + COUNT ( * ) FROM tab0
----
355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-49
SELECT ALL MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 WHERE col2 * - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE col2 * - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + 69 + - col2 AS col1 FROM tab0
----
-30
22
59

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

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

query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab1 WHERE NOT col2 NOT IN ( + col2 + - 34 )
----

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

skipif mysql # not compatible
query I rowsort label-53
SELECT - COUNT ( - col0 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT + col1 = ( + 3 )
----
51
85
91

query I rowsort
SELECT ALL 12 * col1 AS col1 FROM tab1 AS cor0
----
168
564
60

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT DISTINCT - SUM( + col1 ) + MIN( ALL 23 + - col2 ) AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-179

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT - SUM ( + col1 ) + MIN ( ALL 23 + - col2 ) AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-57
SELECT DISTINCT + COUNT( * ) + + SUM( DISTINCT col2 ) AS col1 FROM tab1 WHERE NOT 46 NOT IN ( - CAST( + col1 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT + COUNT ( * ) + + SUM ( DISTINCT col2 ) AS col1 FROM tab1 WHERE NOT 46 NOT IN ( - CAST ( + col1 AS INTEGER ) )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= col2 * - col2
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT COUNT( * ) AS col0 FROM tab2 cor0 WHERE NULL IN ( col2 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-63
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NULL IN ( col2 + col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col2 <> ( - 38 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col1 + - 1 AS col0 FROM tab2 AS cor0
----
-52
-68
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
40
40
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-67
SELECT DISTINCT - COUNT( * ) DIV - 58 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT - COUNT ( * ) / - 58 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL col0 + 61 FROM tab0 AS cor0
----
148
158
76

query I rowsort
SELECT DISTINCT + 1 + col2 FROM tab1 AS cor0
----
60
69
97

query I rowsort
SELECT 85 FROM tab0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL + 92 + + SUM( DISTINCT 36 ) FROM tab0
----
128

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL + 92 + + SUM ( DISTINCT 36 ) FROM tab0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT ( + ( 69 ) * col2 ) NOT BETWEEN col0 AND + ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT ( + ( 69 ) * col2 ) NOT BETWEEN col0 AND + ( - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT DISTINCT MIN( ALL - col2 ) * - 7 FROM tab2
----
406

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT MIN ( ALL - col2 ) * - 7 FROM tab2
----
406

query I rowsort
SELECT ( - 95 ) + col1 AS col0 FROM tab2
----
-18
-28
-44

query III rowsort
SELECT * FROM tab0 WHERE 23 <= + 31 + 9 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + + 26 FROM tab1
----
122
85
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-78
SELECT DISTINCT + COUNT( 19 ) + MIN( + col0 + - col0 * CAST( NULL AS SIGNED ) ) * - 87 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-78
SELECT DISTINCT + COUNT ( 19 ) + MIN ( + col0 + - col0 * CAST ( NULL AS INTEGER ) ) * - 87 col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - + 96 FROM tab1
----
-5664
-6528
-9216

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

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

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

skipif mysql # not compatible
query I rowsort label-81
SELECT - 15 / CAST ( NULL AS INTEGER ) + - col1 * col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-82
SELECT DISTINCT CAST( col0 AS SIGNED ) * col0 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT CAST ( col0 AS INTEGER ) * col0 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-83
SELECT ALL COUNT( * ) DIV - 42 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL COUNT ( * ) / - 42 AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-84
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL = ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL = ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 68 - - col1 col1 FROM tab0
----
-3115
-659
-6731

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

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT COUNT( * ) + 10 * - 5 AS col2 FROM tab0 AS cor0 WHERE 16 + + col0 NOT IN ( col0 * 74 )
----
-47

skipif mysql # not compatible
query I rowsort label-87
SELECT COUNT ( * ) + 10 * - 5 AS col2 FROM tab0 AS cor0 WHERE 16 + + col0 NOT IN ( col0 * 74 )
----
-47

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

query I rowsort
SELECT DISTINCT + 77 + + ( - col0 ) FROM tab2 AS cor0
----
13
2
31

query I rowsort
SELECT + col2 + col2 FROM tab2 WHERE + - 20 >= ( NULL )
----

query I rowsort
SELECT DISTINCT 23 - + col2 FROM tab0 WHERE - ( 10 ) IS NULL
----

query I rowsort
SELECT DISTINCT - + 46 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-46

query I rowsort
SELECT ALL - col2 + 56 AS col2 FROM tab0 AS cor0 WHERE - 31 = + col0
----

query II rowsort
SELECT ALL - 62 AS col1, ( - col2 ) FROM tab2 AS cor0
----
-62
-23
-62
-40
-62
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT DISTINCT - + SUM( - 7 ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-95
SELECT DISTINCT - + SUM ( - 7 ) FROM tab1 AS cor0
----
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( 33 )
----

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

skipif mysql # not compatible
query I rowsort label-97
SELECT - COUNT ( + 76 ) FROM tab0 cor0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT + - col1 + - + 65 + + 86 BETWEEN + col2 AND - 57 + + 77
----
3

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT + - col1 + - + 65 + + 86 BETWEEN + col2 AND - 57 + + 77
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col1 FROM tab0
----
54
54
54

query I rowsort
SELECT ALL + 59 * + col0 AS col2 FROM tab2
----
2714
3776
4425

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

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

query I rowsort
SELECT ALL ( 97 ) AS col0 FROM tab0
----
97
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT ( 42 ) DIV + - col1 AS col2 FROM tab1
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-105
SELECT ( 42 ) / + - col1 AS col2 FROM tab1
----
-3
-8
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-106
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 IN ( - - col2 * - CAST( NULL AS SIGNED ) - - col1 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-106
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 IN ( - - col2 * - CAST ( NULL AS INTEGER ) - - col1 * - col1 )
----

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

skipif mysql # not compatible
query III rowsort label-107
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + 93 * - col1 + CAST ( 19 - - col1 AS INTEGER ) * 25 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 36 * - col1 FROM tab1 cor0
----
-1692
-180
-504

query I rowsort
SELECT - - 31 + + col2 FROM tab2 AS cor0
----
54
71
89

query I rowsort
SELECT ALL ( - - 68 ) * + + col0 * col1 * - + 46 FROM tab2 AS cor0
----
-15414784
-15718200
-7338288

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

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE + col0 / + 97 <= + col1
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT ALL - SUM( DISTINCT - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL - SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT - col1 * + + 87 * col2 + 43 - - col0 AS col1 FROM tab0 AS cor0
----
-18140
-331151
-8473

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT ALL - SUM( DISTINCT - 33 ) AS col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL - SUM ( DISTINCT - 33 ) AS col1 FROM tab0 AS cor0
----
33

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

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

query I rowsort
SELECT 92 FROM tab0 AS cor0 WHERE col1 < ( - col2 )
----

query I rowsort
SELECT DISTINCT col1 * + - col0 + + col2 AS col2 FROM tab1
----
-366
-4209
-618

query III rowsort
SELECT * FROM tab0 WHERE + ( - col1 ) / + col0 BETWEEN - 36 - - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + - + col1 + + col2 col2 FROM tab0
----
2175
89
9899

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT COUNT( * ) FROM tab2 WHERE - + ( - + ( + col2 ) ) / + col1 * + 54 BETWEEN ( ( - ( + ( col0 ) ) ) ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-121
SELECT COUNT ( * ) FROM tab2 WHERE - + ( - + ( + col2 ) ) / + col1 * + 54 BETWEEN ( ( - ( + ( col0 ) ) ) ) AND ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-122
SELECT ALL col0, CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-122
SELECT ALL col0, CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT + 45 - + 3 + + - col1 + - + ( - 16 ) + - - col0 * col0 * 61 FROM tab2
----
129083
249837
343116

query I rowsort
SELECT DISTINCT - col1 - col2 * + col1 FROM tab2
----
-1224
-3157
-3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col0 + + - col2 + - col2 * - 6 col1 FROM tab0
----
-47
173
299

query I rowsort
SELECT - col0 * col1 * - - col1 + + 21 FROM tab1 WHERE ( + + col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 - + ( - col1 ) AS col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT DISTINCT - 54 * + - 18 * + MAX( DISTINCT - col2 ) + + 8 FROM tab2 AS cor0
----
-22348

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT - 54 * + - 18 * + MAX ( DISTINCT - col2 ) + + 8 FROM tab2 AS cor0
----
-22348

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT - ( - SUM( col1 ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-129
SELECT - ( - SUM ( col1 ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-130
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( col1 AS SIGNED ) * - col1 * col0 IS NOT NULL OR NOT col0 + col1 = NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-130
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( col1 AS INTEGER ) * - col1 * col0 IS NOT NULL OR NOT col0 + col1 = NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + col1 * - ( - ( + + 5 ) ) FROM tab2
----
255
335
385

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 35 = NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + 21 <= - 52
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT + 5 <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-139
SELECT + MIN ( ALL - col0 ) AS col2 FROM tab2
----
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-141
SELECT - 98 DIV + 77 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-141
SELECT - 98 / + 77 AS col2 FROM tab0
----
-1
-1
-1

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

query II rowsort
SELECT ALL + + col1, 20 FROM tab0 cor0
----
1
20
21
20
81
20

query I rowsort
SELECT 93 * - - col0 FROM tab1
----
4743
7905
8463

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT DISTINCT - MIN( + 6 ) FROM tab1 WHERE NOT col0 * + - col1 + + 15 + - - 60 BETWEEN - + 74 * - col1 AND + col1
----
-6

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT - MIN ( + 6 ) FROM tab1 WHERE NOT col0 * + - col1 + + 15 + - - 60 BETWEEN - + 74 * - col1 AND + col1
----
-6

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

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

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

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

query I rowsort
SELECT col2 * col0 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - 83 + + col1 )
----

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

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

query I rowsort
SELECT + col0 + + col2 + - 19 FROM tab0 cor0
----
177
43
78

query I rowsort
SELECT DISTINCT - - 60 + ( - + ( - col1 ) ) - - col0 + - col0 + - - 79 FROM tab2 AS cor0
----
190
206
216

query II rowsort
SELECT DISTINCT + col0 + + col1 * + 90 AS col2, - ( + + col1 ) AS col0 FROM tab0
----
187
-1
1977
-21
7305
-81

query I rowsort
SELECT ALL col0 - - + col0 + - col0 * - 7 * + ( col0 ) AS col1 FROM tab2
----
14904
28800
39525

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT DISTINCT - MAX( + 13 ) + - 68 - + - 94 col1 FROM tab2
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-155
SELECT DISTINCT - MAX ( + 13 ) + - 68 - + - 94 col1 FROM tab2
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 col1 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab0 WHERE + 84 BETWEEN - - 79 AND - 96 - - ( - col1 )
----

query I rowsort
SELECT col0 + 46 FROM tab1
----
131
137
97

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT + ( + + 72 ) + - COUNT( * ) AS col1 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-159
SELECT + ( + + 72 ) + - COUNT ( * ) AS col1 FROM tab0
----
69

query I rowsort
SELECT ALL + col1 * - col1 - 80 + - col2 FROM tab0
----
-180
-531
-6688

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL SUM( DISTINCT + + 14 ) col1 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-161
SELECT ALL SUM ( DISTINCT + + 14 ) col1 FROM tab1 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE + col1 < + - col2
----
0

skipif mysql # not compatible
query I rowsort label-162
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 < + - col2
----
0

query I rowsort
SELECT + - 41 - + col2 AS col0 FROM tab1 AS cor0
----
-100
-109
-137

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-164
SELECT ALL * FROM tab1 WHERE + col1 <> - ( - CAST( NULL AS SIGNED ) ) / col0
----

skipif mysql # not compatible
query III rowsort label-164
SELECT ALL * FROM tab1 WHERE + col1 <> - ( - CAST ( NULL AS INTEGER ) ) / col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-165
SELECT DISTINCT - + CAST( + 0 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT - + CAST ( + 0 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 33 + + col0 = ( NULL )
----

query II rowsort
SELECT + - 20, + col0 AS col1 FROM tab0 AS cor0
----
-20
15
-20
87
-20
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-171
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= + 53 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-171
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= + 53 * CAST ( NULL AS INTEGER )
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 88 ) = + 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 42 * - 95 AS col0 FROM tab0 AS cor0
----
3990
3990
3990

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 - + col2 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-179
SELECT ALL - COUNT( * ), - 68 AS col2 FROM tab0, tab1 AS cor0
----
-9
-68

skipif mysql # not compatible
query II rowsort label-179
SELECT ALL - COUNT ( * ), - 68 AS col2 FROM tab0, tab1 AS cor0
----
-9
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT MIN( DISTINCT - + col1 ) * + MIN( col0 ) AS col0 FROM tab1
----
-2397

skipif mysql # not compatible
query I rowsort label-182
SELECT MIN ( DISTINCT - + col1 ) * + MIN ( col0 ) AS col0 FROM tab1
----
-2397

query I rowsort
SELECT ALL col2 * - + 59 AS col1 FROM tab1
----
-3481
-4012
-5664

query II rowsort
SELECT ALL + ( + col0 ) + + + 16 - + 94 * - - col2, col0 FROM tab1 AS cor0
----
-5445
85
-6285
91
-8957
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + - col2 ) col2 FROM tab2 AS cor0 WHERE col1 BETWEEN ( - 8 ) + - col0 AND NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT - COUNT( * ) + COUNT( * ) + - 7 col0 FROM tab2
----
-7

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-190
SELECT + col1 + + - ( + - ( - 6 ) ) DIV + col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-190
SELECT + col1 + + - ( + - ( - 6 ) ) / + col0 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT + + col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-191
SELECT + + col1 / - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT - COUNT( - 13 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-193
SELECT - COUNT ( - 13 ) FROM tab0 AS cor0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL - COUNT( * ) col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-195
SELECT ALL - COUNT ( * ) col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 18 = ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT + + 19 * COUNT( ALL ( 35 ) ) AS col0 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-197
SELECT + + 19 * COUNT ( ALL ( 35 ) ) AS col0 FROM tab0 AS cor0
----
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND + + 54 * + + 48
----

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

skipif mysql # not compatible
query II rowsort label-199
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, ( - 72 ) FROM tab2 AS cor0
----
NULL
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 + - col0 col2 FROM tab1 AS cor0
----
-21
-27
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 49 * + ( + 65 ) col2 FROM tab0 AS cor0
----
-3185
-3185
-3185

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT DISTINCT - col1 - - ( + + CAST( ( + col0 ) AS SIGNED ) ) + col0 AS col0 FROM tab0
----
-51
153
193

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT - col1 - - ( + + CAST ( ( + col0 ) AS INTEGER ) ) + col0 AS col0 FROM tab0
----
-51
153
193

query I rowsort
SELECT ALL 1 + 32 AS col2 FROM tab0
----
33
33
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ALL + MIN( - - 42 ) - + 85 * ( - ( - COUNT( * ) ) ) col2 FROM tab1
----
-213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-206
SELECT ALL + MIN ( - - 42 ) - + 85 * ( - ( - COUNT ( * ) ) ) col2 FROM tab1
----
-213

query I rowsort
SELECT - 20 + + col1 + - + 87 * 4 FROM tab1
----
-321
-354
-363

query I rowsort
SELECT col2 + + 28 + - 22 AS col0 FROM tab0
----
105
16
53

onlyif mysql # DIV for integer division: 
query I rowsort label-209
SELECT ALL ( col2 ) - - + 91 DIV - col1 FROM tab1
----
41
67
90

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL ( col2 ) - - + 91 / - col1 FROM tab1
----
41
67
90

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT DISTINCT 35 - - COUNT( * ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT 35 - - COUNT ( * ) FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT DISTINCT + MAX( 54 ) * - - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT + MAX ( 54 ) * - - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

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

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

query I rowsort
SELECT 81 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT DISTINCT + col2 * col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT + col2 * col0 / - col0 AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL + - 27 * + col0 AS col1 FROM tab2 AS cor0
----
-1242
-1728
-2025

query I rowsort
SELECT ALL - 62 * - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
2852
3968
4650

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 * - 5 + - + col0 + col2 )
----

query I rowsort
SELECT + + col1 * - col0 * + - 3 * + + col1 AS col1 FROM tab1 cor0
----
29988
603057
6375

query I rowsort
SELECT DISTINCT + col0 * 56 AS col2 FROM tab1 cor0
----
2856
4760
5096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-221
SELECT DISTINCT - COUNT( * ) + - + 17 DIV - - MIN( + 12 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT - COUNT ( * ) + - + 17 / - - MIN ( + 12 ) FROM tab0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT col2 DIV - 66 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-222
SELECT col2 / - 66 FROM tab2
----
0
0
0

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

query I rowsort
SELECT 59 AS col0 FROM tab1 WHERE NOT + - 81 + - col2 * + col0 IS NULL
----
59
59
59

query I rowsort
SELECT - col0 * + 33 + + col0 FROM tab2
----
-1472
-2048
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-226
SELECT * FROM tab0 WHERE + 61 + col1 * - ( + + CAST( NULL AS SIGNED ) ) IS NULL AND NOT ( NULL ) BETWEEN ( + col2 / + 65 ) AND col0
----

skipif mysql # not compatible
query III rowsort label-226
SELECT * FROM tab0 WHERE + 61 + col1 * - ( + + CAST ( NULL AS INTEGER ) ) IS NULL AND NOT ( NULL ) BETWEEN ( + col2 / + 65 ) AND col0
----

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

query I rowsort
SELECT - col2 * + - col0 + + col0 FROM tab1
----
4947
5100
6279

query II rowsort
SELECT + - col1, col0 + - + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-21
77
-81
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-230
SELECT ALL - - col0 + col0 + - ( - col1 ) * - CAST( + col1 AS SIGNED ) * - col1 + col2 AS col1 FROM tab1 AS cor0
----
104073
2942
354

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL - - col0 + col0 + - ( - col1 ) * - CAST ( + col1 AS INTEGER ) * - col1 + col2 AS col1 FROM tab1 AS cor0
----
104073
2942
354

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-232
SELECT col2 * col0, - col0 DIV ( col1 ) AS col1 FROM tab2
----
1058
0
2560
0
4350
-1

skipif mysql # not compatible
query II rowsort label-232
SELECT col2 * col0, - col0 / ( col1 ) AS col1 FROM tab2
----
1058
0
2560
0
4350
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-233
SELECT ALL col2 + + col1 AS col2, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
100
NULL
128
NULL
31
NULL

skipif mysql # not compatible
query II rowsort label-233
SELECT ALL col2 + + col1 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
100
NULL
128
NULL
31
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - AVG ( ALL col1 ) col1 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL - 15 * - col0 AS col2, 76 AS col2 FROM tab0 AS cor0
----
1305
76
1455
76
225
76

query II rowsort
SELECT + 59 + + col0 * - + col2 AS col0, + col0 AS col1 FROM tab2 AS cor0
----
-2501
64
-4291
75
-999
46

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

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

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

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL - 46 + SUM ( DISTINCT + - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL - - SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
156

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

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

query I rowsort
SELECT col1 * ( + col1 ) * - + 94 * + ( col1 ) AS col0 FROM tab2
----
-12469194
-28271722
-42914102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-242
SELECT + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-242
SELECT + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0
----
1

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

skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT + ( + col1 ) * - 95 + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-244
SELECT ALL - COUNT( - 50 ) AS col0 FROM tab2 WHERE + - 88 IN ( - - 15 - ( - - 71 ) * CAST( col2 AS SIGNED ) * + col2 + col0, - col1 / + col1, + + 4 )
----
0

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - COUNT ( - 50 ) AS col0 FROM tab2 WHERE + - 88 IN ( - - 15 - ( - - 71 ) * CAST ( col2 AS INTEGER ) * + col2 + col0, - col1 / + col1, + + 4 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT DISTINCT - SUM( 98 ) FROM tab0 cor0
----
-294

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT - SUM ( 98 ) FROM tab0 cor0
----
-294

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab1 AS cor0
----
23

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 92 IN ( - col0, 88, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-248
SELECT DISTINCT - + col0, - col1 DIV + 97 + - - col0 * 84 * - + 95 - col1 AS col0 FROM tab2 AS cor0
----
-46
-367131
-64
-510797
-75
-598567

skipif mysql # not compatible
query II rowsort label-248
SELECT DISTINCT - + col0, - col1 / + 97 + - - col0 * 84 * - + 95 - col1 AS col0 FROM tab2 AS cor0
----
-46
-367131
-64
-510797
-75
-598567

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-250
SELECT DISTINCT col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-250
SELECT DISTINCT col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-252
SELECT SUM( - 9 ) col1, + COUNT( * ) + - + MIN( ALL col1 ) FROM tab2 AS cor0
----
-27
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-252
SELECT SUM ( - 9 ) col1, + COUNT ( * ) + - + MIN ( ALL col1 ) FROM tab2 AS cor0
----
-27
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-253
SELECT DISTINCT + 92 * + - 74 AS col2, + COUNT( ALL + - col1 ) FROM tab1 AS cor0
----
-6808
3

skipif mysql # not compatible
query II rowsort label-253
SELECT DISTINCT + 92 * + - 74 AS col2, + COUNT ( ALL + - col1 ) FROM tab1 AS cor0
----
-6808
3

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT ALL - + 55 * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL - + 55 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-165

query I rowsort
SELECT DISTINCT - col1 * - 93 * + col2 AS col1 FROM tab0 AS cor0
----
19530
354051
9207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-256
SELECT ( col2 ) AS col2, + 93 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-256
SELECT ( col2 ) AS col2, + 93 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT + - col2 * + + 95 FROM tab1 AS cor0
----
-5605
-6460
-9120

query I rowsort
SELECT DISTINCT + col1 * - ( - 50 ) + - - col0 FROM tab2 AS cor0
----
2596
3425
3914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-259
SELECT DISTINCT - COUNT( * ) * + COUNT( - + ( + + 2 ) ) + - CAST( + - 42 AS SIGNED ) * - 50 FROM tab1
----
-2109

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT - COUNT ( * ) * + COUNT ( - + ( + + 2 ) ) + - CAST ( + - 42 AS INTEGER ) * - 50 FROM tab1
----
-2109

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

query II rowsort
SELECT ALL col0 * - - col0 + - col1 AS col2, col0 FROM tab0
----
144
15
7548
87
9408
97

query I rowsort
SELECT ALL + 54 AS col2 FROM tab2 WHERE NOT - col1 + 31 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * - ( + col2 ) AS col0 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL - col0 * 38 AS col0 FROM tab2
----
-1748
-2432
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT - SUM( DISTINCT - col0 ) * + 6 + COUNT( * ) FROM tab1
----
1365

skipif mysql # not compatible
query I rowsort label-265
SELECT - SUM ( DISTINCT - col0 ) * + 6 + COUNT ( * ) FROM tab1
----
1365

query I rowsort
SELECT - 98 AS col2 FROM tab2 WHERE - - 96 / 62 + + 8 + 65 NOT IN ( - + col0, 32 )
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-267
SELECT - 19 AS col2, + COUNT( * ) FROM tab0
----
-19
3

skipif mysql # not compatible
query II rowsort label-267
SELECT - 19 AS col2, + COUNT ( * ) FROM tab0
----
-19
3

query I rowsort
SELECT ALL + 1 AS col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT col2 * + 64 FROM tab2 AS cor0
----
1472
2560
3712

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - - 0 IS NULL
----

query II rowsort
SELECT + 59, - col0 + + + col0 AS col0 FROM tab1 AS cor0
----
59
0
59
0
59
0

query I rowsort
SELECT ALL + 73 AS col0 FROM tab2 AS cor0 WHERE NOT 88 IN ( col2, - 99, - col2, - col1 )
----
73
73
73

query II rowsort
SELECT ALL + + col1, ( - + 4 ) FROM tab1 AS cor0
----
14
-4
47
-4
5
-4

query I rowsort
SELECT DISTINCT - col1 + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1296
-1848
-98

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 87 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-280
SELECT COUNT ( - + col0 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + - ( 52 ) AS col2 FROM tab0 AS cor0
----
-52
-52
-52

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-284
SELECT + 46 DIV - 56 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-284
SELECT + 46 / - 56 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 BETWEEN + + 49 / + 22 AND - 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-286
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT 44 * - col1 + + + 47 + 78 >= NULL
----

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT 44 * - col1 + + + 47 + 78 >= NULL
----

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

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

query I rowsort
SELECT col1 * + ( col0 ) AS col0 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-289
SELECT * FROM tab2 AS cor0 WHERE NOT 90 / - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-289
SELECT * FROM tab2 AS cor0 WHERE NOT 90 / - + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 + + - col1 )
----

query I rowsort
SELECT DISTINCT 75 + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
162
172
90

query I rowsort
SELECT DISTINCT - 1 * + + 64 + - 98 + - - col2 AS col1 FROM tab0 AS cor0
----
-115
-152
-63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 15 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-294
SELECT - + CAST( NULL AS DECIMAL ) * + 42 + col1 + - 36 * - 61 - col2 * + 66 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT - + CAST ( NULL AS REAL ) * + 42 + col1 + - 36 * - 61 - col2 * + 66 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - 88 * - ( 25 ) AS col2 FROM tab0
----
2201
2221
2281

query I rowsort
SELECT col1 FROM tab2 WHERE + 36 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - col0 + + + ( - col2 ) AS col0 FROM tab2
----
-104
-133
-69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT DISTINCT 94 + - + COUNT( 35 ) AS col1 FROM tab2 AS cor0 WHERE - col2 <= NULL
----
94

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT 94 + - + COUNT ( 35 ) AS col1 FROM tab2 AS cor0 WHERE - col2 <= NULL
----
94

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

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

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

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

skipif mysql # not compatible
query I rowsort label-302
SELECT MAX ( 40 ) AS col1 FROM tab2 AS cor0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-303
SELECT DISTINCT + col0 * + 60 + - col2 FROM tab1 AS cor0 WHERE NOT - 56 * + col2 NOT BETWEEN + 94 + + CAST( - col2 AS SIGNED ) + - col2 AND - 76
----

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT + col0 * + 60 + - col2 FROM tab1 AS cor0 WHERE NOT - 56 * + col2 NOT BETWEEN + 94 + + CAST ( - col2 AS INTEGER ) + - col2 AND - 76
----

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

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

query I rowsort
SELECT col1 + + 48 - - - 9 FROM tab2 AS cor0
----
106
116
90

query I rowsort
SELECT + col0 + + - col2 AS col0 FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT DISTINCT - col1 AS col0, - col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

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

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

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

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

query II rowsort
SELECT 79 * - col0 * 69 AS col0, - col0 AS col2 FROM tab0 AS cor0
----
-474237
-87
-528747
-97
-81765
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-311
SELECT ALL - ( - 79 ) DIV + col0 + + col0 AS col0, col2 * - 56 FROM tab0
----
20
-2632
87
-560
97
-5544

skipif mysql # not compatible
query II rowsort label-311
SELECT ALL - ( - 79 ) / + col0 + + col0 AS col0, col2 * - 56 FROM tab0
----
20
-2632
87
-560
97
-5544

query I rowsort
SELECT ALL - - col1 * col2 FROM tab1 WHERE NULL IS NULL
----
1344
295
3196

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

skipif mysql # not compatible
query III rowsort label-313
SELECT * FROM tab0 WHERE NOT ( - - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query II rowsort
SELECT - + col0, - 3 AS col1 FROM tab0 AS cor0
----
-15
-3
-87
-3
-97
-3

query I rowsort
SELECT DISTINCT - 28 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-317
SELECT 19 AS col0, - SUM( + 44 ) AS col0 FROM tab1 AS cor0
----
19
-132

skipif mysql # not compatible
query II rowsort label-317
SELECT 19 AS col0, - SUM ( + 44 ) AS col0 FROM tab1 AS cor0
----
19
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-318
SELECT - 51 DIV + 65 + + col1 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-318
SELECT - 51 / + 65 + + col1 AS col1 FROM tab2
----
51
67
77

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT 53 * + COUNT( * ) * - + COUNT( * ) FROM tab0 cor0
----
-477

skipif mysql # not compatible
query I rowsort label-323
SELECT 53 * + COUNT ( * ) * - + COUNT ( * ) FROM tab0 cor0
----
-477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-324
SELECT + - MIN( - - col2 ) DIV - 28 + + 89 AS col0 FROM tab2 cor0
----
89

skipif mysql # not compatible
query I rowsort label-324
SELECT + - MIN ( - - col2 ) / - 28 + + 89 AS col0 FROM tab2 cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-325
SELECT - CAST( NULL AS SIGNED ) * col2 AS col1, col0 + - 14 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
-299
NULL
-536
NULL
-795

skipif mysql # not compatible
query II rowsort label-325
SELECT - CAST ( NULL AS INTEGER ) * col2 AS col1, col0 + - 14 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
-299
NULL
-536
NULL
-795

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 = col2 + - + 62
----

query I rowsort
SELECT ALL - + col2 + + - ( - + col0 ) AS col1 FROM tab1 cor0
----
-45
23
26

query II rowsort
SELECT - col1 AS col1, col1 + + col2 AS col2 FROM tab1
----
-14
110
-47
115
-5
64

query II rowsort
SELECT + + col2 AS col2, col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE - col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT col0 * + ( - ( + - col2 ) ) AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT + col1 + + 35 FROM tab0 AS cor0
----
116
36
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-333
SELECT - 10 / col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-333
SELECT - 10 / col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT ALL + - 64 + COUNT( * ) AS col1 FROM tab0 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-334
SELECT ALL + - 64 + COUNT ( * ) AS col1 FROM tab0 cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT DISTINCT 82 - - + SUM( ALL col1 ) * 76 - - 27 FROM tab0
----
7937

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT 82 - - + SUM ( ALL col1 ) * 76 - - 27 FROM tab0
----
7937

query I rowsort
SELECT ALL 0 - - 2 FROM tab2
----
2
2
2

query III rowsort
SELECT * FROM tab1 WHERE + 64 IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - col2 - + col2 + - col1 FROM tab1
----
-123
-183
-206

query I rowsort
SELECT ALL ( 62 ) * + col0 FROM tab0
----
5394
6014
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + col0 ) col2, col0 * + 25 FROM tab1 AS cor0
----
51
1275
85
2125
91
2275

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-343
SELECT ALL - col0 * col1 AS col1, + 72 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
-1215
NULL
-1827
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-343
SELECT ALL - col0 * col1 AS col1, + 72 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
-1215
NULL
-1827
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-344
SELECT DISTINCT COUNT( * ), MAX( 94 ) AS col2 FROM tab1
----
3
94

skipif mysql # not compatible
query II rowsort label-344
SELECT DISTINCT COUNT ( * ), MAX ( 94 ) AS col2 FROM tab1
----
3
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT DISTINCT + MAX( + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT + MAX ( + col2 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT ALL - SUM( + 16 ) AS col1 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - SUM ( + 16 ) AS col1 FROM tab0
----
-48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 31 < + col0 - - - 70
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + 26
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NULL ) <= + col2 ) OR NOT - 34 >= - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col0 * - 28 - col1 + - 87 AS col1 FROM tab0 AS cor0
----
2328
252
2628

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

query I rowsort
SELECT + + ( - col1 ) AS col2 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col2 + + 61 AS col0 FROM tab2
----
101
119
84

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

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

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

query I rowsort
SELECT + 6 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN col2 AND NULL
----

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

query I rowsort
SELECT - + 26 + 55 AS col2 FROM tab1 cor0
----
29
29
29

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

query II rowsort
SELECT DISTINCT col0 + + - 68 AS col2, + col0 * col1 + - + 99 FROM tab0
----
-53
1116
19
1728
29
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 WHERE NULL >= - 61
----

query II rowsort
SELECT ALL 7 - + + col1 AS col0, col0 * + 14 + - 97 AS col1 FROM tab1
----
-40
1177
-7
617
2
1093

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

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

query I rowsort
SELECT + - col2 - + 29 * - - col2 FROM tab1 AS cor0 WHERE - col1 * - col0 <> - col2 * col0
----
-1770
-2040
-2880

query I rowsort
SELECT + 65 - + col0 + - + col2 AS col1 FROM tab2 cor0
----
-39
-4
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT DISTINCT COUNT( 51 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT COUNT ( 51 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ALL SUM( - 89 ) FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL SUM ( - 89 ) FROM tab2
----
-267

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

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

query I rowsort
SELECT col2 * + col2 + + + col0 * col0 FROM tab0 cor0
----
19210
2434
7669

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 33 * + col0 + 88 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT - col1 DIV + 93 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-375
SELECT - col1 / + 93 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * 82 FROM tab0
----
1230
7134
7954

query I rowsort
SELECT ALL 98 * - col2 AS col1 FROM tab0
----
-4606
-9702
-980

query I rowsort
SELECT DISTINCT - col1 * - + 63 FROM tab2
----
3213
4221
4851

query I rowsort
SELECT DISTINCT + 84 + 42 + - 70 FROM tab1
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 col1 FROM tab2
----
63

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

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE 97 BETWEEN - ( + - col1 ) * - + col2 - + col1 AND - 46
----

query I rowsort
SELECT DISTINCT + - 98 + col0 * + col0 * - + col0 AS col0 FROM tab2 AS cor0
----
-262242
-421973
-97434

query I rowsort
SELECT DISTINCT - col2 + - + 88 FROM tab0 cor0
----
-135
-187
-98

query I rowsort
SELECT ALL 93 - + + col0 FROM tab2 AS cor0
----
18
29
47

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

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

query I rowsort
SELECT + 50 + - 90 FROM tab1
----
-40
-40
-40

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

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

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

query I rowsort
SELECT + 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-391
SELECT DISTINCT + + MIN ( DISTINCT + ( + - col1 ) ) col0 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-392
SELECT ALL - + CAST( + 3 AS SIGNED ) * - col0 - - col2 - col2 + - 10 * - + 90 FROM tab1 cor0
----
1053
1155
1173

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL - + CAST ( + 3 AS INTEGER ) * - col0 - - col2 - col2 + - 10 * - + 90 FROM tab1 cor0
----
1053
1155
1173

query I rowsort
SELECT ALL + + col1 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
1173
3080
3886

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

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

query II rowsort
SELECT ALL + 47 AS col1, - 50 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
47
-50
47
-50
47
-50

query I rowsort
SELECT 41 * - 44 FROM tab0
----
-1804
-1804
-1804

query II rowsort
SELECT ALL col1 AS col2, 35 AS col0 FROM tab0
----
1
35
21
35
81
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 65, - 51 * - - col0 col0 FROM tab1
----
65
-2601
65
-4335
65
-4641

query II rowsort
SELECT DISTINCT - 45 * col0 * col0, 5 * - + col0 AS col0 FROM tab2
----
-184320
-320
-253125
-375
-95220
-230

query I rowsort
SELECT 82 + + 94 AS col1 FROM tab0
----
176
176
176

query I rowsort
SELECT ALL + 1 * - 97 AS col0 FROM tab2
----
-97
-97
-97

query I rowsort
SELECT DISTINCT - - 70 FROM tab2 cor0
----
70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 14 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * 71 * 78 * - + 98 + - col0 * col1 FROM tab2
----
24962958
34729408
40699275

query I rowsort
SELECT DISTINCT - 85 * + - ( col2 ) FROM tab1
----
5015
5780
8160

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT ALL + - 23 * + 3 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 41 IS NULL
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT MIN( + 42 ) col2 FROM tab2
----
42

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT ALL + col2 DIV col1 * + col0 FROM tab1 AS cor0
----
306
91
935

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + col2 / col1 * + col0 FROM tab1 AS cor0
----
306
91
935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-412
SELECT DISTINCT - 72 / + MIN( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT - 72 / + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-414
SELECT col0 DIV + col1 + col2 AS col2 FROM tab1 AS cor0
----
69
76
99

skipif mysql # not compatible
query I rowsort label-414
SELECT col0 / + col1 + col2 AS col2 FROM tab1 AS cor0
----
69
76
99

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

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

query I rowsort
SELECT DISTINCT - col1 - - - ( - col1 ) * col0 * col1 FROM tab2 AS cor0
----
119595
336608
379379

query II rowsort
SELECT 57 * - col1 + col2 * + - 68 + 2 AS col1, col1 FROM tab2 cor0
----
-4469
51
-7107
77
-7761
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-419
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 0 NOT IN ( + + col1, - col1, - ( col2 ) * CAST( NULL AS SIGNED ) + 9 )
----

skipif mysql # not compatible
query III rowsort label-419
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 0 NOT IN ( + + col1, - col1, - ( col2 ) * CAST ( NULL AS INTEGER ) + 9 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-420
SELECT DISTINCT + 83 DIV - - col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT + 83 / - - col2 FROM tab2
----
1
2
3

query II rowsort
SELECT ALL col1 AS col0, + 27 * + - col2 AS col0 FROM tab1
----
14
-2592
47
-1836
5
-1593

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

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

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

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

skipif mysql # not compatible
query I rowsort label-424
SELECT - MAX ( ALL 39 ) AS col1 FROM tab2 AS cor0
----
-39

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

skipif mysql # not compatible
query II rowsort label-425
SELECT ALL + col1, - col2 / - col1 AS col0 FROM tab1 AS cor0
----
14
6
47
1
5
11

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

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

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

query I rowsort
SELECT DISTINCT + + 73 * + ( col1 ) * + col0 + + 62 AS col0 FROM tab0 cor0
----
133433
7143
88757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 col0 FROM tab2
----
99

query I rowsort
SELECT ALL - + col0 + col1 AS col2 FROM tab1 WHERE NOT - ( + 57 ) IS NULL
----
-37
-44
-80

query II rowsort
SELECT col2 * - + col1, + 34 AS col0 FROM tab1
----
-1344
34
-295
34
-3196
34

query I rowsort
SELECT + 96 AS col1 FROM tab1
----
96
96
96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-433
SELECT - + COUNT ( * ) / + 75 col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT DISTINCT - SUM( + - col2 ) AS col1 FROM tab2 cor0 WHERE col2 * + col1 * - - 30 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT - SUM ( + - col2 ) AS col1 FROM tab2 cor0 WHERE col2 * + col1 * - - 30 > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-435
SELECT ALL + col2 + - - 85 + - col2 - 67 + - - CAST( NULL AS SIGNED ) AS col2, - 59 col0 FROM tab2 cor0
----
NULL
-59
NULL
-59
NULL
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-435
SELECT ALL + col2 + - - 85 + - col2 - 67 + - - CAST ( NULL AS INTEGER ) AS col2, - 59 col0 FROM tab2 cor0
----
NULL
-59
NULL
-59
NULL
-59

query I rowsort
SELECT ALL col0 * - 64 AS col0 FROM tab2
----
-2944
-4096
-4800

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 48 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT + - MIN( DISTINCT - - col0 ) * - 67 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
10251

skipif mysql # not compatible
query I rowsort label-438
SELECT + - MIN ( DISTINCT - - col0 ) * - 67 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
10251

query I rowsort
SELECT 4 * + col2 FROM tab2 AS cor0
----
160
232
92

query II rowsort
SELECT ALL + - 64 AS col0, col2 + col0 AS col2 FROM tab1 AS cor0
----
-64
144
-64
147
-64
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 + - + 92 col1 FROM tab0 cor0
----
-19
-19
-19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 59 <> 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 18 = NULL
----

query II rowsort
SELECT DISTINCT 20 * - col0 - - ( - 69 ), 27 AS col2 FROM tab0
----
-1809
27
-2009
27
-369
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + col1 col0, 88 + col0 AS col1 FROM tab2
----
-8
163
13
152
5
134

query I rowsort
SELECT + col2 + - - 1 AS col0 FROM tab2
----
24
41
59

query II rowsort
SELECT DISTINCT - 33 + 15 AS col1, col1 FROM tab0
----
-18
1
-18
21
-18
81

onlyif mysql # DIV for integer division: 
query I rowsort label-448
SELECT + + 32 DIV + col1 col2 FROM tab1 WHERE NULL IS NULL
----
0
2
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-448
SELECT + + 32 / + col1 col2 FROM tab1 WHERE NULL IS NULL
----
0
2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT DISTINCT + MIN( ALL + - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT + MIN ( ALL + - col0 ) AS col2 FROM tab1
----
-91

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-451
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT ALL 8 * + + 2 * + - 1 AS col2 FROM tab2 AS cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query II rowsort
SELECT DISTINCT ( + 12 ) - - 60 * 47 * ( 6 ) AS col1, col2 AS col1 FROM tab2 WHERE NOT + col2 * 50 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT + COUNT( * ) * 25 AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-456
SELECT + COUNT ( * ) * 25 AS col0 FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT DISTINCT + MIN( - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT + MIN ( - col2 ) AS col2 FROM tab1
----
-96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 98 AS col1, - col0 col1 FROM tab1 AS cor0 WHERE 60 IS NOT NULL
----
98
-51
98
-85
98
-91

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

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

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

query I rowsort
SELECT DISTINCT 24 + + + col2 AS col1 FROM tab1 cor0
----
120
83
92

onlyif mysql # DIV for integer division: 
query I rowsort label-463
SELECT ALL col0 + + 9 DIV + col2 + + col0 * col2 + + 52 AS col2 FROM tab1
----
4999
5152
6331

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL col0 + + 9 / + col2 + + col0 * col2 + + 52 AS col2 FROM tab1
----
4999
5152
6331

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

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

query I rowsort
SELECT 23 + 5 FROM tab1
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT DISTINCT MIN( ALL + 73 ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT MIN ( ALL + 73 ) FROM tab1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-467
SELECT ALL - 0 DIV COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL - 0 / COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT - 47 + + COUNT( * ) * COUNT( * ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-468
SELECT - 47 + + COUNT ( * ) * COUNT ( * ) FROM tab0
----
-38

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + ( + - 76 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - col0 - + col0 col1 FROM tab0 AS cor0
----
-164
-95
17

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

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

query I rowsort
SELECT DISTINCT 4 + - 65 AS col0 FROM tab0 AS cor0
----
-61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-475
SELECT ALL - col0 DIV - ( - - col1 ) + - col2 - col2 - - col0 * col1 * + col2 AS col2 FROM tab2 AS cor0
----
197040
291335
53912

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL - col0 / - ( - - col1 ) + - col2 - col2 - - col0 * col1 * + col2 AS col2 FROM tab2 AS cor0
----
197040
291335
53912

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

onlyif mysql # aggregate syntax: 
query II rowsort label-477
SELECT ( - - COUNT( ALL + + col1 ) ) col2, 59 AS col1 FROM tab0
----
3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-477
SELECT ( - - COUNT ( ALL + + col1 ) ) col2, 59 AS col1 FROM tab0
----
3
59

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

query I rowsort
SELECT DISTINCT + 34 AS col1 FROM tab0 AS cor0 WHERE NOT 24 IS NULL
----
34

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-482
SELECT DISTINCT + MIN ( DISTINCT col0 ) + COUNT ( * ) col1 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT - SUM( ALL + col0 ) col0 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-483
SELECT - SUM ( ALL + col0 ) col0 FROM tab2
----
-185

query I rowsort
SELECT ALL - col0 + + - 22 AS col0 FROM tab2
----
-68
-86
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT - col0 DIV + 69 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-485
SELECT - col0 / + 69 FROM tab0
----
-1
-1
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT - + MAX( - 69 ) * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-487
SELECT - + MAX ( - 69 ) * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-207

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

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT ALL - MAX( ALL - 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL - MAX ( ALL - 0 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT COUNT( - ( col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-490
SELECT COUNT ( - ( col0 ) ) FROM tab2
----
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( col2 ) * col1 ) IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT ALL + 86 * COUNT( * ) + + 63 FROM tab0 WHERE NULL >= + 33
----
63

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL + 86 * COUNT ( * ) + + 63 FROM tab0 WHERE NULL >= + 33
----
63

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN - col2 AND 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-498
SELECT CAST( 94 AS SIGNED ) + - col2 AS col0 FROM tab2
----
36
54
71

skipif mysql # not compatible
query I rowsort label-498
SELECT CAST ( 94 AS INTEGER ) + - col2 AS col0 FROM tab2
----
36
54
71

query I rowsort
SELECT DISTINCT ( + 88 ) FROM tab2 WHERE ( - col1 ) NOT IN ( - ( col1 ) * - col2 )
----
88

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

query I rowsort
SELECT ALL 86 + - 37 FROM tab1
----
49
49
49

query III rowsort
SELECT * FROM tab1 WHERE NOT + 68 * 68 BETWEEN ( 8 ) AND NULL
----

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

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

query I rowsort
SELECT ( - 72 ) - + col1 AS col0 FROM tab1
----
-119
-77
-86

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

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( NULL ) <= + col0 * col1
----

query I rowsort
SELECT ALL col0 * 10 AS col0 FROM tab1 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT DISTINCT + MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT + MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT col2 + col1 DIV + 58 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-509
SELECT col2 + col1 / + 58 AS col2 FROM tab1 AS cor0
----
59
68
96

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

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

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

query I rowsort
SELECT - col0 + ( col2 + col1 ) FROM tab0 AS cor0
----
-56
113
3

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-516
SELECT DISTINCT + col0 DIV - col1 - col2 FROM tab2 AS cor0
----
-23
-40
-59

skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT + col0 / - col1 - col2 FROM tab2 AS cor0
----
-23
-40
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT - ( - COUNT( * ) ) * + ( + 15 * + 62 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 75 * col2
----
0

skipif mysql # not compatible
query I rowsort label-517
SELECT - ( - COUNT ( * ) ) * + ( + 15 * + 62 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 75 * col2
----
0

query I rowsort
SELECT - 28 - 65 * 12 FROM tab1 AS cor0
----
-808
-808
-808

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-519
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST( 89 AS SIGNED ) * col1 ) NOT IN ( - 6 )
----

skipif mysql # not compatible
query III rowsort label-519
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( CAST ( 89 AS INTEGER ) * col1 ) NOT IN ( - 6 )
----

query I rowsort
SELECT + + ( + 57 ) - 94 FROM tab2 AS cor0
----
-37
-37
-37

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

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

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT - 77 * + COUNT ( * ) AS col0 FROM tab0 cor0
----
-231

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

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT - 84 DIV + col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-524
SELECT - 84 / + col2 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-525
SELECT + 50 DIV + - ( - ( col0 ) ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-525
SELECT + 50 / + - ( - ( col0 ) ) AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 87 <= ( + 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 71 ) col0 FROM tab2
----
71
71
71

query I rowsort
SELECT DISTINCT + 39 AS col2 FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT ALL COUNT( + - ( - col0 ) ) * + MAX( DISTINCT 62 + - col0 ) FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL COUNT ( + - ( - col0 ) ) * + MAX ( DISTINCT 62 + - col0 ) FROM tab0 AS cor0
----
141

query I rowsort
SELECT ALL 25 AS col1 FROM tab2 AS cor0 WHERE ( + col1 ) < col1 * - 26
----

query I rowsort
SELECT DISTINCT + - col0 * + col0 * - col2 FROM tab0 AS cor0
----
10575
75690
931491

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

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

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

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

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

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

query I rowsort
SELECT ALL - + 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT DISTINCT + 3 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3

query I rowsort
SELECT ALL - col0 - - 67 FROM tab1 WHERE NULL <> - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR ( + col0 / 97 ) IN ( col1 * + col0 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-539
SELECT DISTINCT + col0 DIV - 14 + + 2 AS col1 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT + col0 / - 14 + + 2 AS col1 FROM tab2 AS cor0
----
-1
-2
-3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-541
SELECT ALL 5 DIV - - COUNT( DISTINCT col0 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL 5 / - - COUNT ( DISTINCT col0 ) FROM tab2 cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1 OR - 28 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE col0 + + + col2 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT DISTINCT - col0 DIV 99 * + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT - col0 / 99 * + col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 * + ( + col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
1293
210
3105

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT DISTINCT - col2 + + 3 DIV 20 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT - col2 + + 3 / 20 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-549
SELECT + + 9 + CAST( NULL AS SIGNED ) + - ( - 97 ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT + + 9 + CAST ( NULL AS INTEGER ) + - ( - 97 ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT DISTINCT COUNT( DISTINCT + - 88 ) * - 73 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT COUNT ( DISTINCT + - 88 ) * - 73 FROM tab2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-552
SELECT MIN( - + col0 ) DIV - COUNT( * ) + - ( 51 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-552
SELECT MIN ( - + col0 ) / - COUNT ( * ) + - ( 51 ) FROM tab2
----
-26

query I rowsort
SELECT ALL - col1 * + 37 FROM tab1
----
-1739
-185
-518

query I rowsort
SELECT - col2 + + 51 AS col1 FROM tab2
----
-7
11
28

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) + + 89 * + 78 AS col1 FROM tab1
----
6948

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + + 89 * + 78 AS col1 FROM tab1
----
6948

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM tab1 WHERE ( + + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE ( + + col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-557
SELECT DISTINCT 94 DIV + - COUNT( * ) AS col0 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT 94 / + - COUNT ( * ) AS col0 FROM tab0
----
-31

query I rowsort
SELECT 94 * + 1 FROM tab0
----
94
94
94

query I rowsort
SELECT col2 FROM tab1 WHERE ( + col2 ) BETWEEN col0 AND + 37 * 75
----
96

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-561
SELECT ALL + 27 * - col2 AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-1080
NULL
-1566
NULL
-621
NULL

skipif mysql # not compatible
query II rowsort label-561
SELECT ALL + 27 * - col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-1080
NULL
-1566
NULL
-621
NULL

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

skipif mysql # not compatible
query I rowsort label-562
SELECT + - ( + MIN ( DISTINCT - - 56 ) ) FROM tab2 AS cor0
----
-56

query I rowsort
SELECT - 66 - 14 AS col1 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT - 37 - + col1 AS col2 FROM tab0 AS cor0
----
-118
-38
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) * col0 - col2 + 89 col1 FROM tab1 AS cor0
----
-2608
-7195
-8260

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

query I rowsort
SELECT ALL 76 AS col2 FROM tab0 cor0
----
76
76
76

query I rowsort
SELECT + - col2 * 83 AS col1 FROM tab2 AS cor0
----
-1909
-3320
-4814

onlyif mysql # DIV for integer division: 
query I rowsort label-569
SELECT 20 DIV 34 * 45 * - 18 * + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-569
SELECT 20 / 34 * 45 * - 18 * + col1 FROM tab1 AS cor0
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-571
SELECT - CAST ( NULL AS INTEGER ) / - - col0 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col2, + 93 AS col0 FROM tab1 AS cor0
----
59
93
68
93
96
93

query II rowsort
SELECT ALL col2 AS col0, - col0 + - col1 + - col1 + - col0 AS col0 FROM tab1
----
59
-180
68
-276
96
-130

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NOT NULL NOT BETWEEN + + col2 * + 68 + col0 AND col1 * - col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, col0 col2 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-576
SELECT + col0 AS col2, + CAST( NULL AS SIGNED ) + 99 * 35 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-576
SELECT + col0 AS col2, + CAST ( NULL AS INTEGER ) + 99 * 35 FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT - 84 - + col0 FROM tab2 WHERE NOT ( NOT NULL BETWEEN + col0 - ( 98 ) * 7 AND ( - col1 + ( - col1 ) / 69 ) )
----

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

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

query I rowsort
SELECT - + col1 * + - col2 * col1 AS col1 FROM tab0 AS cor0
----
308367
4410
99

query II rowsort
SELECT DISTINCT - col0, + 4 * col2 AS col0 FROM tab1 AS cor0
----
-51
384
-85
236
-91
272

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

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

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

query I rowsort
SELECT 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query II rowsort
SELECT + 19 + - col0 AS col2, 44 FROM tab1
----
-32
44
-66
44
-72
44

query I rowsort
SELECT 96 * + + col0 * - col2 * - 36 AS col1 FROM tab1 AS cor0
----
16920576
17331840
21385728

query I rowsort
SELECT + col2 * + 48 * - col1 FROM tab1 AS cor0
----
-14160
-153408
-64512

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 + - col0 col2 FROM tab1 cor0
----
1
41
7

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT DISTINCT + 29 + + - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) = - - col1
----
29

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT + 29 + + - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) = - - col1
----
29

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

query III rowsort
SELECT * FROM tab0 WHERE + 86 < 26
----

query I rowsort
SELECT ALL 71 + - 67 AS col2 FROM tab1
----
4
4
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT MIN( DISTINCT col2 ) - 78 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-597
SELECT MIN ( DISTINCT col2 ) - 78 FROM tab2
----
-55

query I rowsort
SELECT col0 FROM tab2 WHERE col1 + 7 * + 84 + - 15 IS NULL
----

query I rowsort
SELECT ALL ( - col2 ) + - col0 AS col0 FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT ALL MAX( DISTINCT - + col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL MAX ( DISTINCT - + col0 ) AS col1 FROM tab1
----
-51

query I rowsort
SELECT + 29 AS col1 FROM tab0 WHERE - + col2 IN ( - col0 )
----

query I rowsort
SELECT col0 + + + 30 AS col2 FROM tab1
----
115
121
81

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

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL + col2 / - 26 AS col0 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT + ( - 64 ) FROM tab0 AS cor0 WHERE - col0 >= ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL + SUM( DISTINCT - col0 ) + - 21 FROM tab2 AS cor0
----
-206

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + SUM ( DISTINCT - col0 ) + - 21 FROM tab2 AS cor0
----
-206

query III rowsort
SELECT * FROM tab0 WHERE col0 - col1 * + col2 * 2 > ( ( + - 64 ) + - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT 8 * - COUNT( * ) AS col2 FROM tab2 WHERE ( NULL ) <> - col0 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-607
SELECT 8 * - COUNT ( * ) AS col2 FROM tab2 WHERE ( NULL ) <> - col0 + + col2
----
0

query I rowsort
SELECT DISTINCT ( - ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 49 + + 92 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - - 82 ) AS col2 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT 10 * 19 FROM tab1 cor0
----
190
190
190

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT NULL = + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> col1
----
0

skipif mysql # not compatible
query I rowsort label-613
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> col1
----
0

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col2 * + col0 * + 90 + + - col0 - - col2 * ( + - col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL - 61 * - - COUNT( * ) col0 FROM tab1
----
-183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-617
SELECT ALL - 61 * - - COUNT ( * ) col0 FROM tab1
----
-183

onlyif mysql # DIV for integer division: 
query II rowsort label-618
SELECT 54 DIV ( + ( - 79 ) ) * + + col2, col2 col0 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-618
SELECT 54 / ( + ( - 79 ) ) * + + col2, col2 col0 FROM tab1
----
0
59
0
68
0
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-619
SELECT DISTINCT CAST( - 28 AS SIGNED ) DIV + 13 AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT CAST ( - 28 AS INTEGER ) / + 13 AS col0 FROM tab1
----
-2

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 16 / 44 * 89 + - - col2 - - col1 + + 85 / col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 + ( - col0 ) * + + 2 col1 FROM tab0 AS cor0
----
-107
-251
-271

query III rowsort
SELECT ALL col1 AS col0, col0 + + col0 AS col2, - col2 + + 97 * - col1 AS col1 FROM tab2 AS cor0
----
9 values hashing to 8ef6b002d791790ca40b0273223384f0

query I rowsort
SELECT DISTINCT - 4 + col0 AS col0 FROM tab2 cor0
----
42
60
71

onlyif mysql # DIV for integer division: 
query II rowsort label-625
SELECT DISTINCT + col1 AS col0, + col0 + + 72 DIV - + ( + 93 ) * - col1 AS col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

skipif mysql # not compatible
query II rowsort label-625
SELECT DISTINCT + col1 AS col0, + col0 + + 72 / - + ( + 93 ) * - col1 AS col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT DISTINCT col1, 34 FROM tab2 cor0
----
51
34
67
34
77
34

onlyif mysql # DIV for integer division: 
query II rowsort label-627
SELECT ALL - ( + 19 ) AS col0, + col1 DIV col0 AS col0 FROM tab0 cor0
----
-19
0
-19
0
-19
5

skipif mysql # not compatible
query II rowsort label-627
SELECT ALL - ( + 19 ) AS col0, + col1 / col0 AS col0 FROM tab0 cor0
----
-19
0
-19
0
-19
5

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL SUM( 47 ) AS col2 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL SUM ( 47 ) AS col2 FROM tab1 AS cor0
----
141

query I rowsort
SELECT + 75 + + col2 FROM tab1 AS cor0
----
134
143
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-630
SELECT + CAST( + + col0 AS SIGNED ) + + - 95 FROM tab1 AS cor0
----
-10
-4
-44

skipif mysql # not compatible
query I rowsort label-630
SELECT + CAST ( + + col0 AS INTEGER ) + + - 95 FROM tab1 AS cor0
----
-10
-4
-44

query II rowsort
SELECT - ( - col0 ) + + + col0 * + 64 AS col2, - 75 FROM tab0 AS cor0
----
5655
-75
6305
-75
975
-75

query I rowsort
SELECT DISTINCT + 83 * + ( 33 ) + + + col2 + - col1 AS col2 FROM tab2 AS cor0
----
2702
2711
2730

query I rowsort
SELECT 71 + col2 AS col1 FROM tab0 AS cor0
----
118
170
81

query II rowsort
SELECT - col2 + + - 13, col1 FROM tab1
----
-109
14
-72
5
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT - MAX( DISTINCT col2 ) col0 FROM tab1 WHERE NULL = col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-635
SELECT - MAX ( DISTINCT col2 ) col0 FROM tab1 WHERE NULL = col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT - 27 + COUNT( ALL - 72 ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-636
SELECT - 27 + COUNT ( ALL - 72 ) FROM tab2
----
-24

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-638
SELECT DISTINCT - col2 - + + 94 col1, CAST( col0 AS SIGNED ) FROM tab1
----
-153
85
-162
91
-190
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-638
SELECT DISTINCT - col2 - + + 94 col1, CAST ( col0 AS INTEGER ) FROM tab1
----
-153
85
-162
91
-190
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-639
SELECT DISTINCT * FROM tab0 WHERE ( CAST( + ( + + 11 ) AS SIGNED ) + + ( - col2 ) NOT IN ( - - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-639
SELECT DISTINCT * FROM tab0 WHERE ( CAST ( + ( + + 11 ) AS INTEGER ) + + ( - col2 ) NOT IN ( - - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * + - col0 * - col2 col0 FROM tab2
----
135680
230550
56074

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 25 - 21 NOT IN ( - - 34, col1 + + + 44, - col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT - ( - MIN( ALL col1 ) ) - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-644
SELECT - ( - MIN ( ALL col1 ) ) - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-645
SELECT + MAX( DISTINCT - col2 ) * + 95, ( - + COUNT( * ) ) AS col0 FROM tab0 cor0
----
-950
-3

skipif mysql # not compatible
query II rowsort label-645
SELECT + MAX ( DISTINCT - col2 ) * + 95, ( - + COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-950
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL 69 * ( - + ( + + MIN( + col1 ) ) ) AS col2 FROM tab2
----
-3519

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL 69 * ( - + ( + + MIN ( + col1 ) ) ) AS col2 FROM tab2
----
-3519

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - ( + + col2 ) < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-648
SELECT + ( SUM( ALL - col2 ) ) AS col2, 70 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-223
NULL

skipif mysql # not compatible
query II rowsort label-648
SELECT + ( SUM ( ALL - col2 ) ) AS col2, 70 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-223
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT - SUM( DISTINCT - - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-227

skipif mysql # not compatible
query I rowsort label-649
SELECT - SUM ( DISTINCT - - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-650
SELECT - col2 * - 50 + 98 + + + col1 * CAST( - - 32 AS SIGNED ) FROM tab2 AS cor0
----
2880
4562
5142

skipif mysql # not compatible
query I rowsort label-650
SELECT - col2 * - 50 + 98 + + + col1 * CAST ( - - 32 AS INTEGER ) FROM tab2 AS cor0
----
2880
4562
5142

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

query II rowsort
SELECT - - col0, 67 AS col0 FROM tab0 AS cor0
----
15
67
87
67
97
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-653
SELECT ALL - + 80 DIV 98 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - + 80 / 98 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 42 * + col2 * - 79 * - col0 * + + col1 FROM tab2 AS cor0
----
-179032644
-654044160
-967031100

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

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

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

query II rowsort
SELECT DISTINCT - col0 * - + col0, col0 AS col0 FROM tab0
----
225
15
7569
87
9409
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-658
SELECT ALL 33 DIV COUNT( DISTINCT + col2 ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL 33 / COUNT ( DISTINCT + col2 ) FROM tab0
----
11

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-660
SELECT - SUM( DISTINCT - - ( col2 ) ) DIV - COUNT( * ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-660
SELECT - SUM ( DISTINCT - - ( col2 ) ) / - COUNT ( * ) AS col2 FROM tab1
----
74

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

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

query I rowsort
SELECT + + col2 * ( - 24 ) FROM tab1 cor0
----
-1416
-1632
-2304

query II rowsort
SELECT DISTINCT - 5 + 2 AS col2, col2 * - col2 AS col1 FROM tab1 AS cor0
----
-3
-3481
-3
-4624
-3
-9216

query I rowsort
SELECT + + 86 + - col0 FROM tab2 AS cor0
----
11
22
40

query II rowsort
SELECT ALL + col0 + - col1 AS col2, col2 FROM tab0 AS cor0
----
-66
47
66
10
96
99

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE - col1 - - - col1 + + + col0 * 23 <= - - col0 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-668
SELECT DISTINCT CAST( - 70 AS SIGNED ) FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT CAST ( - 70 AS INTEGER ) FROM tab1
----
-70

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

query I rowsort
SELECT + col0 * 52 + - - col1 FROM tab2
----
2443
3405
3967

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL + - MIN( - 12 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
12

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL + - MIN ( - 12 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
12

query I rowsort
SELECT DISTINCT + ( - ( - 50 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
50

query I rowsort
SELECT 15 * - + col1 FROM tab0 WHERE NULL IS NULL
----
-1215
-15
-315

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-675
SELECT ALL COUNT( * ), + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-675
SELECT ALL COUNT ( * ), + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
3
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT ALL SUM( ALL - 51 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-153

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL SUM ( ALL - 51 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-153

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

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT DISTINCT + - ( - col1 ) + + col0 DIV - 57 FROM tab0 AS cor0
----
0
20
81

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT + - ( - col1 ) + + col0 / - 57 FROM tab0 AS cor0
----
0
20
81

onlyif mysql # DIV for integer division: 
query I rowsort label-680
SELECT ALL 98 DIV ( + col1 ) - - + col1 AS col0 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL 98 / ( + col1 ) - - + col1 AS col0 FROM tab2
----
52
68
78

query III rowsort
SELECT * FROM tab0 WHERE - 55 * - + col2 / + - col1 IS NULL
----

query I rowsort
SELECT ALL + 18 + + col2 AS col0 FROM tab2
----
41
58
76

query I rowsort
SELECT col0 + 21 FROM tab1
----
106
112
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + 43 col1, col2 FROM tab1
----
-16
59
-25
68
-53
96

query I rowsort
SELECT - col2 + 3 * + 39 FROM tab1
----
21
49
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-686
SELECT ALL - + AVG ( ALL - + col2 ) + - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL >= 80 * - CAST( - col2 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL - + AVG ( ALL - + col2 ) + - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL >= 80 * - CAST ( - col2 AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - + 55, 12 AS col1 FROM tab0 AS cor0
----
-55
12

query I rowsort
SELECT ALL 60 * + - ( col1 ) AS col2 FROM tab0 cor0
----
-1260
-4860
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-689
SELECT ALL + col1 / - + col2 + - col1, + col1 FROM tab0 AS cor0 WHERE ( NULL NOT IN ( - col0 * CAST( NULL AS SIGNED ), 50 ) )
----

skipif mysql # not compatible
query II rowsort label-689
SELECT ALL + col1 / - + col2 + - col1, + col1 FROM tab0 AS cor0 WHERE ( NULL NOT IN ( - col0 * CAST ( NULL AS INTEGER ), 50 ) )
----

query II rowsort
SELECT DISTINCT 98 AS col0, - col1 FROM tab0 cor0
----
98
-1
98
-21
98
-81

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

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

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

query II rowsort
SELECT DISTINCT col2 * 44 AS col1, col1 AS col2 FROM tab1 AS cor0
----
2596
5
2992
47
4224
14

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT DISTINCT - MIN( ALL + col2 ) AS col1 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT - MIN ( ALL + col2 ) AS col1 FROM tab0 cor0
----
-10

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 2 IS NULL
----

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

query I rowsort
SELECT 49 * - col1 FROM tab1 AS cor0
----
-2303
-245
-686

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-699
SELECT col1, 42 FROM tab0 WHERE NOT - col1 * 0 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
1
42
21
42
81
42

skipif mysql # not compatible
query II rowsort label-699
SELECT col1, 42 FROM tab0 WHERE NOT - col1 * 0 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
1
42
21
42
81
42

query I rowsort
SELECT 6 * - + col0 FROM tab1
----
-306
-510
-546

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-701
SELECT col0 / + CAST( NULL AS DECIMAL ) * - col1 + - 38 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-701
SELECT col0 / + CAST ( NULL AS REAL ) * - col1 + - 38 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - 51 AS col0 FROM tab1
----
-37
-4
-46

query I rowsort
SELECT DISTINCT + col1 * - + col1 AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

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

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

query I rowsort
SELECT DISTINCT 88 + 68 AS col1 FROM tab2
----
156

query I rowsort
SELECT 42 + - + ( col1 ) + + col0 FROM tab2 AS cor0
----
29
37
50

query I rowsort
SELECT DISTINCT - - 31 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 + + - ( col1 ) / - col1, + 38, + - col0, 44, - - 21 )
----

query I rowsort
SELECT DISTINCT - + 29 FROM tab2 cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT DISTINCT + - MIN( ALL - ( + 87 ) ) col0 FROM tab1 cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-710
SELECT DISTINCT + - MIN ( ALL - ( + 87 ) ) col0 FROM tab1 cor0
----
87

query I rowsort
SELECT + col2 + + 87 AS col1 FROM tab2 AS cor0
----
110
127
145

query I rowsort
SELECT ALL - 69 * + 23 FROM tab0 AS cor0
----
-1587
-1587
-1587

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

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

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

query II rowsort
SELECT + + 50 * - col0 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
-4350
-21
-4850
-1
-750
-81

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

query I rowsort
SELECT + ( + + col2 ) * col1 * - col2 AS col2 FROM tab0
----
-178929
-2100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT DISTINCT + COUNT( * ) + 6 col2 FROM tab2 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-718
SELECT DISTINCT + COUNT ( * ) + 6 col2 FROM tab2 WHERE NULL IS NULL
----
9

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-721
SELECT ALL - COUNT( * ) AS col0, MIN( DISTINCT + + col0 ) DIV - + 94 + - + COUNT( * ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-721
SELECT ALL - COUNT ( * ) AS col0, MIN ( DISTINCT + + col0 ) / - + 94 + - + COUNT ( * ) FROM tab0 AS cor0
----
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-722
SELECT col2 DIV + col1 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-722
SELECT col2 / + col1 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-723
SELECT ALL + col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL + col1 / - col0 AS col2 FROM tab0 AS cor0
----
-5
0
0

query II rowsort
SELECT DISTINCT + 74, col1 FROM tab0 AS cor0
----
74
1
74
21
74
81

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE NULL NOT IN ( + col2 * col2 / - 9, col2, - - 62, col1 * - col2 )
----

query I rowsort
SELECT ALL - col1 * - + col1 AS col0 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-727
SELECT * FROM tab2 WHERE + - col2 + col1 * - CAST( + - col2 AS SIGNED ) <> - + ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-727
SELECT * FROM tab2 WHERE + - col2 + col1 * - CAST ( + - col2 AS INTEGER ) <> - + ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-728
SELECT - col2 DIV + 85 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-728
SELECT - col2 / + 85 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 + + col2 * - col0 col2 FROM tab2 AS cor0
----
-2443
-4225
-984

query III rowsort
SELECT * FROM tab2 WHERE - 36 + + col0 <= - + col0 * + col2 + - + 58
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-733
SELECT ALL col0 DIV + + col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL col0 / + + col2 FROM tab0
----
0
0
8

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 50 <= - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

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

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

query I rowsort
SELECT + 9 + + - ( - col2 ) FROM tab2 WHERE NOT - col0 IN ( + 56, + col1 )
----
32
49
67

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL MIN( col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL MIN ( col2 ) FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-741
SELECT ALL 71 DIV - col2, + CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
-1
-67
-1
-77
-3
-51

skipif mysql # not compatible
query II rowsort label-741
SELECT ALL 71 / - col2, + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
-1
-67
-1
-77
-3
-51

query I rowsort
SELECT DISTINCT 19 * + 77 AS col0 FROM tab0
----
1463

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT ALL + col0 DIV 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL + col0 / 86 FROM tab2
----
0
0
0

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

query I rowsort
SELECT - ( - + col0 ) * - 98 * + col2 AS col0 FROM tab1 AS cor0
----
-479808
-491470
-606424

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 23 * + + col2 < NULL
----

query I rowsort
SELECT DISTINCT - ( - + col0 ) FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 >= ( + - 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 14, col1 )
----

query I rowsort
SELECT - col1 + col2 + col1 + 24 FROM tab2 AS cor0
----
47
64
82

query I rowsort
SELECT + col0 + - 88 AS col2 FROM tab1
----
-3
-37
3

query I rowsort
SELECT ALL 3 + col1 FROM tab1
----
17
50
8

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 ) >= col2
----

query I rowsort
SELECT col1 + 96 + - 41 AS col2 FROM tab1
----
102
60
69

query I rowsort
SELECT 80 + - 81 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT ALL + 48 + + COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL + 48 + + COUNT ( * ) FROM tab0
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + col1 + col2 + - - col0 * + 7 ) <= NULL
----

query II rowsort
SELECT ALL 3 AS col2, col2 AS col2 FROM tab1
----
3
59
3
68
3
96

onlyif mysql # DIV for integer division: 
query II rowsort label-760
SELECT ALL col1, - 9 + + 54 DIV - col0 AS col0 FROM tab2 cor0
----
51
-10
67
-9
77
-9

skipif mysql # not compatible
query II rowsort label-760
SELECT ALL col1, - 9 + + 54 / - col0 AS col0 FROM tab2 cor0
----
51
-10
67
-9
77
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / + + ( - - 35 ) * + col0 IS NULL
----

query II rowsort
SELECT - + col0 AS col2, - 26 + - col1 + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-46
-2678
-64
-6032
-75
-4582

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL COUNT( ALL - 98 ) + COUNT( * ) * - 35 * - + 32 FROM tab2 AS cor0
----
3363

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL COUNT ( ALL - 98 ) + COUNT ( * ) * - 35 * - + 32 FROM tab2 AS cor0
----
3363

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

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT - SUM( - col0 ) - + 66 AS col0 FROM tab2 cor0
----
119

skipif mysql # not compatible
query I rowsort label-765
SELECT - SUM ( - col0 ) - + 66 AS col0 FROM tab2 cor0
----
119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + - 72 + - 0 col0 FROM tab2
----
-3
26
8

query I rowsort
SELECT + 75 - - + 12 FROM tab1
----
87
87
87

onlyif mysql # DIV for integer division: 
query II rowsort label-768
SELECT - 71 DIV col1, col0 FROM tab1 AS cor0
----
-1
91
-14
85
-5
51

skipif mysql # not compatible
query II rowsort label-768
SELECT - 71 / col1, col0 FROM tab1 AS cor0
----
-1
91
-14
85
-5
51

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

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

query II rowsort
SELECT + col0 * col0 * + 5 + - + ( - - col2 ) AS col0, + col0 AS col2 FROM tab2 AS cor0
----
10557
46
20440
64
28067
75

onlyif mysql # DIV for integer division: 
query I rowsort label-771
SELECT - + 11 DIV + ( + 48 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-771
SELECT - + 11 / + ( + 48 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT + COUNT( * ) * - - 61 AS col0 FROM tab0 cor0
----
183

skipif mysql # not compatible
query I rowsort label-772
SELECT + COUNT ( * ) * - - 61 AS col0 FROM tab0 cor0
----
183

query I rowsort
SELECT - 60 * + col0 FROM tab1 AS cor0
----
-3060
-5100
-5460

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

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

query I rowsort
SELECT col1 * + + col0 * - col1 AS col1 FROM tab0
----
-38367
-97
-98415

query II rowsort
SELECT ALL col1 AS col2, 42 AS col1 FROM tab2
----
51
42
67
42
77
42

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

query I rowsort
SELECT ( + + ( - col0 ) ) FROM tab1 WHERE NOT NULL IN ( - 33 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE + ( + col2 ) - - col0 * + 7 NOT BETWEEN - col0 AND - CAST( 95 AS SIGNED ) + - col2 + 36 * - ( - 65 ) / - col2 - + - col0 - - - ( 92 )
----
3

skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE + ( + col2 ) - - col0 * + 7 NOT BETWEEN - col0 AND - CAST ( 95 AS INTEGER ) + - col2 + 36 * - ( - 65 ) / - col2 - + - col0 - - - ( 92 )
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * - 76 * + col0 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-784
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 - - + 7 * - col0 / - col2 * - col1 + - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-784
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 - - + 7 * - col0 / - col2 * - col1 + - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT DISTINCT + MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / - + col1 + + + 33 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / - + col1 + + + 33 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-788
SELECT DISTINCT COUNT( * ) + - 24 AS col2, COUNT( * ) AS col1 FROM tab2
----
-21
3

skipif mysql # not compatible
query II rowsort label-788
SELECT DISTINCT COUNT ( * ) + - 24 AS col2, COUNT ( * ) AS col1 FROM tab2
----
-21
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 * + col2 NOT BETWEEN - 13 AND NULL
----

query I rowsort
SELECT + 53 + + col2 FROM tab2
----
111
76
93

query I rowsort
SELECT + 53 * + - col1 FROM tab1 AS cor0
----
-2491
-265
-742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-792
SELECT - + SUM( - + col2 ) * + CAST( NULL AS SIGNED ) + COUNT( * ) * MIN( ALL + - col2 ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-792
SELECT - + SUM ( - + col2 ) * + CAST ( NULL AS INTEGER ) + COUNT ( * ) * MIN ( ALL + - col2 ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT + + SUM( col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-793
SELECT + + SUM ( col2 ) FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-794
SELECT - CAST( 17 AS SIGNED ) FROM tab1 AS cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-794
SELECT - CAST ( 17 AS INTEGER ) FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT - 95 AS col1 FROM tab2 AS cor0 WHERE + col0 <> - 89 * + col2
----
-95
-95
-95

query I rowsort
SELECT ALL + col1 - + - 4 AS col0 FROM tab1 AS cor0 WHERE col1 = NULL
----

query I rowsort
SELECT ALL + col0 + + 36 AS col0 FROM tab1 AS cor0
----
121
127
87

query I rowsort
SELECT DISTINCT - 18 + - + col2 AS col0 FROM tab0 AS cor0
----
-117
-28
-65

query I rowsort
SELECT ALL - col2 * + ( - - col0 ) + - - col2 + col0 FROM tab2
----
-2456
-4217
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT MIN( col1 ) AS col0 FROM tab1 WHERE 15 * - + 8 IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-800
SELECT MIN ( col1 ) AS col0 FROM tab1 WHERE 15 * - + 8 IS NOT NULL
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( - col1 ) IN ( col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( - col1 ) IN ( col2 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-802
SELECT col2 DIV + - 71 + - col2 AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-802
SELECT col2 / + - 71 + - col2 AS col1 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 - - 21 * + - col1 col1 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
-15
-229
-849

query I rowsort
SELECT col1 + - col2 * + 68 AS col2 FROM tab0 AS cor0
----
-3115
-659
-6731

query I rowsort
SELECT - 93 + 44 FROM tab1 AS cor0
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-806
SELECT DISTINCT - ( - + CAST( + + 77 AS SIGNED ) ) + col1 + - col1, col1 AS col2 FROM tab1 AS cor0
----
77
14
77
47
77
5

skipif mysql # not compatible
query II rowsort label-806
SELECT DISTINCT - ( - + CAST ( + + 77 AS INTEGER ) ) + col1 + - col1, col1 AS col2 FROM tab1 AS cor0
----
77
14
77
47
77
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT DISTINCT COUNT( - 64 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-81

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT COUNT ( - 64 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 31 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 82 <> - 30
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT DISTINCT + 24 DIV - + 62 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT + 24 / - + 62 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 41 FROM tab2 cor0 WHERE NOT + 61 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT 58 * COUNT( * ) FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-817
SELECT 58 * COUNT ( * ) FROM tab1
----
174

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

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT + SUM( DISTINCT + ( + col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-819
SELECT + SUM ( DISTINCT + ( + col2 ) ) FROM tab0
----
156

query II rowsort
SELECT 7 * - 47, col0 AS col1 FROM tab2
----
-329
46
-329
64
-329
75

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

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

query I rowsort
SELECT + 80 * + - 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-824
SELECT - CAST( NULL AS SIGNED ) + col2 + - - col2 * + - col2 FROM tab1 WHERE NOT 56 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-824
SELECT - CAST ( NULL AS INTEGER ) + col2 + - - col2 * + - col2 FROM tab1 WHERE NOT 56 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-826
SELECT CAST( NULL AS SIGNED ) + 92 + + 82 * COUNT( * ) col0 FROM tab2 cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-827
SELECT ALL - COUNT( * ), 85 AS col0 FROM tab0 AS cor0 WHERE - 62 IS NULL
----
0
85

skipif mysql # not compatible
query II rowsort label-827
SELECT ALL - COUNT ( * ), 85 AS col0 FROM tab0 AS cor0 WHERE - 62 IS NULL
----
0
85

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-829
SELECT ALL - 86, + 56 DIV - - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-86
21

skipif mysql # not compatible
query II rowsort label-829
SELECT ALL - 86, + 56 / - - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-86
21

query II rowsort
SELECT ALL - + col1 + + 46 + col0 AS col2, - col0 + 13 FROM tab1 AS cor0
----
126
-72
83
-38
90
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-831
SELECT col0 + - + col1 + + + 52 / - col0 / col2 * + col0 + + col1 / CAST( NULL AS SIGNED ), + ( - 89 ) * + col1 + - 75 AS col0 FROM tab2 AS cor0
----
NULL
-4614
NULL
-6038
NULL
-6928

skipif mysql # not compatible
query II rowsort label-831
SELECT col0 + - + col1 + + + 52 / - col0 / col2 * + col0 + + col1 / CAST ( NULL AS INTEGER ), + ( - 89 ) * + col1 + - 75 AS col0 FROM tab2 AS cor0
----
NULL
-4614
NULL
-6038
NULL
-6928

query I rowsort
SELECT DISTINCT col0 * - col1 + + - 96 * - + 9 AS col0 FROM tab1 AS cor0
----
-3413
150
439

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 / + + 44 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-835
SELECT ALL + + col0 DIV 76 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL + + col0 / 76 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 29 + + ( + - col1 ) AS col2 FROM tab0
----
-52
28
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-837
SELECT - - col1 AS col2 FROM tab0 WHERE + ( CAST( NULL AS SIGNED ) ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-837
SELECT - - col1 AS col2 FROM tab0 WHERE + ( CAST ( NULL AS INTEGER ) ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT MAX( ( col1 ) ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-838
SELECT MAX ( ( col1 ) ) AS col0 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT - MAX( DISTINCT col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-839
SELECT - MAX ( DISTINCT col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT DISTINCT + 47 - 16 - - SUM( ALL - + ( + - col1 ) ) FROM tab2
----
226

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT + 47 - 16 - - SUM ( ALL - + ( + - col1 ) ) FROM tab2
----
226

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-841
SELECT ALL + ( - SUM( 91 ) ) + - MAX( DISTINCT col1 ) + - COUNT( * ) * + CAST( ( + 74 ) AS SIGNED ) * - COUNT( * ) FROM tab2
----
316

skipif mysql # not compatible
query I rowsort label-841
SELECT ALL + ( - SUM ( 91 ) ) + - MAX ( DISTINCT col1 ) + - COUNT ( * ) * + CAST ( ( + 74 ) AS INTEGER ) * - COUNT ( * ) FROM tab2
----
316

query I rowsort
SELECT DISTINCT - ( - col0 ) - col0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-843
SELECT ALL - COUNT( * ) * - 32, + 60 AS col1 FROM tab2 AS cor0
----
96
60

skipif mysql # not compatible
query II rowsort label-843
SELECT ALL - COUNT ( * ) * - 32, + 60 AS col1 FROM tab2 AS cor0
----
96
60

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

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL - COUNT ( * ) FROM tab0 WHERE - + col2 + + col1 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT ALL + - 32 DIV - col1 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 - - col0 IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-845
SELECT ALL + - 32 / - col1 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 - - col0 IS NULL
----
-51
-67
-77

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

query I rowsort
SELECT + 64 FROM tab1 AS cor0 WHERE NOT - col1 * + col1 < - + 22 * col0 + - 91
----
64
64

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

query I rowsort
SELECT 43 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
43
43
43

query II rowsort
SELECT col0 * - + col0 * + + col1, - col0 - - 26 + col2 + col0 * col0 * + 48 AS col2 FROM tab2 AS cor0
----
-107916
101571
-315392
196610
-376875
270009

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - 18 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - col0 col0, - 48 FROM tab2
----
-2116
-48
-4096
-48
-5625
-48

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + 81 * - 60 FROM tab0
----
-4860

query I rowsort
SELECT DISTINCT 8 * - 77 * - - col1 FROM tab0
----
-12936
-49896
-616

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT - COUNT( ALL ( 86 ) ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-858
SELECT - COUNT ( ALL ( 86 ) ) col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL + col2 + + - 35 * + col0 + - col1 FROM tab0 AS cor0
----
-3056
-3297
-559

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 64 * + + col2 col2 FROM tab1 AS cor0
----
-3776
-4352
-6144

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 81 * + ( - 60 ) BETWEEN - col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT ALL - COUNT( * ) * - - 29 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL - COUNT ( * ) * - - 29 FROM tab0 AS cor0
----
-87

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

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

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

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL col0 * col1 * - CAST ( NULL AS INTEGER ) + + - 29 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 28 ) + col2 - + - 28 + - + 35 + - col2 FROM tab1
----
21
21
21

query I rowsort
SELECT ALL 57 * - col0 AS col0 FROM tab1 WHERE NOT + col0 * - col0 IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - col0 - - col0 > - col1 + - + 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL + 47 + - col1 FROM tab0 AS cor0
----
-34
26
46

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
46
64
75

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

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

query III rowsort
SELECT * FROM tab0 WHERE - + 65 / - 42 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - + 57 AS col0 FROM tab2
----
-11
18
7

query III rowsort
SELECT ALL * FROM tab1 WHERE - + ( col0 ) * + 89 IS NULL
----

query I rowsort
SELECT ALL + 86 + - + 29 * ( - 97 ) - - 38 FROM tab1
----
2937
2937
2937

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

query I rowsort
SELECT ALL col2 - + col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 + col1 * col1 AS col2 FROM tab1
----
2277
292
84

onlyif mysql # DIV for integer division: 
query I rowsort label-882
SELECT ALL + 79 DIV + 84 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL + 79 / + 84 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ( + COUNT( * ) ) + 98 AS col1 FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-883
SELECT ( + COUNT ( * ) ) + 98 AS col1 FROM tab1 AS cor0
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-884
SELECT - + CAST( NULL AS SIGNED ) + + ( + 90 ) + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-884
SELECT - + CAST ( NULL AS INTEGER ) + + ( + 90 ) + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT DISTINCT + + col1 AS col2, 78 * - - 38 * col2 FROM tab2 AS cor0
----
51
68172
67
171912
77
118560

query I rowsort
SELECT + col0 * + + col0 * - 12 FROM tab1
----
-31212
-86700
-99372

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT ALL SUM( + 56 ) AS col0 FROM tab1, tab0 AS cor0
----
504

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL SUM ( + 56 ) AS col0 FROM tab1, tab0 AS cor0
----
504

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-889
SELECT col1 * CAST( + + 38 AS SIGNED ) AS col0, 31 * + 97 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-889
SELECT col1 * CAST ( + + 38 AS INTEGER ) AS col0, 31 * + 97 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 76 <> NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT ALL + + COUNT( * ) * + COUNT( + col1 ) * - ( - + 35 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
315

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL + + COUNT ( * ) * + COUNT ( + col1 ) * - ( - + 35 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT + ( + COUNT( * ) ) * - 32 AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-896
SELECT + ( + COUNT ( * ) ) * - 32 AS col1 FROM tab1
----
-96

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

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

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

query I rowsort
SELECT - 84 * - col2 FROM tab0
----
3948
8316
840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-901
SELECT DISTINCT - col1, + CAST( 46 AS SIGNED ) AS col1, - col1 AS col1 FROM tab0
----
9 values hashing to f3c7279959419d7da689d3aa3d10b1ed

skipif mysql # not compatible
query III rowsort label-901
SELECT DISTINCT - col1, + CAST ( 46 AS INTEGER ) AS col1, - col1 AS col1 FROM tab0
----
9 values hashing to f3c7279959419d7da689d3aa3d10b1ed

query I rowsort
SELECT - 30 + - 41 AS col2 FROM tab0
----
-71
-71
-71

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

onlyif mysql # aggregate syntax: 
query II rowsort label-904
SELECT + MIN( + ( col1 ) ) col0, - COUNT( * ) + 17 AS col1 FROM tab2 WHERE NULL > - 8
----
NULL
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-904
SELECT + MIN ( + ( col1 ) ) col0, - COUNT ( * ) + 17 AS col1 FROM tab2 WHERE NULL > - 8
----
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT DISTINCT ( - ( - + 39 ) ) + + + SUM( - col1 ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT ( - ( - + 39 ) ) + + + SUM ( - col1 ) FROM tab1
----
-27

query I rowsort
SELECT col2 FROM tab0 WHERE NULL BETWEEN + 83 * - + 6 + - + col1 * - + ( - 95 ) + - - 58 + + + 13 + - - col2 + + col1 + + + col1 * + 15 / + col1 / + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-907
SELECT COUNT( * ) + - 81 * + MIN( DISTINCT + ( + col0 ) ) + COUNT( * ), 27 AS col1 FROM tab1
----
-4125
27

skipif mysql # not compatible
query II rowsort label-907
SELECT COUNT ( * ) + - 81 * + MIN ( DISTINCT + ( + col0 ) ) + COUNT ( * ), 27 AS col1 FROM tab1
----
-4125
27

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( + col1, col1, + 75, + ( - col0 ) / + + col2 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-909
SELECT DISTINCT + - CAST( col1 AS SIGNED ) DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) / - col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - + col2 ) * - col0 + ( - - 51 ) col0 FROM tab0 AS cor0
----
756
921
9654

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT - COUNT( * ) * - 55 + + ( - - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-911
SELECT - COUNT ( * ) * - 55 + + ( - - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
168

query I rowsort
SELECT ALL col0 + - - 91 + - - col0 FROM tab1 AS cor0
----
193
261
273

query I rowsort
SELECT - col2 + 65 AS col1 FROM tab2 AS cor0
----
25
42
7

onlyif mysql # DIV for integer division: 
query I rowsort label-914
SELECT DISTINCT - + col1 + + col2 + + + 39 DIV - col2 AS col2 FROM tab0 AS cor0
----
-14
-34
98

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT - + col1 + + col2 + + + 39 / - col2 AS col2 FROM tab0 AS cor0
----
-14
-34
98

query I rowsort
SELECT DISTINCT + 21 + col2 + - col1 FROM tab0 AS cor0
----
-13
10
119

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-917
SELECT ALL col1 * + 91 * + - CAST( NULL AS SIGNED ) - - col1 - 35 + + col1 + - ( + col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL col1 * + 91 * + - CAST ( NULL AS INTEGER ) - - col1 - 35 + + col1 + - ( + col0 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-918
SELECT DISTINCT col0 + - 43 DIV + 79 * 74 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT col0 + - 43 / + 79 * 74 AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT DISTINCT 76 * + MAX( DISTINCT + + col1 ) AS col2 FROM tab0
----
6156

skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT 76 * + MAX ( DISTINCT + + col1 ) AS col2 FROM tab0
----
6156

onlyif mysql # aggregate syntax: 
query II rowsort label-920
SELECT + ( COUNT( * ) ), - COUNT( * ) col1 FROM tab0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-920
SELECT + ( COUNT ( * ) ), - COUNT ( * ) col1 FROM tab0
----
3
-3

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

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

query I rowsort
SELECT DISTINCT - 97 * - col0 * - col2 + + col1 FROM tab1 AS cor0
----
-474898
-486450
-600189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT DISTINCT - - col2 + + col1 * - CAST( - col2 AS SIGNED ) - + 66 + - - 97 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT - - col2 + + col1 * - CAST ( - col2 AS INTEGER ) - + 66 + - - 97 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT - COUNT( * ) * + 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-864

skipif mysql # not compatible
query I rowsort label-924
SELECT - COUNT ( * ) * + 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-864

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

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT ALL 53 DIV col2 FROM tab0 cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-926
SELECT ALL 53 / col2 FROM tab0 cor0
----
0
1
5

onlyif mysql # DIV for integer division: 
query I rowsort label-927
SELECT - ( col0 ) DIV + col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-927
SELECT - ( col0 ) / + col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT - + MAX( + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-931
SELECT - + MAX ( + col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + - 94 FROM tab1 cor0
----
-94
-94
-94

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - 55 > + 91 / + 22
----
85
5
59

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

onlyif mysql # aggregate syntax: 
query II rowsort label-937
SELECT + - 9 AS col1, COUNT( * ) + + + COUNT( ALL - - 50 ) FROM tab0 AS cor0
----
-9
6

skipif mysql # not compatible
query II rowsort label-937
SELECT + - 9 AS col1, COUNT ( * ) + + + COUNT ( ALL - - 50 ) FROM tab0 AS cor0
----
-9
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - + 52 col0 FROM tab2 AS cor0
----
1196
2080
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE + col2 IN ( + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE + col2 IN ( + - col2 )
----
0

query I rowsort
SELECT ALL 9 * col1 AS col1 FROM tab2
----
459
603
693

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT - MIN( - + 71 ) col0 FROM tab2
----
71

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

query I rowsort
SELECT - col0 + - 69 + - col0 AS col2 FROM tab0 cor0
----
-243
-263
-99

query I rowsort
SELECT DISTINCT + + 77 * + 99 * col0 AS col1 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL AND col2 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-944
SELECT ALL + 95 + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS 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-944
SELECT ALL + 95 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL MAX( ALL col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL MAX ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - 2 col0 FROM tab0 AS cor0
----
-162
-2
-42

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

query I rowsort
SELECT + col0 - + + col2 AS col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT - col2 + + 27 FROM tab1
----
-32
-41
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT DISTINCT - ( + 64 ) DIV + 95 + + col2 AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT - ( + 64 ) / + 95 + + col2 AS col2 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT ALL col0 - - + col0 + 8 DIV - + 81 * + col2 * + 94 col1 FROM tab2
----
128
150
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-953
SELECT ALL col0 - - + col0 + 8 / - + 81 * + col2 * + 94 col1 FROM tab2
----
128
150
92

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

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

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

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

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

query I rowsort
SELECT - col0 * - + 32 FROM tab0
----
2784
3104
480

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + + col1 IS NULL
----
51
67
77

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

query I rowsort
SELECT ALL - - col2 * col0 * + 24 FROM tab2 AS cor0
----
104400
25392
61440

query II rowsort
SELECT DISTINCT col2 AS col2, + 24 * + col0 AS col1 FROM tab2 AS cor0
----
23
1104
40
1536
58
1800

query I rowsort
SELECT ( - col1 ) * + - 90 * + + col2 FROM tab1
----
120960
26550
287640

query I rowsort
SELECT ALL - 80 * - col2 AS col2 FROM tab1
----
4720
5440
7680

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

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

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

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

query I rowsort
SELECT DISTINCT - + 50 AS col1 FROM tab1 cor0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-967
SELECT - MAX( + 0 ) AS col0, - COUNT( * ) + MAX( col1 ) AS col0 FROM tab1 cor0
----
0
44

skipif mysql # not compatible
query II rowsort label-967
SELECT - MAX ( + 0 ) AS col0, - COUNT ( * ) + MAX ( col1 ) AS col0 FROM tab1 cor0
----
0
44

query I rowsort
SELECT ALL - - 83 * col1 + - col0 FROM tab1 cor0
----
1111
330
3810

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

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

query I rowsort
SELECT DISTINCT + 11 + + 2 FROM tab0 AS cor0
----
13

query I rowsort
SELECT - col1 AS col2 FROM tab2 cor0 WHERE NOT + col2 < - - col2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT 92 + - 18 AS col1 FROM tab1
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + + + 61 col0 FROM tab2
----
149
149
149

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT DISTINCT + MIN( ALL - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT + MIN ( ALL - col1 ) FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-976
SELECT ALL - col0 + - 80 DIV - col1 AS col0 FROM tab0 cor0
----
-15
-17
-84

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL - col0 + - 80 / - col1 AS col0 FROM tab0 cor0
----
-15
-17
-84

query II rowsort
SELECT col2 AS col1, col2 + 64 FROM tab2 AS cor0
----
23
87
40
104
58
122

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

query II rowsort
SELECT + col2 * + + col2 - + 73 AS col0, col0 AS col2 FROM tab0 AS cor0 WHERE col0 - + col0 < NULL
----

query I rowsort
SELECT ALL col2 * + 86 AS col0 FROM tab1
----
5074
5848
8256

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > 87
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-984
SELECT * FROM tab0 WHERE CAST( 99 AS SIGNED ) <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-984
SELECT * FROM tab0 WHERE CAST ( 99 AS INTEGER ) <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - 31 + - COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-985
SELECT - 31 + - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
-40

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

query I rowsort
SELECT - col2 * ( + col0 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT - 14 * + COUNT( * ) AS col2 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-988
SELECT - 14 * + COUNT ( * ) AS col2 FROM tab2
----
-42

query I rowsort
SELECT ALL col1 + 38 FROM tab2
----
105
115
89

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE 90 + + col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + 4 * col2 FROM tab2
----
160
232
92

query I rowsort
SELECT DISTINCT - col1 + + ( + 85 ) FROM tab2
----
18
34
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-993
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) / 63 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) / 63 AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-994
SELECT * FROM tab2 WHERE - 0 * CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-994
SELECT * FROM tab2 WHERE - 0 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * 40 AS col2 FROM tab0
----
3240
40
840

onlyif mysql # DIV for integer division: 
query I rowsort label-996
SELECT col2 DIV col1 + - col2 FROM tab0
----
-10
-47
0

skipif mysql # not compatible
query I rowsort label-996
SELECT col2 / col1 + - col2 FROM tab0
----
-10
-47
0

query I rowsort
SELECT - col0 * + 91 AS col2 FROM tab0
----
-1365
-7917
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-998
SELECT DISTINCT ( ( COUNT( * ) ) ) * - COUNT( DISTINCT col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT ( ( COUNT ( * ) ) ) * - COUNT ( DISTINCT col0 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT DISTINCT + 74 + + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
74

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT + 74 + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
74

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT - col1 NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 32 + - 43 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1004
SELECT MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1004
SELECT MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * 54 FROM tab0
----
-4698
-5238
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL 84 + COUNT( col0 ) FROM tab1 WHERE col1 IS NOT NULL
----
87

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL 84 + COUNT ( col0 ) FROM tab1 WHERE col1 IS NOT NULL
----
87

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NULL <> 33
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 71 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1009
SELECT col0 FROM tab0 WHERE NOT 83 > - col2 * CAST( NULL AS SIGNED ) + col0 * col0
----

skipif mysql # not compatible
query I rowsort label-1009
SELECT col0 FROM tab0 WHERE NOT 83 > - col2 * CAST ( NULL AS INTEGER ) + col0 * col0
----

query I rowsort
SELECT ALL 88 + + col1 AS col2 FROM tab0
----
109
169
89

query III rowsort
SELECT * FROM tab0 WHERE + 39 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT + 77 + COUNT( * ) * SUM( - 29 ) FROM tab2
----
-184

skipif mysql # not compatible
query I rowsort label-1013
SELECT + 77 + COUNT ( * ) * SUM ( - 29 ) FROM tab2
----
-184

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT CAST( MAX( - 68 ) AS SIGNED ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-1015
SELECT CAST ( MAX ( - 68 ) AS INTEGER ) FROM tab0
----
-68

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - 42 + - col1 < ( col1 )
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col0 * + 83 AS col1 FROM tab2 AS cor0
----
3818
5312
6225

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT ALL - 47 * COUNT( * ) FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL - 47 * COUNT ( * ) FROM tab0 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT DISTINCT - COUNT( ALL - col0 ) * 48 AS col2 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT - COUNT ( ALL - col0 ) * 48 AS col2 FROM tab2 AS cor0
----
-144

query I rowsort
SELECT ALL col2 * 44 AS col2 FROM tab1 AS cor0
----
2596
2992
4224

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

query I rowsort
SELECT + col1 * + 48 FROM tab2
----
2448
3216
3696

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1024
SELECT + MIN( ALL + col1 ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1024
SELECT + MIN ( ALL + col1 ) * - CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
NULL

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

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

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

query I rowsort
SELECT + col1 + + 85 FROM tab0
----
106
166
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT ALL + MAX( DISTINCT + col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL + MAX ( DISTINCT + col0 ) FROM tab1
----
91

query I rowsort
SELECT ALL 97 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1032
SELECT DISTINCT ( + col1 ) + ( + CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT ( + col1 ) + ( + CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT SUM( + col0 ) * - MAX( DISTINCT - 66 ) FROM tab1 AS cor0
----
14982

skipif mysql # not compatible
query I rowsort label-1033
SELECT SUM ( + col0 ) * - MAX ( DISTINCT - 66 ) FROM tab1 AS cor0
----
14982

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IN ( 88 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IN ( 88 )
----
NULL
NULL
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1037
SELECT 44 + col0 FROM tab1 AS cor0 WHERE NOT ( - CAST( 63 AS SIGNED ) ) NOT BETWEEN col0 + 36 AND ( + col0 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-1037
SELECT 44 + col0 FROM tab1 AS cor0 WHERE NOT ( - CAST ( 63 AS INTEGER ) ) NOT BETWEEN col0 + 36 AND ( + col0 + + col2 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 13 * - 99 + - 91 IS NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT NULL <= - col0 OR NOT ( 3 ) IS NOT NULL
----

query I rowsort
SELECT col1 * + ( col0 ) AS col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NOT NULL = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT DISTINCT MAX( + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT MAX ( + col1 ) AS col1 FROM tab2
----
77

query I rowsort
SELECT + col2 + + col1 + + col1 FROM tab0
----
101
209
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT DISTINCT + 39 + + 68 / col0 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) + + 97 >= NULL
----

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT + 39 + + 68 / col0 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) + + 97 >= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1047
SELECT CAST( - col1 AS SIGNED ) + + col0 FROM tab1
----
37
44
80

skipif mysql # not compatible
query I rowsort label-1047
SELECT CAST ( - col1 AS INTEGER ) + + col0 FROM tab1
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT - COUNT( * ) + COUNT( * ) AS col2 FROM tab0 WHERE col0 >= - col1 + col2
----
0

skipif mysql # not compatible
query I rowsort label-1048
SELECT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 WHERE col0 >= - col1 + col2
----
0

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

query I rowsort
SELECT - + 7 + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-28
-8
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1051
SELECT - - col1 + CAST( 82 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
129
87
96

skipif mysql # not compatible
query I rowsort label-1051
SELECT - - col1 + CAST ( 82 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
129
87
96

query I rowsort
SELECT + + col2 + - - col0 + + ( + 40 ) AS col0 FROM tab1 AS cor0
----
184
187
199

query I rowsort
SELECT DISTINCT - - 28 + - 17 FROM tab0 AS cor0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1054
SELECT ALL col2 + - - col2 DIV 2 + + col2 * 67 FROM tab1
----
4041
4658
6576

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL col2 + - - col2 / 2 + + col2 * 67 FROM tab1
----
4041
4658
6576

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT DISTINCT + COUNT( col2 ) + + 0 FROM tab0 WHERE NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT + COUNT ( col2 ) + + 0 FROM tab0 WHERE NULL >= ( NULL )
----
0

query I rowsort
SELECT ( - + col2 ) * - 34 FROM tab2
----
1360
1972
782

query I rowsort
SELECT DISTINCT 69 * - col0 AS col0 FROM tab0 WHERE ( + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 * + - col2 * + col1 col0 FROM tab0
----
-182700
-2683935
-950697

query I rowsort
SELECT ALL - col1 + - col1 / 80 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 99 + col0 )
----

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

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - MIN ( 41 ) - 57 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 9 ) = NULL
----

query I rowsort
SELECT ALL col2 * ( - col1 ) FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT ( + 45 ) FROM tab2 AS cor0
----
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > - ( 93 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 2 - - 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL SUM( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL SUM ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
227

query II rowsort
SELECT ALL + col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ( - col2 ) * 33 AS col0 FROM tab1
----
-1947
-2244
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT DISTINCT MIN( + - 4 ) AS col0 FROM tab0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT MIN ( + - 4 ) AS col0 FROM tab0 WHERE NULL >= NULL
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT ALL - col2 FROM tab1 AS cor0 WHERE + col1 - - CAST( - col2 AS SIGNED ) * + col1 NOT IN ( + col0 )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL - col2 FROM tab1 AS cor0 WHERE + col1 - - CAST ( - col2 AS INTEGER ) * + col1 NOT IN ( + col0 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT - SUM( 46 ) * 77 FROM tab2
----
-10626

skipif mysql # not compatible
query I rowsort label-1072
SELECT - SUM ( 46 ) * 77 FROM tab2
----
-10626

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN - 47 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT 62 + - col1 AS col0 FROM tab0 WHERE NOT ( + col0 + + col2 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1076
SELECT ALL + col1 * - + 87 - - + 55 AS col2, + col1 + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
-1772
NULL
-32
NULL
-6992
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1076
SELECT ALL + col1 * - + 87 - - + 55 AS col2, + col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
-1772
NULL
-32
NULL
-6992
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT DISTINCT + col0 DIV - 98 + + col2 AS col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT + col0 / - 98 + + col2 AS col0 FROM tab2 cor0
----
23
40
58

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

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

query I rowsort
SELECT ALL + - ( - 19 ) + - - col0 FROM tab0 AS cor0
----
106
116
34

query I rowsort
SELECT ALL + col0 + - 77 * - ( col0 ) * col1 FROM tab2
----
180688
379520
387000

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT DISTINCT + MIN( ALL ( + col2 ) ) + 50 AS col1 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT + MIN ( ALL ( + col2 ) ) + 50 AS col1 FROM tab2
----
73

query I rowsort
SELECT 58 FROM tab0 WHERE NULL IS NULL
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1083
SELECT - col1 * - col2 * ( 17 ) * - 25 / + CAST( NULL AS SIGNED ) + 92 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1083
SELECT - col1 * - col2 * ( 17 ) * - 25 / + CAST ( NULL AS INTEGER ) + 92 col1 FROM tab0
----
NULL
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * col2 col0 FROM tab1
----
4602
5304
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT - COUNT( ALL - col1 ) * - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1086
SELECT - COUNT ( ALL - col1 ) * - COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT + 80 * + - 89 FROM tab0
----
-7120

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT DISTINCT COUNT( * ) * 36 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT COUNT ( * ) * 36 FROM tab1
----
108

query I rowsort
SELECT ALL + col1 * + 57 AS col0 FROM tab1 WHERE NOT - col1 NOT IN ( + col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 43 * + col1 + - col1 * + col1 col0 FROM tab1
----
-181
-4162
-702

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 18 IS NOT NULL AND col0 * + 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1093
SELECT DISTINCT + MAX( - + col2 ), COUNT( * ) + - 78 * - COUNT( * ) col0 FROM tab0 cor0
----
-10
237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1093
SELECT DISTINCT + MAX ( - + col2 ), COUNT ( * ) + - 78 * - COUNT ( * ) col0 FROM tab0 cor0
----
-10
237

query II rowsort
SELECT ALL + col0 * + col2 AS col2, - col1 AS col2 FROM tab2 AS cor0
----
1058
-51
2560
-77
4350
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1095
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
0

query I rowsort
SELECT + 68 * - col0 + col1 AS col1 FROM tab1 cor0
----
-3454
-5775
-6141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1097
SELECT - - SUM( - + CAST( + ( - col1 ) AS SIGNED ) ) col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1097
SELECT - - SUM ( - + CAST ( + ( - col1 ) AS INTEGER ) ) col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
103

query I rowsort
SELECT col1 * 21 * - ( col2 ) + col0 + - col2 * 29 AS col2 FROM tab1 AS cor0
----
-30957
-68997
-7821

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1100
SELECT ALL - CAST( ( col2 ) AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL - CAST ( ( col2 ) AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT - col1 DIV - + 82 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1101
SELECT - col1 / - + 82 col2 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT + col2, col2 AS col2 FROM tab1
----
59
59
68
68
96
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - col2 + + col0 / + col0 col2 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL SUM ( col2 ) AS col1 FROM tab1
----
223

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 0 * + col0 IN ( col2, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT COUNT( * ) * 51 col2 FROM tab0 AS cor0
----
153

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

query I rowsort
SELECT - 48 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # DIV for integer division: 
query I rowsort label-1110
SELECT ALL + col1 DIV ( + - col1 ) DIV - col0 + + - 40 AS col0 FROM tab2
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL + col1 / ( + - col1 ) / - col0 + + - 40 AS col0 FROM tab2
----
-40
-40
-40

query I rowsort
SELECT + 14 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT - 66 + + MAX( - col0 ) FROM tab0 cor0 WHERE - col0 - - 2 * + col0 IS NOT NULL
----
-81

skipif mysql # not compatible
query I rowsort label-1112
SELECT - 66 + + MAX ( - col0 ) FROM tab0 cor0 WHERE - col0 - - 2 * + col0 IS NOT NULL
----
-81

query I rowsort
SELECT - + 11 AS col1 FROM tab0 cor0
----
-11
-11
-11

query I rowsort
SELECT ALL - col2 * - + col2 * + 32 + - 89 FROM tab0 AS cor0
----
3111
313543
70599

query I rowsort
SELECT + - col2 * + - col2 + 70 AS col0 FROM tab0 AS cor0
----
170
2279
9871

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT DISTINCT - COUNT( DISTINCT + col2 ) + 72 + - + MIN( DISTINCT + 28 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) + 72 + - + MIN ( DISTINCT + 28 ) FROM tab0
----
41

query I rowsort
SELECT ( + 14 ) FROM tab2 WHERE 7 < + col1
----
14
14
14

onlyif mysql # DIV for integer division: 
query II rowsort label-1118
SELECT + ( + + ( + col2 ) ) + + col2 + + 61 col2, - col0 DIV + 76 AS col0 FROM tab2
----
107
0
141
0
177
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1118
SELECT + ( + + ( + col2 ) ) + + col2 + + 61 col2, - col0 / + 76 AS col0 FROM tab2
----
107
0
141
0
177
0

query I rowsort
SELECT ALL + col1 - col2 * - 21 * - col1 AS col1 FROM tab1
----
-28210
-6190
-67069

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1121
SELECT DISTINCT 42 DIV + 82 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT 42 / + 82 AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1122
SELECT col0 + - 49 DIV + col2 * - 97 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1122
SELECT col0 + - 49 / + col2 * - 97 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL + - 19 AS col2 FROM tab1 AS cor0
----
-19
-19
-19

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1128
SELECT DISTINCT 89 DIV - 3 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT 89 / - 3 FROM tab1 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 46 col1, 78 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
46
78
46
78
46
78

query I rowsort
SELECT - col0 * - 14 AS col2 FROM tab2 AS cor0
----
1050
644
896

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL MAX( col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL MAX ( col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + col0 + - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - - 0 + - 63 + ( - col2 ) + - - 70 + - col2 + + 20 * - col2 * - 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1134
SELECT CAST( ( - col2 ) AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1134
SELECT CAST ( ( - col2 ) AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT DISTINCT MAX( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT - 89 = col0
----
-10

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT MAX ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NOT - 89 = col0
----
-10

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL <= col0 * + col0 + - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ( + MIN( - col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-1138
SELECT ( + MIN ( - col2 ) ) FROM tab2
----
-58

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

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT NULL <= ( + col0 )
----

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

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

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

query II rowsort
SELECT ALL - col2 + - - 78 AS col1, col2 + + 48 + - - ( - 74 ) + + col1 - ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-18
70
10
42
19
33

query I rowsort
SELECT + + col0 FROM tab1 WHERE - ( - + ( + col0 ) ) * - ( + 22 ) * - col0 * + - ( + + col1 ) - - col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1145
SELECT - + 53 * + - CAST( NULL AS SIGNED ) FROM tab1 WHERE - - 41 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1145
SELECT - + 53 * + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - - 41 IS NOT NULL
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT COUNT ( DISTINCT + - col0 ) FROM tab0
----
3

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1149
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1149
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT COUNT( * ) * - COUNT( * ) + - MAX( ALL - + col0 ) * MAX( - col0 ) * 21 AS col0 FROM tab1 cor0
----
-54630

skipif mysql # not compatible
query I rowsort label-1150
SELECT COUNT ( * ) * - COUNT ( * ) + - MAX ( ALL - + col0 ) * MAX ( - col0 ) * 21 AS col0 FROM tab1 cor0
----
-54630

onlyif mysql # aggregate syntax: 
query II rowsort label-1151
SELECT + + ( + COUNT( * ) ) + + - 12, 17 * ( - - 62 ) AS col2 FROM tab1 AS cor0
----
-9
1054

skipif mysql # not compatible
query II rowsort label-1151
SELECT + + ( + COUNT ( * ) ) + + - 12, 17 * ( - - 62 ) AS col2 FROM tab1 AS cor0
----
-9
1054

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

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

query I rowsort
SELECT DISTINCT - col0 + + col1 + - + col0 AS col2 FROM tab2
----
-41
-51
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ( - SUM( - ( ( 11 ) ) ) ) AS col0 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-1154
SELECT ( - SUM ( - ( ( 11 ) ) ) ) AS col0 FROM tab2
----
33

query I rowsort
SELECT col1 FROM tab1 WHERE 71 * + - 1 + col2 IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 - 37 col0, 66 * + - col0 AS col0 FROM tab2
----
14
-3036
30
-4950
40
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL MIN( + 91 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL MIN ( + 91 ) FROM tab1
----
91

query I rowsort
SELECT ALL 90 - + ( - + col0 ) AS col1 FROM tab1
----
141
175
181

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

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL - CAST ( NULL AS REAL ) - + col0 * 41 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1160
SELECT + 89 / 48 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1160
SELECT + 89 / 48 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + + col2 - col1 AS col2, col2 FROM tab1 AS cor0
----
21
68
54
59
82
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 11 * col0 NOT BETWEEN NULL AND col0 * - ( 31 )
----

query I rowsort
SELECT DISTINCT - col2 * + - col0 * col0 AS col0 FROM tab0 AS cor0
----
10575
75690
931491

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1167
SELECT DISTINCT + CAST( + - MAX( col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT + CAST ( + - MAX ( col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT ALL + 9 AS col0, - col0 FROM tab1 AS cor0 WHERE + 0 IS NOT NULL
----
9
-51
9
-85
9
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT + COUNT( * ) * + 63 AS col0 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-1169
SELECT + COUNT ( * ) * + 63 AS col0 FROM tab1 AS cor0
----
189

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1176
SELECT - ( - CAST( NULL AS SIGNED ) ) col1, - 2 AS col2 FROM tab0
----
NULL
-2
NULL
-2
NULL
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1176
SELECT - ( - CAST ( NULL AS INTEGER ) ) col1, - 2 AS col2 FROM tab0
----
NULL
-2
NULL
-2
NULL
-2

query II rowsort
SELECT 90 AS col2, + col0 FROM tab0
----
90
15
90
87
90
97

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT - col1 DIV + 74 * - col1 + - - col2 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1182
SELECT - col1 / + 74 * - col1 + - - col2 AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + + col2 * + - 47 AS col0 FROM tab2 AS cor0
----
-1081
-1880
-2726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1184
SELECT DISTINCT CAST( - 11 AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( - col2 AS SIGNED ) + - col2 + + + col1 - col0 * 43 + col2 IS NOT NULL
----
-11

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT CAST ( - 11 AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( - col2 AS INTEGER ) + - col2 + + + col1 - col0 * 43 + col2 IS NOT NULL
----
-11

query II rowsort
SELECT col1, + col0 FROM tab1 AS cor0 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT + + col0 - + 60 AS col1 FROM tab0 AS cor0
----
-45
27
37

query I rowsort
SELECT + col1 - + - col2 AS col1 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 IS NOT NULL AND ( NULL ) >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT - 88 + MAX( DISTINCT - col0 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-1190
SELECT - 88 + MAX ( DISTINCT - col0 ) FROM tab0
----
-103

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT ( col0 ) DIV 44 + + ( + col1 ) * col2 DIV + + 93 FROM tab2
----
13
34
42

skipif mysql # not compatible
query I rowsort label-1192
SELECT ( col0 ) / 44 + + ( + col1 ) * col2 / + + 93 FROM tab2
----
13
34
42

query II rowsort
SELECT DISTINCT + col2 - + + col1 + + col0, + col0 AS col1 FROM tab0
----
-19
15
195
97
76
87

query I rowsort
SELECT + col2 * + col0 * + col0 + + + 78 AS col0 FROM tab0
----
10653
75768
931569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1195
SELECT + + 66 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-1195
SELECT + + 66 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, + col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

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

query I rowsort
SELECT DISTINCT + 4 * - + col0 AS col0 FROM tab0 AS cor0
----
-348
-388
-60

query I rowsort
SELECT DISTINCT col1 * 62 + 85 + - ( + + 76 ) AS col1 FROM tab2 AS cor0
----
3171
4163
4783

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1201
SELECT DISTINCT - ( + 8 ) AS col1, - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-8
-9

skipif mysql # not compatible
query II rowsort label-1201
SELECT DISTINCT - ( + 8 ) AS col1, - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-8
-9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1203
SELECT DISTINCT 29 * + col0 DIV - + col0 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT 29 * + col0 / - + col0 FROM tab0 AS cor0
----
-29

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * + ( + + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT + 52 + + COUNT( * ) * 81 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
52

skipif mysql # not compatible
query I rowsort label-1207
SELECT + 52 + + COUNT ( * ) * 81 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
52

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

query II rowsort
SELECT ALL col2 * col1 AS col0, 56 AS col0 FROM tab0 cor0
----
210
56
3807
56
99
56

query II rowsort
SELECT col2 + 88 * 43 - col1 - - 74 AS col2, + col0 FROM tab2
----
3821
64
3830
46
3849
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 27 col2 FROM tab0
----
-26
-6
54

query I rowsort
SELECT col1 + + - col1 - - 70 + col0 * - - col0 + - col1 * 74 AS col0 FROM tab2
----
-1532
-1588
737

query I rowsort
SELECT 23 + + 1 FROM tab2
----
24
24
24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 14 col0 FROM tab0 cor0
----
-4
33
85

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 9 * - 49 + col1 IS NULL
----

query I rowsort
SELECT ALL - 91 + col1 AS col1 FROM tab2 AS cor0
----
-14
-24
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - col0 + + col2 AND + col2 * + 30 + + col2
----
-2

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - col0 + + col2 AND + col2 * + 30 + + col2
----
-2

query I rowsort
SELECT - 12 AS col1 FROM tab1 AS cor0 WHERE - col1 IN ( + - col2, + ( + 47 ), + - 83 )
----

query II rowsort
SELECT ALL - 51 + + col2, - 53 - + col2 + - - col0 AS col1 FROM tab1 AS cor0
----
17
-30
45
-98
8
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-1222
SELECT + col2 + col1 DIV col1 DIV - col2 - - - col2 + - 50 * - col1 FROM tab0 cor0
----
1050
4050
50

skipif mysql # not compatible
query I rowsort label-1222
SELECT + col2 + col1 / col1 / - col2 - - - col2 + - 50 * - col1 FROM tab0 cor0
----
1050
4050
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT ALL - MIN( DISTINCT 25 ) AS col0 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL - MIN ( DISTINCT 25 ) AS col0 FROM tab0 AS cor0
----
-25

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

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

query II rowsort
SELECT - 1 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
-1
-51
-1
-67
-1
-77

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 83 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT + col1 DIV + 29 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1228
SELECT + col1 / + 29 FROM tab0
----
0
0
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1229
SELECT DISTINCT - 86 * - 55 + - + 40 + + MAX( - col2 ) * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT - 86 * - 55 + - + 40 + + MAX ( - col2 ) * CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 - - col0 - + col2 FROM tab2
----
69
88
92

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT DISTINCT SUM( ALL - 75 ) AS col0 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT SUM ( ALL - 75 ) AS col0 FROM tab1 AS cor0
----
-225

query I rowsort
SELECT DISTINCT - 68 * - - 11 FROM tab0 AS cor0
----
-748

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 84 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * - + 0 FROM tab2
----
0

query I rowsort
SELECT - 48 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT - MAX( ALL - 63 ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1239
SELECT - MAX ( ALL - 63 ) AS col1 FROM tab1 AS cor0
----
63

query I rowsort
SELECT ALL - - 44 + - - col2 AS col2 FROM tab2 AS cor0
----
102
67
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1241
SELECT + CAST( + ( + COUNT( ALL + 2 ) ) AS SIGNED ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1241
SELECT + CAST ( + ( + COUNT ( ALL + 2 ) ) AS INTEGER ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT 88 * + - 46 + + COUNT( + 62 ) FROM tab1 AS cor0
----
-4045

skipif mysql # not compatible
query I rowsort label-1242
SELECT 88 * + - 46 + + COUNT ( + 62 ) FROM tab1 AS cor0
----
-4045

query I rowsort
SELECT ALL + + col1 + - 78 AS col2 FROM tab0 AS cor0
----
-57
-77
3

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

query I rowsort
SELECT ALL + 16 + col1 + + col1 * + 41 FROM tab2
----
2158
2830
3250

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 - - 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT - COUNT( * ) FROM tab0 WHERE ( col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1247
SELECT - COUNT ( * ) FROM tab0 WHERE ( col1 IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT DISTINCT - MAX( col1 ) AS col2 FROM tab0 WHERE NOT - col2 * + col2 NOT BETWEEN + col1 + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT - MAX ( col1 ) AS col2 FROM tab0 WHERE NOT - col2 * + col2 NOT BETWEEN + col1 + col0 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - col0 AS col2, col1 * 66 * - 14 col2 FROM tab2
----
1058
-47124
2560
-71148
4350
-61908

query III rowsort
SELECT * FROM tab1 WHERE col0 > + + col2 + + ( + 62 ) * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT - ( COUNT( * ) ) + + 10 AS col1 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1251
SELECT - ( COUNT ( * ) ) + + 10 AS col1 FROM tab2 AS cor0
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - 89, - ( - col2 ), - col2 * col2 * + col2 + + 73 + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1253
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - 89, - ( - col2 ), - col2 * col2 * + col2 + + 73 + - col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1254
SELECT ALL - col2 DIV - - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-18
-87
-98

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL - col2 / - - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-18
-87
-98

query I rowsort
SELECT + col1 + - 78 FROM tab0 AS cor0
----
-57
-77
3

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1258
SELECT - ( + + 73 ) - - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT ALL + ( - col2 ) DIV col2 + + 15 - - - 36 FROM tab2 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL + ( - col2 ) / col2 + + 15 - - - 36 FROM tab2 AS cor0
----
-22
-22
-22

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

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

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

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

query I rowsort
SELECT ALL - + col1 * 89 + - col0 FROM tab0 cor0
----
-186
-1956
-7224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1264
SELECT + 56 * + - CAST( NULL AS SIGNED ) + - 33 AS col2, - COUNT( * ) * 88 AS col0 FROM tab1 AS cor0
----
NULL
-264

skipif mysql # not compatible
query II rowsort label-1264
SELECT + 56 * + - CAST ( NULL AS INTEGER ) + - 33 AS col2, - COUNT ( * ) * 88 AS col0 FROM tab1 AS cor0
----
NULL
-264

query II rowsort
SELECT DISTINCT col0 AS col0, 77 FROM tab0 AS cor0 WHERE NOT - col2 - + - 59 / - col1 > - col1
----
97
77

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

skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT - MAX ( - - col1 ) FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - - col0 * + + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT DISTINCT MIN( DISTINCT - 46 ) col1 FROM tab2
----
-46

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col2 ) <= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1270
SELECT ALL 63 DIV 61 * - + col2 col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1270
SELECT ALL 63 / 61 * - + col2 col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT ( + col1 ) * + + 13 FROM tab0
----
1053
13
273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 68 col2, 7 AS col2 FROM tab1
----
68
7
68
7
68
7

query II rowsort
SELECT 43, - 25 AS col1 FROM tab0
----
43
-25
43
-25
43
-25

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT ALL + + MAX( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL + + MAX ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-51

query II rowsort
SELECT ALL - col1, col0 AS col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 29 < NULL
----

query I rowsort
SELECT ALL + 4 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

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

skipif mysql # not compatible
query I rowsort label-1280
SELECT - MIN ( ALL - col2 ) FROM tab1
----
96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL <> - col0 + + col2 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 + + - col2 < NULL
----

query I rowsort
SELECT DISTINCT 71 * - col1 - 42 AS col2 FROM tab1 AS cor0
----
-1036
-3379
-397

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

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

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

query I rowsort
SELECT DISTINCT 46 + - ( + col2 ) + + ( col1 ) FROM tab2 cor0
----
55
74
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 77 + + ( - col1 ) col1, col0 AS col2 FROM tab0 AS cor0
----
-158
15
-78
97
-98
87

query I rowsort
SELECT + 28 + - - ( + 85 ) FROM tab2 AS cor0
----
113
113
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1290
SELECT DISTINCT 13 * MIN( ALL + col2 ) DIV + 3 + + + 1 AS col0 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT 13 * MIN ( ALL + col2 ) / + 3 + + + 1 AS col0 FROM tab0
----
44

query I rowsort
SELECT ALL col2 + - - col0 AS col1 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab0 WHERE NULL = - + col0
----

query I rowsort
SELECT ALL col0 * + - 43 AS col1 FROM tab2
----
-1978
-2752
-3225

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1294
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 91 col2 FROM tab1
----
NULL

query II rowsort
SELECT 35 AS col1, - 80 FROM tab0
----
35
-80
35
-80
35
-80

query I rowsort
SELECT ALL 14 * 81 AS col1 FROM tab0
----
1134
1134
1134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1297
SELECT - 20 - - ( - 29 ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN col1 * + 67 * - col0 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1297
SELECT - 20 - - ( - 29 ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN col1 * + 67 * - col0 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1298
SELECT - 7 - + 19 DIV col0 AS col1 FROM tab1 AS cor0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-1298
SELECT - 7 - + 19 / col0 AS col1 FROM tab1 AS cor0
----
-7
-7
-7

query II rowsort
SELECT ALL - col1, - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT DISTINCT - 14 AS col2 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT ALL + col0 * 3 * + - col1 AS col0 FROM tab2 AS cor0
----
-14784
-15075
-7038

query I rowsort
SELECT + + col1 * - 44 AS col0 FROM tab0 AS cor0
----
-3564
-44
-924

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

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

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

query I rowsort
SELECT + 23 * + col2 - - col2 FROM tab1 cor0
----
1416
1632
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT ALL + COUNT( + col2 ) * + 91 AS col2 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL + COUNT ( + col2 ) * + 91 AS col2 FROM tab0 AS cor0
----
273

query I rowsort
SELECT + - 19 * + col2 AS col2 FROM tab1 AS cor0
----
-1121
-1292
-1824

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT 34 DIV - - 82 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1308
SELECT 34 / - - 82 FROM tab0
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1309
SELECT ALL col0 / - col2 col0 FROM tab1
----
-1
-1
0

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

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

skipif mysql # not compatible
query I rowsort label-1311
SELECT - SUM ( ALL - col1 ) AS col0 FROM tab0
----
103

query II rowsort
SELECT + + 62, - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
62
-10
62
-47
62
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT - + MIN( - col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-1314
SELECT - + MIN ( - col1 ) FROM tab1 cor0
----
47

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

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

query I rowsort
SELECT col0 + 54 FROM tab1
----
105
139
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT + MIN( ALL + col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1317
SELECT + MIN ( ALL + col2 ) AS col0 FROM tab0
----
10

query I rowsort
SELECT - ( - - col0 ) * - - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-2369
-4968
-5083

query I rowsort
SELECT ALL - - col0 + - - 39 + - + col0 AS col1 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT - - col0 * + + col0 + + col2 AS col1 FROM tab1 cor0 WHERE NULL <= + 29
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2, col0 * col2 + - - 31 + + - 58 * + col1 col1 FROM tab1 AS cor0
----
-59
4756
-68
3493
-96
4115

query I rowsort
SELECT + 63 - - ( - col1 ) FROM tab2
----
-14
-4
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT - SUM( DISTINCT - col2 ) + - ( 4 ) FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-1324
SELECT - SUM ( DISTINCT - col2 ) + - ( 4 ) FROM tab1
----
219

query I rowsort
SELECT - col1 FROM tab0 WHERE ( col1 + col0 * + + 40 - + 76 ) IS NULL
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 / - col1 / - col1 < NULL
----

query I rowsort
SELECT ALL col2 + + - 37 AS col2 FROM tab0
----
-27
10
62

query II rowsort
SELECT DISTINCT + col0 - + 19 + - col2 + col0 * + + col0 - col0, 52 AS col1 FROM tab2
----
2074
52
4037
52
5548
52

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1331
SELECT CAST( NULL AS SIGNED ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1331
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 68 * ( + 34 ) * - col1 * + col1 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1333
SELECT - + SUM( + - 11 ) * - MIN( ALL + col0 ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT - + SUM ( + - 11 ) * - MIN ( ALL + col0 ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND 52
----

query I rowsort
SELECT ALL + - ( - col2 ) * + + col1 FROM tab1 AS cor0 WHERE NOT + 52 - 41 * + 78 IS NULL
----
1344
295
3196

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT ALL 97 * - COUNT( * ) AS col2 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL 97 * - COUNT ( * ) AS col2 FROM tab1
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT + 36 * + MIN( DISTINCT 98 ) AS col1 FROM tab1
----
3528

skipif mysql # not compatible
query I rowsort label-1339
SELECT + 36 * + MIN ( DISTINCT 98 ) AS col1 FROM tab1
----
3528

query I rowsort
SELECT - col2 * - + col2 * + col2 AS col2 FROM tab2
----
12167
195112
64000

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT ALL + 38 DIV - + 30 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL + 38 / - + 30 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - 2 * col2 * col1 FROM tab2
----
-2346
-6160
-7772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1343
SELECT ALL SUM( DISTINCT + CAST( NULL AS SIGNED ) ) / + - 21 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + - 21 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 67 IS NULL
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * - col2 + 63 + col1 * + + col0 + + col1 * + ( + 48 ) AS col0 FROM tab1 cor0
----
-2753
-7767
1972

query I rowsort
SELECT ALL - 50 AS col2 FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT - 7 + + 6 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 82 + - + 4 FROM tab1 AS cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + - 10 * + 83 + 43 col1 FROM tab2 AS cor0
----
-838
-854
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, 76 * - col0 col0 FROM tab2 AS cor0
----
-51
-3496
-67
-5700
-77
-4864

query III rowsort
SELECT * FROM tab1 WHERE - 73 IS NULL
----

query I rowsort
SELECT - col0 / - + 71 * + col0 / - + ( col1 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT DISTINCT + COUNT( * ) * + - 24 + COUNT( * ) * ( 25 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT + COUNT ( * ) * + - 24 + COUNT ( * ) * ( 25 ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 - - + ( - col2 ) col1 FROM tab1
----
-51
-60
-88

query I rowsort
SELECT DISTINCT - 78 - + + 23 AS col1 FROM tab0
----
-101

query I rowsort
SELECT DISTINCT col1 * - col2 - - col0 FROM tab0 AS cor0
----
-123
-2
-3792

query II rowsort
SELECT ALL col1 AS col2, + col1 * + + col2 AS col1 FROM tab2 cor0
----
51
1173
67
3886
77
3080

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

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

query I rowsort
SELECT ALL 70 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT ALL + 38 * + 35 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
3990

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL + 38 * + 35 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3990

query I rowsort
SELECT 9 * + - ( - col1 ) + - ( + 59 ) * + + 97 AS col1 FROM tab0 AS cor0
----
-4994
-5534
-5714

query I rowsort
SELECT DISTINCT ( - 65 ) FROM tab2 AS cor0
----
-65

query II rowsort
SELECT DISTINCT + - col1 * - 49, col2 AS col2 FROM tab1 AS cor0
----
2303
68
245
59
686
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT DISTINCT + ( + col2 ) * + + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT + ( + col2 ) * + + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-1344
-295
-3196

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

query I rowsort
SELECT 19 * + + col0 AS col2 FROM tab1
----
1615
1729
969

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1371
SELECT DISTINCT * FROM tab2 WHERE col1 + + - col2 + 67 * CAST( NULL AS SIGNED ) <> - 38 * - col1
----

skipif mysql # not compatible
query III rowsort label-1371
SELECT DISTINCT * FROM tab2 WHERE col1 + + - col2 + 67 * CAST ( NULL AS INTEGER ) <> - 38 * - col1
----

query I rowsort
SELECT DISTINCT - 34 AS col0 FROM tab2
----
-34

query I rowsort
SELECT ALL - col0 * + 62 FROM tab0 cor0
----
-5394
-6014
-930

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN - - 35 + - - col0 AND - ( - + 4 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT ALL + COUNT( ALL + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL + COUNT ( ALL + col1 ) FROM tab0
----
3

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1377
SELECT ALL - 99 + - + CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1378
SELECT ALL + + 42 / - col2 * + + ( 99 ) FROM tab0 WHERE NOT ( 9 * CAST( NULL AS SIGNED ) * + col0 / col2 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL + + 42 / - col2 * + + ( 99 ) FROM tab0 WHERE NOT ( 9 * CAST ( NULL AS INTEGER ) * + col0 / col2 IS NULL )
----

query II rowsort
SELECT + col1 * + + col1, + col0 AS col0 FROM tab1
----
196
51
2209
91
25
85

query I rowsort
SELECT - 46 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT MAX( DISTINCT - 19 ) FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1382
SELECT MAX ( DISTINCT - 19 ) FROM tab0 AS cor0
----
-19

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

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

query I rowsort
SELECT ALL + + 89 * - 37 - - col1 FROM tab2 AS cor0
----
-3216
-3226
-3242

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1385
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 + - col0 + - CAST( - ( + - 99 ) AS DECIMAL ) + - + ( - + 7 ) - + - 63, + 26 AS col2 FROM tab1 AS cor0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-1385
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 + - col0 + - CAST ( - ( + - 99 ) AS REAL ) + - + ( - + 7 ) - + - 63, + 26 AS col2 FROM tab1 AS cor0
----
NULL
26

query I rowsort
SELECT DISTINCT col1 * - ( ( - + 17 ) ) * - - 95 + - 54 * - col1 + + + 5 FROM tab1 AS cor0
----
23371
78448
8350

onlyif mysql # DIV for integer division: 
query II rowsort label-1387
SELECT ALL + 10 DIV - - col2 AS col1, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-1387
SELECT ALL + 10 / - - col2 AS col1, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT + col1 * 63 AS col2 FROM tab2 AS cor0 WHERE + col1 + - - col0 * + - col0 IS NOT NULL
----
3213
4221
4851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1389
SELECT - - col0 * col0 * - 70 * CAST( 74 AS SIGNED ) + - CAST( NULL AS SIGNED ) * - - col0 * - ( 87 ) - + col0 * 80 / + + ( - - col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT - - col0 * col0 * - 70 * CAST ( 74 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - - col0 * - ( 87 ) - + col0 * 80 / + + ( - - col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 + + 76 - - - 89 * col1 col1 FROM tab1
----
-1214
-413
-4151

query I rowsort
SELECT - col2 FROM tab1 WHERE 88 <= NULL
----

query I rowsort
SELECT DISTINCT - ( + - col2 ) * + - col2 + + 37 * 0 FROM tab0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-1394
SELECT ALL + col1 - + 53 + + col0 + col2 DIV - col0 + col2 col1 FROM tab2
----
128
147
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1394
SELECT ALL + col1 - + 53 + + col0 + col2 / - col0 + col2 col1 FROM tab2
----
128
147
67

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

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL + 37 / - COUNT ( * ) AS col1 FROM tab1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1396
SELECT - col0 + 44 + - - 98 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1396
SELECT - col0 + 44 + - - 98 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 70 - - + 1 AS col2 FROM tab2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT MAX( + col0 ) + + COUNT( * ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-1398
SELECT MAX ( + col0 ) + + COUNT ( * ) AS col2 FROM tab2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT 99 + CAST( NULL AS SIGNED ) FROM tab2 WHERE - + col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-1399
SELECT 99 + CAST ( NULL AS INTEGER ) FROM tab2 WHERE - + col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab2 cor0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT + col1 * - - col0 * 16 * + 99 FROM tab1 AS cor0
----
1130976
673200
6774768

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT + MIN( 75 ) AS col0 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-1403
SELECT + MIN ( 75 ) AS col0 FROM tab0
----
75

query I rowsort
SELECT DISTINCT col2 * - col2 * - col2 AS col1 FROM tab2
----
12167
195112
64000

query I rowsort
SELECT - - ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT 25 * - 70 IS NULL
----
-1
-21
-81

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

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

query II rowsort
SELECT ALL + col1 AS col1, 89 FROM tab0 AS cor0
----
1
89
21
89
81
89

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

query I rowsort
SELECT + 56 + col0 * + 48 FROM tab0
----
4232
4712
776

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT 95 + COUNT( * ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-1410
SELECT 95 + COUNT ( * ) FROM tab0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1411
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 91 AS col1, - COUNT( * ) FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1411
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 91 AS col1, - COUNT ( * ) FROM tab0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT 36 * - COUNT( * ) * - - COUNT( DISTINCT + col1 ) FROM tab0
----
-324

skipif mysql # not compatible
query I rowsort label-1412
SELECT 36 * - COUNT ( * ) * - - COUNT ( DISTINCT + col1 ) FROM tab0
----
-324

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL - - 21 + - - 84 * + ( - MIN( ALL - + col1 ) ) FROM tab0 cor0
----
6825

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL - - 21 + - - 84 * + ( - MIN ( ALL - + col1 ) ) FROM tab0 cor0
----
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL + 99 * + COUNT( * ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL + 99 * + COUNT ( * ) FROM tab0
----
297

query II rowsort
SELECT - col0 AS col2, + col0 * - + 45 + + - col2 AS col1 FROM tab1 WHERE - col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1417
SELECT CAST( - COUNT( * ) AS SIGNED ) + + 61 AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1417
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + 61 AS col1 FROM tab2
----
58

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + + 11 FROM tab1 AS cor0
----
102
62
96

query II rowsort
SELECT - 48, + 64 * - col2 * + + col0 AS col0 FROM tab1 AS cor0
----
-48
-313344
-48
-320960
-48
-396032

query I rowsort
SELECT + + 94 AS col0 FROM tab2 cor0
----
94
94
94

query I rowsort
SELECT ALL + col1 + 30 AS col2 FROM tab0 AS cor0
----
111
31
51

query I rowsort
SELECT ALL + 54 - - 90 + col0 AS col1 FROM tab1
----
195
229
235

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 79 >= - 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE col2 / - - col1 * + 30 + + 59 * + col2 >= + 65 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * + 42 + 34 - + 73 FROM tab0 AS cor0
----
3615
4035
591

query I rowsort
SELECT - ( + col2 ) * - 16 FROM tab1 AS cor0
----
1088
1536
944

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT - + SUM( + - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1431
SELECT - + SUM ( + - col1 ) AS col1 FROM tab2 AS cor0
----
195

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 74 BETWEEN + 70 AND + + col2
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT - COUNT( * ) * - - 58 FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-1437
SELECT - COUNT ( * ) * - - 58 FROM tab0 AS cor0
----
-174

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1439
SELECT - + COUNT( * ) AS col2, 20 * 58 AS col2 FROM tab0 AS cor0
----
-3
1160

skipif mysql # not compatible
query II rowsort label-1439
SELECT - + COUNT ( * ) AS col2, 20 * 58 AS col2 FROM tab0 AS cor0
----
-3
1160

query II rowsort
SELECT + col2 AS col1, 89 AS col0 FROM tab1 AS cor0
----
59
89
68
89
96
89

query I rowsort
SELECT DISTINCT 64 * - - 41 + - + col1 FROM tab1
----
2577
2610
2619

query I rowsort
SELECT DISTINCT 19 * 65 FROM tab1
----
1235

query I rowsort
SELECT col1 * + 42 * + 97 FROM tab1
----
191478
20370
57036

query I rowsort
SELECT ALL col1 * 49 + - col0 FROM tab0 AS cor0
----
-48
3954
942

query I rowsort
SELECT - col0 * + col2 + col0 - 4 FROM tab0 AS cor0
----
-694
-787
-9510

query I rowsort
SELECT + ( 18 ) * - col2 + - col1 * + 32 + - col1 + col2 FROM tab0 AS cor0
----
-1716
-3472
-863

query I rowsort
SELECT + + 46 + - col2 + - 88 AS col2 FROM tab2 cor0
----
-100
-65
-82

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

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

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

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

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

query I rowsort
SELECT 46 FROM tab0 cor0 WHERE NULL IS NULL
----
46
46
46

query I rowsort
SELECT DISTINCT + 55 + 76 * - col1 FROM tab2 AS cor0
----
-3821
-5037
-5797

query I rowsort
SELECT + col2 * + 79 * + 92 - - 76 FROM tab0 AS cor0
----
341672
719608
72756

query I rowsort
SELECT - 17 * - + col2 * + col1 + + - col2 FROM tab0 AS cor0 WHERE - ( - col1 ) NOT IN ( - col2, 15 )
----
1584
3560
64672

query I rowsort
SELECT ALL + 49 + - col1 FROM tab0
----
-32
28
48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT + 44 DIV + 10 AS col1 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-1457
SELECT + 44 / + 10 AS col1 FROM tab1
----
4
4
4

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1459
SELECT ALL CAST( col0 AS SIGNED ) DIV + - col0 - - + 61 AS col2 FROM tab1
----
60
60
60

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL CAST ( col0 AS INTEGER ) / + - col0 - - + 61 AS col2 FROM tab1
----
60
60
60

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT ALL - MIN( + col0 ) DIV - - COUNT( * ) - + COUNT( * ) col2 FROM tab1
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1461
SELECT ALL - MIN ( + col0 ) / - - COUNT ( * ) - + COUNT ( * ) col2 FROM tab1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1462
SELECT + col1 AS col1, - CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1462
SELECT + col1 AS col1, - CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT - col0 * + - 17 AS col2 FROM tab1 AS cor0
----
1445
1547
867

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL MAX( - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL MAX ( - col0 ) AS col0 FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 34 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT - 91 + + COUNT( * ) AS col1 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-1469
SELECT - 91 + + COUNT ( * ) AS col1 FROM tab2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1470
SELECT ALL - CAST( - 38 AS SIGNED ) AS col0 FROM tab1
----
38
38
38

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL - CAST ( - 38 AS INTEGER ) AS col0 FROM tab1
----
38
38
38

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 WHERE NOT NULL >= - 62 * - 87
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 8 NOT IN ( + 43 )
----

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

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE col0 + 59 NOT IN ( ( col1 ) * + col1 + + col2 )
----
23
40
58

query I rowsort
SELECT ALL + 10 * - col0 + - col0 AS col0 FROM tab1
----
-1001
-561
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT ALL - COUNT( * ) * - 3 - MAX( - col2 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL - COUNT ( * ) * - 3 - MAX ( - col2 ) FROM tab0
----
19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + ( 59 ) + 10
----

query I rowsort
SELECT 63 * 21 FROM tab0
----
1323
1323
1323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1480
SELECT + CAST( - 80 AS SIGNED ) * MIN( col2 + + col2 ) + + COUNT( * ) * + 21 FROM tab2
----
-3617

skipif mysql # not compatible
query I rowsort label-1480
SELECT + CAST ( - 80 AS INTEGER ) * MIN ( col2 + + col2 ) + + COUNT ( * ) * + 21 FROM tab2
----
-3617

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT MAX( ALL ( - col2 ) ) * 29 AS col0 FROM tab0
----
-290

skipif mysql # not compatible
query I rowsort label-1481
SELECT MAX ( ALL ( - col2 ) ) * 29 AS col0 FROM tab0
----
-290

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col0 * col0 AND NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 + - col0 col2 FROM tab1
----
-23
-29
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT ALL col0 DIV col0 + 64 FROM tab1
----
65
65
65

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL col0 / col0 + 64 FROM tab1
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT col1 DIV + col1 - col0 * - col1 FROM tab1
----
426
4278
715

skipif mysql # not compatible
query I rowsort label-1487
SELECT col1 / + col1 - col0 * - col1 FROM tab1
----
426
4278
715

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT + MAX( DISTINCT - 35 ) FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-1488
SELECT + MAX ( DISTINCT - 35 ) FROM tab1 AS cor0
----
-35

query I rowsort
SELECT ALL 2 + col0 * col0 FROM tab0
----
227
7571
9411

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1490
SELECT * FROM tab0 cor0 CROSS JOIN tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-1490
SELECT * FROM tab0 cor0 CROSS JOIN tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL 20 * 68 FROM tab2 AS cor0 WHERE NOT ( col2 * - col1 + col0 ) BETWEEN - 26 AND - col1
----
1360
1360
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT DISTINCT + + MIN( ALL - col0 ) - - 73 AS col2 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT + + MIN ( ALL - col0 ) - - 73 AS col2 FROM tab2 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1493
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - 85 + CAST( NULL AS SIGNED ) <> + 23
----

skipif mysql # not compatible
query III rowsort label-1493
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - 85 + CAST ( NULL AS INTEGER ) <> + 23
----

query I rowsort
SELECT 93 AS col1 FROM tab1 AS cor0 WHERE col0 < ( + 78 + col1 )
----
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT DISTINCT 3 * MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT 3 * MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT - col2 * 81 AS col0 FROM tab0 AS cor0
----
-3807
-8019
-810

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) BETWEEN + ( + 43 ) AND + 73 / - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 31 >= ( col2 )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL 12 + COUNT( * ) col1 FROM tab0 cor0
----
15

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

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

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

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

query I rowsort
SELECT DISTINCT - 80 * col2 + - col0 AS col0 FROM tab2 AS cor0
----
-1886
-3264
-4715

query I rowsort
SELECT - 85 * - 77 FROM tab0 AS cor0
----
6545
6545
6545

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1504
SELECT CAST( NULL AS DECIMAL ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1504
SELECT CAST ( NULL AS REAL ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 49 FROM tab2 AS cor0 WHERE NOT col0 * 52 <> col2 + 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT DISTINCT - MAX( DISTINCT col0 ) * 57 AS col1 FROM tab2 AS cor0
----
-4275

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT - MAX ( DISTINCT col0 ) * 57 AS col1 FROM tab2 AS cor0
----
-4275

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 15 * 59 ) NOT IN ( 3 - + col1 * + col0 )
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 73 + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT DISTINCT - MAX( 7 ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - MAX ( 7 ) FROM tab1
----
-7

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

query I rowsort
SELECT - col2 + + col1 FROM tab2 WHERE NOT - 10 IS NULL
----
28
37
9

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

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT COUNT ( * ) / + 81 AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 * - 92 + + col2 col0 FROM tab2 AS cor0
----
7751
7768
7786

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

query I rowsort
SELECT ALL + 31 FROM tab1 AS cor0 WHERE NOT ( ( + 55 ) * 75 ) IN ( col1 )
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT DISTINCT + MIN( ALL col1 ) FROM tab2 AS cor0 WHERE col2 IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT + MIN ( ALL col1 ) FROM tab2 AS cor0 WHERE col2 IN ( + col0 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 AS cor0 WHERE NOT 33 * - 94 BETWEEN col0 AND 86 + 97
----
59
68
96

query I rowsort
SELECT ( 83 ) FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT 36 + - col1 FROM tab2 AS cor0 WHERE NOT + 94 IS NULL
----
-15
-31
-41

query I rowsort
SELECT ALL - AVG ( DISTINCT col2 ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN + - 51 * col0 + 95 AND NULL
----
NULL

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

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

query I rowsort
SELECT ALL - 10 * - + col0 AS col2 FROM tab0
----
150
870
970

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT DISTINCT COUNT( * ) FROM tab1, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT COUNT ( * ) FROM tab1, tab2 cor0
----
9

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE ( 88 ) >= 60 OR NOT NULL >= ( NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT MAX( - ( - col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1528
SELECT MAX ( - ( - col0 ) ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL MIN( DISTINCT + 96 ) + + 64 AS col2 FROM tab2 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL MIN ( DISTINCT + 96 ) + + 64 AS col2 FROM tab2 AS cor0
----
160

query I rowsort
SELECT - 79 * + 16 AS col1 FROM tab0 cor0
----
-1264
-1264
-1264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT - 33 AS col1 FROM tab2 AS cor0 WHERE 86 IN ( + + col1 / ( + CAST( + col2 AS SIGNED ) * - col1 ) + - col0 )
----

skipif mysql # not compatible
query I rowsort label-1531
SELECT - 33 AS col1 FROM tab2 AS cor0 WHERE 86 IN ( + + col1 / ( + CAST ( + col2 AS INTEGER ) * - col1 ) + - col0 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 + - col0 * 89 * + 29 - 96 * - col0 FROM tab1 AS cor0
----
-126721
-211220
-226088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1536
SELECT col1 col2 FROM tab0 AS cor0 WHERE + CAST( + 24 AS SIGNED ) / 7 + + col2 * 3 NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1536
SELECT col1 col2 FROM tab0 AS cor0 WHERE + CAST ( + 24 AS INTEGER ) / 7 + + col2 * 3 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT ( + SUM( DISTINCT - 97 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-1538
SELECT ( + SUM ( DISTINCT - 97 ) ) FROM tab0
----
-97

query I rowsort
SELECT DISTINCT + col0 * + + 89 + - 55 AS col1 FROM tab1
----
4484
7510
8044

query I rowsort
SELECT DISTINCT - 24 FROM tab1 WHERE ( NULL ) IN ( + col1 / - col2 + 58 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 10 + + ( 36 ) + - 36 * - 39 <> + 51 / - 80
----

query I rowsort
SELECT - - 8 * ( + col1 ) FROM tab0 WHERE 74 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT BETWEEN ( col1 + col1 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1545
SELECT ALL + ( 74 ) + - CAST( col2 + - col2 AS SIGNED ) * col0 AS col2 FROM tab2 WHERE NOT - 13 IS NULL
----
74
74
74

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL + ( 74 ) + - CAST ( col2 + - col2 AS INTEGER ) * col0 AS col2 FROM tab2 WHERE NOT - 13 IS NULL
----
74
74
74

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

query I rowsort
SELECT ALL + 99 * + + col2 * - - 83 AS col1 FROM tab1
----
484803
558756
788832

query I rowsort
SELECT 57 + - - col0 + + 51 FROM tab0
----
123
195
205

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

query I rowsort
SELECT + col0 + - + col2 + + col0 FROM tab0 AS cor0
----
-17
164
95

query I rowsort
SELECT col1 + + 28 + - col1 AS col1 FROM tab0 AS cor0
----
28
28
28

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

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

query I rowsort
SELECT - 59 + 70 AS col0 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT col2 * col1 + + col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1555
SELECT CAST( + 25 AS SIGNED ) + + 34 AS col2 FROM tab1 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-1555
SELECT CAST ( + 25 AS INTEGER ) + + 34 AS col2 FROM tab1 AS cor0
----
59
59
59

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN 99 AND - - ( 56 ) + - col2 * - col2
----

query I rowsort
SELECT ALL 7 + - col1 AS col1 FROM tab2 AS cor0
----
-44
-60
-70

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1561
SELECT ALL 84 DIV 6 DIV COUNT( * ) FROM tab1 WHERE NOT + - 89 IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL 84 / 6 / COUNT ( * ) FROM tab1 WHERE NOT + - 89 IS NULL
----
4

query I rowsort
SELECT ALL 25 + - - 38 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT col1 - - col2 * + col0 * - + col1 AS col0 FROM tab0
----
-18249
-57024
-9602

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1565
SELECT CAST( + + MIN( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1565
SELECT CAST ( + + MIN ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
51

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

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

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

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

query I rowsort
SELECT DISTINCT - ( col1 ) * + - 6 * + - col2 * + ( 72 ) + + 43 FROM tab1 AS cor0
----
-127397
-1380629
-580565

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1570
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( - + 0 AS SIGNED ) ) BETWEEN CAST( - 94 AS SIGNED ) AND ( 90 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-1570
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( - + 0 AS INTEGER ) ) BETWEEN CAST ( - 94 AS INTEGER ) AND ( 90 + + col1 )
----

query I rowsort
SELECT DISTINCT - col0 * - - 48 + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 16 AND col1
----

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

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT MIN ( ALL + col0 ) FROM tab2
----
46

query I rowsort
SELECT + ( + 35 ) AS col2 FROM tab0
----
35
35
35

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

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

query II rowsort
SELECT ALL - 30 AS col0, col1 + 34 * col1 FROM tab1
----
-30
1645
-30
175
-30
490

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1577
SELECT CAST( NULL AS SIGNED ) / - SUM( ALL + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT CAST ( NULL AS INTEGER ) / - SUM ( ALL + col1 ) FROM tab2
----
NULL

query I rowsort
SELECT col1 * 15 AS col0 FROM tab1
----
210
705
75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1579
SELECT ALL COUNT ( * ) * - COUNT ( * ) col0 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ALL MAX( ALL - col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL MAX ( ALL - col1 ) AS col0 FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / + col2 < ( CAST( NULL AS SIGNED ) * col2 + + 96 )
----

skipif mysql # not compatible
query I rowsort label-1581
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / + col2 < ( CAST ( NULL AS INTEGER ) * col2 + + 96 )
----

query I rowsort
SELECT DISTINCT - + col1 * - 81 * - 11 AS col2 FROM tab1 AS cor0
----
-12474
-41877
-4455

query I rowsort
SELECT DISTINCT + 56 * col0 - - 27 AS col2 FROM tab1 AS cor0
----
2883
4787
5123

query II rowsort
SELECT DISTINCT - + col0 + + ( - + col0 ) * - + 31, - 69 AS col1 FROM tab1 AS cor0
----
1530
-69
2550
-69
2730
-69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT MIN( DISTINCT + col2 ) * - COUNT( * ) AS col0 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-1586
SELECT MIN ( DISTINCT + col2 ) * - COUNT ( * ) AS col0 FROM tab2
----
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-1587
SELECT - col0 DIV col2 col1, 36 FROM tab1
----
-1
36
-1
36
0
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1587
SELECT - col0 / col2 col1, 36 FROM tab1
----
-1
36
-1
36
0
36

query I rowsort
SELECT + 94 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IN ( - col0 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL - COUNT( * ) + - 58 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL - COUNT ( * ) + - 58 FROM tab1 AS cor0
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col2 + - col0 * col2 * - col1 col0, + col0 col0 FROM tab1 AS cor0
----
25370
85
294032
91
69888
51

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

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE NULL > + + 57
----

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

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab2
----
6

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

query I rowsort
SELECT DISTINCT col1 * - ( + + col1 ) + - col2 AS col0 FROM tab1
----
-2277
-292
-84

query II rowsort
SELECT + 8 AS col0, - 43 FROM tab1
----
8
-43
8
-43
8
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col0 * + + 93 col2 FROM tab2
----
-196788
-380928
-523125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * - col2 * col2 - - col2 col2 FROM tab0
----
-146916
-1490
-33088

query I rowsort
SELECT ALL + col2 + + 74 AS col2 FROM tab0
----
121
173
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 20 col2, col1 + - - col1 AS col1 FROM tab1
----
20
10
20
28
20
94

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1603
SELECT ALL + ( 33 ) DIV - + 3 FROM tab2 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL + ( 33 ) / - + 3 FROM tab2 AS cor0
----
-11
-11
-11

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

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

query II rowsort
SELECT - col0 * - col0 * + + col0 + - - ( - col1 ) - + col1 AS col0, + col1 FROM tab0 AS cor0
----
3213
81
658461
21
912671
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT + col1 + - col0 - col2 + col2 DIV 61 DIV + - 93 * - 56 + - + col0 FROM tab2 cor0
----
-141
-64
-91

skipif mysql # not compatible
query I rowsort label-1606
SELECT + col1 + - col0 - col2 + col2 / 61 / + - 93 * - 56 + - + col0 FROM tab2 cor0
----
-141
-64
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1607
SELECT DISTINCT + col0 DIV - - 86 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT + col0 / - - 86 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + col1 * - 1 FROM tab2 WHERE NULL >= + 17
----

query I rowsort
SELECT ALL col0 + + col0 + 72 * + col2 + + + col1 FROM tab1
----
4423
5125
7028

onlyif mysql # aggregate syntax: 
query II rowsort label-1610
SELECT - 69 * - + 62 AS col0, - COUNT( DISTINCT col2 ) + + - 29 FROM tab2 AS cor0
----
4278
-32

skipif mysql # not compatible
query II rowsort label-1610
SELECT - 69 * - + 62 AS col0, - COUNT ( DISTINCT col2 ) + + - 29 FROM tab2 AS cor0
----
4278
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1611
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + col0 * + + CAST( NULL AS DECIMAL ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1611
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + col0 * + + CAST ( NULL AS REAL ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL - - col2 + + col2 AS col1 FROM tab2 cor0 WHERE col2 * - ( + col0 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 70 * - col0 col2 FROM tab1 AS cor0
----
-3570
-5950
-6370

query I rowsort
SELECT ALL + + ( + 7 ) AS col2 FROM tab2 cor0
----
7
7
7

query II rowsort
SELECT - + 65, - 3 / - col2 FROM tab1 WHERE NOT NULL > NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col1 FROM tab0
----
76
76
76

query I rowsort
SELECT ALL - 27 FROM tab2 AS cor0 WHERE ( NULL ) = ( - - 32 + + ( + - col1 ) )
----

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

query I rowsort
SELECT DISTINCT + 56 + + 59 AS col0 FROM tab2 AS cor0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL 81 + COUNT( * ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL 81 + COUNT ( * ) AS col1 FROM tab1
----
84

query I rowsort
SELECT DISTINCT col2 * + - col0 AS col2 FROM tab2
----
-1058
-2560
-4350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

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

query I rowsort
SELECT ALL + ( 5 ) * + + col1 + - 51 FROM tab1 AS cor0
----
-26
184
19

query I rowsort
SELECT ALL - - 82 * 66 + - + col0 AS col1 FROM tab0 AS cor0
----
5315
5325
5397

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

query II rowsort
SELECT + col2 AS col0, - col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT + 68 * ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-1631
SELECT + 68 * ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-1632
SELECT ALL - - col0 + 44 DIV col2 + 12 * col1 AS col0 FROM tab1 AS cor0
----
145
219
655

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL - - col0 + 44 / col2 + 12 * col1 AS col0 FROM tab1 AS cor0
----
145
219
655

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND + - 33
----

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

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

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

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

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

query I rowsort
SELECT ALL ( + col1 ) + + 91 AS col1 FROM tab2
----
142
158
168

query I rowsort
SELECT - 85 + 72 AS col0 FROM tab1
----
-13
-13
-13

query I rowsort
SELECT + col0 / col0 FROM tab1 WHERE ( ( NULL ) >= - + col0 + - + col2 - col1 )
----

query I rowsort
SELECT DISTINCT col2 * + - 5 - + + ( + col0 ) FROM tab0
----
-137
-250
-592

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT DISTINCT - SUM( DISTINCT + + 40 ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT - SUM ( DISTINCT + + 40 ) FROM tab2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT ( ( - col2 ) ) + col0 DIV - 10 AS col0 FROM tab2
----
-27
-46
-65

skipif mysql # not compatible
query I rowsort label-1642
SELECT ( ( - col2 ) ) + col0 / - 10 AS col0 FROM tab2
----
-27
-46
-65

query I rowsort
SELECT 73 * 20 + - - col2 + - + col0 * + col2 * + 77 + + col1 * + 76 AS col1 FROM tab1
----
-374372
-384256
-471376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1644
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
87
97

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 54 / + col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1649
SELECT - CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1649
SELECT - CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT COUNT( * ) * - ( + 42 ) AS col1 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-1650
SELECT COUNT ( * ) * - ( + 42 ) AS col1 FROM tab2 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-1651
SELECT DISTINCT COUNT( * ) AS col2, 64 FROM tab1 AS cor0
----
3
64

skipif mysql # not compatible
query II rowsort label-1651
SELECT DISTINCT COUNT ( * ) AS col2, 64 FROM tab1 AS cor0
----
3
64

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + ( + ( - - ( + - ( - col1 ) ) ) ) > + 55
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT ALL + col2 DIV + - col0 + - - col2 + + 58 * + col2 AS col1 FROM tab2 WHERE NOT - - 70 IS NULL
----
1357
2360
3422

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL + col2 / + - col0 + - - col2 + + 58 * + col2 AS col1 FROM tab2 WHERE NOT - - 70 IS NULL
----
1357
2360
3422

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT col1 DIV 27 * + col1 col1 FROM tab1
----
0
0
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1655
SELECT col1 / 27 * + col1 col1 FROM tab1
----
0
0
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT ALL + - col0 * 54 + - + CAST( NULL AS SIGNED ) * + col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL + - col0 * 54 + - + CAST ( NULL AS INTEGER ) * + col2 FROM tab2 WHERE NOT NULL IS NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 < 25 + 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 96 col0 FROM tab2
----
-21
-32
-50

query III rowsort
SELECT * FROM tab0 WHERE - - col2 NOT BETWEEN - col2 - + col0 AND NULL
----

query I rowsort
SELECT - 4 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT DISTINCT + 88 + + + 54 FROM tab1 AS cor0
----
142

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 * - col2 * - col0 * 77 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 * - col2 * - col0 * 77 IS NULL
----
3

query II rowsort
SELECT DISTINCT - - ( - 98 ) + + + 10 AS col1, - 60 FROM tab2 cor0
----
-88
-60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT - SUM( DISTINCT 41 ) AS col2 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1670
SELECT - SUM ( DISTINCT 41 ) AS col2 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT - + col2 + + 51 + + col0 - + col1 FROM tab1 AS cor0 WHERE - col1 + col1 + - col0 * - 88 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 * - + col2 + col0 col0 FROM tab0
----
-3416
-643
-7130

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT ALL col2 DIV - + col0 + + col1 col0 FROM tab1
----
13
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1673
SELECT ALL col2 / - + col0 + + col1 col0 FROM tab1
----
13
47
5

query I rowsort
SELECT DISTINCT col2 - + - col0 AS col1 FROM tab2
----
104
133
69

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

query I rowsort
SELECT + col1 - - - col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query II rowsort
SELECT 3 AS col1, col1 FROM tab0 AS cor0
----
3
1
3
21
3
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT DISTINCT + - COUNT( * ) * - SUM( + - col1 ) FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT + - COUNT ( * ) * - SUM ( + - col1 ) FROM tab0 AS cor0
----
-309

onlyif mysql # DIV for integer division: 
query I rowsort label-1680
SELECT col2 DIV 68 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT col2 / 68 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col2 * - - col2 - - 91 AS col0 FROM tab0 AS cor0
----
-2118
-9
-9710

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 93 * 74 + + col1 IS NULL
----

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

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

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

query II rowsort
SELECT + col0 * + col2 AS col2, col2 - - col2 AS col2 FROM tab2 AS cor0
----
1058
46
2560
80
4350
116

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

skipif mysql # not compatible
query I rowsort label-1686
SELECT - + MIN ( ALL 56 ) FROM tab2 AS cor0
----
-56

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

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT + col2 * - + col0 + col1 AS col1 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) >= + col0
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 86 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT - 74 DIV - + 70 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1690
SELECT - 74 / - + 70 AS col1 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT + col0 DIV - + 15 AS col0 FROM tab0
----
-1
-5
-6

skipif mysql # not compatible
query I rowsort label-1691
SELECT + col0 / - + 15 AS col0 FROM tab0
----
-1
-5
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 3 < + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 55 + + col2 AS col2 FROM tab2 cor0
----
113
78
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT ALL - 13 * - + 6 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL - 13 * - + 6 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
81

query I rowsort
SELECT - + ( 9 ) + - 14 AS col1 FROM tab0 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT - 11 + + col0 * - col2 * + col2 FROM tab0 AS cor0
----
-33146
-8711
-950708

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 12 col1 FROM tab1 AS cor0
----
-47
-56
-84

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

query I rowsort
SELECT DISTINCT - - ( - - 8 ) * 76 + - col0 AS col1 FROM tab1 AS cor0
----
517
523
557

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > - col0 / col2 - - ( col1 )
----

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

query II rowsort
SELECT DISTINCT col2 / 5, col2 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + - ( + col1 ) AS col2 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT + MAX( DISTINCT - col1 ) - + + 44 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1707
SELECT + MAX ( DISTINCT - col1 ) - + + 44 FROM tab1 AS cor0
----
-49

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

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

query I rowsort
SELECT + - col1 - col2 * - - col1 FROM tab1 AS cor0
----
-1358
-300
-3243

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT ALL + MIN( + 47 ) AS col1 FROM tab0 AS cor0 WHERE + 35 <> 15
----
47

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL + MIN ( + 47 ) AS col1 FROM tab0 AS cor0 WHERE + 35 <> 15
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT DISTINCT 92 + + COUNT( * ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT 92 + + COUNT ( * ) FROM tab2
----
95

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

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

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

query II rowsort
SELECT + col0, + 39 AS col0 FROM tab1 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT 94 + - col0 FROM tab1
----
3
43
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1718
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + + col0 col2 FROM tab0
----
NULL

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

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

query I rowsort
SELECT - 79 * + - col0 FROM tab2
----
3634
5056
5925

query I rowsort
SELECT 90 AS col1 FROM tab2 cor0
----
90
90
90

query II rowsort
SELECT ALL 47 AS col2, col2 AS col0 FROM tab0 cor0 WHERE NOT + 97 + + 32 * - col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1723
SELECT - CAST ( - 67 AS INTEGER ) FROM tab2 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT DISTINCT - SUM( - 74 ) AS col0 FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT - SUM ( - 74 ) AS col0 FROM tab1 AS cor0
----
222

query I rowsort
SELECT 57 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL 87 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT ALL - - 92 AS col1 FROM tab2 AS cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL MAX( ALL - - 20 ) AS col1 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL MAX ( ALL - - 20 ) AS col1 FROM tab2 AS cor0
----
20

query II rowsort
SELECT DISTINCT - col0 + 90 AS col1, col2 * ( - + ( + col1 ) ) AS col0 FROM tab0 cor0
----
-7
-99
3
-210
75
-3807

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT IN ( col2, ( - 48 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 31 + - 80 AS col1 FROM tab0
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1732
SELECT - CAST( - 28 AS SIGNED ) * - - col2 + + col2 AS col1 FROM tab0
----
1363
2871
290

skipif mysql # not compatible
query I rowsort label-1732
SELECT - CAST ( - 28 AS INTEGER ) * - - col2 + + col2 AS col1 FROM tab0
----
1363
2871
290

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

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL + SUM ( DISTINCT col2 ) FROM tab0
----
156

query I rowsort
SELECT - col0 + - + col0 AS col0 FROM tab0
----
-174
-194
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( - 10 ) col0 FROM tab2
----
510
670
770

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT - SUM( 33 ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-1736
SELECT - SUM ( 33 ) FROM tab2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1737
SELECT - ( - COUNT( * ) ) DIV 2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1737
SELECT - ( - COUNT ( * ) ) / 2 FROM tab1
----
1

query III rowsort
SELECT * FROM tab1 WHERE - + 59 > 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1739
SELECT * FROM tab1 AS cor0 WHERE col2 <> + + CAST( - 19 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1739
SELECT * FROM tab1 AS cor0 WHERE col2 <> + + CAST ( - 19 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT col1 * 17 AS col1 FROM tab0 AS cor0
----
1377
17
357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 92 * col0 + col0 col0 FROM tab0 AS cor0
----
1395
8091
9021

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

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

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE NOT col1 * - col0 * 68 * - 12 + 85 / + - col1 > - col0
----

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

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

query I rowsort
SELECT ALL 74 + - + 72 + + col2 - col0 FROM tab2 AS cor0
----
-15
-21
-22

query I rowsort
SELECT - - ( + col0 ) * + - col1 + col1 AS col1 FROM tab0 AS cor0
----
-1134
-1806
-96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1748
SELECT + - MIN ( - + col2 ) col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT 18 * + + col2 FROM tab1 AS cor0
----
1062
1224
1728

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

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

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

query I rowsort
SELECT 44 - + col2 + + 55 AS col2 FROM tab2
----
41
59
76

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 <= 8 * col1 + + 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 72 NOT BETWEEN - - col1 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col0 * + col1 * col1 FROM tab1
----
201019
2125
9996

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 4 ) NOT BETWEEN ( + col0 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 70 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
-179200
-304500
-74060

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT + COUNT( * ) * - - 51 FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-1761
SELECT + COUNT ( * ) * - - 51 FROM tab2 cor0
----
153

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

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

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

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

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

query I rowsort
SELECT DISTINCT 94 + + 14 AS col2 FROM tab2
----
108

query I rowsort
SELECT ALL 81 * + col2 FROM tab0
----
3807
8019
810

query I rowsort
SELECT + 14 + + 88 * - col0 AS col0 FROM tab2
----
-4034
-5618
-6586

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT + col2 * 5 / - 53 + - 40 <> ( - col2 )
----

query I rowsort
SELECT ALL 41 * - col1 FROM tab2
----
-2091
-2747
-3157

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL + 68 - + COUNT( * ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL + 68 - + COUNT ( * ) FROM tab2
----
65

query I rowsort
SELECT 6 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 12 - col1 AS col2 FROM tab1
----
-2
-35
7

query I rowsort
SELECT 7 - + 49 * col0 AS col0 FROM tab1 AS cor0
----
-2492
-4158
-4452

query II rowsort
SELECT + col0 - - col1, - col1 AS col2 FROM tab0 AS cor0
----
108
-21
96
-81
98
-1

query III rowsort
SELECT * FROM tab0 cor0 WHERE 16 - - 13 IS NULL
----

query I rowsort
SELECT + 15 * + 83 FROM tab2 cor0 WHERE col2 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1780
SELECT - col0 DIV - + col1, + col0 AS col0 FROM tab1 AS cor0
----
1
91
17
85
3
51

skipif mysql # not compatible
query II rowsort label-1780
SELECT - col0 / - + col1, + col0 AS col0 FROM tab1 AS cor0
----
1
91
17
85
3
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT DISTINCT - - SUM( - - 3 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT - - SUM ( - - 3 ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - col1 * - - 97 FROM tab1
----
-1358
-4559
-485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 61 AS col2, - 81 + + - col2 col2 FROM tab0
----
61
-128
61
-180
61
-91

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1785
SELECT DISTINCT + 49, - 51 * - COUNT( * ) AS col1 FROM tab2
----
49
153

skipif mysql # not compatible
query II rowsort label-1785
SELECT DISTINCT + 49, - 51 * - COUNT ( * ) AS col1 FROM tab2
----
49
153

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + + col0 ) col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-1791
SELECT + COUNT( * ) - + 73 col1, + SUM( ALL 52 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-64
468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1791
SELECT + COUNT ( * ) - + 73 col1, + SUM ( ALL 52 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-64
468

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

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

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

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

query I rowsort
SELECT ALL - - col1 * + 50 * - 69 FROM tab1 AS cor0
----
-162150
-17250
-48300

query I rowsort
SELECT + + col0 + + col0 + - col0 * 34 FROM tab0 AS cor0
----
-2784
-3104
-480

query I rowsort
SELECT ALL - - col0 * - col2 + - 11 + - + 69 * - 40 * + col1 FROM tab1 AS cor0
----
123521
33733
8774

onlyif mysql # DIV for integer division: 
query I rowsort label-1797
SELECT - 4 DIV - col1 + + col1 col2 FROM tab0 AS cor0
----
21
5
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1797
SELECT - 4 / - col1 + + col1 col2 FROM tab0 AS cor0
----
21
5
81

query I rowsort
SELECT 4 + col1 FROM tab2
----
55
71
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 58 col2 FROM tab1
----
-2726
-290
-812

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 >= - - col0 - col1
----
15
81
47
97
1
99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT DISTINCT + col0 DIV - 19 FROM tab0
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT + col0 / - 19 FROM tab0
----
-4
-5
0

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

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

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

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

query I rowsort
SELECT ( - - col2 ) + col1 + + - ( 79 ) FROM tab0
----
-48
21
49

query I rowsort
SELECT DISTINCT - 8 + 11 AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL 59 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # DIV for integer division: 
query I rowsort label-1808
SELECT DISTINCT - 4 DIV + - col1 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1808
SELECT DISTINCT - 4 / + - col1 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= 30
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT DISTINCT SUM( - 65 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT SUM ( - 65 ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT col0 * - - col1 + + col2 AS col1 FROM tab2 cor0
----
2369
4968
5083

query I rowsort
SELECT + 23 * + + col2 AS col0 FROM tab0 AS cor0
----
1081
2277
230

query I rowsort
SELECT - col0 * + - 42 AS col2 FROM tab2 AS cor0
----
1932
2688
3150

query I rowsort
SELECT DISTINCT - ( + ( + - 41 ) ) * + - 61 + - col0 + + col1 * + col0 AS col0 FROM tab2
----
-201
2363
2449

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1817
SELECT DISTINCT + + col0 DIV + 68 FROM tab0 WHERE NULL IS NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT + + col0 / + 68 FROM tab0 WHERE NULL IS NULL
----
0
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1819
SELECT ALL ( 43 ) AS col1, - COUNT( * ) DIV - - COUNT( * ) FROM tab1
----
43
-1

skipif mysql # not compatible
query II rowsort label-1819
SELECT ALL ( 43 ) AS col1, - COUNT ( * ) / - - COUNT ( * ) FROM tab1
----
43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT + + MIN( ALL 57 ) FROM tab1 cor0
----
57

skipif mysql # not compatible
query I rowsort label-1820
SELECT + + MIN ( ALL 57 ) FROM tab1 cor0
----
57

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1822
SELECT - MIN( ALL - 63 ), 91 AS col0 FROM tab1 AS cor0
----
63
91

skipif mysql # not compatible
query II rowsort label-1822
SELECT - MIN ( ALL - 63 ), 91 AS col0 FROM tab1 AS cor0
----
63
91

query I rowsort
SELECT + col1 + + 7 FROM tab2
----
58
74
84

query I rowsort
SELECT 96 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 5 AS col1, col2 col2 FROM tab2 cor0
----
5
23
5
40
5
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT - col0 * + col2 DIV + col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1827
SELECT - col0 * + col2 / + col2 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 / - col1 * + 91 + - 68 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0, col2 + col2 + - 43 FROM tab1 AS cor0
----
51
149
85
75
91
93

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 * + - col1 + + 26 - - col1 * + - col0 col1 FROM tab0 AS cor0 WHERE 30 IS NULL
----

query I rowsort
SELECT 42 + 93 FROM tab1
----
135
135
135

query I rowsort
SELECT DISTINCT col0 * + col1 * + col1 FROM tab1 WHERE + col1 * - col0 * - 82 > col1 AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1834
SELECT 22 + CAST( + 77 AS SIGNED ) FROM tab1
----
99
99
99

skipif mysql # not compatible
query I rowsort label-1834
SELECT 22 + CAST ( + 77 AS INTEGER ) FROM tab1
----
99
99
99

query I rowsort
SELECT DISTINCT ( 64 ) AS col2 FROM tab1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT + ( MIN( - col2 ) ) + COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-1836
SELECT + ( MIN ( - col2 ) ) + COUNT ( * ) FROM tab0
----
-96

query I rowsort
SELECT ALL + 17 - 75 AS col0 FROM tab1
----
-58
-58
-58

query I rowsort
SELECT + col0 * + col0 * col1 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58

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

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

query I rowsort
SELECT DISTINCT - + 21 * - col0 + + col0 AS col2 FROM tab0 AS cor0
----
1914
2134
330

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT DISTINCT - SUM( - col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT - SUM ( - col2 ) AS col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL + + 89 * - 16 + - 6 * - + col1 AS col0 FROM tab2 AS cor0
----
-1022
-1118
-962

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1844
SELECT ALL - ( - CAST( 40 AS SIGNED ) ) DIV - col0 AS col2 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL - ( - CAST ( 40 AS INTEGER ) ) / - col0 AS col2 FROM tab0 cor0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1845
SELECT ALL + 79 AS col1, - COUNT( * ) AS col1 FROM tab0
----
79
-3

skipif mysql # not compatible
query II rowsort label-1845
SELECT ALL + 79 AS col1, - COUNT ( * ) AS col1 FROM tab0
----
79
-3

query II rowsort
SELECT + 67 * - 89, - 15 AS col2 FROM tab2 WHERE NOT ( + 42 * 65 IS NULL )
----
-5963
-15
-5963
-15
-5963
-15

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

query I rowsort
SELECT 13 * 43 FROM tab1
----
559
559
559

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 5 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1852
SELECT + 40 col0 FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) + + - col0 = col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 88 * - col1 col0 FROM tab2 AS cor0
----
23
-4488
40
-6776
58
-5896

query I rowsort
SELECT DISTINCT + - 33 * - 16 AS col2 FROM tab0 AS cor0
----
528

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL MAX( DISTINCT 40 ) FROM tab2 cor0
----
40

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL MAX ( DISTINCT 40 ) FROM tab2 cor0
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT ALL + + COUNT( * ) + + - 79 AS col0 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL + + COUNT ( * ) + + - 79 AS col0 FROM tab1 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT - MAX( + col1 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT - MAX ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT MIN( col2 ) FROM tab2 cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT MIN ( col2 ) FROM tab2 cor0 WHERE col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT DISTINCT - COUNT( * ) + - 49 * + SUM( - col2 ) FROM tab0 AS cor0
----
7641

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT - COUNT ( * ) + - 49 * + SUM ( - col2 ) FROM tab0 AS cor0
----
7641

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1862
SELECT ALL col0 + 51 - - + col2 * col2 AS col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
1715
NULL
3490
NULL
626
NULL

skipif mysql # not compatible
query II rowsort label-1862
SELECT ALL col0 + 51 - - + col2 * col2 AS col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
1715
NULL
3490
NULL
626
NULL

query I rowsort
SELECT DISTINCT + 35 + col2 FROM tab0
----
134
45
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1864
SELECT ALL + 30 - + + col0 * CAST( + col1 AS SIGNED ) FROM tab2
----
-2316
-4898
-4995

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + 30 - + + col0 * CAST ( + col1 AS INTEGER ) FROM tab2
----
-2316
-4898
-4995

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1865
SELECT ALL + + col2 * + col0, + CAST( + - CAST( - col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 WHERE ( - col1 * col2 ) BETWEEN col0 AND col0 + - + 5
----

skipif mysql # not compatible
query II rowsort label-1865
SELECT ALL + + col2 * + col0, + CAST ( + - CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 WHERE ( - col1 * col2 ) BETWEEN col0 AND col0 + - + 5
----

query I rowsort
SELECT ALL col1 * + col0 - + 80 + + col2 FROM tab1
----
404
4265
730

query I rowsort
SELECT 20 * + col2 / - + 15 FROM tab1 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL - 61 - - + col2 * + col1 * + col0 FROM tab0
----
18209
57044
9542

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 / + col0 * - + col0 < col0 - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( col2 ) + - - col2 + + - col0 - - + col1 * - - col0 * col1 AS col2 FROM tab1
----
10137
201064
2158

query I rowsort
SELECT ALL 98 - - - col2 FROM tab0
----
-1
51
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT DISTINCT + SUM( DISTINCT - 38 ) FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT + SUM ( DISTINCT - 38 ) FROM tab2
----
-38

query I rowsort
SELECT DISTINCT col0 - - 37 FROM tab2
----
101
112
83

query I rowsort
SELECT - col1 + + 88 AS col0 FROM tab1 AS cor0
----
41
74
83

query I rowsort
SELECT - 91 AS col0 FROM tab2 cor0
----
-91
-91
-91

query II rowsort
SELECT - + 77 * + col1 AS col2, + col2 AS col1 FROM tab2 AS cor0
----
-3927
23
-5159
58
-5929
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT DISTINCT col1 * col1 * col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT col1 * col1 * col2 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT + COUNT( * ) * 5 * + 82 * - 78 AS col1 FROM tab0 cor0
----
-95940

skipif mysql # not compatible
query I rowsort label-1879
SELECT + COUNT ( * ) * 5 * + 82 * - 78 AS col1 FROM tab0 cor0
----
-95940

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1881
SELECT ALL + 2 DIV COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL + 2 / COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT DISTINCT + ( + MAX( DISTINCT - - 70 ) ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT + ( + MAX ( DISTINCT - - 70 ) ) FROM tab1
----
70

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

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

skipif mysql # not compatible
query I rowsort label-1884
SELECT - MIN ( + col1 ) AS col1 FROM tab2 cor0
----
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col1 * - col1 / - col1 / - - col2
----

query I rowsort
SELECT DISTINCT + col1 * + ( + + 41 ) AS col1 FROM tab1 AS cor0
----
1927
205
574

query I rowsort
SELECT ALL + 86 + col0 FROM tab2 AS cor0
----
132
150
161

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE NULL <> + 32
----

query I rowsort
SELECT + 96 + + col2 AS col2 FROM tab0 AS cor0
----
106
143
195

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1892
SELECT - 62 * + col0 * - col0 + CAST( NULL AS DECIMAL ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT - 62 * + col0 * - col0 + CAST ( NULL AS REAL ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 53 + - 75 * + col1 * 6 * + - col0 FROM tab2 AS cor0
----
1055647
2217547
2261197

query I rowsort
SELECT ALL 96 - - - 18 FROM tab2
----
78
78
78

query II rowsort
SELECT ALL + col2 - - col1 AS col2, ( col2 ) AS col0 FROM tab2
----
117
40
125
58
74
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + 15 + + - col1 * col2 * - - 78 col1 FROM tab2
----
-241395
-304113
-92259

query I rowsort
SELECT 36 * + col1 FROM tab0 AS cor0
----
2916
36
756

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

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

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

query II rowsort
SELECT + col1 * + col2 AS col0, + 95 * + - col0 AS col1 FROM tab1 AS cor0
----
1344
-4845
295
-8075
3196
-8645

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 34 IS NOT NULL
----

query II rowsort
SELECT - 60 AS col0, - ( + ( + 48 ) ) FROM tab1
----
-60
-48
-60
-48
-60
-48

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

query II rowsort
SELECT + col2 AS col0, - 38 + + col0 AS col0 FROM tab0 AS cor0
----
10
49
47
-23
99
59

query II rowsort
SELECT + col0, - col2 + + + col1 FROM tab1 AS cor0
----
51
-82
85
-54
91
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1906
SELECT DISTINCT 63 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT 63 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1909
SELECT COUNT ( col2 ) FROM tab0 AS cor0 WHERE NOT ( - 90 ) IS NOT NULL
----
0

query I rowsort
SELECT + col2 * + + 5 / + + 68 * col0 + - - col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 58 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT + 84 DIV + col1 + col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-1912
SELECT + 84 / + col1 + col0 FROM tab2
----
47
65
76

query I rowsort
SELECT + 32 * col2 AS col0 FROM tab1
----
1888
2176
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) >= + col0
----
0

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) >= + col0
----
0

query I rowsort
SELECT ALL + ( 26 ) * + col1 * 42 AS col1 FROM tab1 AS cor0
----
15288
51324
5460

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + 25 > + - col1 / + 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + 13 + + col1 FROM tab2
----
1042
649
909

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT - COUNT( * ) + + - 53 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-1919
SELECT - COUNT ( * ) + + - 53 FROM tab1
----
-56

query I rowsort
SELECT ALL + ( + + 62 ) * col0 FROM tab1
----
3162
5270
5642

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT + MIN( DISTINCT - + 9 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1921
SELECT + MIN ( DISTINCT - + 9 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT col2 + - 37 * - col2 FROM tab0
----
1786
3762
380

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT 58 * SUM( - - col0 ) FROM tab0 AS cor0
----
11542

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT 58 * SUM ( - - col0 ) FROM tab0 AS cor0
----
11542

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

skipif mysql # not compatible
query II rowsort label-1924
SELECT DISTINCT + - COUNT ( * ), - 57 AS col2 FROM tab2 cor0
----
-3
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1925
SELECT ALL - + SUM( ALL + + col0 ) DIV - 64 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL - + SUM ( ALL + + col0 ) / - 64 FROM tab0 AS cor0
----
3

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

query II rowsort
SELECT - - 60 * + col1 * + 32 AS col1, - 30 * + col2 AS col1 FROM tab1 AS cor0
----
26880
-2880
90240
-2040
9600
-1770

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

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

query I rowsort
SELECT DISTINCT - col2 + - - col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query II rowsort label-1930
SELECT DISTINCT + 18 * + col0 + 61 + col1 DIV + col2 - + col2, col1 FROM tab0 AS cor0
----
1619
21
1708
1
285
81

skipif mysql # not compatible
query II rowsort label-1930
SELECT DISTINCT + 18 * + col0 + 61 + col1 / + col2 - + col2, col1 FROM tab0 AS cor0
----
1619
21
1708
1
285
81

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

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

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

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

query I rowsort
SELECT DISTINCT col1 - + 94 AS col2 FROM tab1
----
-47
-80
-89

query I rowsort
SELECT DISTINCT + col0 * col1 + + + col0 FROM tab1
----
4368
510
765

query I rowsort
SELECT col2 - + 58 AS col0 FROM tab0
----
-11
-48
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT 75 - MIN( ALL - 5 ) * + 44 AS col1 FROM tab0
----
295

skipif mysql # not compatible
query I rowsort label-1937
SELECT 75 - MIN ( ALL - 5 ) * + 44 AS col1 FROM tab0
----
295

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1940
SELECT ALL SUM( DISTINCT + 36 ) AS col1, + 36 FROM tab1
----
36
36

skipif mysql # not compatible
query II rowsort label-1940
SELECT ALL SUM ( DISTINCT + 36 ) AS col1, + 36 FROM tab1
----
36
36

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1942
SELECT DISTINCT + col2, col2 + - col2 DIV - 37 col0 FROM tab2
----
23
23
40
41
58
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1942
SELECT DISTINCT + col2, col2 + - col2 / - 37 col0 FROM tab2
----
23
23
40
41
58
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1943
SELECT + 81 AS col1, - col0 * - + 84 * + - CAST( + col2 AS SIGNED ) + - 1 FROM tab0 cor0
----
81
-59221
81
-73081
81
-806653

skipif mysql # not compatible
query II rowsort label-1943
SELECT + 81 AS col1, - col0 * - + 84 * + - CAST ( + col2 AS INTEGER ) + - 1 FROM tab0 cor0
----
81
-59221
81
-73081
81
-806653

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - - col1 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1945
SELECT * FROM tab0 WHERE NOT + CAST( - - col1 AS SIGNED ) * - - col2 <= + + 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1945
SELECT * FROM tab0 WHERE NOT + CAST ( - - col1 AS INTEGER ) * - - col2 <= + + 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT - - ( - + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT - - SUM( ALL + + 88 ) FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-1949
SELECT - - SUM ( ALL + + 88 ) FROM tab1 AS cor0
----
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 7 + ( - col1 ) col1, - 24 FROM tab1
----
-40
-24
-7
-24
2
-24

query I rowsort
SELECT ALL ( - 27 ) AS col0 FROM tab0
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1952
SELECT ALL + - 54 FROM tab2 WHERE NOT NULL BETWEEN + + CAST( NULL AS SIGNED ) AND + + col2
----

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL + - 54 FROM tab2 WHERE NOT NULL BETWEEN + + CAST ( NULL AS INTEGER ) AND + + col2
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1954
SELECT DISTINCT 60 AS col1, COUNT( * ) AS col2 FROM tab0
----
60
3

skipif mysql # not compatible
query II rowsort label-1954
SELECT DISTINCT 60 AS col1, COUNT ( * ) AS col2 FROM tab0
----
60
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 + - ( + col2 ) col0 FROM tab0 AS cor0
----
-18
34
71

query I rowsort
SELECT ALL - col1 * - 33 * col2 * - col2 AS col2 FROM tab2 AS cor0
----
-4065600
-7437804
-890307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT + 90 / - col0 + + col0 + - col0 FROM tab0 AS cor0 WHERE - 85 * - CAST( NULL AS SIGNED ) <> + 17 + col0
----

skipif mysql # not compatible
query I rowsort label-1958
SELECT + 90 / - col0 + + col0 + - col0 FROM tab0 AS cor0 WHERE - 85 * - CAST ( NULL AS INTEGER ) <> + 17 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL 64 + - COUNT( * ) col2 FROM tab2
----
61

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

query I rowsort
SELECT ALL ( - 28 ) * - 62 FROM tab2
----
1736
1736
1736

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT SUM( 85 ) col2 FROM tab2
----
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1961
SELECT SUM ( 85 ) col2 FROM tab2
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-1962
SELECT ALL - col2 DIV - 38 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL - col2 / - 38 FROM tab1
----
1
1
2

query I rowsort
SELECT col1 * + 58 + - 43 AS col0 FROM tab1 WHERE NOT NULL BETWEEN col0 / col0 AND ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT 9 + SUM( + 78 ) FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-1965
SELECT 9 + SUM ( + 78 ) FROM tab1
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT + MIN( 58 ) + + 75 FROM tab0
----
133

skipif mysql # not compatible
query I rowsort label-1966
SELECT + MIN ( 58 ) + + 75 FROM tab0
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1967
SELECT 21 DIV MIN( DISTINCT 24 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1967
SELECT 21 / MIN ( DISTINCT 24 ) AS col1 FROM tab1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT ALL 12 DIV + 55 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL 12 / + 55 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 1 - 97 AS col0 FROM tab0
----
-96

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

query I rowsort
SELECT + 48 * ( - col2 * - col2 ) + + col2 FROM tab0
----
106079
470547
4810

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1974
SELECT - ( col0 ) DIV + 95 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1974
SELECT - ( col0 ) / + 95 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1975
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= - CAST( NULL AS SIGNED ) / col0 + 53
----

skipif mysql # not compatible
query III rowsort label-1975
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= - CAST ( NULL AS INTEGER ) / col0 + 53
----

query I rowsort
SELECT + 92 + col1 FROM tab1
----
106
139
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1977
SELECT DISTINCT col1 FROM tab1 WHERE + CAST( NULL AS SIGNED ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT col1 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT DISTINCT SUM( + 72 ) * 97 FROM tab0
----
20952

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT SUM ( + 72 ) * 97 FROM tab0
----
20952

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT 62 + COUNT( * ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-1979
SELECT 62 + COUNT ( * ) FROM tab2
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL - COUNT( * ) * AVG ( - col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - COUNT ( * ) * AVG ( - col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1982
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-1982
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 cor0 WHERE + col0 * + col1 BETWEEN ( col0 ) AND ( - 19 )
----

query I rowsort
SELECT DISTINCT + 90 * + 33 AS col2 FROM tab0 cor0
----
2970

query I rowsort
SELECT col0 * 36 AS col1 FROM tab0 cor0
----
3132
3492
540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1987
SELECT DISTINCT CAST( - SUM( DISTINCT + col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1987
SELECT DISTINCT CAST ( - SUM ( DISTINCT + col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-156

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

query I rowsort
SELECT ALL 78 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col2 FROM tab0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) = ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col1 FROM tab2
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col2 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT MAX( DISTINCT 42 ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-1994
SELECT MAX ( DISTINCT 42 ) FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT DISTINCT MAX( DISTINCT + 31 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
-279

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT MAX ( DISTINCT + 31 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
-279

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

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

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

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT col0 / CAST ( NULL AS REAL ) + + 59 FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT col0 * col2 - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = col2
----

query I rowsort
SELECT ALL - + 1 * col1 + col2 AS col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT DISTINCT + COUNT( * ) + 23 FROM tab0 cor0
----
26

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT + COUNT ( * ) + 23 FROM tab0 cor0
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT DISTINCT - MIN( DISTINCT - 80 ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT - MIN ( DISTINCT - 80 ) FROM tab1
----
80

query I rowsort
SELECT + col0 + + col1 * - 45 AS col1 FROM tab1
----
-140
-2024
-579

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE NOT + 13 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 13 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL COUNT( * ) + + - ( SUM( col0 ) ) AS col2 FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL COUNT ( * ) + + - ( SUM ( col0 ) ) AS col2 FROM tab2
----
-182

query I rowsort
SELECT ALL 75 * - - col0 * - col2 FROM tab1
----
-367200
-376125
-464100

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT SUM( - 32 ) * COUNT( * ) col0 FROM tab1
----
-288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2010
SELECT SUM ( - 32 ) * COUNT ( * ) col0 FROM tab1
----
-288

query I rowsort
SELECT ALL + col2 * + 38 AS col0 FROM tab0
----
1786
3762
380

query I rowsort
SELECT col0 * + + col1 AS col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT 87 * - COUNT( * ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-2013
SELECT 87 * - COUNT ( * ) FROM tab0
----
-261

query I rowsort
SELECT ALL - ( col1 ) + 40 * - 50 AS col0 FROM tab0 WHERE ( col2 + col0 ) < 69 * col1
----
-2021
-2081

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

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

query I rowsort
SELECT DISTINCT col2 + ( 87 ) FROM tab1 cor0
----
146
155
183

query I rowsort
SELECT - - col0 - + - col2 + col2 * col0 FROM tab1 AS cor0
----
5043
5159
6347

query I rowsort
SELECT + 14 + - col2 + col0 FROM tab0 AS cor0
----
-18
12
91

query I rowsort
SELECT DISTINCT + 62 + + 91 * 32 * - 63 - + col1 FROM tab0
----
-183395
-183415
-183475

query I rowsort
SELECT - 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2023
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-2024
SELECT ALL COUNT( * ), + COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2024
SELECT ALL COUNT ( * ), + COUNT ( * ) AS col1 FROM tab0
----
3
3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2026
SELECT DISTINCT COUNT( * ) col1, - MIN( ALL col1 ) DIV COUNT( * ) AS col0 FROM tab2
----
3
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2026
SELECT DISTINCT COUNT ( * ) col1, - MIN ( ALL col1 ) / COUNT ( * ) AS col0 FROM tab2
----
3
-17

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

query I rowsort
SELECT ALL - - col0 + - col2 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 54 IS NULL
----
-1536
-3289
-483

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2029
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT ( - 92 + + - col2 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL + COUNT( ALL + 54 ) * COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT - col1 NOT BETWEEN ( + - col0 ) AND + 63 + 53 * 43
----
9

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL + COUNT ( ALL + 54 ) * COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT - col1 NOT BETWEEN ( + - col0 ) AND + 63 + 53 * 43
----
9

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 53 <> ( + 2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL SUM( DISTINCT - 85 ) + - 2 AS col1 FROM tab0 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL SUM ( DISTINCT - 85 ) + - 2 AS col1 FROM tab0 cor0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2035
SELECT ALL col0 * col2 + - - 49 DIV 83 col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2035
SELECT ALL col0 * col2 + - - 49 / 83 col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL - - 1 * col0 * - 31 AS col2 FROM tab2 AS cor0
----
-1426
-1984
-2325

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 - + col0 IS NOT NULL
----

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

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

query I rowsort
SELECT - - 61 FROM tab1 WHERE NOT - 40 IS NULL
----
61
61
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT 34 DIV + + col0 * - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2040
SELECT 34 / + + col0 * - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL ( col2 ) * + + col0 AS col1 FROM tab0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 NOT BETWEEN + 4 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2043
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 1 + + - CAST( NULL AS DECIMAL ) + - + col0 ) NOT IN ( - 37 * + col1 )
----

skipif mysql # not compatible
query III rowsort label-2043
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 1 + + - CAST ( NULL AS REAL ) + - + col0 ) NOT IN ( - 37 * + col1 )
----

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

query I rowsort
SELECT + 41 FROM tab0 WHERE NOT - ( + 1 ) + - col1 * col1 IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2048
SELECT - COUNT( * ) DIV 26 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT - COUNT ( * ) / 26 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2049
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( - col0, - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2049
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 NOT IN ( - col0, - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) )
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT ALL + col1 + - + col0 + + CAST( NULL AS SIGNED ) + - col1 / CAST( 66 AS SIGNED ) * 21 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL + col1 + - + col0 + + CAST ( NULL AS INTEGER ) + - col1 / CAST ( 66 AS INTEGER ) * 21 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + - 61 + col2 AS col2 FROM tab1 AS cor0
----
-2
35
7

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

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

skipif mysql # not compatible
query II rowsort label-2055
SELECT col2, col0 / - col0 AS col2 FROM tab1 AS cor0
----
59
-1
68
-1
96
-1

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

query I rowsort
SELECT ALL + col1 + 71 AS col2 FROM tab0 WHERE ( NOT ( - 71 * 6 ) IS NULL )
----
152
72
92

query II rowsort
SELECT ALL col2 AS col2, + col0 FROM tab2
----
23
46
40
64
58
75

query II rowsort
SELECT DISTINCT col1 AS col1, 81 FROM tab1
----
14
81
47
81
5
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 75 IS NOT NULL
----

query II rowsort
SELECT col1 * col0 + - col2 - + col1, 11 + + - col0 AS col0 FROM tab2 AS cor0
----
2272
-35
4811
-53
4900
-64

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
198
20
94

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 61 BETWEEN + 8 AND ( + - 25 / + + col1 * + col2 * col0 )
----

query I rowsort
SELECT ALL + col2 + + 76 FROM tab0 AS cor0
----
123
175
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT DISTINCT COUNT( * ) * 81 + - 52 AS col0 FROM tab1
----
191

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT COUNT ( * ) * 81 + - 52 AS col0 FROM tab1
----
191

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - ( - col2 ) - - 85 * - + col2 AND ( NULL ) AND NOT ( 11 + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < col1 + - + col0 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT + SUM( DISTINCT - 91 ) * + + COUNT( * ) FROM tab2 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2069
SELECT + SUM ( DISTINCT - 91 ) * + + COUNT ( * ) FROM tab2 cor0
----
-273

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

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

query I rowsort
SELECT col1 * 58 * 26 + + + col1 FROM tab0 AS cor0
----
122229
1509
31689

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

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 cor0 WHERE + col1 IN ( - col2 * - 4 * - col1 + - - col1 )
----

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

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

query II rowsort
SELECT col1, - col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT - 75 DIV col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2076
SELECT - 75 / col1 FROM tab2
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT + 42 DIV col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2077
SELECT + 42 / col0 FROM tab0
----
0
0
2

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 67 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, 81 col0 FROM tab2
----
46
81
64
81
75
81

query II rowsort
SELECT DISTINCT col1, 68 FROM tab2
----
51
68
67
68
77
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2082
SELECT + ( - - col2 ) DIV + col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2082
SELECT + ( - - col2 ) / + col2 FROM tab1
----
1
1
1

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

query I rowsort
SELECT - - col2 * - col0 + + 33 - + col1 FROM tab2 AS cor0
----
-1076
-2604
-4384

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

query I rowsort
SELECT + - 66 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT - MIN( ALL + col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT - MIN ( ALL + col0 ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT col0 + col1 + + - col2 FROM tab2
----
101
74
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2089
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2089
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

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

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

query I rowsort
SELECT DISTINCT + 65 * + 80 FROM tab2 cor0
----
5200

query I rowsort
SELECT DISTINCT + + col2 + - - col0 AS col0 FROM tab0 AS cor0
----
196
62
97

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2094
SELECT ALL + COUNT( * ) + - 6 + + - 18 * - COUNT( * ) * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2094
SELECT ALL + COUNT ( * ) + - 6 + + - 18 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 72 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT ALL + COUNT( * ) + - 83 * - - ( 43 ) * + COUNT( 78 ) AS col2 FROM tab2 AS cor0
----
-10704

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + COUNT ( * ) + - 83 * - - ( 43 ) * + COUNT ( 78 ) AS col2 FROM tab2 AS cor0
----
-10704

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

query I rowsort
SELECT DISTINCT - col0 + - - col1 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT 7 + 77 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT + 80 * - SUM( - 20 ) AS col0 FROM tab0
----
4800

skipif mysql # not compatible
query I rowsort label-2101
SELECT + 80 * - SUM ( - 20 ) AS col0 FROM tab0
----
4800

query I rowsort
SELECT DISTINCT 67 - + col0 FROM tab0
----
-20
-30
52

query I rowsort
SELECT + col1 * + 91 AS col2 FROM tab0
----
1911
7371
91

query I rowsort
SELECT ALL col0 + - - col0 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT + 13 * + COUNT( * ) AS col0 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT + 13 * + COUNT ( * ) AS col0 FROM tab2
----
39

query II rowsort
SELECT ALL + col2, + col2 AS col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2107
SELECT DISTINCT + CAST( + 25 AS SIGNED ) AS col2 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT + CAST ( + 25 AS INTEGER ) AS col2 FROM tab2
----
25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT ALL SUM( ALL - ( - 20 ) ) AS col0 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL SUM ( ALL - ( - 20 ) ) AS col0 FROM tab1
----
60

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

query I rowsort
SELECT 68 + - col1 AS col1 FROM tab2 cor0
----
-9
1
17

query I rowsort
SELECT DISTINCT 32 * + col0 AS col1 FROM tab1
----
1632
2720
2912

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> 96
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT + + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT - 98 IN ( + 6, 45 / + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-2116
SELECT + + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT - 98 IN ( + 6, 45 / + col0 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 36 * + 54 col0 FROM tab0 AS cor0
----
-169128
-188568
-29160

query I rowsort
SELECT DISTINCT 50 * 34 * - 62 FROM tab2 AS cor0
----
-105400

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <= ( col1 )
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2122
SELECT - col0 DIV + + ( - col1 ), col0 FROM tab2
----
0
46
0
64
1
75

skipif mysql # not compatible
query II rowsort label-2122
SELECT - col0 / + + ( - col1 ), col0 FROM tab2
----
0
46
0
64
1
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2123
SELECT + MAX( 98 ) DIV MAX( col1 ) AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-2123
SELECT + MAX ( 98 ) / MAX ( col1 ) AS col1 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ALL + 26 * COUNT( DISTINCT - 10 ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL + 26 * COUNT ( DISTINCT - 10 ) FROM tab0
----
26

query I rowsort
SELECT ALL + 11 AS col2 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT + col0 / ( + ( + - 10 ) ) FROM tab2 AS cor0 WHERE NOT - ( - 20 ) * + + 72 * + col0 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT 77 * + col1 FROM tab1
----
1078
3619
385

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE - 53 / - 53 - - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2130
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE - 53 / - 53 - - + col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2131
SELECT ALL CAST( 72 AS SIGNED ) DIV col0 col1, col1 FROM tab0 AS cor0
----
0
1
0
21
4
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2131
SELECT ALL CAST ( 72 AS INTEGER ) / col0 col1, col1 FROM tab0 AS cor0
----
0
1
0
21
4
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT DISTINCT + COUNT( * ) * - + ( - - ( + COUNT( * ) ) ) * - ( - 62 ) FROM tab0 AS cor0
----
-558

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT + COUNT ( * ) * - + ( - - ( + COUNT ( * ) ) ) * - ( - 62 ) FROM tab0 AS cor0
----
-558

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT 68 DIV - 89 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2135
SELECT 68 / - 89 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2136
SELECT ALL 17 + 26 + - col0 AS col0, - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
-42
NULL
-48
NULL
-8
NULL

skipif mysql # not compatible
query II rowsort label-2136
SELECT ALL 17 + 26 + - col0 AS col0, - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
-42
NULL
-48
NULL
-8
NULL

query I rowsort
SELECT ALL col0 + 44 AS col0 FROM tab2 AS cor0
----
108
119
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT DISTINCT + SUM( DISTINCT + - col2 ) + + 9 * + ( - COUNT( * ) ) AS col0 FROM tab0 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT + SUM ( DISTINCT + - col2 ) + + 9 * + ( - COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT DISTINCT 92 - - ( MAX( - + col2 ) ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT 92 - - ( MAX ( - + col2 ) ) FROM tab0
----
82

query I rowsort
SELECT - col2 + - + 64 + + - col2 FROM tab1
----
-182
-200
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT - 11 + - COUNT( DISTINCT 73 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-2141
SELECT - 11 + - COUNT ( DISTINCT 73 ) FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE col0 + - col0 = - col0
----
0

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 + - col0 = - col0
----
0

query I rowsort
SELECT DISTINCT + - 91 AS col1 FROM tab0 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2144
SELECT DISTINCT + col1 DIV + + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT + col1 / + + col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT COUNT( * ) * - 84 * 39 AS col2 FROM tab1
----
-9828

skipif mysql # not compatible
query I rowsort label-2145
SELECT COUNT ( * ) * - 84 * 39 AS col2 FROM tab1
----
-9828

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT - COUNT( ALL - - col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT - COUNT ( ALL - - col1 ) FROM tab1
----
-3

query II rowsort
SELECT col1 AS col0, + 28 AS col1 FROM tab1
----
14
28
47
28
5
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2148
SELECT DISTINCT + SUM( ALL - CAST( col2 AS SIGNED ) ) FROM tab0 WHERE NOT NULL > - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT + SUM ( ALL - CAST ( col2 AS INTEGER ) ) FROM tab0 WHERE NOT NULL > - col0
----
NULL

query I rowsort
SELECT col0 * 34 AS col2 FROM tab1
----
1734
2890
3094

query I rowsort
SELECT + col1 * 13 AS col1 FROM tab1
----
182
611
65

query II rowsort
SELECT - col2 AS col2, - col2 AS col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT ALL 1 * + col2 * - col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT 95 * + - col1 FROM tab1
----
-1330
-4465
-475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2154
SELECT + CAST( + col0 AS SIGNED ) col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2154
SELECT + CAST ( + col0 AS INTEGER ) col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT col1 * - + col1 * CAST( - 29 AS SIGNED ) FROM tab1
----
5684
64061
725

skipif mysql # not compatible
query I rowsort label-2155
SELECT col1 * - + col1 * CAST ( - 29 AS INTEGER ) FROM tab1
----
5684
64061
725

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 43 = NULL
----

query I rowsort
SELECT ALL - ( - - col1 ) + + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ( + 47 ) FROM tab2
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2160
SELECT + - col0 + + - CAST( col1 AS SIGNED ) - - col2 * - col2 AS col2 FROM tab0 AS cor0 WHERE 98 + - ( 44 ) IS NOT NULL
----
-208
-2305
-9899

skipif mysql # not compatible
query I rowsort label-2160
SELECT + - col0 + + - CAST ( col1 AS INTEGER ) - - col2 * - col2 AS col2 FROM tab0 AS cor0 WHERE 98 + - ( 44 ) IS NOT NULL
----
-208
-2305
-9899

query II rowsort
SELECT - - col0 + col0, - 26 * ( - 77 ) AS col0 FROM tab0 AS cor0
----
174
2002
194
2002
30
2002

query I rowsort
SELECT DISTINCT - 57 + + col2 * - + 21 AS col0 FROM tab2 cor0
----
-1275
-540
-897

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2163
SELECT DISTINCT 89 + 1 DIV + SUM( + col2 ) AS col0 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT 89 + 1 / + SUM ( + col2 ) AS col0 FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL - COUNT( + col2 ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL - COUNT ( + col2 ) + COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 80 ) NOT BETWEEN NULL AND 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2166
SELECT ALL 20 + - ( - - col0 ) - + 87 / - col0 * - + 62 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL 20 + - ( - - col0 ) - + 87 / - col0 * - + 62 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2167
SELECT ALL 86 * ( COUNT( * ) ) + - CAST( NULL AS SIGNED ) * - 60 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL 86 * ( COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) * - 60 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) - + - col2 + + - col0 col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL ( - + 31 ) FROM tab0
----
-31
-31
-31

query I rowsort
SELECT ALL + 74 AS col0 FROM tab2 cor0
----
74
74
74

query I rowsort
SELECT ALL ( col2 ) * - - 25 * - col0 + col1 FROM tab2
----
-108683
-26399
-63923

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 78 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2173
SELECT col0 AS col0, + col1 - + - col0 + - + col2 DIV col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
97
64
141
75
142

skipif mysql # not compatible
query II rowsort label-2173
SELECT col0 AS col0, + col1 - + - col0 + - + col2 / col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
97
64
141
75
142

query II rowsort
SELECT ALL col0 * - + col1, col2 FROM tab2 cor0
----
-2346
23
-4928
40
-5025
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2175
SELECT ALL + - ( COUNT( * ) ) AS col1, COUNT( * ) col1 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2175
SELECT ALL + - ( COUNT ( * ) ) AS col1, COUNT ( * ) col1 FROM tab0 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL + + COUNT( * ) * - 32 AS col2 FROM tab2 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + + COUNT ( * ) * - 32 AS col2 FROM tab2 cor0
----
-96

query I rowsort
SELECT DISTINCT - col1 * + 25 + - - 57 FROM tab1 AS cor0
----
-1118
-293
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( + col1 ) col1, col0 * ( - col2 ) FROM tab1 AS cor0
----
14
-4896
47
-6188
5
-5015

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2179
SELECT * FROM tab0 cor0 WHERE NOT 92 NOT BETWEEN + col2 AND + + CAST( + col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2179
SELECT * FROM tab0 cor0 WHERE NOT 92 NOT BETWEEN + col2 AND + + CAST ( + col0 AS REAL )
----

query I rowsort
SELECT - - ( - 79 ) FROM tab0 AS cor0
----
-79
-79
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / - col2 * + 42 < - col0 + - + ( 0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT AVG ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT AVG ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 - + col0 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2184
SELECT ALL COUNT( * ) DIV + 36 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL COUNT ( * ) / + 36 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL - - SUM( + col0 ) FROM tab2 AS cor0 WHERE 68 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL - - SUM ( + col0 ) FROM tab2 AS cor0 WHERE 68 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT ALL + 79 + + ( COUNT( * ) ) FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL + 79 + + ( COUNT ( * ) ) FROM tab2 AS cor0
----
82

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE 41 + + 86 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query II rowsort label-2188
SELECT DISTINCT 50 AS col2, + COUNT( * ) AS col0 FROM tab2
----
50
3

skipif mysql # not compatible
query II rowsort label-2188
SELECT DISTINCT 50 AS col2, + COUNT ( * ) AS col0 FROM tab2
----
50
3

query I rowsort
SELECT DISTINCT + ( + - 66 ) AS col2 FROM tab2 AS cor0
----
-66

query II rowsort
SELECT ALL 81, col2 * 11 - - col2 * col0 AS col0 FROM tab2 AS cor0
----
81
1311
81
3000
81
4988

query I rowsort
SELECT - col1 - 5 FROM tab1 cor0
----
-10
-19
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL COUNT( * ) + - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL COUNT ( * ) + - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2193
SELECT DISTINCT - COUNT( * ), ( SUM( DISTINCT - + col1 ) ) AS col0 FROM tab2 AS cor0
----
-3
-195

skipif mysql # not compatible
query II rowsort label-2193
SELECT DISTINCT - COUNT ( * ), ( SUM ( DISTINCT - + col1 ) ) AS col0 FROM tab2 AS cor0
----
-3
-195

query II rowsort
SELECT - ( + col1 ) * + col0 * + col0 - - ( - - 38 ), + col0 * - + col0 AS col2 FROM tab1 AS cor0
----
-36087
-7225
-36376
-2601
-389169
-8281

query I rowsort
SELECT - - col0 - 82 AS col0 FROM tab1 cor0
----
-31
3
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col0 col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT col0 * - 41 + + - col2 FROM tab0 AS cor0
----
-3577
-4076
-662

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT ALL + MIN( ALL + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL + MIN ( ALL + col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT + ( - col2 ) AS col2 FROM tab2 cor0 WHERE 4 <= + col0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 + + 92 col1 FROM tab2 AS cor0
----
122
122
122

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2201
SELECT DISTINCT + col1 * - + col2 + - col0 DIV - ( + CAST( - 52 AS SIGNED ) ) + + ( + 32 ) FROM tab2 AS cor0
----
-1141
-3049
-3855

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT + col1 * - + col2 + - col0 / - ( + CAST ( - 52 AS INTEGER ) ) + + ( + 32 ) FROM tab2 AS cor0
----
-1141
-3049
-3855

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - + ( + 81 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT DISTINCT + MAX( + col2 ) + - + 32 * - COUNT( * ) AS col0 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT + MAX ( + col2 ) + - + 32 * - COUNT ( * ) AS col0 FROM tab1
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2204
SELECT DISTINCT - col0 * col0 - + CAST( - 40 AS SIGNED ) FROM tab0
----
-185
-7529
-9369

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT - col0 * col0 - + CAST ( - 40 AS INTEGER ) FROM tab0
----
-185
-7529
-9369

onlyif mysql # aggregate syntax: 
query II rowsort label-2205
SELECT DISTINCT - MIN( ALL - + col1 ) AS col0, COUNT( ALL - + 78 ) * COUNT( * ) - COUNT( * ) AS col0 FROM tab1
----
47
6

skipif mysql # not compatible
query II rowsort label-2205
SELECT DISTINCT - MIN ( ALL - + col1 ) AS col0, COUNT ( ALL - + 78 ) * COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1
----
47
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2206
SELECT DISTINCT + ( 53 ) * CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT + ( 53 ) * CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
159

query I rowsort
SELECT + col0 * col0 + + + col0 AS col0 FROM tab2 cor0
----
2162
4160
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab1 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NOT - col0 / 58 IS NULL OR NOT - 20 > ( NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col0 / 58 IS NULL OR NOT - 20 > ( NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT + SUM( DISTINCT + col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2210
SELECT + SUM ( DISTINCT + col0 ) AS col0 FROM tab0
----
199

query I rowsort
SELECT - 88 * - col2 AS col2 FROM tab1
----
5192
5984
8448

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2212
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 <= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2212
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 <= - CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT + ( - col0 ) * - col2 * + 54 * + + col2 FROM tab0 AS cor0
----
1789290
469800
51337638

query I rowsort
SELECT + + col2 * + 68 * - + col2 FROM tab2 cor0 WHERE NOT NULL = - col1
----

query I rowsort
SELECT DISTINCT col0 * + col1 + - - 93 + - col0 FROM tab1 cor0
----
4279
433
756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2216
SELECT ALL 74 DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL 74 / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-2217
SELECT ALL + col0 + - - 44 + + 90, 14 DIV 76 AS col1 FROM tab2 cor0
----
180
0
198
0
209
0

skipif mysql # not compatible
query II rowsort label-2217
SELECT ALL + col0 + - - 44 + + 90, 14 / 76 AS col1 FROM tab2 cor0
----
180
0
198
0
209
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2218
SELECT DISTINCT + col2 + + CAST( NULL AS DECIMAL ) * - col0 AS col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2218
SELECT DISTINCT + col2 + + CAST ( NULL AS REAL ) * - col0 AS col0, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2219
SELECT DISTINCT + - col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2221
SELECT col0 DIV - col0, + col1 FROM tab0
----
-1
1
-1
21
-1
81

skipif mysql # not compatible
query II rowsort label-2221
SELECT col0 / - col0, + col1 FROM tab0
----
-1
1
-1
21
-1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT - COUNT( DISTINCT + - 20 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2222
SELECT - COUNT ( DISTINCT + - 20 ) FROM tab0
----
-1

query I rowsort
SELECT - col1 * - - col0 FROM tab1 WHERE NULL < 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT - COUNT( * ) * 54 FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-2224
SELECT - COUNT ( * ) * 54 FROM tab1 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL SUM( ALL - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL SUM ( ALL - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2226
SELECT DISTINCT - + col2 * + CAST( + 63 AS SIGNED ) + + - col1 AS col0, - col0 FROM tab1 AS cor0
----
-3722
-85
-4331
-91
-6062
-51

skipif mysql # not compatible
query II rowsort label-2226
SELECT DISTINCT - + col2 * + CAST ( + 63 AS INTEGER ) + + - col1 AS col0, - col0 FROM tab1 AS cor0
----
-3722
-85
-4331
-91
-6062
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + + 70 - + col2 FROM tab2 AS cor0
----
107
79
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2229
SELECT + - CAST( + 19 AS SIGNED ) - + 14 AS col2 FROM tab2 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-2229
SELECT + - CAST ( + 19 AS INTEGER ) - + 14 AS col2 FROM tab2 AS cor0
----
-33
-33
-33

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + - + 56 FROM tab2 cor0
----
-5
11
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT - CAST( - - col0 AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0 WHERE - CAST( 51 AS SIGNED ) + - col2 BETWEEN + col1 AND - 38
----

skipif mysql # not compatible
query I rowsort label-2232
SELECT - CAST ( - - col0 AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0 WHERE - CAST ( 51 AS INTEGER ) + - col2 BETWEEN + col1 AND - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT + 46 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-2233
SELECT + 46 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
138

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( NOT col2 IS NOT NULL ) )
----
95

query I rowsort
SELECT - col1 * - 52 FROM tab1 AS cor0
----
2444
260
728

onlyif mysql # DIV for integer division: 
query II rowsort label-2236
SELECT DISTINCT - - 88 + - 74 - - col2 * ( + col2 ) AS col0, col0 DIV + ( col0 ) AS col2 FROM tab0 AS cor0
----
114
1
2223
1
9815
1

skipif mysql # not compatible
query II rowsort label-2236
SELECT DISTINCT - - 88 + - 74 - - col2 * ( + col2 ) AS col0, col0 / + ( col0 ) AS col2 FROM tab0 AS cor0
----
114
1
2223
1
9815
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2237
SELECT MIN( + col0 ) / 4 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT MIN ( + col0 ) / 4 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - col0 + + col1 * + - col1 col2 FROM tab2
----
-51
-2647
-67
-4564
-77
-5993

query I rowsort
SELECT DISTINCT ( + 52 ) FROM tab1
----
52

query I rowsort
SELECT DISTINCT - 12 * - col1 AS col1 FROM tab2 AS cor0
----
612
804
924

query II rowsort
SELECT DISTINCT + - col1 AS col1, 11 * col2 FROM tab1 AS cor0
----
-14
1056
-47
748
-5
649

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT ALL + - 82 * col2 DIV col2 col1 FROM tab2 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2242
SELECT ALL + - 82 * col2 / col2 col1 FROM tab2 AS cor0
----
-82
-82
-82

query III rowsort
SELECT ALL - + 97 AS col1, 90 AS col0, - - 12 * - 66 * + col1 + - col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to 4a7b7862f832682555969600c3d67d77

query II rowsort
SELECT DISTINCT - 83 AS col2, - col0 - - - col0 AS col2 FROM tab2 AS cor0
----
-83
-128
-83
-150
-83
-92

query II rowsort
SELECT + col0, 81 FROM tab2 AS cor0
----
46
81
64
81
75
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2246
SELECT ALL COUNT( - - col1 ) col2, 89 - - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2246
SELECT ALL COUNT ( - - col1 ) col2, 89 - - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
NULL

query I rowsort
SELECT + 81 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT + ( - 28 ) AS col2 FROM tab0, tab2 AS cor0
----
-28

query I rowsort
SELECT DISTINCT + + 44 + - 36 FROM tab2 WHERE NOT - 51 IS NULL
----
8

query I rowsort
SELECT DISTINCT - - col2 + + - ( + col2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 * 79 + - 25 AS col2 FROM tab1 AS cor0
----
1081
3688
370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2252
SELECT ALL + col2 * 80 + + CAST( col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
1863
3240
4698

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2252
SELECT ALL + col2 * 80 + + CAST ( col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
1863
3240
4698

query I rowsort
SELECT ALL + col1 + - - col2 * - col2 - + col2 * col2 FROM tab0 AS cor0
----
-179
-19601
-4337

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT COUNT( DISTINCT + + 81 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT COUNT ( DISTINCT + + 81 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL col0 + - - 63 FROM tab2
----
109
127
138

onlyif mysql # aggregate syntax: 
query II rowsort label-2257
SELECT ALL + ( + + 11 ) * - COUNT( * ), + 27 AS col0 FROM tab0
----
-33
27

skipif mysql # not compatible
query II rowsort label-2257
SELECT ALL + ( + + 11 ) * - COUNT ( * ), + 27 AS col0 FROM tab0
----
-33
27

query III rowsort
SELECT * FROM tab2 WHERE 43 * - 58 NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL col0 * + col2 + + + 48 AS col1 FROM tab0
----
753
918
9651

query I rowsort
SELECT + col1 + - - 59 FROM tab1
----
106
64
73

query I rowsort
SELECT + col1 + - ( 54 ) FROM tab0 AS cor0
----
-33
-53
27

query I rowsort
SELECT + col0 * + ( + col0 ) + - col1 AS col2 FROM tab1 cor0
----
2587
7220
8234

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT - ( 92 ) + + - MIN( - col0 ) col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2263
SELECT - ( 92 ) + + - MIN ( - col0 ) col0 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - ( col1 ) col2 FROM tab1 AS cor0 WHERE col0 + + + col0 * + col2 IS NOT NULL
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 <= NULL
----

query I rowsort
SELECT - 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT - COUNT( * ) - - ( COUNT( * ) ) + - MIN( - - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2267
SELECT - COUNT ( * ) - - ( COUNT ( * ) ) + - MIN ( - - col0 ) AS col2 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT - 84 - + col0 + + - col0 FROM tab2 AS cor0
----
-176
-212
-234

query II rowsort
SELECT ALL 42 * col0 - + + col1 + 40, 21 * + 16 AS col0 FROM tab1 AS cor0
----
2168
336
3605
336
3815
336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2270
SELECT ALL 86 * + 86 FROM tab1 AS cor0 WHERE NULL <= + 54 AND + col1 + - col2 / + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL 86 * + 86 FROM tab1 AS cor0 WHERE NULL <= + 54 AND + col1 + - col2 / + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 38 FROM tab1 cor0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2272
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2272
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT - 12 * - + col0 * - col0 FROM tab0 cor0
----
-112908
-2700
-90828

onlyif mysql # DIV for integer division: 
query I rowsort label-2274
SELECT - col2 DIV - + col0 + + 60 AS col0 FROM tab1 AS cor0
----
60
60
61

skipif mysql # not compatible
query I rowsort label-2274
SELECT - col2 / - + col0 + + 60 AS col0 FROM tab1 AS cor0
----
60
60
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
42
42
42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 4 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE 35 BETWEEN col0 - - + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab2 WHERE ( ( NULL ) <= NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2279
SELECT COUNT( * ) DIV - + SUM( + col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2279
SELECT COUNT ( * ) / - + SUM ( + col1 ) FROM tab0
----
0

query I rowsort
SELECT col1 * + 35 FROM tab2
----
1785
2345
2695

query II rowsort
SELECT ALL col2, col1 * - - col0 FROM tab0
----
10
1827
47
1215
99
97

query I rowsort
SELECT - 51 * + - col0 * + ( col2 ) * + + col2 + col2 FROM tab2 cor0
----
1241057
12867358
5222440

query I rowsort
SELECT 12 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
12
12
12

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <= col0
----
75
67
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + col1 IS NULL
----

query I rowsort
SELECT + 95 + + col0 AS col0 FROM tab2 AS cor0
----
141
159
170

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT DISTINCT - 48 + + - COUNT( * ) AS col0 FROM tab0 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT - 48 + + - COUNT ( * ) AS col0 FROM tab0 cor0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2288
SELECT DISTINCT + 70 + SUM( ALL + 37 ) DIV - ( - 10 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT + 70 + SUM ( ALL + 37 ) / - ( - 10 ) FROM tab1
----
81

query I rowsort
SELECT ALL col0 * - 21 * - - 67 FROM tab2
----
-105525
-64722
-90048

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT DISTINCT + 15 * - MAX( - 60 ) AS col2 FROM tab1
----
900

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + 15 * - MAX ( - 60 ) AS col2 FROM tab1
----
900

query I rowsort
SELECT col0 * + ( 62 ) * - - col0 AS col1 FROM tab0
----
13950
469278
583358

query I rowsort
SELECT DISTINCT col2 * - - 18 AS col2 FROM tab1
----
1062
1224
1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2293
SELECT 0 * + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2293
SELECT 0 * + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + - ( col0 ) ) col0, 88 FROM tab0
----
-15
88
-87
88
-97
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ALL + SUM( DISTINCT - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL + SUM ( DISTINCT - - col1 ) FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2297
SELECT CAST( 5 AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
-46
-62
-72

skipif mysql # not compatible
query I rowsort label-2297
SELECT CAST ( 5 AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
-46
-62
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT DISTINCT COUNT( * ) + - 98 AS col2 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT COUNT ( * ) + - 98 AS col2 FROM tab2
----
-95

query I rowsort
SELECT 97 + + col0 AS col0 FROM tab2
----
143
161
172

query II rowsort
SELECT + - 89, - col2 + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 - 81 IN ( - col1, + 23 )
----
-89
17
-89
23
-89
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT ALL - col0 DIV ( col2 ) AS col0 FROM tab0 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - col0 / ( col2 ) AS col0 FROM tab0 cor0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL - SUM( - + 81 ) FROM tab1 cor0
----
243

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL - SUM ( - + 81 ) FROM tab1 cor0
----
243

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 >= 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT - 43 * + COUNT( * ) AS col1 FROM tab0 cor0
----
-129

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT - 43 * + COUNT ( * ) AS col1 FROM tab0 cor0
----
-129

query I rowsort
SELECT ALL + 0 FROM tab2 WHERE NOT + + col2 + - col0 IN ( - 56 )
----
0
0
0

query I rowsort
SELECT - ( + col2 ) * col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2307
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN + col1 + - CAST( + ( + col1 ) AS SIGNED ) * + col2 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2307
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN + col1 + - CAST ( + ( + col1 ) AS INTEGER ) * + col2 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT DISTINCT col0 * col1 + 92 FROM tab0 WHERE + - 94 BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT col0 * col1 + 92 FROM tab0 WHERE + - 94 BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT CAST( + + col0 AS SIGNED ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2309
SELECT CAST ( + + col0 AS INTEGER ) FROM tab0
----
15
87
97

query II rowsort
SELECT DISTINCT + ( + col2 ) AS col0, + 34 * - col1 + + - 61 AS col0 FROM tab1
----
59
-231
68
-1659
96
-537

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL MIN( + col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2311
SELECT ALL MIN ( + col2 ) col0 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2312
SELECT DISTINCT ( 4 ) AS col2, + COUNT( * ) AS col2 FROM tab1 AS cor0
----
4
3

skipif mysql # not compatible
query II rowsort label-2312
SELECT DISTINCT ( 4 ) AS col2, + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
4
3

query I rowsort
SELECT + - 76 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT + MIN( + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT + MIN ( + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT col2 + + + col2 AS col0 FROM tab2
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col0 FROM tab2
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col2 FROM tab0 WHERE NOT + + col1 * + - 61 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT - ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL + - COUNT( * ) * - 1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL + - COUNT ( * ) * - 1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL col0 * - 85 + + + 63 AS col0, 85 AS col2 FROM tab1 AS cor0
----
-4272
85
-7162
85
-7672
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 col2 FROM tab2 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT + + MAX( DISTINCT + - ( + 13 ) ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2322
SELECT + + MAX ( DISTINCT + - ( + 13 ) ) FROM tab1 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2323
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) = + 5
----

skipif mysql # not compatible
query III rowsort label-2323
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) = + 5
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN + 13 AND + col1
----

query I rowsort
SELECT DISTINCT ( + col1 ) * + 36 + - col1 AS col0 FROM tab2 AS cor0
----
1785
2345
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT ALL ( COUNT( * ) ) + - - MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL ( COUNT ( * ) ) + - - MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT + 95 + - + col2 FROM tab2 AS cor0
----
37
55
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT + 73 + + ( - MIN( DISTINCT - 63 ) ) + 20 col1 FROM tab2
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2328
SELECT + 73 + + ( - MIN ( DISTINCT - 63 ) ) + 20 col1 FROM tab2
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-2329
SELECT ALL col2 DIV - 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL col2 / - 87 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 59 - + col0 FROM tab1
----
-26
-32
8

query I rowsort
SELECT col1 + + col1 + - col0 + - col2 FROM tab2 AS cor0
----
1
33
50

onlyif mysql # DIV for integer division: 
query II rowsort label-2332
SELECT + col2 DIV + + col2, + col0 * col2 AS col0 FROM tab1 AS cor0
----
1
4896
1
5015
1
6188

skipif mysql # not compatible
query II rowsort label-2332
SELECT + col2 / + + col2, + col0 * col2 AS col0 FROM tab1 AS cor0
----
1
4896
1
5015
1
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT col0 DIV col0 * col2 * + + col2 * - + col1 * + 50 AS col2 FROM tab2 AS cor0
----
-11269400
-1348950
-6160000

skipif mysql # not compatible
query I rowsort label-2333
SELECT col0 / col0 * col2 * + + col2 * - + col1 * + 50 AS col2 FROM tab2 AS cor0
----
-11269400
-1348950
-6160000

query I rowsort
SELECT + ( - col1 ) * + + col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL + col2 + 17 AS col2 FROM tab0 AS cor0
----
116
27
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2336
SELECT + CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2336
SELECT + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
NULL
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col0 NOT BETWEEN 96 / + col0 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 8 AS col0 FROM tab1 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL + 40 FROM tab0 AS cor0 WHERE NOT col2 * - 26 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2340
SELECT - + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2340
SELECT - + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT ALL + ( - col1 ) + + col2 FROM tab2 AS cor0 WHERE NOT CAST( + + col2 AS SIGNED ) IS NULL
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL + ( - col1 ) + + col2 FROM tab2 AS cor0 WHERE NOT CAST ( + + col2 AS INTEGER ) IS NULL
----
-28
-37
-9

query I rowsort
SELECT ALL + 14 AS col2 FROM tab0 AS cor0
----
14
14
14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 63 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col2 * + - col2 * col0 FROM tab2 AS cor0
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + - COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT col0 BETWEEN NULL AND + + col1
----
-1

skipif mysql # not compatible
query I rowsort label-2345
SELECT + - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT col0 BETWEEN NULL AND + + col1
----
-1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 69 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( ( - 97 ) * ( 21 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT AVG ( + 92 ) AS col1 FROM tab2 WHERE NOT + 94 / 60 NOT BETWEEN + 50 - ( 9 ) AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2350
SELECT ALL COUNT( * ), 94 AS col2 FROM tab2
----
3
94

skipif mysql # not compatible
query II rowsort label-2350
SELECT ALL COUNT ( * ), 94 AS col2 FROM tab2
----
3
94

query I rowsort
SELECT 53 * + - col2 FROM tab0
----
-2491
-5247
-530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2352
SELECT DISTINCT - 52 DIV - COUNT( DISTINCT + col0 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT - 52 / - COUNT ( DISTINCT + col0 ) FROM tab2
----
17

query I rowsort
SELECT DISTINCT col2 * - + col2 * - 32 FROM tab0
----
313632
3200
70688

query I rowsort
SELECT 1 * + 51 AS col2 FROM tab1
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2355
SELECT DISTINCT 18 + - CAST( + 45 AS SIGNED ) AS col1, 28 AS col1 FROM tab1 AS cor0
----
-27
28

skipif mysql # not compatible
query II rowsort label-2355
SELECT DISTINCT 18 + - CAST ( + 45 AS INTEGER ) AS col1, 28 AS col1 FROM tab1 AS cor0
----
-27
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT DISTINCT - SUM( DISTINCT - col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT - SUM ( DISTINCT - col0 ) FROM tab0 cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL - - MAX( 37 ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL - - MAX ( 37 ) FROM tab1 AS cor0
----
37

query I rowsort
SELECT DISTINCT - col2 + - 81 AS col2 FROM tab2 AS cor0
----
-104
-121
-139

query I rowsort
SELECT ALL - 1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT 7 + + - col1 AS col0 FROM tab2 AS cor0
----
-44
-60
-70

query I rowsort
SELECT DISTINCT 51 + - 16 FROM tab0 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT CAST( - 71 AS SIGNED ) col1 FROM tab2
----
-71
-71
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2362
SELECT CAST ( - 71 AS INTEGER ) col1 FROM tab2
----
-71
-71
-71

query I rowsort
SELECT DISTINCT col0 + - - ( + + col2 ) AS col2 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2364
SELECT 33, + CAST( NULL AS SIGNED ) * col2 col2 FROM tab1
----
33
NULL
33
NULL
33
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2364
SELECT 33, + CAST ( NULL AS INTEGER ) * col2 col2 FROM tab1
----
33
NULL
33
NULL
33
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2365
SELECT ALL + 25 + - 72 + COUNT( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL + 25 + - 72 + COUNT ( + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
-47

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE - 61 IS NULL
----

query I rowsort
SELECT ALL 90 - + 35 + col0 AS col0 FROM tab0
----
142
152
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ALL - MAX( ALL 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL - MAX ( ALL 88 ) FROM tab2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT ALL MAX( 26 ) - + + 80 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL MAX ( 26 ) - + + 80 FROM tab2
----
-54

query I rowsort
SELECT ALL + 18 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
18
18
18

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 / + 12 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL + SUM( DISTINCT - 61 ) AS col2 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + SUM ( DISTINCT - 61 ) AS col2 FROM tab0 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT DISTINCT - + SUM( ALL col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT - + SUM ( ALL col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT + - col1 * - - CAST( NULL AS SIGNED ) - + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT + - col1 * - - CAST ( NULL AS INTEGER ) - + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 69 IS NULL OR + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2376
SELECT - COUNT( + - col0 ), - 46 AS col2 FROM tab1
----
-3
-46

skipif mysql # not compatible
query II rowsort label-2376
SELECT - COUNT ( + - col0 ), - 46 AS col2 FROM tab1
----
-3
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT ALL + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = - 10
----

query I rowsort
SELECT ALL + col1 * + - 22 FROM tab2 cor0
----
-1122
-1474
-1694

query II rowsort
SELECT - col1, + ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT 33 * - + col1 + - 71 * + col1 FROM tab1 AS cor0
----
-1456
-4888
-520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT DISTINCT col0 / + col0 * col2 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT col0 / + col0 * col2 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> + 88 + - ( + - col2 ) + - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT ALL + + 77 DIV + 75 col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2384
SELECT ALL + + 77 / + 75 col2 FROM tab2 cor0
----
1
1
1

query II rowsort
SELECT - col2 * - col0 AS col0, - 25 + col2 AS col2 FROM tab0 AS cor0
----
705
22
870
-15
9603
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2386
SELECT DISTINCT - + 81 DIV MIN( + 39 ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - + 81 / MIN ( + 39 ) FROM tab2 AS cor0
----
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + 83
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) / + 61 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL - MIN( ALL + + 58 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - MIN ( ALL + + 58 ) AS col0 FROM tab2
----
-58

query I rowsort
SELECT - - col2 + ( - 54 ) AS col0 FROM tab0 WHERE NOT ( ( - + 32 IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT - ( - MAX( + - col1 ) ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2392
SELECT - ( - MAX ( + - col1 ) ) AS col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL = 45 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 + - col2 + + - col2 col0 FROM tab1 AS cor0
----
-111
-167
-93

query I rowsort
SELECT - - col1 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE col2 * col1 * col1 - - col0 + - 88 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - ( + + col2 ) + - + col2 col1 FROM tab0 AS cor0
----
10
47
99

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN + 45 + - + 4 AND - 43
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 - + 10 col1 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT + 42 - 85 AS col0 FROM tab0 AS cor0
----
-43
-43
-43

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 44 + - col2 = - col1
----

query I rowsort
SELECT - ( - ( - - 33 ) ) - - - 41 * - col0 FROM tab1 AS cor0
----
2124
3518
3764

query I rowsort
SELECT + col1 - + 67 FROM tab2 AS cor0
----
-16
0
10

query I rowsort
SELECT DISTINCT + col2 + col2 + - col1 FROM tab2 AS cor0
----
-5
3
49

query I rowsort
SELECT 27 - col2 FROM tab0 AS cor0
----
-20
-72
17

query I rowsort
SELECT ALL 69 + ( 77 ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
146
146
146

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----

query II rowsort
SELECT ALL + ( 92 ) + 32 AS col0, col0 FROM tab1 AS cor0
----
124
51
124
85
124
91

query II rowsort
SELECT ALL - col1 * 32 + - + col1, 98 AS col1 FROM tab0 WHERE 36 + - + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2410
SELECT DISTINCT + 59 + 65 + COUNT( DISTINCT + - 74 ) AS col0, - 18 AS col1 FROM tab0
----
125
-18

skipif mysql # not compatible
query II rowsort label-2410
SELECT DISTINCT + 59 + 65 + COUNT ( DISTINCT + - 74 ) AS col0, - 18 AS col1 FROM tab0
----
125
-18

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + col0 ) * + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( - - col1 ) * + + 9 * + 10 < NULL
----

query I rowsort
SELECT - 0 * 16 FROM tab1
----
0
0
0

query II rowsort
SELECT + col1 AS col1, - 98 * + + 70 AS col2 FROM tab1
----
14
-6860
47
-6860
5
-6860

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT ALL ( COUNT( * ) ) FROM tab0, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL ( COUNT ( * ) ) FROM tab0, tab0 cor0
----
9

query I rowsort
SELECT ALL + ( + 75 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2418
SELECT ALL - col1 * - CAST( + 89 AS SIGNED ) col0 FROM tab2 AS cor0
----
4539
5963
6853

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2418
SELECT ALL - col1 * - CAST ( + 89 AS INTEGER ) col0 FROM tab2 AS cor0
----
4539
5963
6853

query II rowsort
SELECT col1 AS col1, ( - col2 ) AS col0 FROM tab1 cor0
----
14
-96
47
-68
5
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT DISTINCT col2 DIV + - 1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT col2 / + - 1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL - ( - + MIN( DISTINCT col0 ) ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - ( - + MIN ( DISTINCT col0 ) ) AS col0 FROM tab1 AS cor0
----
51

query II rowsort
SELECT DISTINCT - 88 AS col2, - 10 AS col1 FROM tab0 AS cor0
----
-88
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2423
SELECT COUNT( * ) + + 36 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
39
NULL

skipif mysql # not compatible
query II rowsort label-2423
SELECT COUNT ( * ) + + 36 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
39
NULL

query I rowsort
SELECT col0 * 36 AS col2 FROM tab0
----
3132
3492
540

query I rowsort
SELECT ALL - 43 * - col1 * + - col2 FROM tab0
----
-163701
-4257
-9030

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2426
SELECT 58 col0, CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
58
15
58
87
58
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2426
SELECT 58 col0, CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
58
15
58
87
58
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT DISTINCT - COUNT( * ) * - - 66 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT - COUNT ( * ) * - - 66 FROM tab0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT COUNT( * ) * - - 35 AS col1 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-2428
SELECT COUNT ( * ) * - - 35 AS col1 FROM tab0
----
105

query II rowsort
SELECT col2, - 27 * - col1 AS col1 FROM tab2
----
23
1377
40
2079
58
1809

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col1 * + 75 + - + col0 + + col0 - ( - col2 ) * 8 * + + col2 + 14 * + - col0 col2 FROM tab2 AS cor0
----
17756
30954
7464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2432
SELECT ALL + COUNT( * ) DIV - 3 + - 81 + - 79 * - + 81 + + 63 col0 FROM tab1 AS cor0
----
6380

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2432
SELECT ALL + COUNT ( * ) / - 3 + - 81 + - 79 * - + 81 + + 63 col0 FROM tab1 AS cor0
----
6380

query I rowsort
SELECT DISTINCT + col0 + + 73 * col2 FROM tab1 AS cor0
----
4392
5055
7059

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL - COUNT( * ) * - MAX( DISTINCT + col2 ) AS col2 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL - COUNT ( * ) * - MAX ( DISTINCT + col2 ) AS col2 FROM tab1
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2435
SELECT - + SUM( ALL col0 ) + + CAST( NULL AS SIGNED ) + - 44 FROM tab1 WHERE NULL <= - ( - col1 ) + + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT - + SUM ( ALL col0 ) + + CAST ( NULL AS INTEGER ) + - 44 FROM tab1 WHERE NULL <= - ( - col1 ) + + - col2
----
NULL

query I rowsort
SELECT + 33 AS col0 FROM tab2 WHERE - col0 <> NULL
----

query I rowsort
SELECT DISTINCT ( + ( + ( - - 28 ) ) ) FROM tab2 AS cor0
----
28

query I rowsort
SELECT 68 * - + col1 * + col0 - - + col2 * + col2 FROM tab2
----
-158999
-333504
-338336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col2 FROM tab2 WHERE NOT NULL BETWEEN + col1 * + 26 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2440
SELECT ( + - CAST( + 24 AS SIGNED ) ) FROM tab2
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-2440
SELECT ( + - CAST ( + 24 AS INTEGER ) ) FROM tab2
----
-24
-24
-24

query II rowsort
SELECT - col1, col2 + 69 AS col1 FROM tab2 AS cor0
----
-51
92
-67
127
-77
109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, 90 col1 FROM tab2 AS cor0
----
51
90
67
90
77
90

query I rowsort
SELECT + 37 * - col0 + ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-3240
-3590
-636

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT ALL COUNT( 86 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL COUNT ( 86 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT 40 * col0 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2447
SELECT + CAST( + CAST( - 74 AS SIGNED ) AS SIGNED ) FROM tab1
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-2447
SELECT + CAST ( + CAST ( - 74 AS INTEGER ) AS INTEGER ) FROM tab1
----
-74
-74
-74

query I rowsort
SELECT DISTINCT 75 - - col2 FROM tab1
----
134
143
171

query I rowsort
SELECT col1 + 31 AS col1 FROM tab2
----
108
82
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT DISTINCT - col1 DIV - col1 - - col1 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT - col1 / - col1 - - col1 FROM tab2
----
52
68
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2451
SELECT ALL * FROM tab1 WHERE ( - col2 * CAST( col1 * - 30 AS SIGNED ) + col0 ) > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2451
SELECT ALL * FROM tab1 WHERE ( - col2 * CAST ( col1 * - 30 AS INTEGER ) + col0 ) > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + 60 * - ( 69 ) FROM tab1
----
-4191
-4225
-4231

query I rowsort
SELECT ALL col1 + + 31 AS col1 FROM tab1
----
36
45
78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 39 ) NOT BETWEEN NULL AND + col0
----
15
81
47

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col2 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL - COUNT( * ) * - 26 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - COUNT ( * ) * - 26 FROM tab0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2457
SELECT * FROM tab1 WHERE NOT ( 17 * + CAST( 98 * col1 AS SIGNED ) + - col0 ) BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2457
SELECT * FROM tab1 WHERE NOT ( 17 * + CAST ( 98 * col1 AS INTEGER ) + - col0 ) BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 - + col2 * 71 ) NOT BETWEEN ( - col0 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( + 72 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT ALL + 24 DIV - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL + 24 / - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-24
0

query I rowsort
SELECT ALL 14 * - 13 FROM tab0
----
-182
-182
-182

query I rowsort
SELECT DISTINCT ( 11 ) FROM tab0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT ALL 61 AS col2 FROM tab2 WHERE - CAST( + 90 AS SIGNED ) IS NOT NULL
----
61
61
61

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL 61 AS col2 FROM tab2 WHERE - CAST ( + 90 AS INTEGER ) IS NOT NULL
----
61
61
61

query I rowsort
SELECT - ( + col2 ) + 95 FROM tab2 AS cor0 WHERE - 3 NOT IN ( + col1 * col1 )
----
37
55
72

query I rowsort
SELECT ALL - col2 * ( ( - col2 ) * 63 ) AS col0 FROM tab0 AS cor0
----
139167
617463
6300

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( + 96 * 91 )
----

query I rowsort
SELECT DISTINCT ( 30 ) * 46 FROM tab2 AS cor0
----
1380

query I rowsort
SELECT DISTINCT - col2 * - col2 AS col0 FROM tab1 cor0 WHERE NOT - 46 > 62
----
3481
4624
9216

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 - col0 )
----

query I rowsort
SELECT DISTINCT - 86 + ( col2 ) FROM tab2 cor0
----
-28
-46
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT DISTINCT + 60 + - COUNT( * ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT + 60 + - COUNT ( * ) FROM tab0
----
57

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 + - col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 col2 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT + col1 - + col1 * - 68 FROM tab0 AS cor0
----
1449
5589
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT - - 56 * + COUNT( * ) - + COUNT( col0 ) AS col0 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-2476
SELECT - - 56 * + COUNT ( * ) - + COUNT ( col0 ) AS col0 FROM tab1 AS cor0
----
165

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 6 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 41 * - col2 + col2 FROM tab0 AS cor0
----
-1880
-3960
-400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2479
SELECT ALL ( col2 ) + - col0 AS col0 FROM tab2 cor0 WHERE NOT 83 <> col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL ( col2 ) + - col0 AS col0 FROM tab2 cor0 WHERE NOT 83 <> col2 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT DISTINCT + SUM( ALL 48 ) * - AVG ( ALL - ( 63 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT + SUM ( ALL 48 ) * - AVG ( ALL - ( 63 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT + + COUNT( * ) + + 39 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT + + COUNT ( * ) + + 39 FROM tab0 AS cor0
----
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN 30 / col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT + MAX( DISTINCT col2 ) FROM tab1 WHERE NOT + col1 IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-2484
SELECT + MAX ( DISTINCT col2 ) FROM tab1 WHERE NOT + col1 IS NULL
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2485
SELECT DISTINCT 92 DIV col0 col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2485
SELECT DISTINCT 92 / col0 col1 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT DISTINCT MAX( ALL 12 ) AS col1 FROM tab0 WHERE ( + 71 ) IS NOT NULL
----
12

skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT MAX ( ALL 12 ) AS col1 FROM tab0 WHERE ( + 71 ) IS NOT NULL
----
12

query I rowsort
SELECT ALL - 63 FROM tab0 WHERE - ( col1 ) >= 99
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT - col1 - - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT BETWEEN 11 AND - col0 + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT + SUM( + - col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2490
SELECT + SUM ( + - col1 ) FROM tab0 cor0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 49 * col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( col0 / + ( ( col0 ) ) )
----

query I rowsort
SELECT DISTINCT + - 98 * + col1 FROM tab2 cor0
----
-4998
-6566
-7546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2494
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT ALL - col0 + col1 * col2 AS col0 FROM tab1 AS cor0 WHERE - ( + 45 ) >= 25 / 24
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT ALL + col1 DIV - col0 + + col1 AS col0 FROM tab2 AS cor0
----
50
67
76

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL + col1 / - col0 + + col1 AS col0 FROM tab2 AS cor0
----
50
67
76

query I rowsort
SELECT ALL + col2 * col1 * - 71 * + 87 AS col1 FROM tab1 AS cor0
----
-1822215
-19741692
-8301888

query I rowsort
SELECT + 63 * + col2 AS col2 FROM tab2
----
1449
2520
3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT ALL - col1 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - col1 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + col1 FROM tab1 WHERE NOT + 79 - 58 <> ( - 44 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2501
SELECT ALL CAST( + ( + - 95 ) AS SIGNED ) FROM tab0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL CAST ( + ( + - 95 ) AS INTEGER ) FROM tab0
----
-95
-95
-95

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - 56 + + 4 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) > ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2504
SELECT + ( 10 ) AS col1, - CAST( - col1 AS SIGNED ) FROM tab1
----
10
14
10
47
10
5

skipif mysql # not compatible
query II rowsort label-2504
SELECT + ( 10 ) AS col1, - CAST ( - col1 AS INTEGER ) FROM tab1
----
10
14
10
47
10
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL + MIN( DISTINCT - - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + MIN ( DISTINCT - - col1 ) FROM tab2
----
51

query I rowsort
SELECT - col2 * ( 90 ) AS col2 FROM tab0
----
-4230
-8910
-900

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT col2 - + 69 FROM tab2 AS cor0
----
-11
-29
-46

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NULL IN ( col2 * + 5 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2510
SELECT ALL + 51 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) - col1 - - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL + 51 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) - col1 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT ALL - + MIN( ALL - - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL - + MIN ( ALL - - col1 ) AS col2 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - col0 * + 28 * + + col1 AS col2 FROM tab2 AS cor0
----
-137984
-140700
-65688

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT DISTINCT - - ( COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT - - ( COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 80 * + 97 AS col1 FROM tab2 AS cor0
----
7760

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + col1 / + - 5 )
----

query I rowsort
SELECT ALL + + ( - ( col2 ) ) * + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT 40 DIV - + col0 AS col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT 40 / - + col0 AS col0 FROM tab0 AS cor0
----
-2
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - 25 ) <= - 47 AND + col1 = NULL
----

query I rowsort
SELECT ALL + 10 * - - col1 * - col2 + + - 43 AS col1 FROM tab1 AS cor0
----
-13483
-2993
-32003

query I rowsort
SELECT + 7 AS col1 FROM tab1
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT DISTINCT col0 * - CAST( 68 AS SIGNED ) FROM tab0
----
-1020
-5916
-6596

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT col0 * - CAST ( 68 AS INTEGER ) FROM tab0
----
-1020
-5916
-6596

query II rowsort
SELECT DISTINCT + col1, - col1 FROM tab1 WHERE NOT - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL + COUNT( 78 ) * + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL + COUNT ( 78 ) * + COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL COUNT( - + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL COUNT ( - + col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT MAX( - 89 ) AS col1 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT MAX ( - 89 ) AS col1 FROM tab2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT - col0 DIV - 59 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2526
SELECT - col0 / - 59 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT - CAST( NULL AS SIGNED ) * + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT - CAST ( NULL AS INTEGER ) * + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 88 ) FROM tab0 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL COUNT( * ) + - - 37 AS col1 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL COUNT ( * ) + - - 37 AS col1 FROM tab1 AS cor0
----
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 53 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - + col1 * - col1 col1 FROM tab2 AS cor0
----
2555
4414
5865

query I rowsort
SELECT ALL + 59 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT DISTINCT - COUNT( DISTINCT - 48 ) AS col0 FROM tab2 WHERE - col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT - COUNT ( DISTINCT - 48 ) AS col0 FROM tab2 WHERE - col0 >= NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2534
SELECT * FROM tab0 WHERE + CAST( - col1 AS DECIMAL ) - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2534
SELECT * FROM tab0 WHERE + CAST ( - col1 AS REAL ) - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + col1 NOT IN ( + 59, col1 ) OR NULL IS NOT NULL
----

query I rowsort
SELECT 5 + - col2 FROM tab2 AS cor0
----
-18
-35
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT ALL + + COUNT( DISTINCT + 38 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL + + COUNT ( DISTINCT + 38 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col1 + + ( - 47 ) * + - 25 + - + col1 * 34 FROM tab1 AS cor0
----
-470
1000
685

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND ( - col1 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 IN ( + col0, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT DISTINCT 13 - 34 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT 13 - 34 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2542
SELECT - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT - - 34 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2544
SELECT + COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT + COUNT ( * ) * - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2545
SELECT DISTINCT + CAST( + 22 AS SIGNED ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT + CAST ( + 22 AS INTEGER ) FROM tab2 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT ALL + - MIN( ALL + 87 ) * + 86 AS col2 FROM tab2 AS cor0
----
-7482

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL + - MIN ( ALL + 87 ) * + 86 AS col2 FROM tab2 AS cor0
----
-7482

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + col1 * - ( + col2 ) * - col2 + col0 + 97 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT + MAX( + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT + MAX ( + col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT - col0 * - ( + + col0 ) FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2550
SELECT + CAST( - col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-2550
SELECT + CAST ( - col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT ALL 39 * + - col2 AS col0, + 80 FROM tab2 AS cor0
----
-1560
80
-2262
80
-897
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 62 + 89 ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT DISTINCT + - 84 * + + ( CAST( - - col1 AS SIGNED ) ) * - 49 col1 FROM tab1 cor0
----
193452
20580
57624

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2553
SELECT DISTINCT + - 84 * + + ( CAST ( - - col1 AS INTEGER ) ) * - 49 col1 FROM tab1 cor0
----
193452
20580
57624

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT DISTINCT + - 89 DIV + col1 FROM tab0 AS cor0
----
-1
-4
-89

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT + - 89 / + col1 FROM tab0 AS cor0
----
-1
-4
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2555
SELECT DISTINCT + col2 * + + CAST( NULL AS DECIMAL ), 52 col2 FROM tab1 AS cor0
----
NULL
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2555
SELECT DISTINCT + col2 * + + CAST ( NULL AS REAL ), 52 col2 FROM tab1 AS cor0
----
NULL
52

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2556
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) <> ( + - col2 + + - col2 )
----

skipif mysql # not compatible
query III rowsort label-2556
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) <> ( + - col2 + + - col2 )
----

query I rowsort
SELECT DISTINCT + 97 AS col2 FROM tab0
----
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + - ( col0 ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT 28 * - 30 - 0 + + 96 / - col0 * + + col2 + col2 FROM tab1 WHERE NOT NULL BETWEEN + col0 / + - col2 AND NULL
----

query II rowsort
SELECT - col0, 31 AS col2 FROM tab2
----
-46
31
-64
31
-75
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2562
SELECT + col0 * - col2 + - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2562
SELECT + col0 * - col2 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2563
SELECT 13 DIV 72 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2563
SELECT 13 / 72 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2564
SELECT col2 DIV + 60 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2564
SELECT col2 / + 60 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT - 51, col0 FROM tab0
----
-51
15
-51
87
-51
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + ( - 2 ) * - - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * - col0 * - ( + col2 ) >= + col1 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 74 + - col2 FROM tab1 AS cor0
----
-22
15
6

query I rowsort
SELECT - ( - + 28 ) FROM tab0
----
28
28
28

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE + 67 IS NULL
----

query I rowsort
SELECT ALL 5 * 27 FROM tab2
----
135
135
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT ALL + MAX( DISTINCT + 12 ) * - + 30 col0 FROM tab2 AS cor0
----
-360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2573
SELECT ALL + MAX ( DISTINCT + 12 ) * - + 30 col0 FROM tab2 AS cor0
----
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT DISTINCT - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 18 IN ( col2 * 97, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 40 AS col0 FROM tab1 cor0
----
40

query II rowsort
SELECT ALL - col2, + 0 AS col2 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT + SUM( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2578
SELECT + SUM ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - 96 * - 77 AS col2 FROM tab1 AS cor0
----
7392
7392
7392

query I rowsort
SELECT ALL + + ( col1 ) + - 51 FROM tab1 AS cor0
----
-37
-4
-46

query I rowsort
SELECT col1 * - col1 * - 26 FROM tab2
----
116714
154154
67626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT - ( + COUNT( * ) ) + - + 32 * - CAST( NULL AS SIGNED ) / SUM( 79 ) * + 54 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT - ( + COUNT ( * ) ) + - + 32 * - CAST ( NULL AS INTEGER ) / SUM ( 79 ) * + 54 AS col2 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT ALL + - col0 * - col1 * - + col0 AS col2 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2586
SELECT COUNT( * ) * MAX( + col2 ) DIV + 53 AS col1 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2586
SELECT COUNT ( * ) * MAX ( + col2 ) / + 53 AS col1 FROM tab0 AS cor0
----
5

query I rowsort
SELECT + col1 * - - col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2589
SELECT 75, ( + + col1 ) + col2 + 76 - + col1 + - ( - 67 ) * CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
75
-5743
75
-6324
75
-882

skipif mysql # not compatible
query II rowsort label-2589
SELECT 75, ( + + col1 ) + col2 + 76 - + col1 + - ( - 67 ) * CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
75
-5743
75
-6324
75
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT + SUM( ALL 91 ) col1 FROM tab0 cor0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2590
SELECT + SUM ( ALL 91 ) col1 FROM tab0 cor0
----
273

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT - 96 * - + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2592
SELECT - 96 * - + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-96

query I rowsort
SELECT + 29 * - - 83 AS col0 FROM tab0
----
2407
2407
2407

query I rowsort
SELECT DISTINCT - - 8 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL 0 AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2597
SELECT ALL - CAST( NULL AS SIGNED ) * - 91, col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2597
SELECT ALL - CAST ( NULL AS INTEGER ) * - 91, col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT - + 65 + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-2598
SELECT - + 65 + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT 14 IS NULL
----
15
87
97

query I rowsort
SELECT + ( col2 ) * col1 * - ( - col0 ) + - - 69 + - - col0 + - col2 + - - 6 FROM tab1 AS cor0
----
25176
290934
68574

query II rowsort
SELECT ALL col2, 68 FROM tab2 cor0 WHERE col0 = + + 8
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT BETWEEN - + col1 - + + 96 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col0 <> 77 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT - ( - CAST( - col2 AS SIGNED ) ) col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2604
SELECT - ( - CAST ( - col2 AS INTEGER ) ) col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + col1 * + 50 * + 41 FROM tab2 AS cor0
----
104550
137350
157850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT + CAST( - 82 AS SIGNED ) FROM tab0 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-2607
SELECT + CAST ( - 82 AS INTEGER ) FROM tab0 AS cor0
----
-82
-82
-82

query II rowsort
SELECT - ( - col0 ) - + + col0, + col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT ALL 13 * - MAX( + + col1 ) FROM tab2 AS cor0
----
-1001

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL 13 * - MAX ( + + col1 ) FROM tab2 AS cor0
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT COUNT( * ) - - + COUNT( * ) * 22 + + COUNT( * ) FROM tab1 cor0
----
72

skipif mysql # not compatible
query I rowsort label-2610
SELECT COUNT ( * ) - - + COUNT ( * ) * 22 + + COUNT ( * ) FROM tab1 cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2611
SELECT DISTINCT + + 25 DIV + col1 FROM tab1 cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT + + 25 / + col1 FROM tab1 cor0
----
0
1
5

query I rowsort
SELECT DISTINCT 84 FROM tab0 AS cor0 WHERE NULL IS NULL
----
84

query I rowsort
SELECT - 93 + - + 97 FROM tab1 AS cor0
----
-190
-190
-190

query I rowsort
SELECT ALL ( col1 ) - - col0 + + ( col0 ) FROM tab1
----
116
175
229

query I rowsort
SELECT DISTINCT - 44 - + col2 + 20 AS col1 FROM tab0
----
-123
-34
-71

query II rowsort
SELECT ALL + col0 AS col1, - col2 AS col2 FROM tab0
----
15
-47
87
-10
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 - - - 34 col0 FROM tab0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2618
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ( + + ( + - col2 ) ) * + 1 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2620
SELECT ALL 89 DIV - 23 - - COUNT( + col1 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL 89 / - 23 - - COUNT ( + col1 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT 3 * + col2 AS col0 FROM tab0
----
141
297
30

query I rowsort
SELECT ALL - + 15 AS col0 FROM tab1 cor0 WHERE NOT ( NOT NULL <> NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 77 + + col1 BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT + + col1 DIV - 69 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2624
SELECT + + col1 / - 69 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2625
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2626
SELECT ALL - 61 DIV + + COUNT( * ) AS col2, COUNT( * ) col2 FROM tab2 AS cor0
----
-20
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2626
SELECT ALL - 61 / + + COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab2 AS cor0
----
-20
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT ALL + + COUNT( ALL + - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL + + COUNT ( ALL + - col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT ALL - MIN( - + 82 ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL - MIN ( - + 82 ) FROM tab0 AS cor0
----
82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> + + col2
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 < NULL
----

query II rowsort
SELECT 67 AS col0, col0 AS col2 FROM tab1
----
67
51
67
85
67
91

query II rowsort
SELECT DISTINCT - col1, col0 * + - col1 AS col0 FROM tab0
----
-1
-97
-21
-1827
-81
-1215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2633
SELECT - 7 DIV + COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-2633
SELECT - 7 / + COUNT ( * ) FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT + MAX( DISTINCT - ( - col0 ) ) * - ( - COUNT( * ) ) AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-2634
SELECT + MAX ( DISTINCT - ( - col0 ) ) * - ( - COUNT ( * ) ) AS col1 FROM tab2
----
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 + + 97 + + col1, col1 + - - col2 col1 FROM tab2 AS cor0
----
171
74
214
117
222
125

query I rowsort
SELECT DISTINCT - + 87 + 94 FROM tab1 AS cor0
----
7

query I rowsort
SELECT col0 + + - col1 + + col0 FROM tab2
----
41
51
83

query I rowsort
SELECT col2 + + 94 + + col2 * ( + col1 ) + 0 + + ( - + 72 ) AS col0 FROM tab1
----
1462
3286
376

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT ALL MIN( ALL + 54 ) + COUNT( * ) col2 FROM tab1
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2639
SELECT ALL MIN ( ALL + 54 ) + COUNT ( * ) col2 FROM tab1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT + 46 + + - COUNT( * ) * + COUNT( * ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-2640
SELECT + 46 + + - COUNT ( * ) * + COUNT ( * ) FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT COUNT( * ) + + - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2641
SELECT COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab0
----
0

query II rowsort
SELECT col0 + col1 AS col0, + ( + + 98 ) FROM tab2
----
141
98
142
98
97
98

query II rowsort
SELECT 71 + col1 AS col1, - col2 + - - 70 + - col2 FROM tab0
----
152
-24
72
-128
92
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT MAX( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT MAX ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2645
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2646
SELECT col0 DIV col2, col1 FROM tab2 AS cor0
----
1
67
1
77
2
51

skipif mysql # not compatible
query II rowsort label-2646
SELECT col0 / col2, col1 FROM tab2 AS cor0
----
1
67
1
77
2
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - 49 <> - col0 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - 49 <> - col0 + + col1
----
0

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NULL > ( + - 59 ) * - col2 + - 78 + + - col1
----

query I rowsort
SELECT ALL 62 - col0 FROM tab0 AS cor0
----
-25
-35
47

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT IN ( col1 * - col2 + - 35 + 50, col1, - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - col1 + col2 <= NULL
----

query I rowsort
SELECT DISTINCT col0 * col1 - - col1 AS col0 FROM tab1
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT DISTINCT MIN( - 21 ) - - ( COUNT( * ) ) + COUNT( * ) * 41 AS col1 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT MIN ( - 21 ) - - ( COUNT ( * ) ) + COUNT ( * ) * 41 AS col1 FROM tab0
----
105

query II rowsort
SELECT ALL - col1 * - 86 - + col0, col0 FROM tab0
----
-11
97
1719
87
6951
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT DISTINCT - col2 DIV 23 FROM tab0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - col2 / 23 FROM tab0
----
-2
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL + + ( - + COUNT( DISTINCT col2 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL + + ( - + COUNT ( DISTINCT col2 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 65 * - col1 * 59 FROM tab2 AS cor0
----
195585
256945
295295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2658
SELECT ALL + + col2 - 82 - + CAST( NULL AS SIGNED ) - 29 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL + + col2 - 82 - + CAST ( NULL AS INTEGER ) - 29 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - 7 * - col2 + - - col2 AS col0 FROM tab2 AS cor0
----
-138
-240
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL - COUNT( ALL + col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL - COUNT ( ALL + col2 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + - 57 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 29 * + 30 AND NULL
----

query I rowsort
SELECT - ( - 62 ) * - col1 AS col0 FROM tab1 AS cor0
----
-2914
-310
-868

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 5 AS col0, - col0 AS col2 FROM tab2 AS cor0
----
5
-46
5
-64
5
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-2666
SELECT + + 56 col2, 32 * col2 * - + 87 + + ( 71 ) DIV + 21 FROM tab1 AS cor0
----
56
-164253
56
-189309
56
-267261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2666
SELECT + + 56 col2, 32 * col2 * - + 87 + + ( 71 ) / + 21 FROM tab1 AS cor0
----
56
-164253
56
-189309
56
-267261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 98 col1, 46 AS col1 FROM tab0 AS cor0
----
-98
46
-98
46
-98
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT DISTINCT + MIN( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT + MIN ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2669
SELECT ALL 57 + - - COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL 57 + - - COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2670
SELECT ALL + MIN( DISTINCT - - col0 ) DIV + + COUNT( * ) AS col1 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL + MIN ( DISTINCT - - col0 ) / + + COUNT ( * ) AS col1 FROM tab1
----
17

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE - 93 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( col1 ) col1, 65 FROM tab2
----
51
65
67
65
77
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT DISTINCT + SUM( ALL - + 94 ) col2 FROM tab1 cor0
----
-282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2673
SELECT DISTINCT + SUM ( ALL - + 94 ) col2 FROM tab1 cor0
----
-282

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2674
SELECT + CAST( + ( - 66 ) AS SIGNED ) + - col0 + 36 col0, col2 AS col0 FROM tab1 AS cor0
----
-115
59
-121
68
-81
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2674
SELECT + CAST ( + ( - 66 ) AS INTEGER ) + - col0 + 36 col0, col2 AS col0 FROM tab1 AS cor0
----
-115
59
-121
68
-81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT + COUNT( * ) + + 11 * 65 FROM tab2 AS cor0
----
718

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + COUNT ( * ) + + 11 * 65 FROM tab2 AS cor0
----
718

onlyif mysql # aggregate syntax: 
query II rowsort label-2676
SELECT COUNT( * ), COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NOT 76 IS NULL )
----
3
3

skipif mysql # not compatible
query II rowsort label-2676
SELECT COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NOT 76 IS NULL )
----
3
3

query I rowsort
SELECT ALL + + ( + col1 ) * - - col1 + - + col2 - - + 53 FROM tab1 AS cor0
----
153
19
2194

query I rowsort
SELECT DISTINCT ( + - col2 ) AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL + - 18 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query II rowsort
SELECT col0 AS col2, + col0 AS col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT - COUNT( * ) - + + COUNT( ALL - col0 ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2681
SELECT - COUNT ( * ) - + + COUNT ( ALL - col0 ) AS col2 FROM tab2
----
-6

query I rowsort
SELECT DISTINCT 68 + col1 FROM tab1 AS cor0
----
115
73
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2683
SELECT DISTINCT - + COUNT( * ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2683
SELECT DISTINCT - + COUNT ( * ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT - col1 + - 21 + + col1 AS col0 FROM tab1 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2685
SELECT ALL COUNT( * ) + - MIN( 25 ) + + + 31 DIV + 80 AS col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL COUNT ( * ) + - MIN ( 25 ) + + + 31 / + 80 AS col0 FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT + - SUM( - 94 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-2686
SELECT + - SUM ( - 94 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
285

query II rowsort
SELECT + ( - + 96 ) + - col1, 57 * col1 * 32 * + 50 + + col0 AS col0 FROM tab1 AS cor0
----
-101
456085
-110
1276851
-143
4286491

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + 2 IS NOT NULL
----

query I rowsort
SELECT - - 8 + + col1 FROM tab2 AS cor0
----
59
75
85

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN col2 * + 89 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( 66 )
----

query I rowsort
SELECT + col1 * col2 * + 94 FROM tab0
----
19740
357858
9306

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT + + SUM( + col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT + + SUM ( + col1 ) AS col1 FROM tab0 AS cor0
----
103

query II rowsort
SELECT DISTINCT - col1 * - col2 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
1344
-14
295
-5
3196
-47

query I rowsort
SELECT DISTINCT - 29 * col1 FROM tab0 AS cor0
----
-2349
-29
-609

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2696
SELECT ALL + CAST( NULL AS DECIMAL ) / + SUM( DISTINCT + 37 ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2696
SELECT ALL + CAST ( NULL AS REAL ) / + SUM ( DISTINCT + 37 ) col0 FROM tab2
----
NULL

query I rowsort
SELECT - col2 * + ( + + col2 ) FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2698
SELECT + CAST( + 65 AS SIGNED ) * + col1 - col2 AS col2 FROM tab2
----
3292
4297
4965

skipif mysql # not compatible
query I rowsort label-2698
SELECT + CAST ( + 65 AS INTEGER ) * + col1 - col2 AS col2 FROM tab2
----
3292
4297
4965

query I rowsort
SELECT - + 57 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL + + col0 * - 26 FROM tab1 AS cor0
----
-1326
-2210
-2366

onlyif mysql # aggregate syntax: 
query II rowsort label-2701
SELECT + ( + MAX( ALL 19 ) ), + 92 + + + 79 AS col2 FROM tab1 AS cor0
----
19
171

skipif mysql # not compatible
query II rowsort label-2701
SELECT + ( + MAX ( ALL 19 ) ), + 92 + + + 79 AS col2 FROM tab1 AS cor0
----
19
171

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + - + 67 + - + col2 - + - 97 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + 57 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + 57 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT DISTINCT MIN( + col0 ) col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2705
SELECT DISTINCT MIN ( + col0 ) col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + 14 + + - col1 AS col2 FROM tab1 AS cor0
----
-33
0
9

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT col0 * - + col1 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2708
SELECT ALL col2 / - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL col2 / - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 77 * - - 63 FROM tab1
----
4851
4851
4851

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query II rowsort
SELECT DISTINCT col2 AS col0, + col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2712
SELECT DISTINCT COUNT( * ) col2, 53 FROM tab2
----
3
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2712
SELECT DISTINCT COUNT ( * ) col2, 53 FROM tab2
----
3
53

query II rowsort
SELECT ALL col2, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2714
SELECT ( - - ( - 75 ) ) DIV + COUNT( * ) FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-2714
SELECT ( - - ( - 75 ) ) / + COUNT ( * ) FROM tab1
----
-25

query II rowsort
SELECT DISTINCT col1 AS col0, 26 AS col2 FROM tab0
----
1
26
21
26
81
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT col2 DIV + col1 * + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2716
SELECT col2 / + col1 * + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col2 + + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 43 * - + ( 43 ) AS col1 FROM tab2 AS cor0
----
-1849
-1849
-1849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2719
SELECT DISTINCT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 91 col2 FROM tab1 cor0
----
91

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE + - 25 * + col0 * + col1 - + - 91 IS NOT NULL AND NULL NOT BETWEEN 43 - - col1 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT DISTINCT col0 + - + CAST( + 2 AS SIGNED ) * - - col2 FROM tab2
----
-16
-41
0

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT col0 + - + CAST ( + 2 AS INTEGER ) * - - col2 FROM tab2
----
-16
-41
0

query I rowsort
SELECT - col0 + + + 3 FROM tab1
----
-48
-82
-88

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL 18 * col1 * col0 - - col1 AS col1 FROM tab2
----
42279
88781
90517

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT ALL + COUNT( * ) * + - 72 AS col2 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL + COUNT ( * ) * + - 72 AS col2 FROM tab2 AS cor0
----
-216

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 57 + 69 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2728
SELECT ALL SUM( DISTINCT col0 ), + COUNT( * ) DIV + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
227
-1

skipif mysql # not compatible
query II rowsort label-2728
SELECT ALL SUM ( DISTINCT col0 ), + COUNT ( * ) / + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
227
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col0 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT - COUNT( DISTINCT - - 69 ) col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2730
SELECT - COUNT ( DISTINCT - - 69 ) col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL + 22 * + - col0 * - col2 AS col0 FROM tab2
----
23276
56320
95700

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT 9 * COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-2733
SELECT 9 * COUNT ( * ) FROM tab1
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col0 FROM tab2
----
-90
-90
-90

query II rowsort
SELECT ALL col0, ( + col1 ) FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2736
SELECT col0 AS col2, col2 + - CAST( NULL AS SIGNED ) * 63 * col2 col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2736
SELECT col0 AS col2, col2 + - CAST ( NULL AS INTEGER ) * 63 * col2 col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT - + 42 * - + ( ( 65 ) ) - + 17 FROM tab0 AS cor0
----
2713
2713
2713

query I rowsort
SELECT DISTINCT + 20 * - col2 AS col0 FROM tab0 AS cor0
----
-1980
-200
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT + ( - MAX( col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2739
SELECT + ( - MAX ( col2 ) ) AS col2 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + - ( + ( - col1 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * 5 * col1 * - + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab2 AS cor0 WHERE - col1 = NULL
----

query II rowsort
SELECT DISTINCT 22 + 19 * 76 AS col0, 83 AS col2 FROM tab1
----
1466
83

query I rowsort
SELECT DISTINCT col1 + col0 / + 76 AS col2 FROM tab1 WHERE + ( + 54 ) IS NULL
----

query I rowsort
SELECT 59 * - col1 + - 45 AS col0 FROM tab2
----
-3054
-3998
-4588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT 15 + + CAST( - - 92 AS SIGNED ) AS col2 FROM tab2
----
107
107
107

skipif mysql # not compatible
query I rowsort label-2746
SELECT 15 + + CAST ( - - 92 AS INTEGER ) AS col2 FROM tab2
----
107
107
107

query II rowsort
SELECT ALL col2 * - 88 * - 37, col2 FROM tab0
----
153032
47
322344
99
32560
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - SUM( - ( - - 94 ) ) + + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
279

skipif mysql # not compatible
query I rowsort label-2748
SELECT - SUM ( - ( - - 94 ) ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
279

query I rowsort
SELECT DISTINCT 73 + 62 AS col1 FROM tab1 cor0
----
135

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + col1 - - + ( + - col0 ) + - + 84 * + col0 - + col0 FROM tab0
----
-1209
-7461
-8341

query I rowsort
SELECT - 29 + ( col2 ) FROM tab1 AS cor0
----
30
39
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT - 32 + SUM( + 8 ) AS col1 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2753
SELECT - 32 + SUM ( + 8 ) AS col1 FROM tab0 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT SUM( DISTINCT + 51 ) * - COUNT( - col2 ) AS col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2754
SELECT SUM ( DISTINCT + 51 ) * - COUNT ( - col2 ) AS col0 FROM tab1 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT - - 92 DIV + - col2 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-2755
SELECT - - 92 / + - col2 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT ( + - col2 ) AS col1 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT + MIN( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2757
SELECT + MIN ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT DISTINCT + col1, col2, - 75 FROM tab0 AS cor0
----
9 values hashing to 73ae9ff1078a8a3eb29e226e811c5f5f

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT 78 * - - 68 * COUNT( * ) FROM tab2
----
15912

skipif mysql # not compatible
query I rowsort label-2760
SELECT 78 * - - 68 * COUNT ( * ) FROM tab2
----
15912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2761
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 WHERE - - col2 * - + 57 * col1 > - 56 * col2
----

skipif mysql # not compatible
query I rowsort label-2761
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 WHERE - - col2 * - + 57 * col1 > - 56 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT - - COUNT( * ) * - COUNT( * ) FROM tab1 WHERE NOT + col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2762
SELECT - - COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE NOT + col1 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ( + + COUNT( ALL col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2763
SELECT ( + + COUNT ( ALL col1 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - ( + 6 ) * - - col1 FROM tab0
----
-126
-486
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2765
SELECT 90 DIV 75 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2765
SELECT 90 / 75 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT - col0 * + - 44 FROM tab2
----
2024
2816
3300

onlyif mysql # aggregate syntax: 
query II rowsort label-2767
SELECT DISTINCT + 67 * - MAX( + - col2 ) AS col1, + 97 AS col2 FROM tab1
----
3953
97

skipif mysql # not compatible
query II rowsort label-2767
SELECT DISTINCT + 67 * - MAX ( + - col2 ) AS col1, + 97 AS col2 FROM tab1
----
3953
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 + - + 84 col0 FROM tab2
----
-170
-170
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2769
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col1 * - col2 * - - 71 FROM tab1
----
-20945
-226916
-95424

query I rowsort
SELECT DISTINCT + 98 * col1 FROM tab0 AS cor0
----
2058
7938
98

query I rowsort
SELECT ALL ( + - col0 ) FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + 10 FROM tab2 AS cor0 WHERE - col2 * - - col1 + - col2 IS NULL
----

query I rowsort
SELECT + col1 + - ( + - col1 ) * + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1224
3157
3953

query I rowsort
SELECT - 84 * + 50 + - - col1 AS col0 FROM tab0 AS cor0
----
-4119
-4179
-4199

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT - 37 DIV - - col1 + + col1 + + col0 + - + 82 - + col2 + - + 57 col0 FROM tab1 AS cor0
----
-115
-172
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2776
SELECT - 37 / - - col1 + + col1 + + col0 + - + 82 - + col2 + - + 57 col0 FROM tab1 AS cor0
----
-115
-172
-69

query I rowsort
SELECT ALL - col1 + - - col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - - ( 28 ) AS col1 FROM tab1 cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT - SUM( + + col0 ) * + 50 FROM tab0
----
-9950

skipif mysql # not compatible
query I rowsort label-2780
SELECT - SUM ( + + col0 ) * + 50 FROM tab0
----
-9950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT + - CAST( col1 AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2781
SELECT + - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT - MAX( ALL + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2782
SELECT - MAX ( ALL + col1 ) FROM tab1
----
-47

query I rowsort
SELECT ALL 7 * - + 45 AS col2 FROM tab1
----
-315
-315
-315

query I rowsort
SELECT DISTINCT + 71 * + 0 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col1 - + 24 FROM tab2
----
-101
-75
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-2786
SELECT DISTINCT - 44 DIV - col2, + col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-2786
SELECT DISTINCT - 44 / - col2, + col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2787
SELECT - col0 - - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2787
SELECT - col0 - - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2788
SELECT col1 + - - 34 * col0 DIV col0 AS col1 FROM tab0
----
115
35
55

skipif mysql # not compatible
query I rowsort label-2788
SELECT col1 + - - 34 * col0 / col0 AS col1 FROM tab0
----
115
35
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2789
SELECT ALL - col0 DIV - - 97 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL - col0 / - - 97 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2790
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE - ( + CAST( NULL AS SIGNED ) ) * + + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE - ( + CAST ( NULL AS INTEGER ) ) * + + col0 IS NULL
----
-3

query I rowsort
SELECT - + 17 FROM tab0 cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2792
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2792
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 47 + 44 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT - 95 * + COUNT( * ) FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-2794
SELECT - 95 * + COUNT ( * ) FROM tab0 AS cor0
----
-285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2795
SELECT - 63 DIV 55 + + - MIN( + col1 ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-2795
SELECT - 63 / 55 + + - MIN ( + col1 ) FROM tab2 AS cor0
----
-52

query II rowsort
SELECT + col2, ( - col1 ) AS col0 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2797
SELECT COUNT( * ) DIV 62 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2797
SELECT COUNT ( * ) / 62 AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * - col0 col1 FROM tab1
----
1275
2125
2275

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2799
SELECT * FROM tab0 WHERE NOT NULL >= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2799
SELECT * FROM tab0 WHERE NOT NULL >= + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL - MIN( ALL + + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL - MIN ( ALL + + col0 ) FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT DISTINCT + 12 FROM tab0 AS cor0 WHERE ( CAST( - - 62 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT + 12 FROM tab0 AS cor0 WHERE ( CAST ( - - 62 AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - 84 )
----

query I rowsort
SELECT + - 2 + + - col0 AS col1 FROM tab1 cor0
----
-53
-87
-93

query II rowsort
SELECT col1 + 79 * col2 * + 14 * - + col1 + 94 AS col2, + col2 AS col2 FROM tab0 AS cor0
----
-109399
99
-232145
10
-4210367
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2805
SELECT ALL - + 16, + MIN( - + col0 ) AS col1 FROM tab2 AS cor0
----
-16
-75

skipif mysql # not compatible
query II rowsort label-2805
SELECT ALL - + 16, + MIN ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-16
-75

query II rowsort
SELECT DISTINCT + + col1 + + col0 AS col0, col2 * - - col0 FROM tab0 AS cor0
----
108
870
96
705
98
9603

query II rowsort
SELECT - + col2 * + - 60, - ( + col0 ) AS col2 FROM tab1 AS cor0
----
3540
-85
4080
-91
5760
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-2808
SELECT DISTINCT col0 + - 84 DIV col0 * + col2 AS col1, 36 FROM tab0
----
-220
36
87
36
97
36

skipif mysql # not compatible
query II rowsort label-2808
SELECT DISTINCT col0 + - 84 / col0 * + col2 AS col1, 36 FROM tab0
----
-220
36
87
36
97
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2809
SELECT ALL COUNT( * ) col2, + CAST( NULL AS SIGNED ) FROM tab2
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2809
SELECT ALL COUNT ( * ) col2, + CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 <> 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL + 84 * - COUNT( * ) AS col0 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL + 84 * - COUNT ( * ) AS col0 FROM tab1
----
-252

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col0 * col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 66, - col2 AS col0 FROM tab0
----
66
-10
66
-47
66
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2814
SELECT - col1 DIV 86 + + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2814
SELECT - col1 / 86 + + + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2815
SELECT - MAX( DISTINCT + col2 ) * + AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT - MAX ( DISTINCT + col2 ) * + AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 32 * + col0 FROM tab2 AS cor0
----
1472
2048
2400

onlyif mysql # aggregate syntax: 
query II rowsort label-2817
SELECT 37 AS col1, + COUNT( * ) FROM tab2 AS cor0
----
37
3

skipif mysql # not compatible
query II rowsort label-2817
SELECT 37 AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
37
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT MIN( ALL - + col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2818
SELECT MIN ( ALL - + col0 ) AS col2 FROM tab2
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT ALL col0 DIV + 52 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL col0 / + 52 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL + ( + 64 ) AS col2 FROM tab0 AS cor0
----
64
64
64

query I rowsort
SELECT + + 86 AS col1 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT - + 87 AS col0 FROM tab2 AS cor0
----
-87
-87
-87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * - - ( - - col2 ) <> + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + + col1 * - col2 / + - 46 * col0 + 77 / col0 AND NULL OR NOT - col2 - + col1 NOT BETWEEN - - col1 AND + - col1 + col1
----

query II rowsort
SELECT DISTINCT + ( + col0 ) AS col2, 44 * 86 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - ( col2 ) AS col1, - 71 AS col2 FROM tab1 AS cor0
----
-59
-71
-68
-71
-96
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2828
SELECT DISTINCT 80 DIV - col2 AS col0 FROM tab0 AS cor0 WHERE NOT CAST( + 82 AS SIGNED ) * + + col0 * - col1 BETWEEN + + col0 AND - 24
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT 80 / - col2 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( + 82 AS INTEGER ) * + + col0 * - col1 BETWEEN + + col0 AND - 24
----
-1
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col0 col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 31 BETWEEN - + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2831
SELECT ALL - 77 DIV + col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL - 77 / + col0 FROM tab1
----
-1
0
0

query II rowsort
SELECT - col1 AS col0, 29 FROM tab0
----
-1
29
-21
29
-81
29

query I rowsort
SELECT ( + 37 ) * col2 AS col1 FROM tab2 WHERE NOT + + 16 IS NULL
----
1480
2146
851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2834
SELECT ALL CAST( - 74 AS SIGNED ) FROM tab2
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL CAST ( - 74 AS INTEGER ) FROM tab2
----
-74
-74
-74

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL BETWEEN 70 AND - col0 + - 51
----

query II rowsort
SELECT - 78 AS col2, + col2 * 23 FROM tab2 AS cor0
----
-78
1334
-78
529
-78
920

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT DISTINCT - MIN( ALL col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT - MIN ( ALL col2 ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT col1 FROM tab0 WHERE + col1 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL ( - 92 ) AS col0 FROM tab2 AS cor0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT - col2 + + 31 AS col1 FROM tab1 cor0
----
-28
-37
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT ALL 44 * - col2 + 58 - + CAST( - col1 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
1647
1995
4227

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL 44 * - col2 + 58 - + CAST ( - col1 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
1647
1995
4227

query I rowsort
SELECT ALL + col2 - - 55 AS col2 FROM tab1
----
114
123
151

query I rowsort
SELECT ALL - 50 + - - 3 FROM tab1
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT DISTINCT - 44 - + col1 + - - col2 DIV 57 + + col1 FROM tab0
----
-43
-44

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - 44 - + col1 + - - col2 / 57 + + col1 FROM tab0
----
-43
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2845
SELECT * FROM tab1 WHERE ( NULL ) IN ( - col0, col2, - CAST( NULL AS SIGNED ) - + - col2 )
----

skipif mysql # not compatible
query III rowsort label-2845
SELECT * FROM tab1 WHERE ( NULL ) IN ( - col0, col2, - CAST ( NULL AS INTEGER ) - + - col2 )
----

query I rowsort
SELECT - ( ( + 5 ) ) AS col2 FROM tab2
----
-5
-5
-5

query I rowsort
SELECT DISTINCT 99 - + 66 FROM tab0
----
33

query II rowsort
SELECT DISTINCT 66 + col0, col0 FROM tab0
----
153
87
163
97
81
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2849
SELECT ALL COUNT( DISTINCT col0 ) - + MAX( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL COUNT ( DISTINCT col0 ) - + MAX ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT 47 * + + 47 * - - 35 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query III rowsort
SELECT 9 * - + col2, 41 AS col1, - col1 * - col1 AS col1 FROM tab2 AS cor0
----
9 values hashing to 8a54ca501da48bdc66239671d6eb3e00

query I rowsort
SELECT DISTINCT + 22 * 70 FROM tab0 AS cor0
----
1540

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT - col0 DIV 97 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2853
SELECT - col0 / 97 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2855
SELECT ALL - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT 89 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, 62 FROM tab2
----
23
62
40
62
58
62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 <> - 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 31 * - col0 * + - col2 * + col0 AS col2 FROM tab1 AS cor0
----
-13214525
-17456348
-7740576

query I rowsort
SELECT + + col0 * 35 FROM tab1 AS cor0
----
1785
2975
3185

query I rowsort
SELECT + col1 * + + col2 * col1 AS col2 FROM tab0 AS cor0
----
308367
4410
99

query II rowsort
SELECT ALL col2, - col0 AS col2 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query II rowsort
SELECT DISTINCT - - 28 AS col2, col0 + + 51 FROM tab1 AS cor0
----
28
102
28
136
28
142

query I rowsort
SELECT ALL + + 6 * + col0 AS col0 FROM tab1 AS cor0
----
306
510
546

onlyif mysql # DIV for integer division: 
query I rowsort label-2865
SELECT DISTINCT - 17 DIV col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT - 17 / col2 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( 41 ) ) col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 * + 69 FROM tab0
----
-1449
-5589
-69

query II rowsort
SELECT - col0 * + 70, 82 AS col1 FROM tab0
----
-1050
82
-6090
82
-6790
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2869
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab2 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - + col2 + - - ( - col2 ) + + + col1 FROM tab2 cor0
----
-3
-49
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT DISTINCT - CAST( NULL AS SIGNED ) + ( - + 71 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + ( - + 71 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-2873
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST( NULL AS DECIMAL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif mysql # not compatible
query IIIIII rowsort label-2873
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + CAST ( NULL AS REAL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL - 97 + - - 42 FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2875
SELECT - + CAST( NULL AS DECIMAL ) - 97 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2875
SELECT - + CAST ( NULL AS REAL ) - 97 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 55 - + col0 AS col2 FROM tab0 AS cor0
----
-32
-42
40

query I rowsort
SELECT - col0 - + col2 * - ( - 37 ) FROM tab0 AS cor0
----
-1754
-3760
-457

query I rowsort
SELECT + + col2 - - col0 * - 60 FROM tab2 AS cor0
----
-2737
-3800
-4442

query I rowsort
SELECT ALL + 3 + + col1 AS col1 FROM tab2 AS cor0
----
54
70
80

query I rowsort
SELECT + col1 + + + col0 AS col2 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT - - col0 + - col1 + - CAST( + col1 AS SIGNED ) * - col1 + + 5 + + 16 + 77 AS col2 FROM tab2 AS cor0
----
2694
4595
6014

skipif mysql # not compatible
query I rowsort label-2881
SELECT - - col0 + - col1 + - CAST ( + col1 AS INTEGER ) * - col1 + + 5 + + 16 + 77 AS col2 FROM tab2 AS cor0
----
2694
4595
6014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 55 ) col2 FROM tab2 AS cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 52 * + + ( col1 ) col2 FROM tab1 cor0
----
-2491
-265
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT DISTINCT + COUNT( * ) * 56 + COUNT( * ) * - 17 * SUM( + col0 ) FROM tab0 AS cor0
----
-9981

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT + COUNT ( * ) * 56 + COUNT ( * ) * - 17 * SUM ( + col0 ) FROM tab0 AS cor0
----
-9981

query I rowsort
SELECT DISTINCT 24 + + - 27 - + col2 + - col0 FROM tab1 cor0
----
-147
-150
-162

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 66 * 73 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2887
SELECT DISTINCT - 22 - - CAST( - 51 AS SIGNED ) + - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT - 22 - - CAST ( - 51 AS INTEGER ) + - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT col1, col2 AS col1 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT DISTINCT + MIN( DISTINCT - + col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT + MIN ( DISTINCT - + col2 ) AS col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT ALL - - COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL - - COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( + 57 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
57

query I rowsort
SELECT ALL - 83 * + - 74 * + col1 FROM tab2 AS cor0
----
313242
411514
472934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 59 * 14 FROM tab1 cor0
----
826

query I rowsort
SELECT DISTINCT col1 * 98 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - ( + + 96 ) AS col0 FROM tab2, tab0 AS cor0 WHERE - 31 >= + 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2897
SELECT + col1 * + CAST( - 21 AS SIGNED ) AS col2, col0 AS col2 FROM tab0
----
-1701
15
-21
97
-441
87

skipif mysql # not compatible
query II rowsort label-2897
SELECT + col1 * + CAST ( - 21 AS INTEGER ) AS col2, col0 AS col2 FROM tab0
----
-1701
15
-21
97
-441
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 99 col0 FROM tab0
----
1485
8613
9603

query I rowsort
SELECT + 49 * + col2 FROM tab1
----
2891
3332
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT - 16 * ( + - MIN( - 5 ) ) * + + ( - + 92 ) AS col1 FROM tab2
----
7360

skipif mysql # not compatible
query I rowsort label-2900
SELECT - 16 * ( + - MIN ( - 5 ) ) * + + ( - + 92 ) AS col1 FROM tab2
----
7360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2901
SELECT - CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2901
SELECT - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT ALL + - col0 * - - 15 - + - 90 AS col1 FROM tab0 cor0
----
-1215
-135
-1365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + - 85 col1 FROM tab1 AS cor0
----
-144
-153
-181

query I rowsort
SELECT DISTINCT 18 FROM tab0 AS cor0 WHERE col1 / - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL - 15 + COUNT( * ) AS col1 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - 15 + COUNT ( * ) AS col1 FROM tab0
----
-12

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 18 ) + 66 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + ( col0 ) * + col0 ) <= ( + col0 )
----

query I rowsort
SELECT + col0 * 25 FROM tab1
----
1275
2125
2275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 WHERE NOT ( col2 ) <= ( - col0 )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT + 69 + col1 AS col2 FROM tab2 WHERE + 49 * col1 BETWEEN ( - col2 * CAST( NULL AS SIGNED ) ) AND + ( - 62 ) + col1
----

skipif mysql # not compatible
query I rowsort label-2910
SELECT + 69 + col1 AS col2 FROM tab2 WHERE + 49 * col1 BETWEEN ( - col2 * CAST ( NULL AS INTEGER ) ) AND + ( - 62 ) + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT - CAST( + 89 AS SIGNED ) * - col2 FROM tab0
----
4183
8811
890

skipif mysql # not compatible
query I rowsort label-2911
SELECT - CAST ( + 89 AS INTEGER ) * - col2 FROM tab0
----
4183
8811
890

query I rowsort
SELECT - 34 * - 28 AS col1 FROM tab2
----
952
952
952

query I rowsort
SELECT 12 FROM tab1 WHERE NULL IS NULL
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL - COUNT( + col0 ) AS col0 FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - COUNT ( + col0 ) AS col0 FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE ( 59 - - col0 ) IN ( col2 * + col2 )
----

query I rowsort
SELECT + col1 * ( + col0 * - col1 ) + 42 FROM tab2
----
-119604
-336633
-379414

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT 50 * MAX( - col2 ) AS col1 FROM tab0
----
-500

skipif mysql # not compatible
query I rowsort label-2917
SELECT 50 * MAX ( - col2 ) AS col1 FROM tab0
----
-500

query I rowsort
SELECT col2 + 19 * col0 AS col1 FROM tab1
----
1065
1674
1797

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * + ( - col1 ) col2 FROM tab1
----
-2632
-280
-784

query I rowsort
SELECT DISTINCT col1 * - 90 + + col2 * ( col0 ) FROM tab2
----
-1680
-3532
-4370

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT + 41 * SUM( DISTINCT col0 * 93 ) + + 43 FROM tab1
----
865594

skipif mysql # not compatible
query I rowsort label-2921
SELECT + 41 * SUM ( DISTINCT col0 * 93 ) + + 43 FROM tab1
----
865594

query I rowsort
SELECT DISTINCT 93 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND col1 + - 4
----

query I rowsort
SELECT DISTINCT col2 + - col1 AS col2 FROM tab1 WHERE NOT - col0 - 62 BETWEEN col1 AND NULL
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2924
SELECT ALL + CAST( - 76 AS SIGNED ) AS col1 FROM tab1
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + CAST ( - 76 AS INTEGER ) AS col1 FROM tab1
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2925
SELECT DISTINCT * FROM tab0 WHERE NOT ( 0 / + 92 ) IN ( CAST( NULL AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-2925
SELECT DISTINCT * FROM tab0 WHERE NOT ( 0 / + 92 ) IN ( CAST ( NULL AS INTEGER ) * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2926
SELECT CAST( 97 AS SIGNED ) FROM tab0 WHERE NOT ( + col0 + + col1 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-2926
SELECT CAST ( 97 AS INTEGER ) FROM tab0 WHERE NOT ( + col0 + + col1 ) = NULL
----

query I rowsort
SELECT ALL - 12 * + 78 FROM tab0
----
-936
-936
-936

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2928
SELECT DISTINCT * FROM tab0 WHERE NOT ( + CAST( + col0 AS SIGNED ) ) <> - col0 * + col1
----

skipif mysql # not compatible
query III rowsort label-2928
SELECT DISTINCT * FROM tab0 WHERE NOT ( + CAST ( + col0 AS INTEGER ) ) <> - col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT + 41 * COUNT( * ) + 61 * 96 FROM tab2
----
5979

skipif mysql # not compatible
query I rowsort label-2929
SELECT + 41 * COUNT ( * ) + 61 * 96 FROM tab2
----
5979

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + 33 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT COUNT( * ) col2 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND 22 * - col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2931
SELECT COUNT ( * ) col2 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND 22 * - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) + 28 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) + 28 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2933
SELECT DISTINCT - MAX( DISTINCT + col1 ) DIV 94 + 80 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT - MAX ( DISTINCT + col1 ) / 94 + 80 FROM tab2
----
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( 92 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IN ( ( + ( - col1 ) ) * 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 FROM tab0 WHERE - col0 + + 49 NOT BETWEEN col0 AND ( col0 )
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - ( 49 ) - 90 AND - col1 * col2 - ( col1 ) / + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 < col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT + 73 * - COUNT( * ) FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-2939
SELECT + 73 * - COUNT ( * ) FROM tab2 AS cor0
----
-219

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 * col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 * 40 IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 70 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL col1 FROM tab2 WHERE col2 + col2 NOT BETWEEN + 14 AND col2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ALL MIN( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL MIN ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2946
SELECT DISTINCT + col2 * col0 + - CAST( NULL AS DECIMAL ) * - 52 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT + col2 * col0 + - CAST ( NULL AS REAL ) * - 52 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE ( col1 + col1 ) NOT IN ( + col1 )
----
1
21
81

query I rowsort
SELECT ALL - col0 + 46 FROM tab2 AS cor0
----
-18
-29
0

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 67 <= ( - col0 )
----
-59
-68
-96

query I rowsort
SELECT ALL + 2 * - 80 + col0 AS col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN 65 * col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL + COUNT( * ) + - 59 AS col0 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + COUNT ( * ) + - 59 AS col0 FROM tab2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT ALL CAST( + col0 AS SIGNED ) * - 53 + - 99 FROM tab0 WHERE NOT col1 < col2
----
-4710
-894

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL CAST ( + col0 AS INTEGER ) * - 53 + - 99 FROM tab0 WHERE NOT col1 < col2
----
-4710
-894

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT COUNT( * ) + SUM( - 93 ) AS col2 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-2955
SELECT COUNT ( * ) + SUM ( - 93 ) AS col2 FROM tab0
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2956
SELECT ALL + - CAST( NULL AS SIGNED ) + + 92 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 92 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 30 * col0 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT + SUM( DISTINCT + col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-2958
SELECT + SUM ( DISTINCT + col0 ) FROM tab2 cor0
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-2959
SELECT - col0 DIV + col1 col2 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2959
SELECT - col0 / + col1 col2 FROM tab0 AS cor0
----
-4
-97
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 / 47 ) <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT - CAST( + 58 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-2961
SELECT - CAST ( + 58 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT DISTINCT + col2 * col1 + 30 FROM tab1 AS cor0
----
1374
3226
325

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 8 < 67
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2964
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col1 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2964
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col1 col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2965
SELECT COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT - 68 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 IN ( 73 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * 66 FROM tab2 AS cor0 WHERE ( NULL ) IN ( 51 )
----

query I rowsort
SELECT - + 18 + + + col2 * - col1 FROM tab0 cor0
----
-117
-228
-3825

onlyif mysql # DIV for integer division: 
query I rowsort label-2970
SELECT + col0 DIV + 13 col0 FROM tab1 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3
6
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2970
SELECT + col0 / + 13 col0 FROM tab1 AS cor0 WHERE ( col2 ) IS NOT NULL
----
3
6
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) < NULL OR NOT ( + col1 + col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + col2 + + + col0 + + col1 / col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( - + col1 - col0 )
----

query I rowsort
SELECT + 78 + - 86 - - 11 + - col2 * 1 AS col2 FROM tab2 AS cor0
----
-20
-37
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2975
SELECT + - col1 + + 36 * - CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
1645
175
490

skipif mysql # not compatible
query I rowsort label-2975
SELECT + - col1 + + 36 * - CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
1645
175
490

query I rowsort
SELECT ALL + + 64 AS col0 FROM tab0 AS cor0
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT DISTINCT col2 DIV col0 * col0 col1 FROM tab0
----
0
45
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2979
SELECT DISTINCT col2 / col0 * col0 col1 FROM tab0
----
0
45
97

query III rowsort
SELECT ALL * FROM tab0 WHERE 15 / col0 BETWEEN NULL AND col0 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2981
SELECT ALL COUNT( * ) / + COUNT( * ) / + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL COUNT ( * ) / + COUNT ( * ) / + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2982
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) FROM tab0
----
-1

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + col1 > NULL AND NOT col2 IS NULL
----

query I rowsort
SELECT col2 + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT + col2 * CAST( - 32 * - 2 AS SIGNED ) FROM tab0 cor0 WHERE NOT col2 + - col0 * col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2985
SELECT + col2 * CAST ( - 32 * - 2 AS INTEGER ) FROM tab0 cor0 WHERE NOT col2 + - col0 * col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 19 * + col2 AS col0, + col1 col0 FROM tab1 AS cor0
----
-1121
5
-1292
47
-1824
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2987
SELECT + 59 FROM tab2 AS cor0 WHERE NOT ( NOT + 7 + + CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-2987
SELECT + 59 FROM tab2 AS cor0 WHERE NOT ( NOT + 7 + + CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query I rowsort
SELECT ALL 60 AS col1 FROM tab1 AS cor0 WHERE NOT + 60 - col1 + + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 + + + col2 / - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 69 IS NULL
----

query I rowsort
SELECT col1 * - 19 AS col1 FROM tab2
----
-1273
-1463
-969

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT - col2 + col0 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + 40 FROM tab1 AS cor0 WHERE ( + col0 * + + col1 + col2 + - 85 ) IS NULL
----

query I rowsort
SELECT ALL - ( + col2 ) + col2 * - 10 + - ( 17 ) * + ( - col0 ) AS col2 FROM tab2 cor0
----
529
637
648

query I rowsort
SELECT DISTINCT - 1 * col2 + + col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( col0 + col2 )
----

query I rowsort
SELECT - 21 * - + col1 AS col2 FROM tab1
----
105
294
987

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT DISTINCT ( - 88 ) + MIN( + - col0 ) - + COUNT( * ) AS col2 FROM tab1
----
-182

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT ( - 88 ) + MIN ( + - col0 ) - + COUNT ( * ) AS col2 FROM tab1
----
-182

onlyif mysql # aggregate syntax: 
query II rowsort label-2999
SELECT DISTINCT - COUNT( * ) AS col1, - 9 + + + COUNT( - col0 ) AS col1 FROM tab2
----
-3
-6

skipif mysql # not compatible
query II rowsort label-2999
SELECT DISTINCT - COUNT ( * ) AS col1, - 9 + + + COUNT ( - col0 ) AS col1 FROM tab2
----
-3
-6

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col0 + - 88 >= + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3001
SELECT col2 DIV + + CAST( col2 AS SIGNED ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3001
SELECT col2 / + + CAST ( col2 AS INTEGER ) FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT 18 * + - COUNT( * ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-3002
SELECT 18 * + - COUNT ( * ) FROM tab1
----
-54

query I rowsort
SELECT DISTINCT 7 + - - col2 AS col2 FROM tab2
----
30
47
65

query III rowsort
SELECT * FROM tab0 WHERE + + col2 IN ( + col1 + + col2 - + - 42 - - 50 * - 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL SUM( ALL - 89 ) FROM tab2 WHERE NOT + 1 < col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL SUM ( ALL - 89 ) FROM tab2 WHERE NOT + 1 < col2
----
NULL

query I rowsort
SELECT ALL + + 97 AS col0 FROM tab2 cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT DISTINCT 2 + - ( + MAX( - col1 ) ) + 30 AS col1 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT 2 + - ( + MAX ( - col1 ) ) + 30 AS col1 FROM tab1 AS cor0
----
37

query II rowsort
SELECT ALL col0 + - col2 AS col0, 28 AS col2 FROM tab1
----
-45
28
23
28
26
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT 17 AS col2 FROM tab1 AS cor0 WHERE + ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3009
SELECT 17 AS col2 FROM tab1 AS cor0 WHERE + ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3012
SELECT DISTINCT + - 56 - - + col0 FROM tab2 AS cor0 WHERE NOT - 80 NOT BETWEEN - CAST( col1 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT + - 56 - - + col0 FROM tab2 AS cor0 WHERE NOT - 80 NOT BETWEEN - CAST ( col1 AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - ( - col0 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT - - COUNT( * ) * - 34 FROM tab2 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-3014
SELECT - - COUNT ( * ) * - 34 FROM tab2 cor0
----
-102

query I rowsort
SELECT DISTINCT - 78 * + - col1 AS col1 FROM tab0
----
1638
6318
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT DISTINCT 14 DIV - 31 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT 14 / - 31 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT + - COUNT( * ) FROM tab2 WHERE NOT 18 * - + 89 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3017
SELECT + - COUNT ( * ) FROM tab2 WHERE NOT 18 * - + 89 * + col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT + 92 DIV + col0 col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3018
SELECT + 92 / + col0 col1 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3019
SELECT DISTINCT 80 DIV + COUNT( * ) col2 FROM tab2
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3019
SELECT DISTINCT 80 / + COUNT ( * ) col2 FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3020
SELECT - COUNT( * ) * ( + 85 ), + COUNT( * ) * + COUNT( DISTINCT + col2 ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-3020
SELECT - COUNT ( * ) * ( + 85 ), + COUNT ( * ) * + COUNT ( DISTINCT + col2 ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3021
SELECT DISTINCT 75 col0, - COUNT( * ) AS col0 FROM tab0
----
75
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3021
SELECT DISTINCT 75 col0, - COUNT ( * ) AS col0 FROM tab0
----
75
-3

query I rowsort
SELECT DISTINCT + col2 * - + col0 AS col2 FROM tab1 cor0
----
-4896
-5015
-6188

query II rowsort
SELECT DISTINCT - - 73 AS col0, 75 FROM tab2 AS cor0
----
73
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3024
SELECT MAX( ALL - + col1 ) DIV + 89 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3024
SELECT MAX ( ALL - + col1 ) / + 89 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col2 * + col2 * + - col2 + + - 65 AS col2 FROM tab2 AS cor0
----
-12232
-195177
-64065

query I rowsort
SELECT ALL 53 + + col2 - - 27 + + col0 * - - 11 * + + 10 FROM tab0 AS cor0
----
10849
1777
9660

query II rowsort
SELECT + 16 AS col2, col1 AS col2 FROM tab1 AS cor0 WHERE 46 > - 9
----
16
14
16
47
16
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT ALL COUNT( - - col1 ) FROM tab0 AS cor0 WHERE + 9 - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL COUNT ( - - col1 ) FROM tab0 AS cor0 WHERE + 9 - + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT - ( - COUNT( * ) ) + 70 FROM tab0 cor0
----
73

skipif mysql # not compatible
query I rowsort label-3029
SELECT - ( - COUNT ( * ) ) + 70 FROM tab0 cor0
----
73

query I rowsort
SELECT DISTINCT - + col1 + 97 FROM tab2 AS cor0
----
20
30
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT MAX( DISTINCT + col0 ) FROM tab0 WHERE col0 * + + col2 IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-3031
SELECT MAX ( DISTINCT + col0 ) FROM tab0 WHERE col0 * + + col2 IS NOT NULL
----
97

query III rowsort
SELECT * FROM tab0 WHERE + 26 BETWEEN NULL AND - col2 * col1 + - 56
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3033
SELECT DISTINCT 71 + - MAX( CAST( NULL AS DECIMAL ) ) + 23 * + + 84 + + - 7 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT 71 + - MAX ( CAST ( NULL AS REAL ) ) + 23 * + + 84 + + - 7 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NULL <= - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 = ( - ( - + col1 ) * + col1 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + 38 + 65 - - + ( + + 92 ) + COUNT( * ) col2 FROM tab2
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3036
SELECT + 38 + 65 - - + ( + + 92 ) + COUNT ( * ) col2 FROM tab2
----
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 - - col1 * + 37 col1 FROM tab2
----
1937
2529
2899

query I rowsort
SELECT + col0 * + col1 + col1 + col1 - + - col0 * + 46 * - col1 AS col2 FROM tab2
----
-105468
-221606
-225991

query I rowsort
SELECT ( 78 ) + col0 FROM tab2
----
124
142
153

query I rowsort
SELECT ALL - col1 + - - col0 AS col2 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3041
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = col1 * - ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3041
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = col1 * - ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - + col1 + 61 AS col2 FROM tab1 AS cor0 WHERE ( - col1 <> NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT + col0 DIV - + 66 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3043
SELECT + col0 / - + 66 AS col1 FROM tab2 AS cor0
----
-1
0
0

query II rowsort
SELECT - + col2 AS col2, + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-59
-7225
-68
-8281
-96
-2601

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL ( + COUNT( DISTINCT - - col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL ( + COUNT ( DISTINCT - - col0 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3046
SELECT - col1 * - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT - col1 * - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 + - col2 * - - 97 col0 FROM tab1 AS cor0
----
-11220
-18528
-9204

query I rowsort
SELECT col1 * + 20 * 34 AS col0 FROM tab0 AS cor0
----
14280
55080
680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col2 col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT DISTINCT - 50 * + col0 + - col0 AS col0 FROM tab2 cor0
----
-2346
-3264
-3825

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-3

query II rowsort
SELECT ALL + col1 AS col0, col1 AS col0 FROM tab1 AS cor0
----
14
14
47
47
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + ( + col0 ) col0 FROM tab2 cor0
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 > + 84 * + + col1
----
15
81
47
87
21
10

query II rowsort
SELECT DISTINCT col0 * - 6, + col0 AS col2 FROM tab1
----
-306
51
-510
85
-546
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3056
SELECT + MAX( - col0 ), 86 AS col2 FROM tab0
----
-15
86

skipif mysql # not compatible
query II rowsort label-3056
SELECT + MAX ( - col0 ), 86 AS col2 FROM tab0
----
-15
86

query II rowsort
SELECT ALL - ( + 72 ), + col1 - + col0 AS col2 FROM tab1
----
-72
-37
-72
-44
-72
-80

query I rowsort
SELECT + col1 * + - col1 AS col2 FROM tab1
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3059
SELECT DISTINCT + + col0 DIV col1 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT + + col0 / col1 FROM tab1 cor0
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT - 63 * + + SUM( DISTINCT - col0 ) FROM tab0
----
12537

skipif mysql # not compatible
query I rowsort label-3060
SELECT - 63 * + + SUM ( DISTINCT - col0 ) FROM tab0
----
12537

query II rowsort
SELECT - 99 AS col2, + 88 AS col1 FROM tab2
----
-99
88
-99
88
-99
88

query I rowsort
SELECT col1 + - 98 AS col1 FROM tab0
----
-17
-77
-97

query I rowsort
SELECT 14 + - col0 * + 54 AS col0 FROM tab0
----
-4684
-5224
-796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3064
SELECT ALL MIN( DISTINCT + + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( ( CAST( NULL AS SIGNED ) IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL MIN ( DISTINCT + + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( ( CAST ( NULL AS INTEGER ) IS NULL ) )
----
NULL

query I rowsort
SELECT + - col2 + + 71 * + col2 FROM tab2 cor0
----
1610
2800
4060

query I rowsort
SELECT DISTINCT + - ( + col1 ) / + col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT col0 / + col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 37 + - 21 FROM tab1 AS cor0
----
-58

query II rowsort
SELECT ALL - 88, + 32 AS col2 FROM tab0 AS cor0
----
-88
32
-88
32
-88
32

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 94 * - col0 * col2 - + col1 FROM tab2
----
-240717
-408967
-99503

query I rowsort
SELECT DISTINCT col1 * col2 + col2 + col2 FROM tab0 WHERE - col0 / 53 IS NULL
----

query I rowsort
SELECT - 95 - + 90 + - + col1 FROM tab2
----
-236
-252
-262

query I rowsort
SELECT col2 - + col1 * - col0 AS col0 FROM tab0
----
1262
1837
196

query I rowsort
SELECT ALL - - 78 * - 89 AS col1 FROM tab0 AS cor0
----
-6942
-6942
-6942

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3075
SELECT DISTINCT + 85 col1, + COUNT( 33 ) DIV COUNT( * ) - + 88 FROM tab2 AS cor0 WHERE NULL IS NULL
----
85
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3075
SELECT DISTINCT + 85 col1, + COUNT ( 33 ) / COUNT ( * ) - + 88 FROM tab2 AS cor0 WHERE NULL IS NULL
----
85
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3076
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT ALL - COUNT( * ) AS col1 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT + MAX( - - ( - col0 ) ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3079
SELECT + MAX ( - - ( - col0 ) ) AS col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT 74 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
666

skipif mysql # not compatible
query I rowsort label-3080
SELECT 74 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT - COUNT( * ) * ( + + 69 ) AS col1 FROM tab0 WHERE NOT - 31 NOT BETWEEN col2 AND + + col2
----
0

skipif mysql # not compatible
query I rowsort label-3081
SELECT - COUNT ( * ) * ( + + 69 ) AS col1 FROM tab0 WHERE NOT - 31 NOT BETWEEN col2 AND + + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query II rowsort
SELECT DISTINCT - 26 AS col1, 63 * - col0 FROM tab0 AS cor0
----
-26
-5481
-26
-6111
-26
-945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3084
SELECT ALL + - MAX( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL + - MAX ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3085
SELECT DISTINCT - 96 AS col2, col2 DIV + + 42 col0 FROM tab2 AS cor0
----
-96
0
-96
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3085
SELECT DISTINCT - 96 AS col2, col2 / + + 42 col0 FROM tab2 AS cor0
----
-96
0
-96
1

query I rowsort
SELECT - 25 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT + ( - - col1 ) * + col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 95 + + col0 * + - 93, col2, - + col0, + - col0 * col2 / ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT CAST( 21 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-3089
SELECT CAST ( 21 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
21
21
21

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col1 * + 57 FROM tab1 AS cor0
----
-2679
-285
-798

query II rowsort
SELECT 94, - 56 - - - col0 - - 12 + - col2 * + - col0 AS col1 FROM tab0 AS cor0
----
94
646
94
739
94
9462

query I rowsort
SELECT ( - 84 ) * + ( 18 ) + col2 + + col2 * + - col1 FROM tab1 AS cor0
----
-1748
-2760
-4640

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT + MIN( ALL - 56 ) AS col1 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3094
SELECT + MIN ( ALL - 56 ) AS col1 FROM tab0 AS cor0
----
-56

query II rowsort
SELECT ALL col1 AS col2, 77 AS col2 FROM tab1
----
14
77
47
77
5
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT 73 DIV - + 59 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3096
SELECT 73 / - + 59 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL 88 * + col2 AS col2 FROM tab1
----
5192
5984
8448

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT DISTINCT + + 34 DIV col0 AS col0 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT + + 34 / col0 AS col0 FROM tab0 AS cor0
----
0
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > + col1
----

query I rowsort
SELECT DISTINCT ( col2 ) + - col1 * - 51 * + col2 FROM tab2
----
157120
198244
59846

onlyif mysql # DIV for integer division: 
query II rowsort label-3101
SELECT DISTINCT - 30 DIV - col0 col1, + ( col2 ) col1 FROM tab0
----
0
10
0
99
2
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3101
SELECT DISTINCT - 30 / - col0 col1, + ( col2 ) col1 FROM tab0
----
0
10
0
99
2
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL 93 * - SUM( + col0 ) col2 FROM tab1
----
-21111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3102
SELECT ALL 93 * - SUM ( + col0 ) col2 FROM tab1
----
-21111

query II rowsort
SELECT ALL - col2 * - col0 AS col0, 90 * 52 AS col2 FROM tab2 AS cor0
----
1058
4680
2560
4680
4350
4680

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT DISTINCT - + col2 DIV + col0 + col2 + - + 67 AS col2 FROM tab1 AS cor0
----
-8
1
28

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT - + col2 / + col0 + col2 + - + 67 AS col2 FROM tab1 AS cor0
----
-8
1
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT DISTINCT 78 DIV + 46 col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3105
SELECT DISTINCT 78 / + 46 col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + ( - col1 ) + + + col2 + - col1 FROM tab1
----
-26
49
68

query II rowsort
SELECT ALL 8, 60 FROM tab1 WHERE ( - 38 + - + col2 + + col0 ) IS NULL
----

query I rowsort
SELECT + 12 * + - col0 AS col2 FROM tab1
----
-1020
-1092
-612

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN + - col0 AND 45
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL 91 - + COUNT( * ) AS col1 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL 91 - + COUNT ( * ) AS col1 FROM tab2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3111
SELECT ALL + MAX( 65 ) / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + MAX ( 65 ) / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 39 col1, - col1 FROM tab1
----
39
-14
39
-47
39
-5

query II rowsort
SELECT - col0 AS col1, - 26 FROM tab0 AS cor0
----
-15
-26
-87
-26
-97
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 - + + col2 col2 FROM tab0 AS cor0
----
-50
2
39

query II rowsort
SELECT DISTINCT - col0, 37 AS col0 FROM tab2 AS cor0
----
-46
37
-64
37
-75
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3116
SELECT + - 34 DIV ( COUNT( * ) ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-3116
SELECT + - 34 / ( COUNT ( * ) ) FROM tab0 AS cor0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3117
SELECT - + col1 DIV + col0 + + 4 AS col2 FROM tab0 AS cor0
----
-1
4
4

skipif mysql # not compatible
query I rowsort label-3117
SELECT - + col1 / + col0 + + 4 AS col2 FROM tab0 AS cor0
----
-1
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL + SUM( + 34 ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL + SUM ( + 34 ) FROM tab0 AS cor0
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 15 col2 FROM tab0 AS cor0
----
15
15
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 6 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3121
SELECT 85 + CAST( NULL AS SIGNED ) - - col2, col1 FROM tab1 AS cor0 WHERE NOT - 43 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3121
SELECT 85 + CAST ( NULL AS INTEGER ) - - col2, col1 FROM tab1 AS cor0 WHERE NOT - 43 IS NOT NULL
----

query I rowsort
SELECT ALL - 86 AS col1 FROM tab2 cor0
----
-86
-86
-86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 49 < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3124
SELECT CAST( NULL AS SIGNED ), + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3124
SELECT CAST ( NULL AS INTEGER ), + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 10 col1, + col2 * + - ( - col1 ) FROM tab0
----
10
210
10
3807
10
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3126
SELECT 1 * + - col2 DIV - 42 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3126
SELECT 1 * + - col2 / - 42 FROM tab0
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT col1 DIV - + 67 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3127
SELECT col1 / - + 67 AS col2 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT MIN( ALL col0 ) * - 82 AS col0 FROM tab1
----
-4182

skipif mysql # not compatible
query I rowsort label-3128
SELECT MIN ( ALL col0 ) * - 82 AS col0 FROM tab1
----
-4182

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT SUM( DISTINCT 79 ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-3129
SELECT SUM ( DISTINCT 79 ) FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT - ( + + COUNT( * ) ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3130
SELECT - ( + + COUNT ( * ) ) col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3131
SELECT DISTINCT CAST( + col2 AS SIGNED ) + + 61 AS col0 FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) * col1 BETWEEN + + 45 AND - - 72
----

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + + 61 AS col0 FROM tab1 WHERE NOT CAST ( NULL AS REAL ) * col1 BETWEEN + + 45 AND - - 72
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 BETWEEN 67 AND - - col2
----

query I rowsort
SELECT 50 * + - 61 AS col0 FROM tab1
----
-3050
-3050
-3050

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( - 1 * col0 - - - 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT DISTINCT + 72 + - COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT + 72 + - COUNT ( * ) FROM tab2 AS cor0
----
69

query II rowsort
SELECT DISTINCT + - 16 + col1 + + + col1 AS col1, 43 FROM tab0 cor0
----
-14
43
146
43
26
43

query I rowsort
SELECT ALL + col2 + - col2 * col2 * - col2 * - col0 FROM tab1
----
-17457156
-28613244
-45121440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT ALL col0 + CAST( NULL AS SIGNED ) / + col0 * - 24 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL col0 + CAST ( NULL AS INTEGER ) / + col0 * - 24 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3139
SELECT - + CAST( NULL AS SIGNED ) AS col2, col2 FROM tab1 WHERE - col0 <= + col0 * + 19
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3139
SELECT - + CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab1 WHERE - col0 <= + col0 * + 19
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3140
SELECT ALL - CAST( - col0 AS SIGNED ) * + 98 * + + 0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL - CAST ( - col0 AS INTEGER ) * + 98 * + + 0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

query I rowsort
SELECT + 38 AS col1 FROM tab1 cor0
----
38
38
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3143
SELECT DISTINCT - AVG ( - CAST( NULL AS DECIMAL ) ) / + - 22 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT - AVG ( - CAST ( NULL AS REAL ) ) / + - 22 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT - - ( - + col2 ) DIV + col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3144
SELECT - - ( - + col2 ) / + col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3145
SELECT - + col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3145
SELECT - + col1 / + col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT DISTINCT col1 + + col2 + + 23 FROM tab1 AS cor0
----
133
138
87

query I rowsort
SELECT ( - + 43 ) AS col0 FROM tab0 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT + MAX( 23 ) AS col2 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3148
SELECT + MAX ( 23 ) AS col2 FROM tab1 AS cor0
----
23

query I rowsort
SELECT + col1 - + + col2 AS col1 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT DISTINCT COUNT( * ) + 22 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT COUNT ( * ) + 22 FROM tab2
----
25

query I rowsort
SELECT ALL 89 - - + col2 AS col2 FROM tab1
----
148
157
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3152
SELECT col2 / + 25 - + ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT col2 / + 25 - + ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3153
SELECT - COUNT( * ) - CAST( NULL AS SIGNED ) + + + 27 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3153
SELECT - COUNT ( * ) - CAST ( NULL AS INTEGER ) + + + 27 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 23 - - + col2 AS col1 FROM tab0
----
122
33
70

query I rowsort
SELECT ALL - col0 * + + 76 + + col2 FROM tab1
----
-3780
-6401
-6848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3156
SELECT DISTINCT - MAX( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT ALL - MAX( col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL - MAX ( col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-3158
SELECT ALL col1 * + ( 87 ) AS col0, + col1 DIV + 21 + - - col0 col2 FROM tab2 cor0
----
4437
48
5829
78
6699
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3158
SELECT ALL col1 * + ( 87 ) AS col0, + col1 / + 21 + - - col0 col2 FROM tab2 cor0
----
4437
48
5829
78
6699
67

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT ALL MAX( DISTINCT - + col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL MAX ( DISTINCT - + col2 ) AS col0 FROM tab0
----
-10

query I rowsort
SELECT ALL + 40 AS col2 FROM tab0 cor0
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT ALL - ( - CAST( 55 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL - ( - CAST ( 55 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT DISTINCT SUM( col2 ) col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3163
SELECT DISTINCT SUM ( col2 ) col0 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL COUNT( ALL - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT 0, + 7 + - col2 AS col2 FROM tab2 AS cor0
----
0
-16
0
-33
0
-51

query I rowsort
SELECT - col2 * - + col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT ALL - MAX( - - 47 ) + + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL - MAX ( - - 47 ) + + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3168
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + + 8 * - + CAST( NULL AS SIGNED ) * - col2 + + col2
----

skipif mysql # not compatible
query III rowsort label-3168
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + + 8 * - + CAST ( NULL AS INTEGER ) * - col2 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 53 ) + col1 col0, - 27 col2 FROM tab2 AS cor0
----
-2
-27
14
-27
24
-27

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL BETWEEN NULL AND + 10 * col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 74 >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3172
SELECT ALL col1 col2 FROM tab2 WHERE NOT + col1 BETWEEN - CAST( - 60 AS SIGNED ) AND NULL
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3172
SELECT ALL col1 col2 FROM tab2 WHERE NOT + col1 BETWEEN - CAST ( - 60 AS INTEGER ) AND NULL
----
51

query III rowsort
SELECT * FROM tab2 WHERE ( col0 BETWEEN NULL AND col0 )
----

query I rowsort
SELECT - col0 + + 40 FROM tab0 AS cor0
----
-47
-57
25

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - + ( + - col0 ) AS col1 FROM tab2 cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col1 * + - col1 + col2 AND + ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3178
SELECT ALL - SUM( + col1 ) * + 76 + - COUNT( * ), - 19 AS col1 FROM tab1 AS cor0
----
-5019
-19

skipif mysql # not compatible
query II rowsort label-3178
SELECT ALL - SUM ( + col1 ) * + 76 + - COUNT ( * ), - 19 AS col1 FROM tab1 AS cor0
----
-5019
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT + COUNT( * ) col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3179
SELECT + COUNT ( * ) col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NULL <= + ( col1 ) + col1 + + col1
----

query I rowsort
SELECT ALL + + 43 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT ALL + COUNT( DISTINCT + 96 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + COUNT ( DISTINCT + 96 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT ALL col0 + + col0 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN + 77 AND NULL
----

query I rowsort
SELECT col1 + + 74 FROM tab2 cor0
----
125
141
151

query II rowsort
SELECT ALL col1, 87 FROM tab1 AS cor0
----
14
87
47
87
5
87

query I rowsort
SELECT 50 + 22 AS col0 FROM tab2 AS cor0
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT - CAST( + - col2 AS SIGNED ) + + col2 AS col0 FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-3187
SELECT - CAST ( + - col2 AS INTEGER ) + + col2 AS col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT 86 + - col0 + - 60 FROM tab1 AS cor0
----
-25
-59
-65

query I rowsort
SELECT + col1 + + + 0 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT col0 * - + col0 + col1 * 3 FROM tab1 cor0
----
-2559
-7210
-8140

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - 8 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT DISTINCT - 7 - - SUM( DISTINCT + + col0 ) AS col2 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT - 7 - - SUM ( DISTINCT + + col0 ) AS col2 FROM tab0
----
192

query I rowsort
SELECT DISTINCT - - 95 + - 42 FROM tab0 WHERE ( + ( - col1 ) ) >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT ALL + ( COUNT( * ) ) * - 94 AS col2 FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL + ( COUNT ( * ) ) * - 94 AS col2 FROM tab0
----
-282

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - 19 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT - SUM( - ( col2 ) ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3196
SELECT - SUM ( - ( col2 ) ) AS col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3197
SELECT DISTINCT + 36 DIV COUNT( * ) AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT + 36 / COUNT ( * ) AS col0 FROM tab1
----
12

query I rowsort
SELECT DISTINCT ( - - 76 ) FROM tab0
----
76

query I rowsort
SELECT ALL - ( col1 ) FROM tab0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col0 FROM tab2
----
-11
-11
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3201
SELECT ALL + CAST( - - col1 AS SIGNED ) col0 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3201
SELECT ALL + CAST ( - - col1 AS INTEGER ) col0 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( ( NOT 3 * 50 IS NULL ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3203
SELECT - ( + MAX( DISTINCT - CAST( col2 AS SIGNED ) ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3203
SELECT - ( + MAX ( DISTINCT - CAST ( col2 AS INTEGER ) ) ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT DISTINCT + MAX( + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT + MAX ( + col1 ) FROM tab2
----
77

query I rowsort
SELECT ALL - col2 * - + col1 AS col1 FROM tab1
----
1344
295
3196

query II rowsort
SELECT - ( - - col1 ) AS col1, ( 45 ) FROM tab0
----
-1
45
-21
45
-81
45

query I rowsort
SELECT ALL - - col2 + - ( + ( - 14 ) ) + 97 FROM tab2 AS cor0
----
134
151
169

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3208
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----
0

query I rowsort
SELECT ALL - + 54 + - 62 FROM tab2 AS cor0
----
-116
-116
-116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3210
SELECT - col1 + + + CAST( NULL AS SIGNED ) + col0 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-3210
SELECT - col1 + + + CAST ( NULL AS INTEGER ) + col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0, col0 * + col0, 67 )
----

query II rowsort
SELECT + 60 AS col1, + 63 AS col0 FROM tab2
----
60
63
60
63
60
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT - col0 DIV + ( ( + 87 ) ) AS col1 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3213
SELECT - col0 / + ( ( + 87 ) ) AS col1 FROM tab0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL BETWEEN - col0 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT + COUNT( * ) + - - ( - ( + COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3215
SELECT + COUNT ( * ) + - - ( - ( + COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT - COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3216
SELECT - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT - 78 + - + MIN( DISTINCT + - 18 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-3217
SELECT - 78 + - + MIN ( DISTINCT + - 18 ) FROM tab2
----
-60

query II rowsort
SELECT DISTINCT col2 - - + col0 AS col0, - col0 - col1 * - 21 AS col2 FROM tab2
----
104
1553
133
1332
69
1025

query I rowsort
SELECT ALL - 76 * + + 82 AS col0 FROM tab2 AS cor0
----
-6232
-6232
-6232

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 1 * 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT + 18 * + - COUNT( + + 99 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3221
SELECT + 18 * + - COUNT ( + + 99 ) FROM tab0 AS cor0
----
-54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * - col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT + SUM( ALL col0 ) col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3224
SELECT + SUM ( ALL col0 ) col1 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT - col0 * CAST( - ( + 1 ) AS SIGNED ) * 63 FROM tab2
----
2898
4032
4725

skipif mysql # not compatible
query I rowsort label-3225
SELECT - col0 * CAST ( - ( + 1 ) AS INTEGER ) * 63 FROM tab2
----
2898
4032
4725

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT - ( - SUM( DISTINCT - 38 ) ) FROM tab2, tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-3226
SELECT - ( - SUM ( DISTINCT - 38 ) ) FROM tab2, tab0 AS cor0
----
-38

query I rowsort
SELECT DISTINCT col0 * + 20 AS col0 FROM tab2
----
1280
1500
920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3228
SELECT + CAST( - + COUNT( * ) AS SIGNED ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3228
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3229
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3229
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT + COUNT( ALL 46 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3230
SELECT + COUNT ( ALL 46 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + col1 + - + col2 * - 63 * col1 IS NULL
----
59
68
96

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> 92
----

query I rowsort
SELECT - 60 * col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3060
-5100
-5460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3234
SELECT - CAST( + - ( 7 ) AS SIGNED ) FROM tab0 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-3234
SELECT - CAST ( + - ( 7 ) AS INTEGER ) FROM tab0 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3235
SELECT - COUNT( * ) AS col2, + 70 FROM tab1 AS cor0
----
-3
70

skipif mysql # not compatible
query II rowsort label-3235
SELECT - COUNT ( * ) AS col2, + 70 FROM tab1 AS cor0
----
-3
70

query I rowsort
SELECT ALL 5 + + - col1 * - 38 + + 35 + - col1 AS col0 FROM tab1 AS cor0
----
1779
225
558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, 12 * 42 col1 FROM tab2 cor0
----
46
504
64
504
75
504

query I rowsort
SELECT ALL - col2 * + - col2 - + 78 FROM tab0 AS cor0
----
2131
22
9723

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( ( NULL IS NOT NULL ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * + ( + + col2 ) + + col1 FROM tab2 AS cor0
----
-1007
-2483
-4283

query II rowsort
SELECT 11, 70 * - 37 * - col1 AS col0 FROM tab1 AS cor0
----
11
121730
11
12950
11
36260

query I rowsort
SELECT ALL 40 * col0 FROM tab2 AS cor0 WHERE ( NOT ( + 5 ) IS NULL )
----
1840
2560
3000

query I rowsort
SELECT - col1 + col0 AS col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL MIN( DISTINCT col1 ) + + COUNT( DISTINCT - + col0 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL MIN ( DISTINCT col1 ) + + COUNT ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT - ( - COUNT( * ) ) + + 19 AS col1 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT - ( - COUNT ( * ) ) + + 19 AS col1 FROM tab1 AS cor0
----
22

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT DISTINCT MAX( DISTINCT + col0 ) + + + 35 AS col0 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT MAX ( DISTINCT + col0 ) + + + 35 AS col0 FROM tab1
----
126

query III rowsort
SELECT * FROM tab1 WHERE + - col0 - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 61 FROM tab1 WHERE NOT + col1 * - - 30 = NULL
----

query II rowsort
SELECT + 54 * - 53, col1 + - - col2 AS col1 FROM tab2 AS cor0
----
-2862
117
-2862
125
-2862
74

query I rowsort
SELECT + col2 * - - 70 FROM tab0 AS cor0
----
3290
6930
700

query I rowsort
SELECT DISTINCT - + 25 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3253
SELECT + COUNT( * ) DIV + 5 - ( + COUNT( * ) ) - 94 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-3253
SELECT + COUNT ( * ) / + 5 - ( + COUNT ( * ) ) - 94 FROM tab1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL - ( - 90 ) + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
99

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL - ( - 90 ) + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 93 AS col2, + col0 col0 FROM tab0 AS cor0
----
-93
15
-93
87
-93
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT SUM( - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT SUM ( - col1 ) FROM tab1 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 59 AS col1, col2 col0 FROM tab1 cor0
----
-59
59
-59
68
-59
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT + ( COUNT( * ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3258
SELECT + ( COUNT ( * ) ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT + + 40 FROM tab2 WHERE NOT NULL <= - - CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query I rowsort label-3259
SELECT + + 40 FROM tab2 WHERE NOT NULL <= - - CAST ( NULL AS INTEGER ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT DISTINCT COUNT( DISTINCT - 40 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT COUNT ( DISTINCT - 40 ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3261
SELECT ALL - MAX( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3262
SELECT DISTINCT * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) = - col1 * - - 55 * - 66
----

skipif mysql # not compatible
query III rowsort label-3262
SELECT DISTINCT * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) = - col1 * - - 55 * - 66
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 97 = col1 * col0 + + 4 / - + 39 - + - ( 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT - COUNT( DISTINCT col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3264
SELECT - COUNT ( DISTINCT col2 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3265
SELECT ALL + CAST( AVG ( + + 0 ) AS SIGNED ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL + CAST ( AVG ( + + 0 ) AS INTEGER ) AS col1 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 <= + col2
----

query II rowsort
SELECT ( + col2 ), + col2 + - col1 FROM tab2
----
23
-28
40
-37
58
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT ALL 46 * COUNT( * ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL 46 * COUNT ( * ) FROM tab1 AS cor0
----
138

query I rowsort
SELECT + col1 * col1 * 30 AS col1 FROM tab1
----
5880
66270
750

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT - 95 + + - MIN( DISTINCT - - ( ( col0 ) ) ) FROM tab0 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-3270
SELECT - 95 + + - MIN ( DISTINCT - - ( ( col0 ) ) ) FROM tab0 AS cor0
----
-110

query I rowsort
SELECT DISTINCT col0 * - 38 + + col0 FROM tab1 AS cor0
----
-1887
-3145
-3367

query II rowsort
SELECT - + col2 AS col0, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL + COUNT( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL + COUNT ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT ALL - col0 + + 19 + - 27 * + 39 FROM tab0 AS cor0
----
-1049
-1121
-1131

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT DISTINCT + + 11 + + ( - 70 ) - + MIN( DISTINCT - col2 ) FROM tab0 cor0
----
40

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + + 11 + + ( - 70 ) - + MIN ( DISTINCT - col2 ) FROM tab0 cor0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3276
SELECT ALL 15 / 86 + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL 15 / 86 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 29 * - 53 AS col0 FROM tab0
----
1537
1537
1537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 63 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 63 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT + MIN( + 55 ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-3279
SELECT + MIN ( + 55 ) FROM tab1
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 6 AS col0, + 87 + col2 col2 FROM tab0 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT MIN( - 24 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-3281
SELECT MIN ( - 24 ) FROM tab1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT col2 * CAST( + 48 AS SIGNED ) AS col2 FROM tab0
----
2256
4752
480

skipif mysql # not compatible
query I rowsort label-3282
SELECT col2 * CAST ( + 48 AS INTEGER ) AS col2 FROM tab0
----
2256
4752
480

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT ALL + 2 DIV - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + 2 / - col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 0 FROM tab1 WHERE ( NULL IS NULL )
----
0
0
0

query I rowsort
SELECT - 29 - 10 FROM tab0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3286
SELECT ALL col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - 77 * - col1 * + + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3288
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col2 <= + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3288
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col2 <= + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL - + 24 * - COUNT( * ) * + 18 + COUNT( * ) + - COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
1293

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL - + 24 * - COUNT ( * ) * + 18 + COUNT ( * ) + - COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
1293

onlyif mysql # DIV for integer division: 
query II rowsort label-3290
SELECT + col2 DIV col2 DIV col0, 90 AS col1 FROM tab0 AS cor0
----
0
90
0
90
0
90

skipif mysql # not compatible
query II rowsort label-3290
SELECT + col2 / col2 / col0, 90 AS col1 FROM tab0 AS cor0
----
0
90
0
90
0
90

query I rowsort
SELECT ( - - 64 ) AS col0 FROM tab1
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT - COUNT( * ) * + 64 col0 FROM tab2
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3292
SELECT - COUNT ( * ) * + 64 col0 FROM tab2
----
-192

query II rowsort
SELECT col2 AS col0, - col2 AS col1 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT + MIN( ALL col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT + MIN ( ALL col2 ) AS col2 FROM tab2
----
23

query III rowsort
SELECT * FROM tab0 WHERE NOT 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN 74 AND NULL
----

query I rowsort
SELECT DISTINCT + 33 + - 50 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT - 95 + + - col2 AS col0 FROM tab0 AS cor0
----
-105
-142
-194

query I rowsort
SELECT ALL + col1 + - + 61 FROM tab1 AS cor0
----
-14
-47
-56

query I rowsort
SELECT - col1 * + 60 * + 44 * + + col1 - 88 FROM tab1 AS cor0
----
-517528
-5831848
-66088

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT DISTINCT col0 DIV 81 + + 15 AS col2 FROM tab0 AS cor0
----
15
16

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT col0 / 81 + + 15 AS col2 FROM tab0 AS cor0
----
15
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT SUM( DISTINCT + - col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3302
SELECT SUM ( DISTINCT + - col0 ) AS col0 FROM tab0
----
-199

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT + 18 / + 49 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT - 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL + MAX( ALL col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL + MAX ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 67 - - 64 - - 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 19 NOT BETWEEN 4 AND ( 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + - - col0 AS col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT DISTINCT COUNT( ALL - col0 ) * - 42 + COUNT( * ) FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT COUNT ( ALL - col0 ) * - 42 + COUNT ( * ) FROM tab1 AS cor0
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3310
SELECT 46 * + col0 * - - col2 + - col0 / + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT 46 * + col0 * - - col2 + - col0 / + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 69 + + col1 FROM tab0
----
-48
-68
12

query I rowsort
SELECT ALL + col2 - col1 * + 67 * col2 + - 67 FROM tab2
----
-206387
-260371
-78635

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT + MAX( - col0 ) FROM tab0 WHERE col0 / - + col0 + - col2 * - col1 + 58 IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-3313
SELECT + MAX ( - col0 ) FROM tab0 WHERE col0 / - + col0 + - col2 * - col1 + 58 IS NOT NULL
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT 55 + + COUNT( * ) AS col0 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-3314
SELECT 55 + + COUNT ( * ) AS col0 FROM tab0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3315
SELECT col1 DIV 85 * + col2 * - - 30 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3315
SELECT col1 / 85 * + col2 * - - 30 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT SUM( ALL - col0 ) * + 6 * - COUNT( * ) + - COUNT( * ) FROM tab1
----
4083

skipif mysql # not compatible
query I rowsort label-3316
SELECT SUM ( ALL - col0 ) * + 6 * - COUNT ( * ) + - COUNT ( * ) FROM tab1
----
4083

query I rowsort
SELECT ALL + col1 - - + col0 FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, + 82 FROM tab1 AS cor0
----
-14
82
-47
82
-5
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT DISTINCT - SUM( DISTINCT + - col2 ) AS col0 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT - SUM ( DISTINCT + - col2 ) AS col0 FROM tab0 cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3320
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col0, + col1 / + 40, - - CAST( NULL AS SIGNED ) * + col2, + + col0 )
----

skipif mysql # not compatible
query III rowsort label-3320
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col0, + col1 / + 40, - - CAST ( NULL AS INTEGER ) * + col2, + + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT - - MAX( 54 ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3322
SELECT - - MAX ( 54 ) FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT - - MAX( + + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3323
SELECT - - MAX ( + + col2 ) FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 7 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 7 AS col2, + 28 * - col0 col2 FROM tab2 AS cor0
----
7
-1288
7
-1792
7
-2100

query I rowsort
SELECT DISTINCT + ( + col0 ) * + + col2 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ( COUNT( * ) ) * + MIN( + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3327
SELECT ( COUNT ( * ) ) * + MIN ( + col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT DISTINCT SUM( DISTINCT + 41 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT SUM ( DISTINCT + 41 ) FROM tab2
----
41

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 = col2 / + 63
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3330
SELECT + ( SUM( + CAST( NULL AS SIGNED ) ) ) / 84 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT + ( SUM ( + CAST ( NULL AS INTEGER ) ) ) / 84 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - - ( - col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - - ( - col1 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 69 AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT ALL + 97 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL + 97 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
100

query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 26, - 54 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3337
SELECT DISTINCT - CAST( 15 AS SIGNED ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT - CAST ( 15 AS INTEGER ) FROM tab2 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT - + 7 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT - + 7 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + + col2 AS col1 FROM tab1 cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT DISTINCT + + COUNT( * ) + - 55 AS col2 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT + + COUNT ( * ) + - 55 AS col2 FROM tab1 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT DISTINCT - ( - ( + ( COUNT( * ) ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT - ( - ( + ( COUNT ( * ) ) ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - col0 + + ( + col0 ) * - col0 * col2 FROM tab0 AS cor0
----
-10590
-75777
-931588

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL - 43 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL - 43 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT - col2 + - 91 AS col1 FROM tab0 AS cor0
----
-101
-138
-190

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT DISTINCT col0 DIV + col2 + col1 AS col1 FROM tab1 AS cor0
----
14
48
6

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT col0 / + col2 + col1 AS col1 FROM tab1 AS cor0
----
14
48
6

query I rowsort
SELECT ( - + col1 ) - + col1 AS col0 FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL - MAX( + col0 ) * - COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
225

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL - MAX ( + col0 ) * - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
225

query I rowsort
SELECT col1 * 55 - + + col0 FROM tab0
----
-42
1068
4440

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 91 ) < col2
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT DISTINCT COUNT( + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT COUNT ( + col2 ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT ( 23 ) DIV - + col0 + - ( col2 ) FROM tab0
----
-10
-48
-99

skipif mysql # not compatible
query I rowsort label-3351
SELECT ( 23 ) / - + col0 + - ( col2 ) FROM tab0
----
-10
-48
-99

query I rowsort
SELECT DISTINCT + - ( col1 ) * + - col1 - - 46 FROM tab1 cor0
----
2255
242
71

query I rowsort
SELECT ALL - - 91 AS col1 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT + col0 * - 72 FROM tab0 AS cor0
----
-1080
-6264
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT DISTINCT + 84 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT + 84 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
252

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 38 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT DISTINCT - 2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT - 2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT + 12 + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
21

skipif mysql # not compatible
query I rowsort label-3358
SELECT + 12 + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3359
SELECT DISTINCT + + 49 DIV + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
5

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT + + 49 / + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
5

query I rowsort
SELECT ALL - 33 * + col2 + col1 - col1 FROM tab1 AS cor0
----
-1947
-2244
-3168

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - col0 * + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL - 39 * - ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - 39 * - ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-117

query I rowsort
SELECT DISTINCT + + 63 * + col2 AS col2 FROM tab2 AS cor0
----
1449
2520
3654

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3364
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + + 85 <> - - CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3364
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + + 85 <> - - CAST ( - col2 AS REAL )
----

query I rowsort
SELECT - + col1 * - + col0 * + col1 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3366
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 43 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 43 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + - col0 col1 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3368
SELECT - CAST( NULL AS DECIMAL ) 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-3368
SELECT - CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3369
SELECT DISTINCT + 30 DIV - ( COUNT( * ) ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT + 30 / - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT - col1 DIV + - col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3370
SELECT - col1 / + - col0 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3371
SELECT CAST( col2 AS DECIMAL ) * - 21 * - CAST( NULL AS SIGNED ) * + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3371
SELECT CAST ( col2 AS REAL ) * - 21 * - CAST ( NULL AS INTEGER ) * + - col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + col0 ) col1, - 52 - + col2 FROM tab2
----
-46
-75
-64
-92
-75
-110

query I rowsort
SELECT col2 * col0 * - 52 AS col0 FROM tab2
----
-133120
-226200
-55016

query II rowsort
SELECT ALL 58 AS col1, - col2 * + col1 FROM tab1
----
58
-1344
58
-295
58
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-3376
SELECT DISTINCT 48, + SUM( ALL + + col0 ) * + + SUM( col2 ) AS col2 FROM tab0
----
48
31044

skipif mysql # not compatible
query II rowsort label-3376
SELECT DISTINCT 48, + SUM ( ALL + + col0 ) * + + SUM ( col2 ) AS col2 FROM tab0
----
48
31044

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3377
SELECT DISTINCT + CAST( + - 58 AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-3377
SELECT DISTINCT + CAST ( + - 58 AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
-58
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3378
SELECT col0 DIV + - col2 + 75 * col1 AS col2, - col1 FROM tab0
----
1567
-21
6075
-81
75
-1

skipif mysql # not compatible
query II rowsort label-3378
SELECT col0 / + - col2 + 75 * col1 AS col2, - col1 FROM tab0
----
1567
-21
6075
-81
75
-1

query I rowsort
SELECT DISTINCT - ( + 88 ) AS col0 FROM tab1 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT + COUNT( * ) + 44 + + 83 + - + 88 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3380
SELECT + COUNT ( * ) + 44 + + 83 + - + 88 FROM tab2 AS cor0
----
42

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - col2 * 79 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - col1 * col1 + - col1 AS col2 FROM tab1
----
-10010
-201066
-2130

onlyif mysql # DIV for integer division: 
query I rowsort label-3383
SELECT + col1 DIV + - 17 - - + col0 AS col0 FROM tab2 AS cor0
----
43
60
72

skipif mysql # not compatible
query I rowsort label-3383
SELECT + col1 / + - 17 - - + col0 AS col0 FROM tab2 AS cor0
----
43
60
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT DISTINCT - + SUM( - 47 ) FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT - + SUM ( - 47 ) FROM tab0 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT DISTINCT - 94 * + COUNT( col0 ) + MIN( - ( + + col0 ) ) FROM tab2 AS cor0
----
-357

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT - 94 * + COUNT ( col0 ) + MIN ( - ( + + col0 ) ) FROM tab2 AS cor0
----
-357

query I rowsort
SELECT + 78 * - col2 + + col1 FROM tab2 AS cor0
----
-1743
-3043
-4457

query I rowsort
SELECT + 19 + + - col1 AS col2 FROM tab2 cor0
----
-32
-48
-58

query II rowsort
SELECT + col1 + - col1 AS col0, col1 AS col1 FROM tab0 cor0
----
0
1
0
21
0
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3389
SELECT ALL - + CAST( NULL AS SIGNED ) + + 77 / COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL - + CAST ( NULL AS INTEGER ) + + 77 / COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - + 96 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT + COUNT( * ) FROM tab0, tab1 AS cor0 WHERE + 99 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT + COUNT ( * ) FROM tab0, tab1 AS cor0 WHERE + 99 <= NULL
----
0

query I rowsort
SELECT ALL - col2 * - col1 FROM tab0 WHERE NULL < - - col2
----

query II rowsort
SELECT - col0 AS col0, + col2 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT COUNT( col0 ) AS col0 FROM tab1 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3394
SELECT COUNT ( col0 ) AS col0 FROM tab1 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT ALL - ( - 74 ) FROM tab2
----
74
74
74

query II rowsort
SELECT 3 AS col2, + 20 * + ( + - col0 ) AS col2 FROM tab2
----
3
-1280
3
-1500
3
-920

query I rowsort
SELECT ALL - 66 * ( - + col0 ) * + col1 AS col1 FROM tab0 cor0
----
120582
6402
80190

query I rowsort
SELECT DISTINCT 60 * 77 FROM tab0 AS cor0
----
4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3399
SELECT ALL - - SUM( ALL - + col2 ) FROM tab1 AS cor0 WHERE NOT ( - col0 + - CAST( 10 AS SIGNED ) * + col2 - + - ( - + col1 ) - - + col1 / col1 ) BETWEEN NULL AND 29 - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL - - SUM ( ALL - + col2 ) FROM tab1 AS cor0 WHERE NOT ( - col0 + - CAST ( 10 AS INTEGER ) * + col2 - + - ( - + col1 ) - - + col1 / col1 ) BETWEEN NULL AND 29 - - 39
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + - col1 * + col2 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT ALL CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 WHERE NOT NULL <= col2 + col2
----

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 WHERE NOT NULL <= col2 + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * 98 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT DISTINCT - COUNT( ALL col0 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT - COUNT ( ALL col0 ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ( + COUNT( * ) ) + COUNT( + 98 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3406
SELECT ( + COUNT ( * ) ) + COUNT ( + 98 ) FROM tab1
----
6

query I rowsort
SELECT ( - 96 ) + 32 AS col1 FROM tab2
----
-64
-64
-64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + - 83 / - col1 >= ( col0 - + col1 )
----
51
14
96
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 38 ) + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 33 FROM tab1 WHERE - col2 * - 43 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 NOT IN ( 13 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * + 93 FROM tab1
----
4743
7905
8463

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT DISTINCT + COUNT( ( + col1 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT + COUNT ( ( + col1 ) ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN 94 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN 94 AND NULL
----
0

query I rowsort
SELECT 26 * col2 FROM tab1 WHERE NOT 17 * + col0 IS NULL
----
1534
1768
2496

query I rowsort
SELECT - 67 + col0 FROM tab2
----
-21
-3
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3417
SELECT col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT col0 + col2 > ( col0 )
----

skipif mysql # not compatible
query I rowsort label-3417
SELECT col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT col0 + col2 > ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 - + 72 col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + 73 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 + col0 * col1 )
----

query I rowsort
SELECT DISTINCT + col1 + col0 * - col0 FROM tab0 AS cor0
----
-144
-7548
-9408

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN col1 + + col0 AND + col1
----

query I rowsort
SELECT DISTINCT + AVG ( 39 ) FROM tab0 AS cor0 WHERE NULL >= + 93
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3423
SELECT 50 DIV COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3423
SELECT 50 / COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT + col2 DIV + 14 + col2 * + 77 FROM tab0
----
3622
7630
770

skipif mysql # not compatible
query I rowsort label-3424
SELECT + col2 / + 14 + col2 * + 77 FROM tab0
----
3622
7630
770

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL + COUNT( * ) * - 94 + - 17 * - COUNT( * ) col1 FROM tab1
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3425
SELECT ALL + COUNT ( * ) * - 94 + - 17 * - COUNT ( * ) col1 FROM tab1
----
-231

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 / 77 ) < col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3427
SELECT ALL - CAST( - col1 AS SIGNED ) DIV - ( - 14 * + 48 ) AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL - CAST ( - col1 AS INTEGER ) / - ( - 14 * + 48 ) AS col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 * + col1 NOT BETWEEN col0 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE col0 + col0 * col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3429
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE col0 + col0 * col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL - + MIN( DISTINCT + ( - 69 ) ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL - + MIN ( DISTINCT + ( - 69 ) ) FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3431
SELECT + + 89 - CAST( NULL AS SIGNED ) 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-3431
SELECT + + 89 - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 40 / col1 FROM tab2 AS cor0 WHERE NOT + 41 * col2 <> - col1
----

query I rowsort
SELECT DISTINCT + - 57 + - 44 FROM tab1 cor0
----
-101

query I rowsort
SELECT DISTINCT + - col1 * 48 FROM tab1 AS cor0
----
-2256
-240
-672

query I rowsort
SELECT 50 - - + col2 * col2 FROM tab2
----
1650
3414
579

query I rowsort
SELECT DISTINCT ( - + 55 ) AS col2 FROM tab2
----
-55

query I rowsort
SELECT ( col2 ) * + 42 FROM tab2
----
1680
2436
966

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE ( col1 * + col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3439
SELECT - ( + CAST( + 12 AS SIGNED ) ) FROM tab2
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-3439
SELECT - ( + CAST ( + 12 AS INTEGER ) ) FROM tab2
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT + MIN( ALL - 44 ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-3440
SELECT + MIN ( ALL - 44 ) FROM tab1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3441
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) * - ( COUNT( * ) + 25 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) * - ( COUNT ( * ) + 25 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ( - - col2 ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE NOT NULL <= + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN 20 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * + col0 + col1 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 51 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT - - 90 * - + 75 * + col0 FROM tab2 AS cor0
----
-310500
-432000
-506250

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - 10 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col0 / - col2 ) NOT IN ( + col0 )
----

query I rowsort
SELECT - + col0 * - + col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= 2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3452
SELECT + MAX( - - col0 ) DIV + - ( + 68 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3452
SELECT + MAX ( - - col0 ) / + - ( + 68 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT ALL + 72 + - 99 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 50 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 1 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 20 * + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1740
1940
300

query II rowsort
SELECT col1, col1 + 55 FROM tab0 AS cor0
----
1
56
21
76
81
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 48 col0 FROM tab2 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3459
SELECT - + CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3459
SELECT - + CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 * col2 + + col2 * col2 col0 FROM tab1
----
14784
6903
8568

query I rowsort
SELECT col2 FROM tab0 WHERE col2 > ( - col0 + col0 )
----
10
47
99

query I rowsort
SELECT DISTINCT 12 * - ( col1 ) + + + 70 AS col1 FROM tab2
----
-542
-734
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT + MIN( ALL + + 50 ) + - ( - COUNT( * ) ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-3463
SELECT + MIN ( ALL + + 50 ) + - ( - COUNT ( * ) ) FROM tab2
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - col2 col1 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT ( ( col1 ) ) * - 12 FROM tab2
----
-612
-804
-924

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> ( - col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 70 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT ALL - - 1 * 37 * - col2 * + col2 + - 97 FROM tab0 AS cor0
----
-362734
-3797
-81830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT DISTINCT col1 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT col1 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3471
SELECT - MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT - MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 96 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3473
SELECT ALL + col1 FROM tab1 WHERE ( NULL ) < - CAST( NULL AS DECIMAL ) * + col0
----

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + col1 FROM tab1 WHERE ( NULL ) < - CAST ( NULL AS REAL ) * + col0
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT ( + - 36 + - + col1 + - col0 + + 74 ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3475
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT ALL + - 64 DIV + + col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL + - 64 / + + col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + col2 * - col2 * + col2 + ( + - 18 ) FROM tab0 cor0
----
-1018
-103841
-970317

query I rowsort
SELECT + col0 + 42 FROM tab1 cor0
----
127
133
93

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + - 3 * + 85 * + + col0
----

query II rowsort
SELECT DISTINCT + - ( + + 10 ) + 65 AS col1, 14 + - col1 FROM tab0 AS cor0
----
55
-67
55
-7
55
13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 41 ) >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3482
SELECT ALL - - 36 * + - CAST( - + ( - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-1656
-2304
-2700

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL - - 36 * + - CAST ( - + ( - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-1656
-2304
-2700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3483
SELECT ALL * FROM tab2 WHERE NOT ( - col2 - col0 + CAST( NULL AS SIGNED ) * col0 ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3483
SELECT ALL * FROM tab2 WHERE NOT ( - col2 - col0 + CAST ( NULL AS INTEGER ) * col0 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL + COUNT( * ) AS col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL + COUNT ( * ) AS col1 FROM tab1, tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3485
SELECT col1, - CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-3485
SELECT col1, - CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3486
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3486
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 80 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query II rowsort
SELECT ALL + col2 AS col0, col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT ( 18 ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( + 80 )
----

query I rowsort
SELECT + 72 + - 14 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * + - col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT DISTINCT - + MIN( col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT - + MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT ( + 89 ) FROM tab1 AS cor0
----
89

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 36 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT 8 + + 19 AS col1 FROM tab2 WHERE NOT col1 - + col0 + + col0 IS NOT NULL
----

query I rowsort
SELECT col1 + col2 * - col2 AS col1 FROM tab0
----
-2128
-79
-9800

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + SUM( ALL - - 81 ) + - + 75 AS col2 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-3497
SELECT + SUM ( ALL - - 81 ) + - + 75 AS col2 FROM tab2
----
168

query I rowsort
SELECT - col1 + - - col2 AS col2 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT + - col2 + - + 66 AS col1 FROM tab1 AS cor0
----
-125
-134
-162

query I rowsort
SELECT DISTINCT + col2 * + - 85 AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-3995
-8415
-850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3501
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 = NULL
----

query I rowsort
SELECT DISTINCT - + 95 + - col1 FROM tab2 AS cor0
----
-146
-162
-172

query I rowsort
SELECT DISTINCT - - 96 + + col2 FROM tab1 AS cor0
----
155
164
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL + COUNT( DISTINCT - 73 ) + + + COUNT( * ) AS col2 FROM tab2 cor0
----
4

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL + COUNT ( DISTINCT - 73 ) + + + COUNT ( * ) AS col2 FROM tab2 cor0
----
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - ( + col0 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT DISTINCT MIN( ALL col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT MIN ( ALL col1 ) AS col1 FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col2 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL - SUM( DISTINCT + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL - SUM ( DISTINCT + col2 ) FROM tab1
----
-223

query I rowsort
SELECT + col1 * - 81 FROM tab0
----
-1701
-6561
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL - 6 * COUNT( * ) - COUNT( * ) AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL - 6 * COUNT ( * ) - COUNT ( * ) AS col2 FROM tab2
----
-21

query II rowsort
SELECT DISTINCT col0, + col2 + + 32 FROM tab0
----
15
79
87
42
97
131

query I rowsort
SELECT + 65 * - col2 AS col2 FROM tab2
----
-1495
-2600
-3770

query II rowsort
SELECT + col2, + 71 * + 91 FROM tab1
----
59
6461
68
6461
96
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT ALL MAX( ALL - - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL MAX ( ALL - - col0 ) FROM tab0
----
97

query I rowsort
SELECT col0 * - col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col2 * - 7 + col2 col2 FROM tab2 AS cor0
----
21600
27260
8234

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT + COUNT( * ) + COUNT( * ) col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3519
SELECT + COUNT ( * ) + COUNT ( * ) col0 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT - MIN( DISTINCT + 67 ) FROM tab0, tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-3520
SELECT - MIN ( DISTINCT + 67 ) FROM tab0, tab0 AS cor0
----
-67

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 29 / 57 + + 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT + SUM( 28 ) * + 28 AS col1 FROM tab0
----
2352

skipif mysql # not compatible
query I rowsort label-3522
SELECT + SUM ( 28 ) * + 28 AS col1 FROM tab0
----
2352

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT ALL 29 DIV + - 79 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL 29 / + - 79 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3524
SELECT DISTINCT MAX( - 74 ) AS col0, SUM( - + 93 ) AS col0 FROM tab0 cor0
----
-74
-279

skipif mysql # not compatible
query II rowsort label-3524
SELECT DISTINCT MAX ( - 74 ) AS col0, SUM ( - + 93 ) AS col0 FROM tab0 cor0
----
-74
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT + COUNT( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT + COUNT ( DISTINCT + - col0 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 >= - - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3527
SELECT ALL + col0 * - 89 * - 94 * col1, + 19 * - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3555550
NULL
35781382
NULL
5973324
NULL

skipif mysql # not compatible
query II rowsort label-3527
SELECT ALL + col0 * - 89 * - 94 * col1, + 19 * - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3555550
NULL
35781382
NULL
5973324
NULL

query I rowsort
SELECT ( + ( - 98 ) ) * 12 AS col1 FROM tab1
----
-1176
-1176
-1176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT ALL col0 / - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL col0 / - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3530
SELECT 50 DIV - 90 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3530
SELECT 50 / - 90 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, - col1 + + ( + - col2 ) * + col0 col2 FROM tab1
----
59
-5020
68
-6235
96
-4910

query I rowsort
SELECT ( - - 54 ) FROM tab0
----
54
54
54

query I rowsort
SELECT ( - col0 ) * - col0 AS col2 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3534
SELECT 98 / col1 / - - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT 98 / col1 / - - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3536
SELECT ALL col2 DIV - 82 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL col2 / - 82 AS col2 FROM tab0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 63 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 85 + - 43 IS NULL
----

query I rowsort
SELECT DISTINCT - 3 * + col1 * + - ( + 87 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 + + col2 IS NULL
----
21141
261
5481

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * - - 11 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT ALL + + col2 FROM tab2 WHERE NOT + CAST( 79 AS SIGNED ) IN ( col0, col2 )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL + + col2 FROM tab2 WHERE NOT + CAST ( 79 AS INTEGER ) IN ( col0, col2 )
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query II rowsort
SELECT ALL 99, col1 + - 67 * - 43 AS col1 FROM tab0 AS cor0
----
99
2882
99
2902
99
2962

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-3544
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> - col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3545
SELECT - 84 AS col1, + 33 DIV + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-84
11

skipif mysql # not compatible
query II rowsort label-3545
SELECT - 84 AS col1, + 33 / + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-84
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT SUM( DISTINCT + col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3546
SELECT SUM ( DISTINCT + col2 ) AS col2 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-3547
SELECT DISTINCT COUNT( * ) AS col0, - 71 AS col2 FROM tab1 AS cor0
----
3
-71

skipif mysql # not compatible
query II rowsort label-3547
SELECT DISTINCT COUNT ( * ) AS col0, - 71 AS col2 FROM tab1 AS cor0
----
3
-71

query I rowsort
SELECT DISTINCT 16 + + - col2 FROM tab0 AS cor0
----
-31
-83
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT ALL + 57 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL + 57 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3551
SELECT DISTINCT + MIN( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE 69 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT + MIN ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE 69 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT col0 * col1 * - 87, - col0 AS col2 FROM tab1
----
-36975
-85
-372099
-91
-62118
-51

query III rowsort
SELECT * FROM tab1 WHERE 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 98 + - col1 IN ( col0 * 17 / 80 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 12 ) AS col0 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT col0 + 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT ALL - - ( COUNT( * ) ) + + + ( + COUNT( - col0 ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL - - ( COUNT ( * ) ) + + + ( + COUNT ( - col0 ) ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT - col2 / - - col0 / - col0 FROM tab1 AS cor0 WHERE - 15 * col0 >= + col2 + + ( + 47 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, - col1 AS col1 FROM tab0
----
10
-21
47
-81
99
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3561
SELECT ALL + ( 42 ) DIV + 23 + + ( - 50 ) + + 68 + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
28

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL + ( 42 ) / + 23 + + ( - 50 ) + + 68 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3562
SELECT + - SUM( - + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT + - SUM ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT + 66, - 37 AS col1 FROM tab0 AS cor0
----
66
-37

query I rowsort
SELECT ALL + - col2 * + - col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3565
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3566
SELECT DISTINCT col0 DIV + - col2 FROM tab0
----
-8
0

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT col0 / + - col2 FROM tab0
----
-8
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= col1 * - col1
----

query I rowsort
SELECT DISTINCT + col0 * + + 38 AS col2 FROM tab0
----
3306
3686
570

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL - MIN( ALL ( - col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - MIN ( ALL ( - col1 ) ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3571
SELECT ALL SUM( ALL + col2 ), MAX( + + col1 ) AS col2 FROM tab1
----
223
47

skipif mysql # not compatible
query II rowsort label-3571
SELECT ALL SUM ( ALL + col2 ), MAX ( + + col1 ) AS col2 FROM tab1
----
223
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - ( + SUM( 85 ) ) FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-3572
SELECT - ( + SUM ( 85 ) ) FROM tab1
----
-255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT ALL - SUM( ALL 51 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - SUM ( ALL 51 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + + col1, ( + col1 ) FROM tab0 AS cor0 WHERE NOT ( col2 ) >= - col2 * - - 87
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 + + 7 + + col0 col1 FROM tab0 AS cor0
----
140
150
68

query I rowsort
SELECT DISTINCT - 41 * + - ( - col0 ) + - + 29 + + + col2 AS col2 FROM tab1
----
-2024
-3455
-3692

query I rowsort
SELECT ALL - 54 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT DISTINCT - ( - - COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT - ( - - COUNT ( * ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT - + 47 + + ( - - COUNT( * ) ) - 12 + + ( - 72 ) FROM tab2 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-3579
SELECT - + 47 + + ( - - COUNT ( * ) ) - 12 + + ( - 72 ) FROM tab2 AS cor0
----
-128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 57 col1 FROM tab1 AS cor0
----
3363
3876
5472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 * col2 + 12 + 81 col0 FROM tab0 AS cor0
----
1073
4699
9795

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL MAX( - + col2 ) + - 34 col1 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3583
SELECT ALL MAX ( - + col2 ) + - 34 col1 FROM tab2 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3584
SELECT * FROM tab2 cor0 WHERE + col0 IN ( + + col0 + 55 + + 22 + + + col2 * + - 62 * + ( + - CAST( - - 95 AS SIGNED ) ) * + CAST( NULL AS SIGNED ) * col2 + ( + col2 ) - - col1 + - 23 * col1 + 57 * ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-3584
SELECT * FROM tab2 cor0 WHERE + col0 IN ( + + col0 + 55 + + 22 + + + col2 * + - 62 * + ( + - CAST ( - - 95 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) * col2 + ( + col2 ) - - col1 + - 23 * col1 + 57 * ( col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 66 * + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3586
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) + - - 27 * - 67 col2, - COUNT( * ) FROM tab0
----
-1812
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3586
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) + - - 27 * - 67 col2, - COUNT ( * ) FROM tab0
----
-1812
-3

query I rowsort
SELECT DISTINCT col0 + - + col1 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT DISTINCT - AVG ( + col1 ) AS col1 FROM tab1 WHERE NOT col2 * + col0 >= + CAST( + col1 AS SIGNED ) + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT - AVG ( + col1 ) AS col1 FROM tab1 WHERE NOT col2 * + col0 >= + CAST ( + col1 AS INTEGER ) + + 20
----
NULL

query I rowsort
SELECT col2 - + - col2 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3590
SELECT + 1 - COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3590
SELECT + 1 - COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab1
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col1 FROM tab0
----
56
56
56

query I rowsort
SELECT ALL - 21 * - 88 - - + col2 * + 69 FROM tab0
----
2538
5091
8679

query III rowsort
SELECT * FROM tab0 WHERE + - col0 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT + 85 + CAST( - col0 AS SIGNED ) + - - 29 AS col0 FROM tab1
----
23
29
63

skipif mysql # not compatible
query I rowsort label-3594
SELECT + 85 + CAST ( - col0 AS INTEGER ) + - - 29 AS col0 FROM tab1
----
23
29
63

query II rowsort
SELECT DISTINCT 46, col0 AS col2 FROM tab2
----
46
46
46
64
46
75

query I rowsort
SELECT DISTINCT - AVG ( + col1 ) * - 18 AS col0 FROM tab2 AS cor0 WHERE NOT - 9 + + col0 * - col2 * - - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL 83 * - COUNT( * ) + - 15 col0 FROM tab2 cor0 WHERE NOT ( col0 = col1 )
----
-264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3597
SELECT ALL 83 * - COUNT ( * ) + - 15 col0 FROM tab2 cor0 WHERE NOT ( col0 = col1 )
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT MIN( DISTINCT col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3598
SELECT MIN ( DISTINCT col2 ) col0 FROM tab2
----
23

query I rowsort
SELECT - ( - + 26 ) FROM tab1 AS cor0 WHERE NOT - 40 > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT MIN( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3601
SELECT MIN ( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - + 86 * - col0 FROM tab2 AS cor0
----
3956
5504
6450

query I rowsort
SELECT - - col2 * + 27 + 32 AS col1 FROM tab1 AS cor0
----
1625
1868
2624

query II rowsort
SELECT - col2 AS col2, ( + 62 ) FROM tab0
----
-10
62
-47
62
-99
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3605
SELECT DISTINCT + SUM( ALL col1 ) * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT + SUM ( ALL col1 ) * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT - ( ( + + 87 ) ) * COUNT( * ) FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-3606
SELECT - ( ( + + 87 ) ) * COUNT ( * ) FROM tab1
----
-261

query I rowsort
SELECT + col2 + 97 AS col1 FROM tab2 AS cor0
----
120
137
155

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * + + 29 NOT IN ( - col1, col1, + 86 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3609
SELECT - COUNT( * ) AS col0, CAST( + ( + 4 ) AS SIGNED ) FROM tab1 AS cor0
----
-3
4

skipif mysql # not compatible
query II rowsort label-3609
SELECT - COUNT ( * ) AS col0, CAST ( + ( + 4 ) AS INTEGER ) FROM tab1 AS cor0
----
-3
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < ( NULL ) OR - 93 IS NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-3611
SELECT * FROM tab1 AS cor0 WHERE col1 + - ( col1 ) IN ( - col1 DIV + + col0, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3611
SELECT * FROM tab1 AS cor0 WHERE col1 + - ( col1 ) IN ( - col1 / + + col0, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col1 + - - 93 + + 19 FROM tab1 AS cor0
----
117
126
159

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2, 50, - col1, col0, - col0 * - col2 / - col1 )
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL 44 * COUNT( * ) * - - COUNT( * ) col1 FROM tab2
----
396

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3615
SELECT ALL 44 * COUNT ( * ) * - - COUNT ( * ) col1 FROM tab2
----
396

query I rowsort
SELECT col2 * + + 0 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
0
0
0

query I rowsort
SELECT ALL + + 77 * + col2 + + col0 AS col2 FROM tab1 cor0
----
4628
5327
7443

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3618
SELECT CAST( NULL AS DECIMAL ) - 6 AS col0, + 20 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
-1620
NULL
-20
NULL
-420

skipif mysql # not compatible
query II rowsort label-3618
SELECT CAST ( NULL AS REAL ) - 6 AS col0, + 20 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
-1620
NULL
-20
NULL
-420

query I rowsort
SELECT + 70 + + + col2 - - - col0 * col0 FROM tab2 AS cor0
----
-2023
-3986
-5497

query I rowsort
SELECT 64 + + col0 * + + 63 * - + col2 * 56 + + + 67 FROM tab2 AS cor0
----
-15346669
-3732493
-9031549

onlyif mysql # DIV for integer division: 
query I rowsort label-3621
SELECT ALL - col2 DIV - 36 + + - col0 FROM tab1 AS cor0
----
-49
-84
-90

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL - col2 / - 36 + + - col0 FROM tab1 AS cor0
----
-49
-84
-90

query I rowsort
SELECT + col0 + - + col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col0 + col1 - - ( col2 ) * col0 FROM tab2 AS cor0
----
1155
2701
4492

query I rowsort
SELECT DISTINCT + 32 + - + 97 AS col2 FROM tab2 AS cor0
----
-65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + + col0 * + col2 + + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3626
SELECT ALL + + CAST( + col2 AS SIGNED ) + - 94 AS col1 FROM tab2 AS cor0
----
-36
-54
-71

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL + + CAST ( + col2 AS INTEGER ) + - 94 AS col1 FROM tab2 AS cor0
----
-36
-54
-71

query I rowsort
SELECT ALL - + ( - col2 ) + + col1 FROM tab2 AS cor0
----
117
125
74

query II rowsort
SELECT - 65 + + + col1 AS col2, ( - 22 ) FROM tab2 AS cor0
----
-14
-22
12
-22
2
-22

query I rowsort
SELECT - 69 + + + col2 * + + 57 FROM tab0 AS cor0
----
2610
501
5574

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT ALL + 59 * COUNT( * ) AS col2 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL + 59 * COUNT ( * ) AS col2 FROM tab2
----
177

query III rowsort
SELECT * FROM tab1 WHERE + col2 / col1 - + + col2 = 46 * - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT DISTINCT - SUM( - 74 ) FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT - SUM ( - 74 ) FROM tab0 AS cor0
----
222

query I rowsort
SELECT - - 27 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 84 col1 FROM tab2
----
51
84
67
84
77
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col0 AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query II rowsort
SELECT - + col1 AS col2, + col0 AS col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 20 + col0 + col2 + + col2 * - col1 AS col1 FROM tab1
----
-1177
-131
-3017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col0 FROM tab2
----
-53
-53
-53

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT 48 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 + - - col0 * - 44 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2186
-3682
-3946

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL + MIN( + ( + col2 ) ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL + MIN ( + ( + col2 ) ) AS col1 FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3643
SELECT - col2 * col0 DIV 90 AS col1 FROM tab2
----
-11
-28
-48

skipif mysql # not compatible
query I rowsort label-3643
SELECT - col2 * col0 / 90 AS col1 FROM tab2
----
-11
-28
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT MIN( ALL - col1 ) AS col2, + MIN( ALL - 12 ) AS col2 FROM tab1
----
-47
-12

skipif mysql # not compatible
query II rowsort label-3644
SELECT MIN ( ALL - col1 ) AS col2, + MIN ( ALL - 12 ) AS col2 FROM tab1
----
-47
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3645
SELECT ALL + CAST( NULL AS SIGNED ) + col0 col1, - col1 DIV - ( - 52 ) FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3645
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 col1, - col1 / - ( - 52 ) FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT DISTINCT - - col2 + ( + + col0 ) FROM tab0 cor0
----
196
62
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 76 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3648
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3648
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 5 + + + col1 + + col1 FROM tab0 AS cor0 WHERE 69 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT COUNT( * ) + COUNT( * ) * - 45 AS col2 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-3650
SELECT COUNT ( * ) + COUNT ( * ) * - 45 AS col2 FROM tab1
----
-132

query II rowsort
SELECT ALL - 93 - + 98 * col0, - 15 AS col2 FROM tab1 AS cor0
----
-5091
-15
-8423
-15
-9011
-15

query I rowsort
SELECT - col2 * + 60 * - - 28 FROM tab2 AS cor0
----
-38640
-67200
-97440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3653
SELECT ALL + col0 + + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL + col0 + + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 8 + col1 + + col1 < + col1 * + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3655
SELECT ALL 61 + + + ( 41 ) AS col0, - 86 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
102
258

skipif mysql # not compatible
query II rowsort label-3655
SELECT ALL 61 + + + ( 41 ) AS col0, - 86 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
102
258

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3656
SELECT DISTINCT + col1 DIV + CAST( - col1 AS SIGNED ) + col1 + col0 + 61 * col1 FROM tab0 AS cor0
----
1388
158
5036

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT + col1 / + CAST ( - col1 AS INTEGER ) + col1 + col0 + 61 * col1 FROM tab0 AS cor0
----
1388
158
5036

query I rowsort
SELECT col0 - - 40 AS col0 FROM tab0
----
127
137
55

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT + col1 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT + col1 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 5 + - col2 + 79 FROM tab0
----
-15
37
74

query III rowsort
SELECT * FROM tab1 WHERE NOT 33 + - 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + ( + 13 ) AS col2 FROM tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT ALL MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 = NULL
----

query I rowsort
SELECT - 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT SUM( DISTINCT + col1 ) + + 59 + + 47 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
395

skipif mysql # not compatible
query I rowsort label-3666
SELECT SUM ( DISTINCT + col1 ) + + 59 + + 47 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 68 col1, col1 + + 8 AS col2 FROM tab2 cor0
----
-68
59
-68
75
-68
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <> + 16 * - col1 + + col0
----

query I rowsort
SELECT ALL + col1 * + 3 + + col0 + - ( + col2 ) AS col0 FROM tab2 AS cor0
----
176
218
255

query II rowsort
SELECT + + 84, + col1 FROM tab0 AS cor0
----
84
1
84
21
84
81

query I rowsort
SELECT DISTINCT col2 + + 92 AS col1 FROM tab1
----
151
160
188

query I rowsort
SELECT DISTINCT + 16 * - ( - 1 ) FROM tab2
----
16

query I rowsort
SELECT + - col1 + - col2 AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3674
SELECT + + ( - - 13 ), + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE - 67 * - - 81 IS NULL
----

skipif mysql # not compatible
query II rowsort label-3674
SELECT + + ( - - 13 ), + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE - 67 * - - 81 IS NULL
----

query I rowsort
SELECT DISTINCT ( - ( - col1 ) ) AS col2 FROM tab0
----
1
21
81

query II rowsort
SELECT ALL 86 AS col2, 34 FROM tab1
----
86
34
86
34
86
34

query I rowsort
SELECT 21 + + col1 FROM tab2 AS cor0
----
72
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) FROM tab2 cor0 WHERE NOT NULL BETWEEN - 85 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL BETWEEN - 85 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 72 col1 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT + + 7 AS col0 FROM tab0 cor0
----
7
7
7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col1 * + - 81 AND col0 * col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL COUNT( * ) - + - COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL COUNT ( * ) - + - COUNT ( * ) AS col1 FROM tab1
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 * - 23 * - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + - - col1 * - col0 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT + - col0 * - - 7 + 52 AS col1 FROM tab1 cor0
----
-305
-543
-585

query I rowsort
SELECT + + col1 + + + 68 AS col0 FROM tab0 AS cor0
----
149
69
89

query I rowsort
SELECT 95 + - 56 * - 53 FROM tab0 AS cor0
----
3063
3063
3063

query I rowsort
SELECT ALL - col0 + + 78 + + col1 * + 93 AS col0 FROM tab1 cor0
----
1329
4358
458

query I rowsort
SELECT ALL + col2 - col0 * ( + 19 ) * + - col0 FROM tab0 AS cor0
----
143821
178870
4322

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < col1
----

query II rowsort
SELECT col1 AS col2, - col2 * col1 FROM tab0
----
1
-99
21
-210
81
-3807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col2 FROM tab0
----
210
3807
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 * - col1 * col0 IS NOT NULL
----

query II rowsort
SELECT 47, col2 FROM tab2
----
47
23
47
40
47
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT 2 * - COUNT( * ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3695
SELECT 2 * - COUNT ( * ) AS col2 FROM tab0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3696
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT - 88, + col1 AS col1 FROM tab2
----
-88
51
-88
67
-88
77

query I rowsort
SELECT - col2 * + col2 * - 23 FROM tab0
----
225423
2300
50807

query II rowsort
SELECT + col2 AS col0, 81 FROM tab0 AS cor0
----
10
81
47
81
99
81

query I rowsort
SELECT 43 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < + ( 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT DISTINCT - MAX( - col1 ) * + 51 AS col2 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT - MAX ( - col1 ) * + 51 AS col2 FROM tab1 AS cor0
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3702
SELECT - - COUNT( * ) * - ( 50 ) AS col2 FROM tab1 WHERE NOT CAST( col1 AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3702
SELECT - - COUNT ( * ) * - ( 50 ) AS col2 FROM tab1 WHERE NOT CAST ( col1 AS INTEGER ) < NULL
----
0

query I rowsort
SELECT DISTINCT + 89 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-3704
SELECT ALL - 65 DIV - col1 AS col2, - 24 * col2 col2 FROM tab0
----
0
-1128
3
-240
65
-2376

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3704
SELECT ALL - 65 / - col1 AS col2, - 24 * col2 col2 FROM tab0
----
0
-1128
3
-240
65
-2376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3705
SELECT + MIN( col0 ) * + - CAST( NULL AS SIGNED ) * AVG ( DISTINCT - 81 ) - + ( + - COUNT( DISTINCT - col0 ) ) + + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT + MIN ( col0 ) * + - CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - 81 ) - + ( + - COUNT ( DISTINCT - col0 ) ) + + COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT - 65 DIV - col0 + + - col2 AS col0 FROM tab2
----
-22
-39
-58

skipif mysql # not compatible
query I rowsort label-3706
SELECT - 65 / - col0 + + - col2 AS col0 FROM tab2
----
-22
-39
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT ALL - col0 DIV 28 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 - + + col1 * + ( col1 ) IN ( + ( - + col1 ) + + col1, - col0 )
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - col0 / 28 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 - + + col1 * + ( col1 ) IN ( + ( - + col1 ) + + col1, - col0 )
----
-1
-3
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 BETWEEN + 78 AND + col2
----

query II rowsort
SELECT DISTINCT - col1 AS col1, col1 FROM tab2 AS cor0 WHERE col2 + - col2 IS NOT NULL
----
-51
51
-67
67
-77
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT - CAST( - + 78 AS SIGNED ) FROM tab2
----
78
78
78

skipif mysql # not compatible
query I rowsort label-3711
SELECT - CAST ( - + 78 AS INTEGER ) FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3712
SELECT DISTINCT - - COUNT( * ) * + + 23 + COUNT( * ) * ( - ( + - 95 ) ) + - - COUNT( * ), - COUNT( * ) FROM tab1 WHERE NOT NULL >= + col0
----
0
0

skipif mysql # not compatible
query II rowsort label-3712
SELECT DISTINCT - - COUNT ( * ) * + + 23 + COUNT ( * ) * ( - ( + - 95 ) ) + - - COUNT ( * ), - COUNT ( * ) FROM tab1 WHERE NOT NULL >= + col0
----
0
0

query II rowsort
SELECT ALL ( 67 ) + + - col1, - 8 AS col0 FROM tab2
----
-10
-8
0
-8
16
-8

query I rowsort
SELECT DISTINCT + col1 + 26 FROM tab1
----
31
40
73

query I rowsort
SELECT col1 * - 51 AS col1 FROM tab2
----
-2601
-3417
-3927

query I rowsort
SELECT ALL + ( + 84 ) FROM tab0
----
84
84
84

query I rowsort
SELECT col2 * 64 AS col2 FROM tab2
----
1472
2560
3712

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 27 * col2 * + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = - col0 * col2 + col1 * + + col2
----

query I rowsort
SELECT DISTINCT - col2 + - - col0 + + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-13
-5
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + col1 = + + 30
----

query I rowsort
SELECT 97 * + ( + col2 ) + 36 + + ( - 21 ) FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3724
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * col1 < NULL
----

skipif mysql # not compatible
query III rowsort label-3724
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col1 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3725
SELECT ALL 66 DIV - COUNT( DISTINCT + - col1 ) + - COUNT( * ) AS col0 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL 66 / - COUNT ( DISTINCT + - col1 ) + - COUNT ( * ) AS col0 FROM tab1
----
-25

query I rowsort
SELECT DISTINCT ( col1 ) * + 39 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1989
2613
3003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 32, col0 col0 FROM tab1 cor0
----
32
51
32
85
32
91

query I rowsort
SELECT DISTINCT + + 80 - col1 + 73 AS col2 FROM tab2 AS cor0
----
102
76
86

query I rowsort
SELECT DISTINCT + 5 * - - col0 * + - col1 FROM tab0 AS cor0
----
-485
-6075
-9135

query II rowsort
SELECT - + col0 AS col2, col2 * - col1 AS col2 FROM tab2 AS cor0
----
-46
-1173
-64
-3080
-75
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT - + 86 * + - COUNT( * ) + + MIN( ALL 49 ) AS col0 FROM tab0 AS cor0
----
307

skipif mysql # not compatible
query I rowsort label-3731
SELECT - + 86 * + - COUNT ( * ) + + MIN ( ALL 49 ) AS col0 FROM tab0 AS cor0
----
307

query I rowsort
SELECT ALL - 93 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT - SUM( - col2 ) col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3733
SELECT - SUM ( - col2 ) col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3734
SELECT + COUNT( * ) DIV + 64 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3734
SELECT + COUNT ( * ) / + 64 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + 17 + col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - - 52 FROM tab1
----
2652
4420
4732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3737
SELECT ALL - COUNT( ALL + - col0 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - COUNT ( ALL + - col0 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - + col1 * + - 8 FROM tab0
----
-14616
-776
-9720

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3740
SELECT DISTINCT col2, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3740
SELECT DISTINCT col2, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + - 15 ) + + ( - + 93 ) <> - + 7 + + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - col2 >= NULL
----

query I rowsort
SELECT DISTINCT + + col1 * + 96 * - + col0 AS col1 FROM tab1 AS cor0
----
-40800
-410592
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT ( MAX( ALL + + col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3744
SELECT ( MAX ( ALL + + col0 ) ) FROM tab0 AS cor0
----
97

query II rowsort
SELECT + col2, - 41 AS col1 FROM tab1 AS cor0
----
59
-41
68
-41
96
-41

query I rowsort
SELECT ALL + col2 + - col0 * + 70 AS col1 FROM tab2 AS cor0
----
-3197
-4440
-5192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3747
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + 32 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3747
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + 32 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - ( - col0 ) col1, - col2 FROM tab1 AS cor0
----
138
-68
65
-96
90
-59

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * + col1 + col2 AS col0 FROM tab0
----
-1168
-1817
2

query III rowsort
SELECT ALL * FROM tab2 WHERE - 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT + MIN( + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT + MIN ( + col0 ) FROM tab1
----
51

query I rowsort
SELECT ALL + 36 AS col0 FROM tab0
----
36
36
36

query II rowsort
SELECT + col1, + 56 FROM tab1 AS cor0 WHERE ( + + col1 - - col0 * + col2 IS NOT NULL )
----
14
56
47
56
5
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3755
SELECT col1 DIV + col0 + - 16 + - col2 FROM tab0 AS cor0
----
-115
-26
-58

skipif mysql # not compatible
query I rowsort label-3755
SELECT col1 / + col0 + - 16 + - col2 FROM tab0 AS cor0
----
-115
-26
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 * - 16 ) <> col2 + - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + - 4 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - - 84 - + col0 <= col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT DISTINCT + - SUM( DISTINCT - - 12 ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + - SUM ( DISTINCT - - 12 ) FROM tab0 AS cor0
----
-12

query I rowsort
SELECT ( + col0 ) * - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3761
SELECT - - col2 DIV - - col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3761
SELECT - - col2 / - - col0 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT ALL + 73 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + + col0 * + 8 FROM tab2 AS cor0
----
368
512
600

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT + MAX( - 28 ) AS col2 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT + MAX ( - 28 ) AS col2 FROM tab0 AS cor0
----
-28

query I rowsort
SELECT - + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT 42 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 > + + 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3768
SELECT 71 * - 81 AS col1, CAST( NULL AS DECIMAL ) + + 85 - col2 - - col1 * col2 AS col1 FROM tab2
----
-5751
NULL
-5751
NULL
-5751
NULL

skipif mysql # not compatible
query II rowsort label-3768
SELECT 71 * - 81 AS col1, CAST ( NULL AS REAL ) + + 85 - col2 - - col1 * col2 AS col1 FROM tab2
----
-5751
NULL
-5751
NULL
-5751
NULL

query I rowsort
SELECT DISTINCT col0 * - col0 * + - col0 FROM tab2
----
262144
421875
97336

query I rowsort
SELECT DISTINCT col0 + - col0 AS col2 FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3771
SELECT + 21 DIV - 46 * + ( + 14 ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3771
SELECT + 21 / - 46 * + ( + 14 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 47 + 64 + + col2 AS col1 FROM tab0
----
121
158
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT COUNT( * ) + + COUNT( * ) + - SUM( ALL - 34 ) AS col0 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-3773
SELECT COUNT ( * ) + + COUNT ( * ) + - SUM ( ALL - 34 ) AS col0 FROM tab0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT DISTINCT 33 + - ( + SUM( - 47 ) ) AS col2 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT 33 + - ( + SUM ( - 47 ) ) AS col2 FROM tab2 AS cor0
----
174

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + + 30 * + col0 + + 37 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + - 42 FROM tab1
----
-47
-56
-89

query I rowsort
SELECT ALL + 69 * - col2 - col0 AS col0 FROM tab0
----
-3258
-6928
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT ( - + 95 ) + - + COUNT( * ) AS col1 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT ( - + 95 ) + - + COUNT ( * ) AS col1 FROM tab1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3779
SELECT ALL + col1 DIV + 74 col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3779
SELECT ALL + col1 / + 74 col1 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT - 37 * + ( + + col2 ) AS col0 FROM tab1
----
-2183
-2516
-3552

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT NULL IS NOT NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 58 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 40 AS col1 FROM tab1 cor0
----
-40

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - col0 IN ( + - col2 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT - COUNT( col2 ) col2 FROM tab0 AS cor0 WHERE NOT - ( + col1 ) IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3785
SELECT - COUNT ( col2 ) col2 FROM tab0 AS cor0 WHERE NOT - ( + col1 ) IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT DISTINCT + + col2 DIV + 1 + + col2 + + col1 FROM tab0 AS cor0
----
175
199
41

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT + + col2 / + 1 + + col2 + + col1 FROM tab0 AS cor0
----
175
199
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col2 FROM tab2 cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3788
SELECT 77 * col2 AS col1, - CAST( - + col2 AS SIGNED ) * - col0 - + ( + col1 ) AS col0 FROM tab0 AS cor0
----
3619
-786
7623
-9604
770
-891

skipif mysql # not compatible
query II rowsort label-3788
SELECT 77 * col2 AS col1, - CAST ( - + col2 AS INTEGER ) * - col0 - + ( + col1 ) AS col0 FROM tab0 AS cor0
----
3619
-786
7623
-9604
770
-891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT 11 * - col0 * - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT 11 * - col0 * - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - 15 ) AS col1 FROM tab0
----
15

query I rowsort
SELECT 30 * - col1 FROM tab1
----
-1410
-150
-420

query I rowsort
SELECT DISTINCT - 50 * + col0 AS col1 FROM tab1
----
-2550
-4250
-4550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col1 ) col2 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL + - col0 FROM tab1 WHERE NOT + col2 NOT BETWEEN + ( - - col0 ) * - - ( - col0 ) / col1 + + col2 AND + + 1 * + + col0
----
-85
-91

query I rowsort
SELECT DISTINCT + col0 * - - 59 FROM tab2 AS cor0
----
2714
3776
4425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3796
SELECT - 79 AS col1, COUNT( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
-79
0

skipif mysql # not compatible
query II rowsort label-3796
SELECT - 79 AS col1, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
-79
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < col1 * + 59
----

query II rowsort
SELECT + col2 AS col1, + col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT - 37 + + col2 AS col1 FROM tab1
----
22
31
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3800
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3800
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - col1 col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT 16 * + + 91 FROM tab0
----
1456
1456
1456

query I rowsort
SELECT DISTINCT + ( ( + col1 ) ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - col1 + 22 + col2 + col1 FROM tab0 AS cor0
----
121
32
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 - col2 IS NULL
----

query I rowsort
SELECT - - 13 + 44 FROM tab1 cor0
----
57
57
57

query I rowsort
SELECT + col0 + col2 * col1 + 43 FROM tab1 AS cor0
----
1438
3330
423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + + col0, - col2 col0 FROM tab1 AS cor0
----
138
-68
65
-96
90
-59

query I rowsort
SELECT DISTINCT + + col1 + 41 + - 21 + 52 AS col0 FROM tab0 AS cor0
----
153
73
93

query I rowsort
SELECT ALL 2 + 26 - - col0 AS col2 FROM tab0 AS cor0
----
115
125
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + - + ( - - col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + - + ( - - col0 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3812
SELECT - + CAST( + 78 AS SIGNED ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3812
SELECT - + CAST ( + 78 AS INTEGER ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 + - col0 AS col0 FROM tab2 WHERE NULL <> + col0
----

query III rowsort
SELECT * FROM tab1 WHERE + 31 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT ALL - 86 DIV col0 - - + 16 AS col2 FROM tab0
----
11
16
16

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL - 86 / col0 - - + 16 AS col2 FROM tab0
----
11
16
16

query I rowsort
SELECT + 96 AS col1 FROM tab2 WHERE NULL IS NULL
----
96
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3817
SELECT - COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT - COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= - col2
----
0

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3819
SELECT + - col1 * - col0 AS col0, + col2 - + col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
425
NULL
4277
NULL
714
NULL

skipif mysql # not compatible
query II rowsort label-3819
SELECT + - col1 * - col0 AS col0, + col2 - + col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
425
NULL
4277
NULL
714
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * 90 col0, col1 AS col0 FROM tab2 AS cor0
----
4140
51
5760
77
6750
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3821
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + ( + + 66 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT - CAST ( NULL AS REAL ) * + ( + + 66 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL + 27 * COUNT( * ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + 27 * COUNT ( * ) AS col1 FROM tab0
----
81

query II rowsort
SELECT ALL col1 AS col0, + col0 * - col1 AS col0 FROM tab0
----
1
-97
21
-1827
81
-1215

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3825
SELECT DISTINCT col0, - col1 DIV col2 + + - ( + + col0 ) AS col1 FROM tab2
----
46
-48
64
-65
75
-76

skipif mysql # not compatible
query II rowsort label-3825
SELECT DISTINCT col0, - col1 / col2 + + - ( + + col0 ) AS col1 FROM tab2
----
46
-48
64
-65
75
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3826
SELECT ALL + MIN( + + col1 ) FROM tab2 cor0 WHERE - CAST( + - col1 AS SIGNED ) IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL + MIN ( + + col1 ) FROM tab2 cor0 WHERE - CAST ( + - col1 AS INTEGER ) IS NOT NULL
----
51

query II rowsort
SELECT ALL col0, 21 AS col0 FROM tab0 AS cor0
----
15
21
87
21
97
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 16 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT DISTINCT - - ( + + 91 ) FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col1 IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT - - ( + + 91 ) FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col1 IS NULL
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT + - MAX( + 48 ) AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3830
SELECT + - MAX ( + 48 ) AS col0 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT + 40 * col2 AS col2 FROM tab1 AS cor0
----
2360
2720
3840

query I rowsort
SELECT DISTINCT - ( + 7 ) FROM tab2 AS cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT + + CAST( NULL AS SIGNED ) * + col2 + - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT + + CAST ( NULL AS INTEGER ) * + col2 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT + MAX( - 10 ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT + MAX ( - 10 ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
NULL

query II rowsort
SELECT ALL + col1 AS col0, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - - col2
----

query I rowsort
SELECT + 25 * - col0 AS col1 FROM tab2
----
-1150
-1600
-1875

onlyif mysql # DIV for integer division: 
query I rowsort label-3838
SELECT DISTINCT 8 DIV + col0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT 8 / + col0 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL + ( - 24 ) AS col1 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT ALL ( - + 94 ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL < col1 + - + col2 * col1 * - 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT col1 + - CAST( NULL AS SIGNED ) * + 65 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT col1 + - CAST ( NULL AS INTEGER ) * + 65 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL <> 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT DISTINCT + MIN( ALL col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT + MIN ( ALL col1 ) FROM tab2
----
51

query I rowsort
SELECT + - 83 - - col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-25
-43
-60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 75 * + 9 / + col1 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - 74 ) col1 FROM tab0 AS cor0
----
-74
-74
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT DISTINCT - 66 + col0 + + col1 DIV - 71 + 10 FROM tab2 AS cor0
----
-10
19
7

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT - 66 + col0 + + col1 / - 71 + 10 FROM tab2 AS cor0
----
-10
19
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT - MIN( + col0 ) - 59 + 18 AS col2 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-3849
SELECT - MIN ( + col0 ) - 59 + 18 AS col2 FROM tab2
----
-87

query I rowsort
SELECT - col0 - - + 29 AS col2 FROM tab0
----
-58
-68
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 WHERE col2 * + col2 IS NULL
----

query I rowsort
SELECT ( + + col2 ) - + + 95 + - col1 + - col1 * + - 54 * 56 * + ( + + col0 ) AS col1 FROM tab1
----
1285159
12933574
2159123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + col0 + + - col1 - + - 74 * - - col0 + + ( - - col0 ) col1 FROM tab2
----
10583
5745
9651

query I rowsort
SELECT ( 2 ) + - + 67 + - 5 + - 55 FROM tab2
----
-125
-125
-125

query II rowsort
SELECT DISTINCT col0 AS col1, col1 AS col2 FROM tab2 cor0
----
46
51
64
77
75
67

query II rowsort
SELECT DISTINCT col1, col0 AS col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL - col2 * + + 54 AS col2 FROM tab1 AS cor0
----
-3186
-3672
-5184

query I rowsort
SELECT + ( 69 ) AS col2 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT + + 29 AS col2 FROM tab1 cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT ALL + - 17 AS col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - ( + - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + - 17 AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - ( + - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3861
SELECT DISTINCT + CAST( - - CAST( - + col0 AS SIGNED ) AS SIGNED ) * + - col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT + CAST ( - - CAST ( - + col0 AS INTEGER ) AS INTEGER ) * + - col0 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 82, 57 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3863
SELECT DISTINCT - col0 DIV col0 + + 44 AS col2 FROM tab1 cor0
----
43

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT - col0 / col0 + + 44 AS col2 FROM tab1 cor0
----
43

query I rowsort
SELECT + 25 FROM tab0 AS cor0 WHERE NOT - 15 * + col0 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT + MIN( ALL 81 ) col1 FROM tab1 cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3865
SELECT + MIN ( ALL 81 ) col1 FROM tab1 cor0
----
81

query II rowsort
SELECT ALL col1, - col1 + + col2 AS col1 FROM tab1
----
14
82
47
21
5
54

query I rowsort
SELECT 14 + + - col1 AS col0 FROM tab2
----
-37
-53
-63

query I rowsort
SELECT DISTINCT - 61 FROM tab0, tab2 AS cor0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-3869
SELECT col1 DIV - - col0 + + 83 AS col0 FROM tab1
----
83
83
83

skipif mysql # not compatible
query I rowsort label-3869
SELECT col1 / - - col0 + + 83 AS col0 FROM tab1
----
83
83
83

query I rowsort
SELECT ALL ( + 42 ) FROM tab1 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT - SUM( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3871
SELECT - SUM ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 - ( - col1 ) < NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE ( col1 ) IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) + col1 col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( col0 ) AND ( NULL )
----

query I rowsort
SELECT + col1 * col2 + - 96 FROM tab2
----
1077
2984
3790

query I rowsort
SELECT + ( - 10 ) AS col1 FROM tab0
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3877
SELECT col1 DIV - col1 - - 44 col2 FROM tab1
----
43
43
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3877
SELECT col1 / - col1 - - 44 col2 FROM tab1
----
43
43
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3878
SELECT DISTINCT - MAX( ALL - CAST( 7 AS SIGNED ) ) + 54 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT - MAX ( ALL - CAST ( 7 AS INTEGER ) ) + 54 FROM tab1
----
61

query I rowsort
SELECT DISTINCT + col1 - - ( 29 ) FROM tab0
----
110
30
50

query I rowsort
SELECT - ( col1 ) * - 17 FROM tab2
----
1139
1309
867

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 NOT BETWEEN NULL AND ( 85 / + col0 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3882
SELECT 71 * CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT 71 * CAST ( CAST ( NULL AS REAL ) AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 40 + - col0 AS col0 FROM tab0
----
-127
-137
-55

query I rowsort
SELECT + col2 + col1 * 89 AS col1 FROM tab2
----
4562
6021
6893

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3885
SELECT col2 * col1 + CAST( NULL AS DECIMAL ) * + 80 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3885
SELECT col2 * col1 + CAST ( NULL AS REAL ) * + 80 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3886
SELECT DISTINCT + CAST( MAX( 50 ) AS SIGNED ) DIV - 80 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT + CAST ( MAX ( 50 ) AS INTEGER ) / - 80 AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT col0 FROM tab1 WHERE col2 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= 2
----

query I rowsort
SELECT - col2 * col2 - col0 FROM tab1
----
-3566
-4715
-9267

query III rowsort
SELECT * FROM tab2 WHERE col0 >= ( col0 ) * + 27
----

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab1 WHERE ( + col1 ) > NULL
----

query I rowsort
SELECT DISTINCT + col0 - col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT + ( COUNT( + col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3894
SELECT + ( COUNT ( + col2 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col2 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT SUM( + 60 ) FROM tab1 cor0
----
180

skipif mysql # not compatible
query I rowsort label-3896
SELECT SUM ( + 60 ) FROM tab1 cor0
----
180

query I rowsort
SELECT 48 * 57 AS col1 FROM tab2 AS cor0
----
2736
2736
2736

query I rowsort
SELECT ALL ( - col0 ) * 87 AS col1 FROM tab1 AS cor0
----
-4437
-7395
-7917

query I rowsort
SELECT ALL 78 * 67 FROM tab0
----
5226
5226
5226

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 83 + 84 col1 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 53 AND 62
----

query I rowsort
SELECT - ( 89 ) + col2 FROM tab2 cor0
----
-31
-49
-66

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 48 NOT IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 32 + col1 AND col1
----

query I rowsort
SELECT + 39 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 63 col2 FROM tab1 cor0
----
-63

query I rowsort
SELECT ( col1 ) / col0 FROM tab2 AS cor0 WHERE NOT - 52 - col0 * 88 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / + ( 17 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - col2 - - 55 IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT ALL - COUNT( * ) * 65 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL - COUNT ( * ) * 65 FROM tab2
----
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3912
SELECT - 44 DIV + COUNT( * ) AS col0 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-3912
SELECT - 44 / + COUNT ( * ) AS col0 FROM tab1
----
-14

query I rowsort
SELECT DISTINCT col2 + - 53 FROM tab2 cor0
----
-13
-30
5

query I rowsort
SELECT + - col0 + - 6 AS col2 FROM tab1 AS cor0
----
-57
-91
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3915
SELECT ALL CAST( NULL AS SIGNED ) * 31 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL CAST ( NULL AS INTEGER ) * 31 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT - 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT - col2 * + col1 + + col2 AS col1 FROM tab2
----
-1150
-3040
-3828

query III rowsort
SELECT * FROM tab0 WHERE + + 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - - 89 ) * + - col2 + - col0 AS col0 FROM tab1
----
-5336
-6143
-8595

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3920
SELECT ALL 35 AS col1 FROM tab0 WHERE NOT ( + 72 ) IN ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL 35 AS col1 FROM tab0 WHERE NOT ( + 72 ) IN ( - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + ( + + 84 ) * - col2 FROM tab0
----
-3948
-8316
-840

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( + col0 / col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3923
SELECT * FROM tab2 AS cor0 WHERE CAST( - col1 AS SIGNED ) BETWEEN NULL AND col1 * - col0
----

skipif mysql # not compatible
query III rowsort label-3923
SELECT * FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) BETWEEN NULL AND col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3924
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT ALL SUM( - + 46 ) * - 63 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
8697

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL SUM ( - + 46 ) * - 63 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
8697

query I rowsort
SELECT col1 - - 89 FROM tab0 AS cor0
----
110
170
90

query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab1 AS cor0 WHERE NOT + ( - 79 ) IS NOT NULL
----

query II rowsort
SELECT + col1 AS col2, + 19 + - col0 FROM tab0 AS cor0
----
1
-78
21
-68
81
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL - COUNT( ALL + - col0 ) * + AVG ( 92 ) AS col0 FROM tab0 WHERE NOT NULL < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL - COUNT ( ALL + - col0 ) * + AVG ( 92 ) AS col0 FROM tab0 WHERE NOT NULL < ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col1 FROM tab2
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL + COUNT( * ) + ( - 93 ) AS col1 FROM tab1 WHERE + col2 < - 44
----
-93

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL + COUNT ( * ) + ( - 93 ) AS col1 FROM tab1 WHERE + col2 < - 44
----
-93

query II rowsort
SELECT DISTINCT col1 * - col1, + col1 AS col1 FROM tab2
----
-2601
51
-4489
67
-5929
77

query I rowsort
SELECT + col0 / - 52 AS col2 FROM tab0 WHERE NOT - - 7 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT DISTINCT - - COUNT( ALL - col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT - - COUNT ( ALL - col2 ) FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL <> ( - - col0 * col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3936
SELECT - - col0 * col1 * - 7 + - 24 DIV - col0 AS col2 FROM tab1 cor0
----
-2975
-29939
-4998

skipif mysql # not compatible
query I rowsort label-3936
SELECT - - col0 * col1 * - 7 + - 24 / - col0 AS col2 FROM tab1 cor0
----
-2975
-29939
-4998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT - col0 FROM tab1 cor0 WHERE NOT + 52 / col1 NOT BETWEEN ( + + CAST( NULL AS SIGNED ) ) AND col2 * 25
----

skipif mysql # not compatible
query I rowsort label-3937
SELECT - col0 FROM tab1 cor0 WHERE NOT + 52 / col1 NOT BETWEEN ( + + CAST ( NULL AS INTEGER ) ) AND col2 * 25
----

query I rowsort
SELECT DISTINCT - col0 + col0 * + ( 96 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 - 18 NOT BETWEEN col2 AND + col2
----

query I rowsort
SELECT - - col2 * - - col0 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 / - col2 < + col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= col0 * + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - 90 AS col1 FROM tab2 AS cor0
----
2070
3600
5220

query I rowsort
SELECT ALL - - col2 + - 90 FROM tab1 AS cor0
----
-22
-31
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - 27 AS col1 FROM tab0 cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT DISTINCT COUNT( * ) + - 68 AS col2 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT COUNT ( * ) + - 68 AS col2 FROM tab0 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE col1 NOT IN ( - col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE col1 NOT IN ( - col0 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT ALL COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1
----
9

query III rowsort
SELECT * FROM tab2 WHERE ( col2 NOT IN ( 72 / + 29 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 19 col2 FROM tab1
----
24
33
66

query I rowsort
SELECT DISTINCT + col2 * - col1 * + 22 * + col0 AS col0 FROM tab2
----
-1187076
-4336640
-6411900

query I rowsort
SELECT DISTINCT col2 + col1 * col2 FROM tab1 WHERE NOT ( NOT 93 * col2 * + col2 IS NOT NULL )
----
1440
3264
354

query I rowsort
SELECT DISTINCT - 60 * + 21 FROM tab2
----
-1260

query II rowsort
SELECT col1 AS col0, 94 AS col2 FROM tab1 AS cor0
----
14
94
47
94
5
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE + col0 * - + 37 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 * - + 37 = NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 43 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + - col0 * 80 FROM tab2 AS cor0
----
-3629
-5043
-5933

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT - - MAX( ALL - + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3960
SELECT - - MAX ( ALL - + col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT - + MIN( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3961
SELECT - + MIN ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT + - col1 - - col1 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE + 55 * col1 NOT BETWEEN NULL AND 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + - col0 + - - col0 AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT 90 + - col0 + - - col0 FROM tab0
----
90
90
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3966
SELECT + 65 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT + 65 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3967
SELECT ALL CAST( + MIN( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL CAST ( + MIN ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL >= NULL )
----

query I rowsort
SELECT DISTINCT + - 38 AS col2 FROM tab1 AS cor0
----
-38

query II rowsort
SELECT 79 AS col1, - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT - + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT ( NOT + - 20 - + - col0 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-3971
SELECT - + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT ( NOT + - 20 - + - col0 IS NOT NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT DISTINCT - COUNT( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT - COUNT ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col1 - + - col1 - + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( + 90 ) = ( + col0 ) )
----

query I rowsort
SELECT + - 53 AS col1 FROM tab2 cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= - - ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT DISTINCT + MIN( col1 ) AS col2 FROM tab1 WHERE NOT ( col0 + + col2 + 51 * - - col2 ) IN ( - CAST( NULL AS SIGNED ) * + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT + MIN ( col1 ) AS col2 FROM tab1 WHERE NOT ( col0 + + col2 + 51 * - - col2 ) IN ( - CAST ( NULL AS INTEGER ) * + 1 )
----
NULL

query I rowsort
SELECT 51 * - col2 FROM tab2 WHERE NOT ( - col1 + - col1 ) <> 12 / - + 56 - - + col1 + - 88
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3978
SELECT DISTINCT - 27 DIV + MAX( DISTINCT - col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT - 27 / + MAX ( DISTINCT - col2 ) FROM tab1
----
0

query II rowsort
SELECT - col2 AS col1, 23 AS col2 FROM tab2
----
-23
23
-40
23
-58
23

query II rowsort
SELECT ALL col2, - 36 FROM tab0
----
10
-36
47
-36
99
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT MAX( DISTINCT + 29 ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-3981
SELECT MAX ( DISTINCT + 29 ) FROM tab0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT MIN( DISTINCT 65 ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3982
SELECT MIN ( DISTINCT 65 ) FROM tab0 AS cor0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3983
SELECT + COUNT( - + 96 ) AS col2 FROM tab1 AS cor0 WHERE NOT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3983
SELECT + COUNT ( - + 96 ) AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3984
SELECT DISTINCT * FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3984
SELECT DISTINCT * FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT 38 + COUNT( + col0 ) AS col1 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-3985
SELECT 38 + COUNT ( + col0 ) AS col1 FROM tab1
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( + + col0 ) col2 FROM tab2 WHERE NOT ( + col1 * + - 7 + - 17 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3987
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT ( NULL ) <> col2 * col2
----

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT ( NULL ) <> col2 * col2
----

query I rowsort
SELECT ALL + ( + + col1 ) + + col0 AS col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT COUNT( * ) + + + 2 * + COUNT( * ) + - 73 + + ( + 34 ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3989
SELECT COUNT ( * ) + + + 2 * + COUNT ( * ) + - 73 + + ( + 34 ) FROM tab1 AS cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - + col0 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT + 8 DIV + col1 * - - col2 DIV + 17 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3991
SELECT + 8 / + col1 * - - col2 / + 17 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3992
SELECT + CAST( - col1 AS SIGNED ) AS col0, 73 AS col2 FROM tab2 AS cor0
----
-51
73
-67
73
-77
73

skipif mysql # not compatible
query II rowsort label-3992
SELECT + CAST ( - col1 AS INTEGER ) AS col0, 73 AS col2 FROM tab2 AS cor0
----
-51
73
-67
73
-77
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT DISTINCT + 16 + - COUNT( * ) FROM tab1 cor0
----
13

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT + 16 + - COUNT ( * ) FROM tab1 cor0
----
13

query I rowsort
SELECT col2 / + - col2 FROM tab1 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT + col1 * col1 * - + 90 + col0 FROM tab0
----
-39603
-590475
7

query I rowsort
SELECT ALL 91 + col0 FROM tab0
----
106
178
188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3997
SELECT * FROM tab0 WHERE NULL BETWEEN + - CAST( NULL AS SIGNED ) * - + col0 AND col0
----

skipif mysql # not compatible
query III rowsort label-3997
SELECT * FROM tab0 WHERE NULL BETWEEN + - CAST ( NULL AS INTEGER ) * - + col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT MAX( DISTINCT - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3998
SELECT MAX ( DISTINCT - col2 ) AS col0 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL - MIN( ( col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL - MIN ( ( col1 ) ) FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4000
SELECT col2 FROM tab0 WHERE ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4000
SELECT col2 FROM tab0 WHERE ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT - 37 - 35 * + - 76 FROM tab0
----
2623
2623
2623

query I rowsort
SELECT + 55 - 11 AS col1 FROM tab2
----
44
44
44

query I rowsort
SELECT ALL - col1 * ( ( + col0 ) ) AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4004
SELECT + 4 * 35 * + COUNT( * ) * + 67 FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4004
SELECT + 4 * 35 * + COUNT ( * ) * + 67 FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - + ( col2 ) col0 FROM tab2 cor0
----
1600
3364
529

query I rowsort
SELECT + 2 * - col1 * - - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-295
-507
-7629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT ALL + + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - col2 - - - col1 FROM tab0
----
-101
-209
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4010
SELECT ALL col0 DIV + 79 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL col0 / + 79 FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 + - 48 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + + 86 AND - 58
----

query I rowsort
SELECT ALL col1 * 90 AS col2 FROM tab0 AS cor0
----
1890
7290
90

query II rowsort
SELECT ALL + + col1 AS col2, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 38 col2 FROM tab1 cor0
----
-1938
-3230
-3458

query I rowsort
SELECT DISTINCT + - 19 * + 93 FROM tab1 AS cor0
----
-1767

query I rowsort
SELECT + + ( + col0 ) * - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 47 * + - 60 = col0
----
2601
7225
8281

query I rowsort
SELECT DISTINCT + col1 * + 15 + 99 + col1 * 30 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4019
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col0 NOT BETWEEN + col1 AND - + ( CAST( - col1 AS SIGNED ) ) * - col1 * col1 + col2
----

skipif mysql # not compatible
query III rowsort label-4019
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * + col0 NOT BETWEEN + col1 AND - + ( CAST ( - col1 AS INTEGER ) ) * - col1 * col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT - MIN( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4020
SELECT - MIN ( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
81

query II rowsort
SELECT ALL col0, 77 AS col2 FROM tab2 cor0
----
46
77
64
77
75
77

query II rowsort
SELECT DISTINCT col0 AS col0, 35 AS col1 FROM tab0 AS cor0
----
15
35
87
35
97
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4023
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL SUM( ALL + col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL SUM ( ALL + col2 ) AS col2 FROM tab2
----
121

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT 41 / 22 + + col0 - - col2 = col1 * - col2
----
23
40
58

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + + 73 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT MAX( ALL + col1 ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT MAX ( ALL + col1 ) AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT DISTINCT MIN( col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT MIN ( col2 ) FROM tab0 cor0
----
10

query I rowsort
SELECT AVG ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL + SUM( DISTINCT - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL + SUM ( DISTINCT - col0 ) FROM tab2
----
-185

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - - col1 AND col1 * + 68 - col2
----

query III rowsort
SELECT * FROM tab2 WHERE + + col0 + - 17 IN ( + col0 / + + col1 * + 50 )
----

query II rowsort
SELECT DISTINCT + col2, col1 + - col2 FROM tab2 AS cor0
----
23
28
40
37
58
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 5 col1 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4035
SELECT ALL + 77 AS col0, - COUNT( * ) DIV + MIN( DISTINCT col2 ) + 17 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
77
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4035
SELECT ALL + 77 AS col0, - COUNT ( * ) / + MIN ( DISTINCT col2 ) + 17 col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
77
17

query I rowsort
SELECT DISTINCT + col2 + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-77
2
32

query II rowsort
SELECT DISTINCT - col0 AS col0, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT DISTINCT - col1 + ( - col1 ) * + - col1 AS col2 FROM tab2 AS cor0
----
2550
4422
5852

query I rowsort
SELECT + + col1 + + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT - COUNT( * ) + + - 32 + 21 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-4040
SELECT - COUNT ( * ) + + - 32 + 21 FROM tab0 AS cor0
----
-14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 40 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 21 * + 65 - + col0 FROM tab0
----
1268
1278
1350

query II rowsort
SELECT - ( + col0 ) AS col0, - col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col0 ) col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL + col2 * + 41 FROM tab2 AS cor0
----
1640
2378
943

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + - col0 - + + col0 + + 18 - - col1 + - + 50 IN ( col0 + col2 ) AND NOT + - 22 NOT BETWEEN NULL AND ( + + col2 )
----

query I rowsort
SELECT ALL 19 * 36 * + + ( - 34 ) AS col0 FROM tab2
----
-23256
-23256
-23256

query I rowsort
SELECT + 13 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 + - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT ALL + SUM( ALL + col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL + SUM ( ALL + col0 ) AS col1 FROM tab2
----
185

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 90 <= + + 99 * col1 * col1
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT 53 * - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * - - col2 NOT IN ( + 5 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT + 2 * - - MIN( ALL 65 ) FROM tab0 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-4056
SELECT + 2 * - - MIN ( ALL 65 ) FROM tab0 AS cor0
----
130

query I rowsort
SELECT - - 55 FROM tab1 AS cor0 WHERE NOT - col0 + + + 15 + + - ( col1 ) * + 35 + - col2 * col2 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT ALL 77 * - COUNT( DISTINCT - col1 ) AS col0, 14 AS col1 FROM tab0 AS cor0
----
-231
14

skipif mysql # not compatible
query II rowsort label-4058
SELECT ALL 77 * - COUNT ( DISTINCT - col1 ) AS col0, 14 AS col1 FROM tab0 AS cor0
----
-231
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ( + SUM( ( + + 23 ) ) ) * - 55 AS col2 FROM tab0 AS cor0
----
-3795

skipif mysql # not compatible
query I rowsort label-4059
SELECT ( + SUM ( ( + + 23 ) ) ) * - 55 AS col2 FROM tab0 AS cor0
----
-3795

query I rowsort
SELECT DISTINCT + - ( + 50 ) * + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * 50 IS NULL
----
-2350
-250
-700

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4061
SELECT + 69 * + col2 * - ( + 46 ), - 2 * + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4061
SELECT + 69 * + col2 * - ( + 46 ), - 2 * + - CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT DISTINCT + COUNT( * ) * - + MIN( ALL - + col1 ) AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-4062
SELECT DISTINCT + COUNT ( * ) * - + MIN ( ALL - + col1 ) AS col0 FROM tab0
----
243

query I rowsort
SELECT DISTINCT - 81 AS col0 FROM tab2 WHERE NOT 55 NOT IN ( - col1 / - col1, col0 + - 29 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4064
SELECT DISTINCT - 84 AS col0, COUNT( * ) AS col2 FROM tab1
----
-84
3

skipif mysql # not compatible
query II rowsort label-4064
SELECT DISTINCT - 84 AS col0, COUNT ( * ) AS col2 FROM tab1
----
-84
3

query I rowsort
SELECT + col1 * + 99 AS col1 FROM tab1
----
1386
4653
495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, ( - col0 ) col0 FROM tab1 WHERE - col0 + + + 62 > - 6 + 38
----

query II rowsort
SELECT ALL col2, ( + - 16 ) FROM tab1
----
59
-16
68
-16
96
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

query II rowsort
SELECT DISTINCT - 84 * + + col1 AS col0, - col0 AS col2 FROM tab2
----
-4284
-46
-5628
-75
-6468
-64

query III rowsort
SELECT * FROM tab2 WHERE NOT 14 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 5 / + col0 + 86 + col1 * + + 70 <> NULL
----

query II rowsort
SELECT col2, - 34 * - col2 FROM tab2 AS cor0
----
23
782
40
1360
58
1972

query II rowsort
SELECT DISTINCT + 52, - col1 AS col0 FROM tab2 AS cor0
----
52
-51
52
-67
52
-77

query II rowsort
SELECT - 59 AS col1, col2 FROM tab2 AS cor0
----
-59
23
-59
40
-59
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4075
SELECT - + ( + COUNT( * ) ), - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4075
SELECT - + ( + COUNT ( * ) ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT ALL + + CAST( - - 0 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + + CAST ( - - 0 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT DISTINCT + col0 DIV - ( col2 ) FROM tab2 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT + col0 / - ( col2 ) FROM tab2 cor0
----
-1
-2

query II rowsort
SELECT col1 + - 69 AS col0, col2 FROM tab1
----
-22
68
-55
96
-64
59

query I rowsort
SELECT col1 + 49 AS col2 FROM tab1
----
54
63
96

query I rowsort
SELECT col1 * - col2 + + + col0 AS col0 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT ALL - col1 * + - col2 * 24 AS col0 FROM tab1
----
32256
7080
76704

query I rowsort
SELECT col2 + - 27 AS col1 FROM tab2
----
-4
13
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT DISTINCT + MAX( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4083
SELECT DISTINCT + MAX ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 13 * + + col1 * + + 3 + - col1 + + 92 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + + col0 AS col1 FROM tab0 AS cor0 WHERE - 79 IS NULL
----

query I rowsort
SELECT - col1 FROM tab1 cor0 WHERE + 50 NOT IN ( + 28 / + 51 )
----
-14
-47
-5

query I rowsort
SELECT - col1 - + + col0 + + - 88 FROM tab2
----
-185
-229
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ( COUNT( * ) ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4088
SELECT ( COUNT ( * ) ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 + + 62 AS col0 FROM tab1
----
113
147
153

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4090
SELECT CAST( - col1 AS SIGNED ) DIV + col2 + col0 + + 58 AS col2 FROM tab2
----
102
121
132

skipif mysql # not compatible
query I rowsort label-4090
SELECT CAST ( - col1 AS INTEGER ) / + col2 + col0 + + 58 AS col2 FROM tab2
----
102
121
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT COUNT( - - 40 ) + - 49 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4091
SELECT COUNT ( - - 40 ) + - 49 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT ALL - col0 * ( - col1 ) - - col1 - + - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL - col0 * ( - col1 ) - - 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 ALL - - col1 AS col1, col0 + + col0 col2 FROM tab1 AS cor0
----
14
102
47
182
5
170

query I rowsort
SELECT ALL - col2 * - col0 - + - col0 + - - 34 AS col0 FROM tab0 cor0
----
754
9734
991

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 * + - col1 FROM tab1 cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT ALL CAST( col0 AS SIGNED ) * - - col2 - 11 AS col0 FROM tab1 cor0
----
4885
5004
6177

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL CAST ( col0 AS INTEGER ) * - - col2 - 11 AS col0 FROM tab1 cor0
----
4885
5004
6177

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT DISTINCT - - MAX( - ( 26 ) ) * + - 99 * - - 47 AS col1 FROM tab0 AS cor0
----
120978

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT - - MAX ( - ( 26 ) ) * + - 99 * - - 47 AS col1 FROM tab0 AS cor0
----
120978

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT - + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 18 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4099
SELECT - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 18 IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4100
SELECT - SUM( + + CAST( NULL AS SIGNED ) ) * 72 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT - SUM ( + + CAST ( NULL AS INTEGER ) ) * 72 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT DISTINCT CAST( - + col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 23 * + - 90 FROM tab2
----
2070

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 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
-210
-7482
-9312

query I rowsort
SELECT ( - + col1 ) + - - col0 * + 23 FROM tab2 AS cor0
----
1007
1395
1658

onlyif mysql # DIV for integer division: 
query I rowsort label-4106
SELECT DISTINCT - + 26 + - - 80 DIV - - 84 AS col0 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT - + 26 + - - 80 / - - 84 AS col0 FROM tab2 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT DISTINCT + + col2 * col1 * - - col2 + - - col2 - + CAST( NULL AS SIGNED ) * + - col2 / + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT + + col2 * col1 * - - col2 + - - col2 - + CAST ( NULL AS INTEGER ) * + - col2 / + col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 36 <= + col0
----

query I rowsort
SELECT ALL - ( - 28 ) + 25 AS col0 FROM tab1
----
53
53
53

query I rowsort
SELECT + 41 - + - col0 FROM tab1
----
126
132
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 21 > + ( 57 )
----

query I rowsort
SELECT DISTINCT - col2 + - - 41 AS col1 FROM tab0 AS cor0
----
-58
-6
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4113
SELECT + + col0 + + 67 + - col1 * + col1 DIV + col1 FROM tab1 cor0
----
104
111
147

skipif mysql # not compatible
query I rowsort label-4113
SELECT + + col0 + + 67 + - col1 * + col1 / + col1 FROM tab1 cor0
----
104
111
147

onlyif mysql # DIV for integer division: 
query I rowsort label-4114
SELECT + col2 + col1 DIV 20 * + - 8 AS col0 FROM tab0 cor0
----
15
2
99

skipif mysql # not compatible
query I rowsort label-4114
SELECT + col2 + col1 / 20 * + - 8 AS col0 FROM tab0 cor0
----
15
2
99

query I rowsort
SELECT + + 29 * - col0 + col2 AS col2 FROM tab1 AS cor0
----
-1383
-2406
-2571

query I rowsort
SELECT - 37 * + ( + + col1 ) + - 28 AS col2 FROM tab2 AS cor0
----
-1915
-2507
-2877

query I rowsort
SELECT ALL 91 * - col0 + 70 AS col1 FROM tab1 AS cor0
----
-4571
-7665
-8211

query I rowsort
SELECT DISTINCT col2 - + + col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT ALL - 17 - - col0 + 84 DIV + col2 AS col1 FROM tab2
----
32
49
59

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL - 17 - - col0 + 84 / + col2 AS col1 FROM tab2
----
32
49
59

query I rowsort
SELECT ALL + 96 + col2 + - col1 * - - ( col0 ) FROM tab2
----
-2227
-4792
-4871

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab0 WHERE - 0 = + - 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT ALL CAST( NULL AS SIGNED ) - - - ( 42 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL CAST ( NULL AS INTEGER ) - - - ( 42 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT DISTINCT - 22 DIV + - col0 * + + ( 24 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT - 22 / + - col0 * + + ( 24 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL - - SUM( ALL - + 69 ) FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL - - SUM ( ALL - + 69 ) FROM tab2 AS cor0
----
-207

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4125
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-4125
SELECT DISTINCT CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 42 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
42

query I rowsort
SELECT DISTINCT 11 * - col1 * - col1 AS col0 FROM tab1
----
2156
24299
275

query II rowsort
SELECT 82, ( + col2 ) AS col1 FROM tab1 AS cor0
----
82
59
82
68
82
96

query I rowsort
SELECT + - 21 * - + col1 FROM tab0 AS cor0
----
1701
21
441

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT DISTINCT + MIN( ALL col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4132
SELECT DISTINCT + MIN ( ALL col0 ) col2 FROM tab2 AS cor0
----
46

query II rowsort
SELECT - col2 + - col0, + 12 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4134
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL MAX( DISTINCT - col1 ) * + + 15 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL MAX ( DISTINCT - col1 ) * + + 15 FROM tab1
----
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - + 84 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT CAST( - ( + 55 ) AS SIGNED ) FROM tab1
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-4137
SELECT CAST ( - ( + 55 ) AS INTEGER ) FROM tab1
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4138
SELECT CAST( - 54 AS SIGNED ) FROM tab0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-4138
SELECT CAST ( - 54 AS INTEGER ) FROM tab0
----
-54
-54
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4139
SELECT col2 DIV - + 74 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4139
SELECT col2 / - + 74 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * + col0 * - col0 col1 FROM tab2 AS cor0
----
-194672
-376832
-517500

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 18 = + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + - MIN( - - col1 ) + 11 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4142
SELECT + - MIN ( - - col1 ) + 11 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT DISTINCT - col0 - + + 19 AS col1 FROM tab0
----
-106
-116
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT ALL 3 + 40 + MIN( DISTINCT - 85 ) col1 FROM tab1
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4144
SELECT ALL 3 + 40 + MIN ( DISTINCT - 85 ) col1 FROM tab1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4145
SELECT DISTINCT - MIN( ALL + col0 ) DIV - MIN( DISTINCT - 8 ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4145
SELECT DISTINCT - MIN ( ALL + col0 ) / - MIN ( DISTINCT - 8 ) col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL COUNT( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL COUNT ( ALL + col1 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - col2 * + col1 + + - 7 AS col0 FROM tab1 AS cor0
----
1337
288
3189

query I rowsort
SELECT - 93 + - + col2 AS col2 FROM tab0 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + 49 * col1 FROM tab0 cor0
----
1029
3969
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 + col2 col0 FROM tab0 AS cor0
----
123
34
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL - 3 + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL - 3 + - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL col0 * - col1 - - col2 AS col2 FROM tab1
----
-366
-4209
-618

query III rowsort
SELECT * FROM tab2 WHERE - - col2 + + + col0 <> 28 * - 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 83 AS col2, + 58 FROM tab0
----
83
58

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + col0 + col0
----

query I rowsort
SELECT - col2 / - col0 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL - 61 * + - COUNT( * ) * + + COUNT( * ) FROM tab2
----
549

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - 61 * + - COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
549

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT DISTINCT + col0 DIV + ( + - 54 ) AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT + col0 / + ( + - 54 ) AS col0 FROM tab1
----
-1
0

query II rowsort
SELECT ALL col2, col2 * - col0 FROM tab1 cor0
----
59
-5015
68
-6188
96
-4896

query II rowsort
SELECT + - col2 AS col0, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4162
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4162
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4163
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) * + 27 FROM tab2, tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) * + 27 FROM tab2, tab1 AS cor0
----
-243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 + - - col2 + + col0 + + + col0 * col1 col0 FROM tab0 AS cor0
----
1209
1856
225

query I rowsort
SELECT - col1 * - col0 FROM tab2 AS cor0 WHERE NOT 66 IS NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT SUM( ALL + col2 ) + - + 33 AS col1 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT SUM ( ALL + col2 ) + - + 33 AS col1 FROM tab2 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 92 col2 FROM tab2 AS cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 49 col1 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT - col1 AS col0 FROM tab1 cor0 WHERE NOT + col2 * - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT COUNT( * ) + + 18 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4170
SELECT COUNT ( * ) + + 18 FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL SUM( + - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL SUM ( + - col2 ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT COUNT( * ) + - - 57 AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-4172
SELECT COUNT ( * ) + - - 57 AS col2 FROM tab0
----
60

query I rowsort
SELECT + 88 + 97 * - + col0 * - - ( 95 ) + - col1 AS col2 FROM tab2
----
-423853
-589749
-691104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col2 FROM tab2
----
30
30
30

query II rowsort
SELECT DISTINCT - 5 AS col1, - 78 * - + 28 - - 29 FROM tab1
----
-5
2213

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4176
SELECT * FROM tab1 AS cor0 WHERE ( CAST( col1 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-4176
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( col1 AS INTEGER ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT + MAX( + + col2 ) + 12 AS col2 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4177
SELECT + MAX ( + + col2 ) + 12 AS col2 FROM tab2 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4178
SELECT ALL + - COUNT( col1 ) * 47 + - COUNT( * ) AS col1, COUNT( * ) * 72 * + 44 AS col2 FROM tab1 AS cor0
----
-144
9504

skipif mysql # not compatible
query II rowsort label-4178
SELECT ALL + - COUNT ( col1 ) * 47 + - COUNT ( * ) AS col1, COUNT ( * ) * 72 * + 44 AS col2 FROM tab1 AS cor0
----
-144
9504

query I rowsort
SELECT - col0 * + - col2 + - - col2 FROM tab0 AS cor0
----
752
880
9702

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 - 46 - - + 58 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4181
SELECT DISTINCT + col1 * col1 - + 28 DIV + 38 + + + col0 + - col1 * - 12 + + col2 + - - col1 + - - CAST( + ( - 7 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
203
7669
804

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT + col1 * col1 - + 28 / + 38 + + + col0 + - col1 * - 12 + + col2 + - - col1 + - - CAST ( + ( - 7 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
203
7669
804

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4182
SELECT - col0, - CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0 WHERE NOT + col2 * + + CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-4182
SELECT - col0, - CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0 WHERE NOT + col2 * + + CAST ( NULL AS REAL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 12 * - + 49 FROM tab1
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ( COUNT( * ) ) * + 18 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-4184
SELECT ( COUNT ( * ) ) * + 18 FROM tab1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4185
SELECT + - col2 DIV - + 70 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4185
SELECT + - col2 / - + 70 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 col0 FROM tab0
----
-13

query II rowsort
SELECT ALL - col2 AS col2, + col0 AS col2 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT col1 + CAST( col2 AS SIGNED ) FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-4188
SELECT col1 + CAST ( col2 AS INTEGER ) FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ( + COUNT( * ) ) + - 86 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4189
SELECT ( + COUNT ( * ) ) + - 86 FROM tab2 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT DISTINCT + + ( + + MAX( col1 ) ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT + + ( + + MAX ( col1 ) ) FROM tab2 cor0
----
77

query I rowsort
SELECT DISTINCT - - col2 + + 99 FROM tab1 AS cor0
----
158
167
195

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE - 5 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT + ( + COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4194
SELECT + ( + COUNT ( * ) ) FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 AS cor0 WHERE col1 >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE - 46 / + col1 IS NULL
----

query II rowsort
SELECT - col0 * - col0 AS col0, + 34 AS col0 FROM tab0
----
225
34
7569
34
9409
34

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + col2 * col1 * - col2
----

query III rowsort
SELECT * FROM tab0 WHERE + + col2 + ( + + 0 ) * col1 IS NULL
----

query I rowsort
SELECT + col0 * 39 - - + col1 FROM tab0
----
3414
3784
666

query I rowsort
SELECT + + col2 + - - col2 * - col1 FROM tab1 AS cor0
----
-1248
-236
-3128

query II rowsort
SELECT - 57 + - 0, + 34 AS col1 FROM tab1 AS cor0
----
-57
34
-57
34
-57
34

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL SUM( DISTINCT 15 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL SUM ( DISTINCT 15 ) FROM tab1 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - + 82 col0 FROM tab1 AS cor0
----
129
87
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 = + 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + - ( 51 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4208
SELECT DISTINCT - - CAST( - - col0 AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT col1 / - 7 BETWEEN CAST( NULL AS SIGNED ) + col2 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4208
SELECT DISTINCT - - CAST ( - - col0 AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT col1 / - 7 BETWEEN CAST ( NULL AS INTEGER ) + col2 AND NULL
----

query I rowsort
SELECT DISTINCT - + 57 * - + col0 FROM tab0 cor0
----
4959
5529
855

query I rowsort
SELECT - 90 * + 37 + - + col2 AS col2 FROM tab1 AS cor0
----
-3389
-3398
-3426

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4211
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - CAST( NULL AS SIGNED ) * col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4211
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - CAST ( NULL AS INTEGER ) * col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT + col2 DIV + + 7 FROM tab0 AS cor0
----
1
14
6

skipif mysql # not compatible
query I rowsort label-4212
SELECT + col2 / + + 7 FROM tab0 AS cor0
----
1
14
6

query I rowsort
SELECT ALL ( + ( + - 4 ) ) AS col2 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - ( + ( + col1 ) ) AS col2 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + ( col2 ), ( - col1 ) FROM tab1
----
59
-5
68
-47
96
-14

query III rowsort
SELECT * FROM tab1 WHERE NOT 55 IS NOT NULL
----

query I rowsort
SELECT - col2 * 97 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= - - col2
----

query I rowsort
SELECT ALL + col2 * - col1 * - 32 * - - 46 FROM tab2
----
1726656
4533760
5720192

query I rowsort
SELECT DISTINCT + 4 * - 86 AS col1 FROM tab1 AS cor0
----
-344

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + col1 AND col0
----
46
51
23
64
77
40

query I rowsort
SELECT - col0 * - - 8 - col0 AS col1 FROM tab2 AS cor0
----
-414
-576
-675

query I rowsort
SELECT DISTINCT 82 + - col0 - - col0 * - 30 FROM tab2
----
-1344
-1902
-2243

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT DISTINCT MAX( DISTINCT + - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT MAX ( DISTINCT + - col2 ) FROM tab0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4225
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) * + - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) FROM tab1
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + - ( - + col1 ) < - col2 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 + - col2 >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4228
SELECT DISTINCT - + 17 + + 17 * SUM( + + ( - + col0 ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT - + 17 + + 17 * SUM ( + + ( - + col0 ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + 79 AS col1 FROM tab2 AS cor0
----
102
119
137

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - ( - - col2 ) * - - col0
----

query I rowsort
SELECT + col0 + - col1 + + - col1 * 17 AS col1 FROM tab1 AS cor0
----
-201
-5
-755

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 73 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT - 30 * - + CAST( + - col2 AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
-1770
-2040
-2880

skipif mysql # not compatible
query I rowsort label-4233
SELECT - 30 * - + CAST ( + - col2 AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
-1770
-2040
-2880

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * + + 76 + - col1 FROM tab0
----
1059
6591
7371

query I rowsort
SELECT DISTINCT 12 * - 43 AS col1 FROM tab1, tab0 AS cor0
----
-516

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4237
SELECT ALL * FROM tab1 WHERE NULL IN ( + - col0, col0 * 45 / + col0 * col0, - - col0 * col1 + - + CAST( - + col1 AS SIGNED ) + + ( + - 58 ), + ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-4237
SELECT ALL * FROM tab1 WHERE NULL IN ( + - col0, col0 * 45 / + col0 * col0, - - col0 * col1 + - + CAST ( - + col1 AS INTEGER ) + + ( + - 58 ), + ( col1 ) )
----

query I rowsort
SELECT col0 * - - 55 * + 37 AS col1 FROM tab1
----
103785
172975
185185

query III rowsort
SELECT * FROM tab0 WHERE ( NULL NOT BETWEEN ( NULL ) AND NULL )
----

query I rowsort
SELECT DISTINCT - ( - 30 ) AS col2 FROM tab0
----
30

query I rowsort
SELECT 17 * - - col0 FROM tab0
----
1479
1649
255

query II rowsort
SELECT - - 45 * 24 AS col1, col0 AS col2 FROM tab2 AS cor0
----
1080
46
1080
64
1080
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE 93 / col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT 14 - COUNT( * ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-4245
SELECT 14 - COUNT ( * ) FROM tab2
----
11

query II rowsort
SELECT ALL col2 + - 66, col2 AS col0 FROM tab2
----
-26
40
-43
23
-8
58

query I rowsort
SELECT DISTINCT - + 66 FROM tab0 cor0
----
-66

query I rowsort
SELECT DISTINCT + + col1 + + col0 FROM tab0 AS cor0 WHERE - 47 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT COUNT( ALL - 43 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4249
SELECT COUNT ( ALL - 43 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= col2 + 92
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT ALL + + CAST( + - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL + + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4253
SELECT + 39 DIV + col1 + CAST( + 67 AS SIGNED ) AS col0, - col1 * + col1 AS col0 FROM tab1 cor0 WHERE NOT ( NOT col0 < + col0 - + + 5 + + - col1 + col0 )
----
67
-2209
69
-196
74
-25

skipif mysql # not compatible
query II rowsort label-4253
SELECT + 39 / + col1 + CAST ( + 67 AS INTEGER ) AS col0, - col1 * + col1 AS col0 FROM tab1 cor0 WHERE NOT ( NOT col0 < + col0 - + + 5 + + - col1 + col0 )
----
67
-2209
69
-196
74
-25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4254
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 + - col0 * - - col2 BETWEEN NULL AND + + CAST( col2 AS SIGNED ) + + + col2 )
----

skipif mysql # not compatible
query III rowsort label-4254
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 + - col0 * - - col2 BETWEEN NULL AND + + CAST ( col2 AS INTEGER ) + + + col2 )
----

query I rowsort
SELECT + col1 * + 86 FROM tab0 cor0
----
1806
6966
86

query I rowsort
SELECT ALL col2 / + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( 70 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 78 * - AVG ( ALL - col2 ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL - col1, 90 + + col1 AS col2 FROM tab1
----
-14
104
-47
137
-5
95

query II rowsort
SELECT - ( 80 ) * + - 26 AS col1, 75 FROM tab0
----
2080
75
2080
75
2080
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4260
SELECT DISTINCT COUNT( * ) AS col0, 96 * CAST( + + COUNT( * ) AS SIGNED ) FROM tab1
----
3
288

skipif mysql # not compatible
query II rowsort label-4260
SELECT DISTINCT COUNT ( * ) AS col0, 96 * CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1
----
3
288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4261
SELECT + col0 AS col2, 20 * - - CAST( - 81 AS SIGNED ) + - col1 + col0 AS col1 FROM tab0
----
15
-1686
87
-1554
97
-1524

skipif mysql # not compatible
query II rowsort label-4261
SELECT + col0 AS col2, 20 * - - CAST ( - 81 AS INTEGER ) + - col1 + col0 AS col1 FROM tab0
----
15
-1686
87
-1554
97
-1524

query I rowsort
SELECT - col2 * + - col2 AS col0 FROM tab1
----
3481
4624
9216

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + col0 + + - col0
----

query II rowsort
SELECT ALL + - col2 AS col2, + col1 / col2 AS col2 FROM tab1 cor0 WHERE ( NULL ) <> - col1
----

query I rowsort
SELECT + 17 AS col2 FROM tab2 cor0 WHERE NOT + ( ( + col1 ) ) / ( - 78 ) < + col0
----

query I rowsort
SELECT ALL - col0 * - 78 + 27 FROM tab0
----
1197
6813
7593

query I rowsort
SELECT DISTINCT + + 47 * + + col2 + + 41 * col2 * 38 + + - col2 AS col1 FROM tab1 AS cor0
----
109072
153984
94636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT ALL 34 * CAST( + 0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL 34 * CAST ( + 0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 * - ( + 36 ) FROM tab2 AS cor0
----
-1836
-2412
-2772

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> + - 27
----

query I rowsort
SELECT ALL col0 + - col1 * - col2 AS col0 FROM tab1
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT DISTINCT - COUNT( * ) + - + SUM( ALL + col0 ) AS col0 FROM tab1
----
-230

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT - COUNT ( * ) + - + SUM ( ALL + col0 ) AS col0 FROM tab1
----
-230

query I rowsort
SELECT 7 - ( col2 ) + + col2 AS col2 FROM tab1
----
7
7
7

query I rowsort
SELECT 48 + ( 22 ) + + col1 FROM tab1
----
117
75
84

query I rowsort
SELECT DISTINCT 85 + + 9 FROM tab2 AS cor0
----
94

query I rowsort
SELECT ALL + 9 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query III rowsort
SELECT ALL * FROM tab1 WHERE - 43 BETWEEN NULL AND + 7
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4278
SELECT COUNT( * ), - 28 AS col1 FROM tab2
----
3
-28

skipif mysql # not compatible
query II rowsort label-4278
SELECT COUNT ( * ), - 28 AS col1 FROM tab2
----
3
-28

query I rowsort
SELECT DISTINCT + AVG ( ALL - 91 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT - COUNT( * ) * + 18 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT - COUNT ( * ) * + 18 FROM tab1 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT ALL - + col2 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - + col2 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - 16 + 38 col0 FROM tab2 AS cor0
----
51
22
67
22
77
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4283
SELECT ALL - - COUNT( * ), + COUNT( * ) * + + 17 col1 FROM tab1 AS cor0
----
3
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4283
SELECT ALL - - COUNT ( * ), + COUNT ( * ) * + + 17 col1 FROM tab1 AS cor0
----
3
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4284
SELECT DISTINCT COUNT( DISTINCT - col1 ) AS col0, - 73 FROM tab2 cor0
----
3
-73

skipif mysql # not compatible
query II rowsort label-4284
SELECT DISTINCT COUNT ( DISTINCT - col1 ) AS col0, - 73 FROM tab2 cor0
----
3
-73

query I rowsort
SELECT DISTINCT + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 91 * 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4287
SELECT + col1 DIV - ( + col1 ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4287
SELECT + col1 / - ( + col1 ) FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col1 + - - col1 * - - 76 FROM tab2 WHERE NOT 36 IS NULL
----
3927
5159
5929

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 BETWEEN + + col2 AND + col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT + MAX( ( + + col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT + MAX ( ( + + col1 ) ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4291
SELECT 91 + + ( + - COUNT( ALL - 48 ) ) + COUNT( * ) * COUNT( DISTINCT - + col1 ) AS col0, + 15 FROM tab0 AS cor0
----
97
15

skipif mysql # not compatible
query II rowsort label-4291
SELECT 91 + + ( + - COUNT ( ALL - 48 ) ) + COUNT ( * ) * COUNT ( DISTINCT - + col1 ) AS col0, + 15 FROM tab0 AS cor0
----
97
15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= + col2
----

query I rowsort
SELECT + col1 * 81 AS col2 FROM tab1
----
1134
3807
405

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL - 79 * COUNT( * ) AS col2 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - 79 * COUNT ( * ) AS col2 FROM tab2
----
-237

query I rowsort
SELECT 74 * - col1 + + - 93 * - col1 FROM tab2 AS cor0
----
1273
1463
969

query I rowsort
SELECT ALL + col2 * 70 FROM tab0 cor0
----
3290
6930
700

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL ( - 57 ) + + - MIN( DISTINCT + col1 ) + - SUM( - ( + - col2 ) ) AS col0 FROM tab2 AS cor0
----
-229

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL ( - 57 ) + + - MIN ( DISTINCT + col1 ) + - SUM ( - ( + - col2 ) ) AS col0 FROM tab2 AS cor0
----
-229

query I rowsort
SELECT DISTINCT - - col0 * 78 FROM tab2 AS cor0
----
3588
4992
5850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT + - 5 + - CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-26
-6
-86

skipif mysql # not compatible
query I rowsort label-4299
SELECT + - 5 + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-26
-6
-86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4300
SELECT col0 + - - col1 DIV + - col2 - col0 AS col2, + CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1
67
-1
77
-2
51

skipif mysql # not compatible
query II rowsort label-4300
SELECT col0 + - - col1 / + - col2 - col0 AS col2, + CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1
67
-1
77
-2
51

query I rowsort
SELECT + + col0 + + 49 AS col0 FROM tab0 AS cor0
----
136
146
64

query I rowsort
SELECT ( - col1 ) + - col1 FROM tab0
----
-162
-2
-42

query III rowsort
SELECT ALL 8 + + ( + ( - col1 ) ) AS col1, col0, col1 FROM tab1
----
9 values hashing to 78126fcc1937f04e705d5062ce3e3318

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT DISTINCT - 89 - + COUNT( * ) AS col0 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT - 89 - + COUNT ( * ) AS col0 FROM tab0
----
-92

query I rowsort
SELECT - col2 + - 15 - - col1 FROM tab1 WHERE NULL NOT IN ( - 88 )
----

query I rowsort
SELECT + - col1 FROM tab0 WHERE - - col2 + - - col0 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 59 > + ( - ( + 2 ) ) AND NOT 48 + + 82 + + col1 + col2 * col2 < NULL
----

query I rowsort
SELECT - - col0 - - 2 + + + col2 FROM tab0 cor0
----
198
64
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT DISTINCT - ( + COUNT( ALL + col1 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT - ( + COUNT ( ALL + col1 ) ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 5 - + 61 col2 FROM tab1 AS cor0
----
234
279
419

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT 95 + COUNT( * ) AS col2, 30 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
95
30

skipif mysql # not compatible
query II rowsort label-4311
SELECT 95 + COUNT ( * ) AS col2, 30 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
95
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT SUM( DISTINCT 80 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-4312
SELECT SUM ( DISTINCT 80 ) FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + ( + - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4313
SELECT + ( + - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT + - COUNT( + col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4314
SELECT + - COUNT ( + col1 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT - + MIN( + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4315
SELECT - + MIN ( + col2 ) FROM tab2 AS cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 * 15 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT DISTINCT - 55 / + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT 23 <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT - 55 / + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT 23 <= - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT SUM( DISTINCT - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col2 FROM tab1
----
-227

query II rowsort
SELECT DISTINCT + 83, col1 FROM tab1
----
83
14
83
47
83
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4320
SELECT ALL COUNT( * ) * + 87 * + MIN( col0 ) * - COUNT( * ) + 71 col1, 73 * - 94 FROM tab0
----
-11674
-6862

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4320
SELECT ALL COUNT ( * ) * + 87 * + MIN ( col0 ) * - COUNT ( * ) + 71 col1, 73 * - 94 FROM tab0
----
-11674
-6862

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT + col2 DIV + ( col2 ) AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4322
SELECT + col2 / + ( col2 ) AS col0 FROM tab1
----
1
1
1

query II rowsort
SELECT ALL - + 34 + + col2, + col2 AS col1 FROM tab0 AS cor0
----
-24
10
13
47
65
99

query I rowsort
SELECT DISTINCT + 99 + + 6 - col2 AS col1 FROM tab1 AS cor0
----
37
46
9

query I rowsort
SELECT col0 - + + 64 FROM tab0
----
-49
23
33

query III rowsort
SELECT * FROM tab2 WHERE + + 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 99 + + 89 AS col0 FROM tab1
----
188
188
188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4328
SELECT CAST( + 3 AS SIGNED ) + - + 88 AS col0, col0 FROM tab1
----
-85
51
-85
85
-85
91

skipif mysql # not compatible
query II rowsort label-4328
SELECT CAST ( + 3 AS INTEGER ) + - + 88 AS col0, col0 FROM tab1
----
-85
51
-85
85
-85
91

query II rowsort
SELECT DISTINCT col0 AS col0, ( - + 3 ) AS col0 FROM tab0
----
15
-3
87
-3
97
-3

query I rowsort
SELECT DISTINCT + col1 * - col1 * 63 AS col2 FROM tab1 AS cor0
----
-12348
-139167
-1575

query II rowsort
SELECT DISTINCT 69, col1 FROM tab1 AS cor0
----
69
14
69
47
69
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + 70 = + 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT ALL - CAST( NULL AS SIGNED ) + - 98 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4333
SELECT ALL - CAST ( NULL AS INTEGER ) + - 98 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 6 FROM tab1 WHERE ( col2 + - col0 ) IN ( col0 )
----

query I rowsort
SELECT DISTINCT - 35 + - 81 AS col1 FROM tab1
----
-116

query I rowsort
SELECT ALL 33 - - col1 AS col2 FROM tab0
----
114
34
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4337
SELECT * FROM tab1 WHERE ( 90 ) * - 92 + CAST( + 8 AS SIGNED ) * + ( + col1 ) <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4337
SELECT * FROM tab1 WHERE ( 90 ) * - 92 + CAST ( + 8 AS INTEGER ) * + ( + col1 ) <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4338
SELECT DISTINCT * FROM tab2 WHERE 88 / col0 <> - CAST( col2 AS SIGNED ) + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4338
SELECT DISTINCT * FROM tab2 WHERE 88 / col0 <> - CAST ( col2 AS INTEGER ) + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT DISTINCT CAST( col2 AS SIGNED ) + + col0 AS col0 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT CAST ( col2 AS INTEGER ) + + col0 AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT col2 + 78 AS col1 FROM tab1
----
137
146
174

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * 40 NOT BETWEEN col1 / col0 AND 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 49 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT - 60 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT - 60 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4345
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ALL COUNT( * ) * 96 - - 7 FROM tab2
----
295

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL COUNT ( * ) * 96 - - 7 FROM tab2
----
295

query I rowsort
SELECT 30 + 13 FROM tab0
----
43
43
43

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab0 WHERE + 59 + + 34 <> 50 + + col1 / + col2
----
20

query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab2 WHERE col2 NOT BETWEEN col1 * + col2 AND - col2 * - col1
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 45 col2 FROM tab0
----
-30
42
52

query I rowsort
SELECT DISTINCT 99 / + col0 FROM tab2 AS cor0 WHERE + col2 + 99 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4352
SELECT * FROM tab1 WHERE col2 IN ( CAST( NULL AS SIGNED ) + col0 * 69 )
----

skipif mysql # not compatible
query III rowsort label-4352
SELECT * FROM tab1 WHERE col2 IN ( CAST ( NULL AS INTEGER ) + col0 * 69 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <= ( + 77 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 7 ) col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 20 col2 FROM tab2
----
31
47
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 16 col1 FROM tab1 cor0
----
101
107
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT + 73 + + COUNT( * ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4357
SELECT + 73 + + COUNT ( * ) FROM tab0 AS cor0
----
76

query I rowsort
SELECT - 76 + col0 FROM tab1 AS cor0
----
-25
15
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + - 88 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-41
-78
11

query I rowsort
SELECT + + col0 + + 50 * + 68 FROM tab2 cor0
----
3446
3464
3475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT col0 + CAST( NULL AS SIGNED ) / 15 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT col0 + CAST ( NULL AS INTEGER ) / 15 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + col1 * + 22 FROM tab2 AS cor0
----
1099
1416
1654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4364
SELECT - COUNT( * ) + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT - COUNT ( * ) + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / - col2 + ( + col0 + col2 ) * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT DISTINCT + - COUNT( * ) + MAX( + col2 + + col1 ) * 82 FROM tab2 AS cor0
----
10247

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT + - COUNT ( * ) + MAX ( + col2 + + col1 ) * 82 FROM tab2 AS cor0
----
10247

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 70 + + col1 col1 FROM tab2 AS cor0
----
1661
2877
4127

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL - MAX( col0 ) - COUNT( * ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - MAX ( col0 ) - COUNT ( * ) FROM tab1 AS cor0
----
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4369
SELECT ALL * FROM tab0 WHERE ( - CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4369
SELECT ALL * FROM tab0 WHERE ( - CAST ( NULL AS REAL ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IN ( 91 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4371
SELECT DISTINCT * FROM tab0 WHERE col2 + CAST( col2 - col0 AS SIGNED ) > col1 + + 61 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4371
SELECT DISTINCT * FROM tab0 WHERE col2 + CAST ( col2 - col0 AS INTEGER ) > col1 + + 61 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * + col1 FROM tab0 WHERE NULL IN ( + col0 - 64 )
----

query I rowsort
SELECT ALL col0 * 0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT ( - 11 ) AS col0 FROM tab1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4375
SELECT * FROM tab0 WHERE NOT - col0 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4375
SELECT * FROM tab0 WHERE NOT - col0 = CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4376
SELECT - CAST( NULL AS SIGNED ) * MIN( col2 ) * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT - CAST ( NULL AS INTEGER ) * MIN ( col2 ) * COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT + col1 * ( + 98 ) AS col1 FROM tab2 cor0
----
4998
6566
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT ALL COUNT( - col1 ) * - 20 AS col2 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL COUNT ( - col1 ) * - 20 AS col2 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT ALL + col2 * + 64 FROM tab0 cor0 WHERE col1 <= col2
----
6336

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL + COUNT( * ) * + 27 + ( 41 ) FROM tab0 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL + COUNT ( * ) * + 27 + ( 41 ) FROM tab0 AS cor0
----
122

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * col1 - 11 * + col0 IN ( + col0 / 13 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4382
SELECT ALL ( - COUNT( * ) ) DIV + CAST( 77 * + 18 AS SIGNED ) - 3 AS col2 FROM tab1 WHERE NOT ( NOT NULL >= col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL ( - COUNT ( * ) ) / + CAST ( 77 * + 18 AS INTEGER ) - 3 AS col2 FROM tab1 WHERE NOT ( NOT NULL >= col0 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT SUM( DISTINCT ( - col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4383
SELECT SUM ( DISTINCT ( - col0 ) ) FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ( COUNT( * ) ) FROM tab1 WHERE NOT ( NOT + col2 BETWEEN col0 AND col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4384
SELECT ( COUNT ( * ) ) FROM tab1 WHERE NOT ( NOT + col2 BETWEEN col0 AND col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4385
SELECT DISTINCT ( col2 ) + 70 * col0 AS col0 FROM tab0 cor0 WHERE + col1 BETWEEN - col1 AND - CAST( 69 AS SIGNED ) + + CAST( col2 AS DECIMAL )
----
6889

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT ( col2 ) + 70 * col0 AS col0 FROM tab0 cor0 WHERE + col1 BETWEEN - col1 AND - CAST ( 69 AS INTEGER ) + + CAST ( col2 AS REAL )
----
6889

query I rowsort
SELECT DISTINCT - - col0 * - - 57 FROM tab1 AS cor0
----
2907
4845
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL >= col2
----
0

skipif mysql # not compatible
query I rowsort label-4387
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL >= col2
----
0

query I rowsort
SELECT DISTINCT - ( col0 ) * 42 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
107560
182758
44459

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 - col2 ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4390
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( - col2 AS DECIMAL ) BETWEEN col2 AND ( - col1 + col2 * 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4390
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( - col2 AS REAL ) BETWEEN col2 AND ( - col1 + col2 * 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT ALL SUM( ALL 83 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL SUM ( ALL 83 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - + AVG ( + col0 ) FROM tab0 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT + 41 * - - col1 FROM tab0
----
3321
41
861

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT 69 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT 69 >= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4395
SELECT - CAST( + + 97 AS SIGNED ) * + + COUNT( * ) AS col0 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-4395
SELECT - CAST ( + + 97 AS INTEGER ) * + + COUNT ( * ) AS col0 FROM tab1
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT COUNT( * ) * - 13 * + - COUNT( * ) col2 FROM tab2
----
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4396
SELECT COUNT ( * ) * - 13 * + - COUNT ( * ) col2 FROM tab2
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4397
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE NOT 11 IN ( - + CAST( NULL AS SIGNED ) * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE NOT 11 IN ( - + CAST ( NULL AS INTEGER ) * col2 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col0 > - 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 7 * + col0 AS col2 FROM tab0
----
-105
-609
-679

query I rowsort
SELECT 8 * 73 AS col2 FROM tab0
----
584
584
584

query I rowsort
SELECT ALL + 45 * + col1 * - - col1 FROM tab2
----
117045
202005
266805

query I rowsort
SELECT 48 AS col2 FROM tab2 WHERE NULL <= - col1
----

query I rowsort
SELECT DISTINCT col1 + + col0 * - ( - col2 ) + + col0 AS col0 FROM tab2 cor0
----
1155
2701
4492

query I rowsort
SELECT + 18 + - 33 + - col2 * col2 * + 75 + + 56 FROM tab0 AS cor0
----
-165634
-735034
-7459

query I rowsort
SELECT ALL + col1 + - - col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT ALL + - col2 + - ( 94 ) AS col0 FROM tab1 cor0
----
-153
-162
-190

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NULL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + - ( + col0 ) FROM tab0 AS cor0
----
-66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 83 * + 27 * + col0 - ( + + 91 ) + + 4 AS col1 FROM tab0
----
194880
217290
33528

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT MAX( + col0 ) - 11 * COUNT( * ) FROM tab2 WHERE + ( + - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT MAX ( + col0 ) - 11 * COUNT ( * ) FROM tab2 WHERE + ( + - col2 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 74 FROM tab2 WHERE NOT ( - 81 + + col0 - - - col0 ) IS NOT NULL OR NULL = + ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + ( 95 ) NOT BETWEEN - 79 AND 11
----

query I rowsort
SELECT - col1 - col0 - + ( - - col0 ) + 39 FROM tab1 cor0
----
-136
-190
-77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4415
SELECT - CAST( NULL AS SIGNED ), + col1 + + ( - + col2 ) + + - ( + 71 ) - - ( - col1 ) DIV 25 * col2 AS col1 FROM tab0 AS cor0
----
NULL
-169
NULL
-178
NULL
-60

skipif mysql # not compatible
query II rowsort label-4415
SELECT - CAST ( NULL AS INTEGER ), + col1 + + ( - + col2 ) + + - ( + 71 ) - - ( - col1 ) / 25 * col2 AS col1 FROM tab0 AS cor0
----
NULL
-169
NULL
-178
NULL
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4416
SELECT * FROM tab0 AS cor0 WHERE NOT 63 - ( + + CAST( NULL AS SIGNED ) ) + + col2 * 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4416
SELECT * FROM tab0 AS cor0 WHERE NOT 63 - ( + + CAST ( NULL AS INTEGER ) ) + + col2 * 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + - 95 + - col1 * + 17 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4418
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, - ( + - COUNT( * ) ) * - - CAST( - - COUNT( * ) AS SIGNED ) col1 FROM tab1
----
NULL
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4418
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, - ( + - COUNT ( * ) ) * - - CAST ( - - COUNT ( * ) AS INTEGER ) col1 FROM tab1
----
NULL
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4419
SELECT + COUNT( * ) DIV - 92 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4419
SELECT + COUNT ( * ) / - 92 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT + MAX( - 77 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4420
SELECT + MAX ( - 77 ) FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4421
SELECT DISTINCT - CAST( + - col2 AS SIGNED ) AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL + ( - - col2 ) FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, + 2 col2 FROM tab0
----
1
2
21
2
81
2

query I rowsort
SELECT ALL ( - ( col2 ) ) + 32 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL OR ( NULL ) IS NOT NULL
----
-27
-36
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT DISTINCT + COUNT( ALL - ( + - 88 ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT + COUNT ( ALL - ( + - 88 ) ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT - COUNT( * ) * - 35 AS col2 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-4426
SELECT - COUNT ( * ) * - 35 AS col2 FROM tab0 AS cor0
----
105

query I rowsort
SELECT 49 * - + 47 FROM tab1 AS cor0
----
-2303
-2303
-2303

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 57 IS NOT NULL
----

query I rowsort
SELECT + + 51 AS col2 FROM tab0 cor0
----
51
51
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4430
SELECT 35 DIV + ( col0 ) FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4430
SELECT 35 / + ( col0 ) FROM tab0
----
0
0
2

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4432
SELECT DISTINCT + + ( + COUNT( * ) ) * + CAST( NULL AS DECIMAL ) * + SUM( + col2 ) + - COUNT( * ) * - - 76 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT + + ( + COUNT ( * ) ) * + CAST ( NULL AS REAL ) * + SUM ( + col2 ) + - COUNT ( * ) * - - 76 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + + ( - 84 ) AS col0, col2 - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) < + 15
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 5 + + col2 col2 FROM tab0 AS cor0
----
42
5
94

query I rowsort
SELECT col2 + ( + - col1 ) FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL - - SUM( col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL - - SUM ( col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT + - col2 + 82 AS col0 FROM tab1 AS cor0
----
-14
14
23

query I rowsort
SELECT 13 + col1 AS col1 FROM tab2
----
64
80
90

query I rowsort
SELECT ALL + col0 + + 42 AS col2 FROM tab1
----
127
133
93

query I rowsort
SELECT - col0 + + - col0 * + col2 AS col0 FROM tab0
----
-720
-957
-9700

query II rowsort
SELECT DISTINCT + 26 + col2 * - 27, col1 AS col0 FROM tab1
----
-1567
5
-1810
47
-2566
14

query III rowsort
SELECT * FROM tab1 WHERE ( + - col0 + col2 + + - col1 ) >= col1 * + - 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN 6 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( + + 12 + col0 ) AND ( NULL )
----

query I rowsort
SELECT ALL 4 * - + col0 AS col0 FROM tab1
----
-204
-340
-364

query I rowsort
SELECT ALL col1 * + + col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT ALL - - 1 DIV + - col2 * + col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - - 1 / + - col2 * + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT 24 * - 6 AS col1 FROM tab2 cor0
----
-144
-144
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + COUNT( * ) * - 19 AS col2 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4449
SELECT + COUNT ( * ) * - 19 AS col2 FROM tab2 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4450
SELECT DISTINCT * FROM tab1 WHERE ( ( NOT ( NOT ( col1 / - CAST( NULL AS SIGNED ) ) IN ( + 94 ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-4450
SELECT DISTINCT * FROM tab1 WHERE ( ( NOT ( NOT ( col1 / - CAST ( NULL AS INTEGER ) ) IN ( + 94 ) ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4451
SELECT ALL * FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4451
SELECT ALL * FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4452
SELECT CAST( 91 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

skipif mysql # not compatible
query I rowsort label-4452
SELECT CAST ( 91 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - - ( + 44 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL + 51 - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL + 51 - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
54

query I rowsort
SELECT 35 * - col2 * - col0 * + col1 * - + col2 + - - col1 + + ( - 77 ) * 2 * col2 AS col0 FROM tab1 AS cor0
----
-230322610
-51788956
-692200105

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN 35 AND ( - - col1 + + 94 )
----
51
14
96
85
5
59

query I rowsort
SELECT - col2 * - 95 - ( - + ( - + 39 ) ) AS col0 FROM tab1 AS cor0
----
5566
6421
9081

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 2 * + ( + + ( 35 ) ) - + col1 IN ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT - ( + - COUNT( * ) ), MIN( DISTINCT - - col0 ) col0 FROM tab1 AS cor0
----
3
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4460
SELECT - ( + - COUNT ( * ) ), MIN ( DISTINCT - - col0 ) col0 FROM tab1 AS cor0
----
3
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT DISTINCT + MIN( - 99 ) + 70 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT + MIN ( - 99 ) + 70 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 63 IS NOT NULL AND ( NULL ) = NULL
----

query I rowsort
SELECT ALL ( + 68 ) FROM tab0
----
68
68
68

query I rowsort
SELECT DISTINCT 39 FROM tab2 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 23 * - + 21 * - 68 * + 25 FROM tab0
----
821100
821100
821100

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 NOT BETWEEN + col0 AND NULL
----

query II rowsort
SELECT col1, + ( - - col2 ) AS col1 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4468
SELECT DISTINCT * FROM tab1 WHERE + - col2 * CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4468
SELECT DISTINCT * FROM tab1 WHERE + - col2 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT MAX( ALL - - 2 ) AS col0 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-4469
SELECT MAX ( ALL - - 2 ) AS col0 FROM tab2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4470
SELECT CAST( - 17 AS SIGNED ) FROM tab1 WHERE NULL IS NULL AND - col1 + 28 = col2
----

skipif mysql # not compatible
query I rowsort label-4470
SELECT CAST ( - 17 AS INTEGER ) FROM tab1 WHERE NULL IS NULL AND - col1 + 28 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT + COUNT( * ) * - - MIN( + 10 ) * - - 58 FROM tab2 AS cor0
----
1740

skipif mysql # not compatible
query I rowsort label-4471
SELECT + COUNT ( * ) * - - MIN ( + 10 ) * - - 58 FROM tab2 AS cor0
----
1740

query II rowsort
SELECT - - 90, col2 FROM tab1 AS cor0
----
90
59
90
68
90
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT - MIN( DISTINCT - col1 ) + + - 42 AS col0 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-4474
SELECT - MIN ( DISTINCT - col1 ) + + - 42 AS col0 FROM tab2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ( - - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4475
SELECT ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT 8 - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2
-39
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL + MAX( col0 ) + - 28 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL + MAX ( col0 ) + - 28 FROM tab2 AS cor0
----
47

query I rowsort
SELECT DISTINCT + col2 + + - col1 AS col0 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 78 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 80 + ( + - col2 ) AS col0 FROM tab2
----
22
40
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4481
SELECT ALL + col1 DIV + - 5 - - - 96 FROM tab1
----
-105
-97
-98

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + col1 / + - 5 - - - 96 FROM tab1
----
-105
-97
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL COUNT( * ) * - 49 AS col2 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL COUNT ( * ) * - 49 AS col2 FROM tab0
----
-147

onlyif mysql # DIV for integer division: 
query I rowsort label-4483
SELECT col0 + + 69 DIV + - 76 + + col1 * + + col1 - - - 13 + col0 * - col0 col1 FROM tab1
----
-2367
-5994
-7128

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4483
SELECT col0 + + 69 / + - 76 + + col1 * + + col1 - - - 13 + col0 * - col0 col1 FROM tab1
----
-2367
-5994
-7128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + - + col0 + - 66 col0 FROM tab2
----
-102
-73
-91

query I rowsort
SELECT DISTINCT 88 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 70 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4487
SELECT - col2 DIV + col0 + col1 + + + col2 * - + col1 AS col0, + col1 + 83 AS col0 FROM tab0 AS cor0
----
-189
104
-3729
164
-99
84

skipif mysql # not compatible
query II rowsort label-4487
SELECT - col2 / + col0 + col1 + + + col2 * - + col1 AS col0, + col1 + 83 AS col0 FROM tab0 AS cor0
----
-189
104
-3729
164
-99
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT + + COUNT( DISTINCT + 58 ) + + + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT + + COUNT ( DISTINCT + 58 ) + + + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4489
SELECT 95 AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
95
NULL
95
NULL
95
NULL

skipif mysql # not compatible
query II rowsort label-4489
SELECT 95 AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
95
NULL
95
NULL
95
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4490
SELECT COUNT( * ), 69 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
69

skipif mysql # not compatible
query II rowsort label-4490
SELECT COUNT ( * ), 69 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4491
SELECT DISTINCT 1 DIV + - COUNT( + col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT 1 / + - COUNT ( + col1 ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * - ( - - 77 ) + - ( ( 55 ) ) FROM tab1 AS cor0
----
1023
330
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL MIN( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL MIN ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4495
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col1 * - CAST( NULL AS SIGNED ) * - 99
----

skipif mysql # not compatible
query III rowsort label-4495
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col1 * - CAST ( NULL AS INTEGER ) * - 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT + COUNT( * ) * + 68 + + COUNT( * ) + COUNT( * ) * + 74 AS col2 FROM tab0 AS cor0
----
429

skipif mysql # not compatible
query I rowsort label-4496
SELECT + COUNT ( * ) * + 68 + + COUNT ( * ) + COUNT ( * ) * + 74 AS col2 FROM tab0 AS cor0
----
429

query I rowsort
SELECT ALL 72 * + 85 + - - col2 + - 20 + col1 * 31 + - + 26 AS col0 FROM tab2 AS cor0
----
7678
8209
8501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4498
SELECT COUNT( * ) DIV + MIN( DISTINCT - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4498
SELECT COUNT ( * ) / + MIN ( DISTINCT - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4499
SELECT 4 DIV + col2 * + 10 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4499
SELECT 4 / + col2 * + 10 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT 30 * + 30 FROM tab2
----
900
900
900

query I rowsort
SELECT + 52 - - col0 * + col1 FROM tab1 WHERE NOT + + col1 IS NULL
----
4329
477
766

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col2 FROM tab1 WHERE 49 NOT BETWEEN + - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col0 FROM tab1 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT + COUNT( * ) * - + MAX( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-4505
SELECT + COUNT ( * ) * - + MAX ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-231

query I rowsort
SELECT - + 77 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT ALL 92 * - - 35 FROM tab1
----
3220
3220
3220

query I rowsort
SELECT ALL - 62 AS col2 FROM tab1 WHERE - 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + MAX( ALL 70 ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4509
SELECT + MAX ( ALL 70 ) FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT + ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4510
SELECT + ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT - col1 + + - col1 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

query II rowsort
SELECT - col1 * col2 + + + col2 AS col1, 44 AS col0 FROM tab2 AS cor0
----
-1150
44
-3040
44
-3828
44

query I rowsort
SELECT ALL - 74 * 2 * + col0 + 98 AS col0 FROM tab0 AS cor0
----
-12778
-14258
-2122

query I rowsort
SELECT DISTINCT col2 + 58 FROM tab2 AS cor0
----
116
81
98

query I rowsort
SELECT - - col2 + + 0 * + - 43 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT col0 + - - col2 * - + col2 AS col1 FROM tab2 AS cor0
----
-1536
-3289
-483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4517
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 68 + - 10 AS col1 FROM tab2 cor0
----
-78
-78
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + ( - 97 ) + - MAX( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4519
SELECT + ( - 97 ) + - MAX ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + col0 + + 22 - + col2 AS col0 FROM tab1
----
-23
45
48

query I rowsort
SELECT ALL + ( - col1 ) - + 95 FROM tab0
----
-116
-176
-96

query II rowsort
SELECT col2 AS col2, col0 + + ( col0 ) FROM tab2
----
23
92
40
128
58
150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4523
SELECT * FROM tab0 WHERE ( - ( - CAST( col2 AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4523
SELECT * FROM tab0 WHERE ( - ( - CAST ( col2 AS INTEGER ) ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 70 col2 FROM tab2
----
-19
-3
7

query I rowsort
SELECT ALL + 81 - - 25 FROM tab2
----
106
106
106

query III rowsort
SELECT col0 * + 11 AS col1, + col0 * - col0 AS col0, - + col1 + - col0 FROM tab1
----
9 values hashing to 8c5b699338887d0f89249a02bee51070

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT MAX( - - col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT MAX ( - - col1 ) AS col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT - COUNT( DISTINCT - 1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4528
SELECT - COUNT ( DISTINCT - 1 ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4529
SELECT + ( + col2 ) DIV CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4529
SELECT + ( + col2 ) / CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL + col1 * col1 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
2652
4556
6006

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL + col1 * col1 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
2652
4556
6006

onlyif mysql # aggregate syntax: 
query II rowsort label-4531
SELECT DISTINCT + + COUNT( * ) AS col0, - 33 FROM tab1 AS cor0
----
3
-33

skipif mysql # not compatible
query II rowsort label-4531
SELECT DISTINCT + + COUNT ( * ) AS col0, - 33 FROM tab1 AS cor0
----
3
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - MAX( DISTINCT + + 96 ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-4532
SELECT - MAX ( DISTINCT + + 96 ) AS col1 FROM tab0
----
-96

query II rowsort
SELECT - ( 23 ), col0 FROM tab2
----
-23
46
-23
64
-23
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT + CAST( NULL AS SIGNED ) * + - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT + CAST ( NULL AS INTEGER ) * + - col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL + ( SUM( 98 ) ) * + COUNT( * ) FROM tab0 AS cor0
----
882

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + ( SUM ( 98 ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE ( + col0 ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + col0 + - - col0 col1 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT DISTINCT col2 + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 41 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 * + col2 * - 96 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT + 64 * - SUM( + 26 ) FROM tab0 AS cor0
----
-4992

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT + 64 * - SUM ( + 26 ) FROM tab0 AS cor0
----
-4992

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab0 WHERE NOT - col1 IS NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN - 30 + + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - 40 ) AS col0 FROM tab0
----
-40

query II rowsort
SELECT DISTINCT col0, 50 FROM tab2
----
46
50
64
50
75
50

query I rowsort
SELECT ALL - 42 + + + col0 FROM tab1 AS cor0
----
43
49
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL ( + col0 ) + - + col2 + - ( + col0 ) * + - 48 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL ( + col0 ) + - + col2 + - ( + col0 ) * + - 48 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT DISTINCT - - AVG ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND - col1 * col0 + + col2 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT - - AVG ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND - col1 * col0 + + col2 * + + CAST ( NULL AS INTEGER )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 + + 85 col0 FROM tab2 AS cor0
----
182
226
227

query I rowsort
SELECT col0 * col1 FROM tab2 AS cor0 WHERE + 0 BETWEEN + 24 AND - - 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT ALL - - CAST( NULL AS SIGNED ) * col0 + - col2 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL - - CAST ( NULL AS INTEGER ) * col0 + - col2 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT 13 BETWEEN NULL AND col0 )
----

query I rowsort
SELECT ALL - 41 - - 7 AS col2 FROM tab2
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - 82 AS col1 FROM tab0
----
-82

query I rowsort
SELECT - col0 * + 12 + + col2 * - col1 AS col2 FROM tab0
----
-1254
-1263
-3987

query I rowsort
SELECT DISTINCT + 14 - + - 85 + + - 52 AS col0 FROM tab0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + - 48 col2 FROM tab2
----
1125
3032
3838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 23 col2, 86 AS col2 FROM tab2
----
-23
86
-23
86
-23
86

query I rowsort
SELECT DISTINCT col0 - - 32 FROM tab0
----
119
129
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT DISTINCT col1 - col2 * col2 + + col1 DIV - + 18 + + 5 AS col1 FROM tab2
----
-1522
-3295
-475

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT col1 - col2 * col2 + + col1 / - + 18 + + 5 AS col1 FROM tab2
----
-1522
-3295
-475

query I rowsort
SELECT - - col2 + 31 AS col2 FROM tab2 AS cor0
----
54
71
89

onlyif mysql # DIV for integer division: 
query II rowsort label-4563
SELECT ALL - 26 AS col0, col1 * 52 DIV - - col2 FROM tab0 cor0
----
-26
0
-26
109
-26
89

skipif mysql # not compatible
query II rowsort label-4563
SELECT ALL - 26 AS col0, col1 * 52 / - - col2 FROM tab0 cor0
----
-26
0
-26
109
-26
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT DISTINCT + ( ( + + 46 ) ) * + - CAST( NULL AS SIGNED ) + + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 16 <> - col0 + col1
----

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT + ( ( + + 46 ) ) * + - CAST ( NULL AS INTEGER ) + + - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 16 <> - col0 + col1
----

query I rowsort
SELECT - ( col2 ) AS col2 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 94 AS col1 FROM tab2, tab0 AS cor0
----
-94

query II rowsort
SELECT ALL 15, col1 FROM tab0
----
15
1
15
21
15
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4568
SELECT + col2 DIV - - CAST( - 4 AS SIGNED ) AS col1 FROM tab0
----
-11
-2
-24

skipif mysql # not compatible
query I rowsort label-4568
SELECT + col2 / - - CAST ( - 4 AS INTEGER ) AS col1 FROM tab0
----
-11
-2
-24

query I rowsort
SELECT ALL - col0 * - + ( - col2 ) FROM tab2 WHERE 80 NOT BETWEEN col0 * - 59 AND - + 73
----
-1058
-2560
-4350

query I rowsort
SELECT 59 * + col1 AS col2 FROM tab2
----
3009
3953
4543

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT COUNT( * ) * + + 58 + COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
531

skipif mysql # not compatible
query I rowsort label-4571
SELECT COUNT ( * ) * + + 58 + COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
531

query I rowsort
SELECT DISTINCT + 72 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT 80 * - COUNT( * ) FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-4573
SELECT 80 * - COUNT ( * ) FROM tab0 AS cor0
----
-240

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 <> + + 63
----

query I rowsort
SELECT ALL + 70 * col0 + + + col2 FROM tab2 AS cor0
----
3243
4520
5308

onlyif mysql # DIV for integer division: 
query I rowsort label-4576
SELECT ALL col0 DIV - 3 FROM tab0 cor0
----
-29
-32
-5

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL col0 / - 3 FROM tab0 cor0
----
-29
-32
-5

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT - 44 < NULL
----

query I rowsort
SELECT DISTINCT 60 * + - col0 * - + 0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT ALL - col1 * - 22 * + ( + CAST( + + ( + col2 ) AS SIGNED ) ) + + 37 AS col2 FROM tab2 AS cor0
----
25843
67797
85529

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL - col1 * - 22 * + ( + CAST ( + + ( + col2 ) AS INTEGER ) ) + + 37 AS col2 FROM tab2 AS cor0
----
25843
67797
85529

query I rowsort
SELECT ALL + ( ( + - col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT 78 * 68 FROM tab0 AS cor0
----
5304
5304
5304

query II rowsort
SELECT DISTINCT col1, + 88 AS col1 FROM tab1 AS cor0
----
14
88
47
88
5
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4583
SELECT - col0 DIV - CAST( - + 84 AS SIGNED ) FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4583
SELECT - col0 / - CAST ( - + 84 AS INTEGER ) FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4584
SELECT + ( - - COUNT( * ) ) DIV - - 92 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4584
SELECT + ( - - COUNT ( * ) ) / - - 92 AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4585
SELECT 51 DIV - - col1 + - CAST( + col2 AS SIGNED ) col1 FROM tab2
----
-22
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4585
SELECT 51 / - - col1 + - CAST ( + col2 AS INTEGER ) col1 FROM tab2
----
-22
-40
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 > - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE NULL > NULL
----

query II rowsort
SELECT - 97 * - - 78 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-7566
23
-7566
40
-7566
58

query I rowsort
SELECT DISTINCT col1 - col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4590
SELECT DISTINCT MIN( CAST( NULL AS SIGNED ) ) AS col1, 68 AS col2 FROM tab2 AS cor0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-4590
SELECT DISTINCT MIN ( CAST ( NULL AS INTEGER ) ) AS col1, 68 AS col2 FROM tab2 AS cor0
----
NULL
68

query I rowsort
SELECT ALL - 45 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 80 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
80

query II rowsort
SELECT DISTINCT - col0 AS col2, col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT COUNT( * ) + - ( + - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4595
SELECT COUNT ( * ) + - ( + - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT col2 + 30 FROM tab1 AS cor0
----
126
89
98

query I rowsort
SELECT DISTINCT 23 + col2 AS col1 FROM tab1 AS cor0
----
119
82
91

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 39 * - col0 FROM tab2 cor0
----
-1794
-2496
-2925

query I rowsort
SELECT DISTINCT - 76 AS col0 FROM tab0 WHERE - + 64 * + + 7 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 84 - col2 AS col1 FROM tab0
----
-15
37
74

query I rowsort
SELECT ALL + 87 + + col0 * - 80 FROM tab0
----
-1113
-6873
-7673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4603
SELECT ALL COUNT( * ), - 51 * CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0
----
9
-459

skipif mysql # not compatible
query II rowsort label-4603
SELECT ALL COUNT ( * ), - 51 * CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0
----
9
-459

query II rowsort
SELECT + col0 * + + 84, col0 AS col0 FROM tab1
----
4284
51
7140
85
7644
91

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT 47 * + 91 AS col1, col1 * - 51 * - ( + + col2 ) FROM tab1 AS cor0
----
4277
15045
4277
162996
4277
68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4607
SELECT ( + CAST( - - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4607
SELECT ( + CAST ( - - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + col2 * - - 34 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT MIN( ALL 24 ) AS col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4609
SELECT MIN ( ALL 24 ) AS col2 FROM tab2 AS cor0
----
24

query I rowsort
SELECT - 18 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( col0, col0 * col1 * col0 * - col1, + - col1 + + + col1 + - col2 * 41 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL + MAX( DISTINCT - - col2 ) + - 99 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL + MAX ( DISTINCT - - col2 ) + - 99 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT DISTINCT - CAST( + col0 AS SIGNED ) FROM tab1 WHERE NOT - 12 IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) FROM tab1 WHERE NOT - 12 IS NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT + 57 DIV 72 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT + 57 / 72 FROM tab1
----
0
0
0

query I rowsort
SELECT ( 12 ) FROM tab2
----
12
12
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4617
SELECT - COUNT( * ), + COUNT( * ) FROM tab2 WHERE + col2 + + 60 <= + - 43
----
0
0

skipif mysql # not compatible
query II rowsort label-4617
SELECT - COUNT ( * ), + COUNT ( * ) FROM tab2 WHERE + col2 + + 60 <= + - 43
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4618
SELECT ( - 85 ) * col0 DIV + - col1 FROM tab0
----
15
352
8245

skipif mysql # not compatible
query I rowsort label-4618
SELECT ( - 85 ) * col0 / + - col1 FROM tab0
----
15
352
8245

query I rowsort
SELECT ALL + col2 * col1 + + + 27 * - col2 * + ( + col2 ) FROM tab1 AS cor0
----
-121652
-247488
-93692

query I rowsort
SELECT 26 + + - 51 AS col0 FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT COUNT( * ) * - + MAX( ALL col1 ) + + + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-4621
SELECT COUNT ( * ) * - + MAX ( ALL col1 ) + + + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-231

query I rowsort
SELECT + col2 * - 33 AS col1 FROM tab2
----
-1320
-1914
-759

query I rowsort
SELECT + + col1 * - 33 FROM tab0 AS cor0
----
-2673
-33
-693

query I rowsort
SELECT ALL + - ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT + ( - 38 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 37 * - col1 + - col2 + + col2 FROM tab2 AS cor0
----
-1887
-2479
-2849

query II rowsort
SELECT - col1 AS col1, 79 * - + col1 + + col0 + - col0 * - + ( col0 ) * + ( col2 ) AS col2 FROM tab0
----
-1
931509
-21
74118
-81
4191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4627
SELECT CAST( + + MIN( - - col1 ) AS SIGNED ) col2, MAX( - col1 ) AS col1 FROM tab2
----
51
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4627
SELECT CAST ( + + MIN ( - - col1 ) AS INTEGER ) col2, MAX ( - col1 ) AS col1 FROM tab2
----
51
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4628
SELECT DISTINCT + 19 * col2 DIV col1 AS col0 FROM tab2
----
16
8
9

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT + 19 * col2 / col1 AS col0 FROM tab2
----
16
8
9

query III rowsort
SELECT ALL * FROM tab2 WHERE + - ( + - col2 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4630
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4630
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query II rowsort
SELECT DISTINCT + col2 AS col0, 21 AS col2 FROM tab0 AS cor0
----
10
21
47
21
99
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4632
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <= col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4632
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <= col1 * CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4633
SELECT + ( CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT + ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + - - col2 AS col2 FROM tab0 cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT DISTINCT + - ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT + - ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4636
SELECT DISTINCT - - MIN( - CAST( - col0 AS SIGNED ) ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT - - MIN ( - CAST ( - col0 AS INTEGER ) ) FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT ALL 93 + - MAX( DISTINCT + 26 ) FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL 93 + - MAX ( DISTINCT + 26 ) FROM tab2 AS cor0
----
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 93 + + col0 AS col2 FROM tab2 AS cor0
----
139
157
168

query I rowsort
SELECT - + 52 + + + 98 + + 24 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4641
SELECT COUNT( * ) + + + COUNT( col2 ) DIV + SUM( + col1 ), COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4641
SELECT COUNT ( * ) + + + COUNT ( col2 ) / + SUM ( + col1 ), COUNT ( * ) AS col1 FROM tab0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 34 ) col1 FROM tab2
----
-34

query I rowsort
SELECT ALL - 47 + + col2 FROM tab0 AS cor0
----
-37
0
52

query I rowsort
SELECT ALL - + 10 * - col2 + - + col2 AS col1 FROM tab0 AS cor0
----
423
891
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT - CAST( NULL AS SIGNED ) - - col1 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4645
SELECT - CAST ( NULL AS INTEGER ) - - col1 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT DISTINCT + 7 * - col1 DIV + - col1 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + 7 * - col1 / + - col1 FROM tab2
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-4647
SELECT + col1 + - 86 AS col0, 0 DIV - + 94 * col1 FROM tab0
----
-5
0
-65
0
-85
0

skipif mysql # not compatible
query II rowsort label-4647
SELECT + col1 + - 86 AS col0, 0 / - + 94 * col1 FROM tab0
----
-5
0
-65
0
-85
0

query I rowsort
SELECT col0 * col2 + + - col0 AS col2 FROM tab0 AS cor0
----
690
783
9506

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT - 37 DIV 83 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4649
SELECT - 37 / 83 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT ALL - 0, 44 AS col0 FROM tab2 AS cor0
----
0
44
0
44
0
44

query I rowsort
SELECT - 27 * - col0 - ( - - col0 ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 68, 94 col0 FROM tab2 AS cor0
----
-68
94

query I rowsort
SELECT ALL + - col2 + - col1 * - + col0 * + col1 * + col1 FROM tab1 AS cor0
----
10566
139848
9447825

onlyif mysql # DIV for integer division: 
query I rowsort label-4654
SELECT - + 48 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
2
48

skipif mysql # not compatible
query I rowsort label-4654
SELECT - + 48 / - col1 AS col0 FROM tab0 AS cor0
----
0
2
48

query I rowsort
SELECT col0 * - 47 + - - col1 * + col1 FROM tab2 AS cor0
----
2921
439
964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col1 FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4657
SELECT ALL + 9 DIV - COUNT( * ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + 9 / - COUNT ( * ) AS col2 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT 93 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4659
SELECT + CAST( - 23 AS SIGNED ), - 95 AS col1 FROM tab0
----
-23
-95
-23
-95
-23
-95

skipif mysql # not compatible
query II rowsort label-4659
SELECT + CAST ( - 23 AS INTEGER ), - 95 AS col1 FROM tab0
----
-23
-95
-23
-95
-23
-95

query I rowsort
SELECT 83 * + 21 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 1fef63a6cd215bcf9b19d31560d5c91a

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT MAX( DISTINCT - col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col1 FROM tab0
----
-15

query I rowsort
SELECT DISTINCT - ( - col0 ) + - - col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4663
SELECT + CAST( - ( + col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4663
SELECT + CAST ( - ( + col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col0 + - - 63 FROM tab1 AS cor0
----
114
148
154

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE + col1 <= - 92
----

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab0 AS cor0 WHERE ( - ( + 33 ) ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL + MAX( ALL - - 22 ) AS col2 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL + MAX ( ALL - - 22 ) AS col2 FROM tab1 AS cor0
----
22

query I rowsort
SELECT ALL - - 21 + + col2 * + + col0 FROM tab2 AS cor0
----
1079
2581
4371

query I rowsort
SELECT ALL col2 * + col1 + + - 28 AS col0 FROM tab1
----
1316
267
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + + 64 FROM tab2
----
3264
4288
4928

query I rowsort
SELECT col2 - - + col0 + - + col2 FROM tab1
----
51
85
91

query I rowsort
SELECT col0 * + ( - ( + col1 ) ) + - col1 FROM tab1 AS cor0
----
-430
-4324
-728

query II rowsort
SELECT ALL + col2 + col1, ( col1 ) FROM tab0 AS cor0
----
100
1
128
81
31
21

query I rowsort
SELECT DISTINCT + 81 + + 24 FROM tab2 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT 87 * + SUM( + col0 ) AS col0 FROM tab0 cor0
----
17313

skipif mysql # not compatible
query I rowsort label-4676
SELECT 87 * + SUM ( + col0 ) AS col0 FROM tab0 cor0
----
17313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT ALL col2 * CAST( + 49 AS SIGNED ) FROM tab0 AS cor0
----
2303
4851
490

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL col2 * CAST ( + 49 AS INTEGER ) FROM tab0 AS cor0
----
2303
4851
490

query I rowsort
SELECT ALL + 74 * - + col0 FROM tab1 AS cor0 WHERE + 31 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4679
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL > - col0 + - CAST( NULL AS SIGNED ) * - ( + col1 ) + - col2
----

skipif mysql # not compatible
query III rowsort label-4679
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL > - col0 + - CAST ( NULL AS INTEGER ) * - ( + col1 ) + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4680
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1
----
NULL

query II rowsort
SELECT 44 AS col0, 38 AS col0 FROM tab2
----
44
38
44
38
44
38

query I rowsort
SELECT ALL + 71 + - 23 / - AVG ( + + col0 ) AS col2 FROM tab2 WHERE + 52 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4683
SELECT - COUNT( * ), 75 AS col0 FROM tab2
----
-3
75

skipif mysql # not compatible
query II rowsort label-4683
SELECT - COUNT ( * ), 75 AS col0 FROM tab2
----
-3
75

query II rowsort
SELECT ALL + col0 AS col2, 48 * - 94 AS col1 FROM tab1
----
51
-4512
85
-4512
91
-4512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4685
SELECT DISTINCT COUNT( * ) DIV - MAX( + col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT COUNT ( * ) / - MAX ( + col2 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT 14 DIV - 55 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4686
SELECT 14 / - 55 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT DISTINCT - - MIN( DISTINCT + 58 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT - - MIN ( DISTINCT + 58 ) FROM tab2 cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4688
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col0, col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4688
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col0, col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

query II rowsort
SELECT col2 AS col1, 66 * col1 AS col0 FROM tab2 AS cor0
----
23
3366
40
5082
58
4422

onlyif mysql # aggregate syntax: 
query II rowsort label-4690
SELECT ALL + MIN( DISTINCT - 93 ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
-93
3

skipif mysql # not compatible
query II rowsort label-4690
SELECT ALL + MIN ( DISTINCT - 93 ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
-93
3

query I rowsort
SELECT DISTINCT - ( col2 ) * - - 86 + - - ( - + col2 ) + ( + col1 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - COUNT( * ) + + 97 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4692
SELECT - COUNT ( * ) + + 97 FROM tab0 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT col1 + col0 + + ( + CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
111
195
195

skipif mysql # not compatible
query I rowsort label-4693
SELECT col1 + col0 + + ( + CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
111
195
195

query I rowsort
SELECT DISTINCT - col1 + - + 48 FROM tab1 AS cor0
----
-53
-62
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - 62 + + COUNT( * ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4695
SELECT - 62 + + COUNT ( * ) FROM tab2 AS cor0
----
-59

query I rowsort
SELECT col2 + - 42 FROM tab2
----
-19
-2
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT - COUNT( * ) + - - 91 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-4697
SELECT - COUNT ( * ) + - - 91 FROM tab0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 15 + col1 + + + col0 col0, - col1 - + col1 AS col0 FROM tab2
----
126
-154
127
-134
82
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4699
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * col1 + 62 FROM tab2 WHERE NOT col1 >= + 53
----
2663

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * col1 + 62 FROM tab2 WHERE NOT col1 >= + 53
----
2663

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT MAX( ALL col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT MAX ( ALL col2 ) AS col2 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT - SUM( col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4701
SELECT - SUM ( col0 ) AS col0 FROM tab2
----
-185

query II rowsort
SELECT ALL + col1, - 6 AS col2 FROM tab2
----
51
-6
67
-6
77
-6

query I rowsort
SELECT DISTINCT + col0 * + - 53 + + col2 FROM tab0 AS cor0
----
-4601
-5042
-748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 AS col0, 98 * + col1 * - + 38 col0 FROM tab0 AS cor0
----
1
-3724
21
-78204
81
-301644

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT - - COUNT( * ) + 88 AS col0 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT - - COUNT ( * ) + 88 AS col0 FROM tab2 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT + + 53 - COUNT( * ) AS col2 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4706
SELECT + + 53 - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
50

query I rowsort
SELECT col1 - - 10 + + + col0 + + col1 FROM tab1 AS cor0
----
105
195
89

query I rowsort
SELECT ALL - col1 + + + 92 AS col2 FROM tab1 AS cor0
----
45
78
87

query I rowsort
SELECT - - 84 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT - 87 - - COUNT( * ) FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4710
SELECT - 87 - - COUNT ( * ) FROM tab1 AS cor0
----
-84

query I rowsort
SELECT ALL - col0 + + ( ( - col2 ) ) FROM tab1 cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4712
SELECT DISTINCT + + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT ALL + col0 - col1, ( 72 ) AS col0 FROM tab0
----
-66
72
66
72
96
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4714
SELECT 94 * - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
-846

skipif mysql # not compatible
query I rowsort label-4714
SELECT 94 * - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
-846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT ALL + + 33 * col2 FROM tab2 WHERE NULL BETWEEN - - CAST( col0 AS SIGNED ) + - + col1 + - col2 AND + - col1 - col1
----

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL + + 33 * col2 FROM tab2 WHERE NULL BETWEEN - - CAST ( col0 AS INTEGER ) + - + col1 + - col2 AND + - col1 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL - ( + COUNT( ALL 93 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL - ( + COUNT ( ALL 93 ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + 89 * col1 * + + col0 AS col1 FROM tab2 WHERE NOT - col0 IS NULL
----
208794
438592
447225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT + + CAST( - - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4718
SELECT + + CAST ( - - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT - COUNT( * ) * - MIN( 87 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
783

skipif mysql # not compatible
query I rowsort label-4719
SELECT - COUNT ( * ) * - MIN ( 87 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
783

query I rowsort
SELECT 76 * 78 AS col0 FROM tab1 AS cor0
----
5928
5928
5928

query I rowsort
SELECT col2 AS col2 FROM tab2 cor0 WHERE NOT NULL IN ( col1, col2 / ( + ( - 68 ) ), col0, - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col0 FROM tab0 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

query II rowsort
SELECT - col2 AS col2, + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
46
-40
64
-58
75

query I rowsort
SELECT ALL + ( + 69 ) FROM tab0
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col2 * 60 AS col0 FROM tab0
----
2820
5940
600

query I rowsort
SELECT ( + 42 ) AS col0 FROM tab2
----
42
42
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT DISTINCT - col2 DIV + 45 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT - col2 / + 45 FROM tab1 AS cor0
----
-1
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-4730
SELECT ALL - col2 AS col1, - col0 DIV col0 + + col0 FROM tab0 cor0
----
-10
86
-47
14
-99
96

skipif mysql # not compatible
query II rowsort label-4730
SELECT ALL - col2 AS col1, - col0 / col0 + + col0 FROM tab0 cor0
----
-10
86
-47
14
-99
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 7 - + col1 * + col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4732
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col0 * - + col0 + col2 FROM tab1 AS cor0
----
2697
7284
8349

query I rowsort
SELECT - - col1 * + - 65 - + ( + + col0 ) FROM tab2 AS cor0
----
-3361
-4430
-5069

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <> - ( - col0 )
----

query I rowsort
SELECT DISTINCT + col1 * - 37 AS col2 FROM tab1 AS cor0
----
-1739
-185
-518

query I rowsort
SELECT ALL 49 + + - col0 FROM tab0 AS cor0
----
-38
-48
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4738
SELECT * FROM tab0 AS cor0 WHERE CAST( + + 35 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4738
SELECT * FROM tab0 AS cor0 WHERE CAST ( + + 35 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT - - COUNT( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4739
SELECT - - COUNT ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + 38 + - + 80 col1 FROM tab2 cor0
----
-109
-119
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4741
SELECT DISTINCT - - col2 / - ( CAST( NULL AS SIGNED ) ) + + col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4741
SELECT DISTINCT - - col2 / - ( CAST ( NULL AS INTEGER ) ) + + col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL 1 + - - col1 FROM tab2 cor0
----
52
68
78

query I rowsort
SELECT DISTINCT col2 * - ( - col1 ) + - + 15 + + col2 FROM tab1 AS cor0
----
1425
3249
339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4744
SELECT - CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT - CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 - + - col2 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT DISTINCT + CAST( - - ( + 61 ) AS SIGNED ) * + - col1 - - col0 * + ( - col2 ) + col1 + 28 AS col1 FROM tab2
----
-4090
-7152
-8342

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT + CAST ( - - ( + 61 ) AS INTEGER ) * + - col1 - - col0 * + ( - col2 ) + col1 + 28 AS col1 FROM tab2
----
-4090
-7152
-8342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 * + - col1 col1 FROM tab1
----
-1050
-3525
-375

query I rowsort
SELECT - 2 + - col2 AS col2 FROM tab2
----
-25
-42
-60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 AND col0
----

query I rowsort
SELECT + col1 + + - ( - col1 ) FROM tab2
----
102
134
154

onlyif mysql # DIV for integer division: 
query I rowsort label-4751
SELECT ALL + col0 DIV col0 * + col1 DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL + col0 / col0 * + col1 / - col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col0 FROM tab2 AS cor0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT col2 DIV + ( + - col0 ) FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4753
SELECT col2 / + ( + - col0 ) FROM tab0
----
-1
-3
0

query I rowsort
SELECT 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT + ( + - 42 ) AS col1 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT DISTINCT - 26 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4757
SELECT DISTINCT ( CAST( + ( + col1 ) AS SIGNED ) ), - 2 AS col1 FROM tab2 cor0
----
51
-2
67
-2
77
-2

skipif mysql # not compatible
query II rowsort label-4757
SELECT DISTINCT ( CAST ( + ( + col1 ) AS INTEGER ) ), - 2 AS col1 FROM tab2 cor0
----
51
-2
67
-2
77
-2

query II rowsort
SELECT ALL + col1 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT DISTINCT + MIN( ALL - 64 ) FROM tab0 AS cor0 WHERE NOT - 76 / 69 IS NULL
----
-64

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT + MIN ( ALL - 64 ) FROM tab0 AS cor0 WHERE NOT - 76 / 69 IS NULL
----
-64

query II rowsort
SELECT ALL 29, col2 AS col1 FROM tab1 AS cor0
----
29
59
29
68
29
96

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - COUNT( * ) * - 4 AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4762
SELECT - COUNT ( * ) * - 4 AS col1 FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT - ( + + COUNT( col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4763
SELECT - ( + + COUNT ( col2 ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col1 - col1 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 87
----

query I rowsort
SELECT ALL - 65 * - col2 FROM tab2
----
1495
2600
3770

onlyif mysql # DIV for integer division: 
query I rowsort label-4766
SELECT + col2 + col2 DIV - + 28 FROM tab0
----
10
46
96

skipif mysql # not compatible
query I rowsort label-4766
SELECT + col2 + col2 / - + 28 FROM tab0
----
10
46
96

query III rowsort
SELECT * FROM tab0 WHERE NOT - 14 BETWEEN col1 * + + col1 AND - - 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 * + 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + SUM( - col1 ) col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4769
SELECT + SUM ( - col1 ) col2 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4770
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( + + col1 AS SIGNED ) + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4770
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( + + col1 AS INTEGER ) + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT - COUNT( * ) FROM tab2 WHERE ( ( NULL ) > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4771
SELECT - COUNT ( * ) FROM tab2 WHERE ( ( NULL ) > NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4772
SELECT ALL - col1 * - + CAST( col2 AS SIGNED ) * + - 8 - col0 AS col0, col1 FROM tab1
----
-10803
14
-2445
5
-25659
47

skipif mysql # not compatible
query II rowsort label-4772
SELECT ALL - col1 * - + CAST ( col2 AS INTEGER ) * + - 8 - col0 AS col0, col1 FROM tab1
----
-10803
14
-2445
5
-25659
47

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT + col1 * - col0 BETWEEN NULL AND - ( + - 73 ) + - 4 * col2 * 97
----
-51
-67
-77

query II rowsort
SELECT DISTINCT - col1, - col0 * - - col0 AS col0 FROM tab1 AS cor0
----
-14
-2601
-47
-8281
-5
-7225

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 36 + + col1 > NULL
----

query II rowsort
SELECT + col1 + + col0 + 24, + col0 FROM tab2 AS cor0
----
121
46
165
64
166
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 23 * + - col0 + + + 12 + + + col0 AS col1 FROM tab2 AS cor0
----
1116
1548
1812

query I rowsort
SELECT ALL + 89 FROM tab0 AS cor0 WHERE NOT + 16 IS NOT NULL
----

query I rowsort
SELECT - col2 * + col1 * - 86 + - 88 + + + 25 * col2 FROM tab0 AS cor0
----
10901
18222
328489

query I rowsort
SELECT + col1 * 14 + + - col2 FROM tab2 AS cor0
----
1038
691
880

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT ( + - COUNT( * ) ) + - 70 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT ( + - COUNT ( * ) ) + - 70 FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT + 8 - - COUNT( * ) + + COUNT( * ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT + 8 - - COUNT ( * ) + + COUNT ( * ) FROM tab1
----
14

query I rowsort
SELECT ALL 0 + - - 23 FROM tab1
----
23
23
23

query I rowsort
SELECT ALL - col2 * col0 * + + 8 - - 21 + - 34 FROM tab0
----
-5653
-6973
-76837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT ALL + + 79 * ( + - col1 ) * CAST( + - col0 AS SIGNED ) - + - CAST( col2 AS SIGNED ) + col0 * col1 + + - 15 - - - col1 FROM tab2 WHERE NOT 29 / col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + + 79 * ( + - col1 ) * CAST ( + - col0 AS INTEGER ) - + - CAST ( col2 AS INTEGER ) + col0 * col1 + + - 15 - - - col1 FROM tab2 WHERE NOT 29 / col1 IS NOT NULL
----

query I rowsort
SELECT - 30 * + ( - col0 ) FROM tab0 AS cor0
----
2610
2910
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT ALL CAST( NULL AS SIGNED ) * - - 74 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL CAST ( NULL AS INTEGER ) * - - 74 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 12 * - col2 * - 59 + - col1 + + col0 FROM tab2 cor0
----
16279
28307
41072

query I rowsort
SELECT - + ( + - 77 ) FROM tab2 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL MIN( ALL - 18 ) col1 FROM tab2
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4791
SELECT ALL MIN ( ALL - 18 ) col1 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT MIN( ALL 13 ) AS col0 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-4792
SELECT MIN ( ALL 13 ) AS col0 FROM tab2
----
13

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 * + col0 - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4794
SELECT CAST( NULL AS SIGNED ) AS col2, - 81 AS col2 FROM tab0
----
NULL
-81
NULL
-81
NULL
-81

skipif mysql # not compatible
query II rowsort label-4794
SELECT CAST ( NULL AS INTEGER ) AS col2, - 81 AS col2 FROM tab0
----
NULL
-81
NULL
-81
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL - COUNT( * ) * - + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT 7 FROM tab0 WHERE NOT NULL IS NOT NULL
----
7

query I rowsort
SELECT - + ( + - col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ( + col0 ) + + 88 AS col1 FROM tab0 cor0
----
103
175
185

onlyif mysql # DIV for integer division: 
query I rowsort label-4799
SELECT ALL - col0 * 99 + + col1 * col1 DIV - + 14 AS col0 FROM tab2 AS cor0
----
-4739
-6759
-7745

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL - col0 * 99 + + col1 * col1 / - + 14 AS col0 FROM tab2 AS cor0
----
-4739
-6759
-7745

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT COUNT( * ) * + COUNT( + col0 ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4800
SELECT COUNT ( * ) * + COUNT ( + col0 ) AS col0 FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE 6 * - 93 NOT BETWEEN ( - 13 ) * - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 92 * + 14 FROM tab1
----
1288

query I rowsort
SELECT col2 FROM tab1 WHERE + col1 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 * - 92 col0 FROM tab1
----
-2484

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT DISTINCT - MIN( + col2 ) + 78 AS col1 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT - MIN ( + col2 ) + 78 AS col1 FROM tab0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT - SUM( 88 ) FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-4806
SELECT - SUM ( 88 ) FROM tab2
----
-264

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4807
SELECT ALL CAST( 41 AS SIGNED ) DIV 53 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4807
SELECT ALL CAST ( 41 AS INTEGER ) / 53 col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4808
SELECT ALL * FROM tab1 WHERE NOT + CAST( 61 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4808
SELECT ALL * FROM tab1 WHERE NOT + CAST ( 61 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL - MIN( ALL + 87 ) FROM tab0 WHERE NOT + 96 + - col0 <> col1 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL - MIN ( ALL + 87 ) FROM tab0 WHERE NOT + 96 + - col0 <> col1 * + 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4810
SELECT DISTINCT + COUNT( ALL - col0 ) DIV - 7 FROM tab1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT + COUNT ( ALL - col0 ) / - 7 FROM tab1 WHERE NOT NULL < NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4811
SELECT ( + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT ( + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 60 NOT BETWEEN ( col2 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT + 79 DIV 11 FROM tab2
----
7
7
7

skipif mysql # not compatible
query I rowsort label-4813
SELECT + 79 / 11 FROM tab2
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4814
SELECT 49 DIV MAX( CAST( 41 AS SIGNED ) ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4814
SELECT 49 / MAX ( CAST ( 41 AS INTEGER ) ) AS col2 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col0 / 6 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND col0
----

query I rowsort
SELECT DISTINCT + col2 * - 67 FROM tab0
----
-3149
-6633
-670

query I rowsort
SELECT DISTINCT 10 FROM tab0 WHERE ( NULL ) IS NULL
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT COUNT( * ) * - 93 FROM tab0 WHERE NULL < ( - 78 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4819
SELECT COUNT ( * ) * - 93 FROM tab0 WHERE NULL < ( - 78 * col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL MAX( 17 ) * - 52 FROM tab2 WHERE 70 * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL MAX ( 17 ) * - 52 FROM tab2 WHERE 70 * col0 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * - col1 BETWEEN NULL AND ( col2 + col0 )
----

query I rowsort
SELECT 10 + col0 * - col1 AS col1 FROM tab2
----
-2336
-4918
-5015

query I rowsort
SELECT - 70 FROM tab0 WHERE NOT ( + col1 ) IN ( + 49 * col2 )
----
-70
-70
-70

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 + + 3 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL MIN( - col2 ) + COUNT( * ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL MIN ( - col2 ) + COUNT ( * ) FROM tab1
----
-93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 ) IN ( 31 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( 66 ) FROM tab0
----
66

query I rowsort
SELECT ALL ( - 60 ) FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT - col0 * - 77 AS col0 FROM tab2 AS cor0
----
3542
4928
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT ALL - MAX( DISTINCT ( + col1 ) ) * + COUNT( * ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - MAX ( DISTINCT ( + col1 ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ( COUNT( * ) ) * + 56 AS col0 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-4831
SELECT ( COUNT ( * ) ) * + 56 AS col0 FROM tab0 AS cor0
----
168

query I rowsort
SELECT 4 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col1 FROM tab0 cor0
----
82
82
82

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 56 >= col1 + 13
----
91
47
68

query I rowsort
SELECT ALL - 6 FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN col1 * + col2 AND + col2
----
-6
-6
-6

query I rowsort
SELECT col0 + + 25 AS col0 FROM tab1 AS cor0
----
110
116
76

query I rowsort
SELECT + 38 + - col0 AS col1 FROM tab1 AS cor0
----
-13
-47
-53

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> + col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT + COUNT( * ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4840
SELECT + COUNT ( * ) FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT ALL - MAX( ALL col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - MAX ( ALL col2 ) AS col2 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT DISTINCT MAX( DISTINCT col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT MAX ( DISTINCT col1 ) AS col1 FROM tab2
----
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN ( - col2 + + col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 + 71 FROM tab1 AS cor0
----
130
139
167

query I rowsort
SELECT col0 - - 13 * + - 21 FROM tab1
----
-182
-188
-222

query I rowsort
SELECT - + col1 + + - col2 + col0 FROM tab0 AS cor0
----
-113
-3
56

query I rowsort
SELECT DISTINCT + 56 FROM tab1 AS cor0 WHERE NOT ( col2 + - col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + - 75 FROM tab2 AS cor0
----
-11
-29
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 78 * + - col0 IS NOT NULL
----

query I rowsort
SELECT + col2 + + col2 - col2 * 63 AS col2 FROM tab0 AS cor0
----
-2867
-6039
-610

query I rowsort
SELECT ALL + col0 + - - col2 + - col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + col0 + + 45 * + col1 * 21 FROM tab0 AS cor0
----
1042
19932
76560

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT - - COUNT( * ) + - ( + - ( + 28 ) ) FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4853
SELECT - - COUNT ( * ) + - ( + - ( + 28 ) ) FROM tab2 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4854
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) >= col2
----

skipif mysql # not compatible
query III rowsort label-4854
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) >= col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 66 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT + 33 DIV - 58 + - 32 FROM tab1 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-4856
SELECT + 33 / - 58 + - 32 FROM tab1 AS cor0
----
-32
-32
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT DISTINCT + col0 + + 28 DIV + 20 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT + col0 + + 28 / + 20 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT - col0 * - CAST( col0 * col2 AS SIGNED ) AS col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4859
SELECT - col0 * - CAST ( col0 * col2 AS INTEGER ) AS col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT 34 FROM tab2 WHERE NOT ( + - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) NOT IN ( col1 + ( col1 + + col0 ) ) AND NOT ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 61 - + col0 IS NOT NULL AND NOT NULL IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 39 * + col1 AS col2 FROM tab0 WHERE NOT - col1 IS NULL
----
3159
39
819

query I rowsort
SELECT + col1 * - 71 AS col0 FROM tab0
----
-1491
-5751
-71

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT 21 IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 31 + ( + + 12 ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT MIN( - col1 ) * - AVG ( col0 ) - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( col1 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT MIN ( - col1 ) * - AVG ( col0 ) - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( col1 ) = NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 64 ) NOT IN ( col1 )
----

query I rowsort
SELECT + col0 + col1 + - col0 * - col1 - - col2 * + col0 FROM tab1
----
10603
5530
5675

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT COUNT( - 37 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4871
SELECT COUNT ( - 37 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + + col1 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4873
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4873
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - - col1 + col1 + - col2 * 97 - - + col0 FROM tab2 AS cor0
----
-2083
-3662
-5417

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT ALL + COUNT( * ) * ( + SUM( - - col1 ) ) + + + 28 FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL + COUNT ( * ) * ( + SUM ( - - col1 ) ) + + + 28 FROM tab1 AS cor0
----
226

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 15 * - + 74 + + col1 * - 75 + col1 BETWEEN NULL AND - 61
----

query I rowsort
SELECT ALL + 26 + + col2 AS col1 FROM tab1 AS cor0
----
122
85
94

query I rowsort
SELECT ALL ( - 9 ) FROM tab0 cor0
----
-9
-9
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT - 89 * - col1 FROM tab2 WHERE ( NOT - col0 >= col2 )
----
4539
5963
6853

query I rowsort
SELECT ( + col1 ) AS col0 FROM tab1 WHERE ( - col1 ) IS NOT NULL
----
14
47
5

query II rowsort
SELECT DISTINCT col2 AS col1, - 25 * + col2 AS col1 FROM tab0
----
10
-250
47
-1175
99
-2475

query I rowsort
SELECT DISTINCT col2 + - 30 * col0 FROM tab2
----
-1357
-1880
-2192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-4884
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT col1 IN ( + col2 * + - col0 )
----
15
87
97

query II rowsort
SELECT DISTINCT - 89 AS col2, + col1 FROM tab2
----
-89
51
-89
67
-89
77

query I rowsort
SELECT + 89 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT - COUNT( DISTINCT 77 ) col1 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4888
SELECT - COUNT ( DISTINCT 77 ) col1 FROM tab2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT DISTINCT - col1 * - CAST( + - col1 AS SIGNED ) FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT - col1 * - CAST ( + - col1 AS INTEGER ) FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT col1 - col0 * 53 FROM tab1 AS cor0
----
-2689
-4500
-4776

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2, - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 8 AND ( + 80 * - + 79 * - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4893
SELECT 52 - + + 1 + - COUNT( * ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT 52 - + + 1 + - COUNT ( * ) * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - col1 + - col1 * + col0 + - ( col2 ) IS NOT NULL )
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT + + 21 * - COUNT( * ) FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT + + 21 * - COUNT ( * ) FROM tab0 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, 2 col1 FROM tab2
----
23
2
40
2
58
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col2 FROM tab2
----
99
99
99

query II rowsort
SELECT + 16 AS col0, 29 AS col1 FROM tab1
----
16
29
16
29
16
29

query II rowsort
SELECT ALL - col0 AS col0, - ( + - 1 ) * + col0 + + + col0 - - ( + col2 ) FROM tab0
----
-15
77
-87
184
-97
293

query I rowsort
SELECT - ( 68 ) AS col1 FROM tab2
----
-68
-68
-68

query II rowsort
SELECT col0 AS col1, - 20 * col2 + - 36 FROM tab0
----
15
-976
87
-236
97
-2016

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4903
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + + ( - - ( + col2 ) ) * - col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4903
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + + ( - - ( + col2 ) ) * - col0 AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL 50 * - ( col0 ) AS col2, + col2 AS col1, - col2 * + + col0 FROM tab1
----
9 values hashing to 2c6135e411a2aca0d26147e45789d0f2

onlyif mysql # aggregate syntax: 
query II rowsort label-4905
SELECT ALL 93 AS col2, COUNT( + - col1 ) AS col2 FROM tab2 AS cor0
----
93
3

skipif mysql # not compatible
query II rowsort label-4905
SELECT ALL 93 AS col2, COUNT ( + - col1 ) AS col2 FROM tab2 AS cor0
----
93
3

query II rowsort
SELECT DISTINCT - 58 AS col1, col2 FROM tab1 AS cor0
----
-58
59
-58
68
-58
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4908
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= ( NULL )
----
0

query I rowsort
SELECT DISTINCT 22 * + col2 AS col0 FROM tab1
----
1298
1496
2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4910
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT ALL col1 + - ( - 60 ) AS col2 FROM tab1 AS cor0
----
107
65
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 + - + col2 col2 FROM tab0 AS cor0
----
-41
11
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 col2 FROM tab2 AS cor0
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4915
SELECT + col0 + - col2 DIV + 86 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4915
SELECT + col0 + - col2 / + 86 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT IN ( - 67, col1 )
----

query I rowsort
SELECT 69 * - - 61 + + + col2 AS col0 FROM tab1 AS cor0
----
4268
4277
4305

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4919
SELECT DISTINCT + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + 18 * - col2 AS col2 FROM tab1
----
-1133
-1677
-977

query I rowsort
SELECT DISTINCT + col0 + 37 AS col2 FROM tab0
----
124
134
52

query I rowsort
SELECT + - col0 * + col2 AS col2 FROM tab0 WHERE - col2 * + + col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4923
SELECT DISTINCT CAST( NULL AS SIGNED ) / - COUNT( * ) * - 70 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - COUNT ( * ) * - 70 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col1 FROM tab2 WHERE + 62 + - - col1 * - col2 + - + col2 - col0 > col1
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 BETWEEN - ( - + ( - col1 ) ) AND - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 = 81 * - + ( - col0 ) * - - col2 + 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4927
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT + col0 - - 56 + + ( + col2 ) FROM tab2 AS cor0
----
125
160
189

query I rowsort
SELECT ALL + - 31 + + + col1 FROM tab1 AS cor0
----
-17
-26
16

query I rowsort
SELECT ALL + 62 * + - col2 - 70 AS col0 FROM tab1
----
-3728
-4286
-6022

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT COUNT( + col0 ) * + - 36 - + 98 AS col2 FROM tab1
----
-206

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT COUNT ( + col0 ) * + - 36 - + 98 AS col2 FROM tab1
----
-206

query I rowsort
SELECT DISTINCT 42 - + - col0 - col2 + - col2 FROM tab0
----
-37
-59
109

onlyif mysql # DIV for integer division: 
query I rowsort label-4933
SELECT col2 + - 67 DIV - + col0 FROM tab2
----
24
41
58

skipif mysql # not compatible
query I rowsort label-4933
SELECT col2 + - 67 / - + col0 FROM tab2
----
24
41
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT ALL - col0 DIV + 50 + + col2 + 92 * - + col2 FROM tab1 AS cor0
----
-5370
-6189
-8737

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL - col0 / + 50 + + col2 + 92 * - + col2 FROM tab1 AS cor0
----
-5370
-6189
-8737

query II rowsort
SELECT + 67 AS col0, - col2 FROM tab2 AS cor0
----
67
-23
67
-40
67
-58

query II rowsort
SELECT DISTINCT col1, col2 + 60 FROM tab1 AS cor0
----
14
156
47
128
5
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL - + ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL - + ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 23 col1, 93 AS col0 FROM tab1 AS cor0
----
23
93
23
93
23
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT DISTINCT + - COUNT( + col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT + - COUNT ( + col0 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - col1 * + 55 - 59 + + 34 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT ALL + CAST( + + col1 AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL + CAST ( + + col1 AS INTEGER ) FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT + col0 DIV - + col2 AS col2 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4943
SELECT + col0 / - + col2 AS col2 FROM tab0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 col1 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT ALL + + col1 AS col1 FROM tab0 AS cor0 WHERE - CAST( + - col1 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL + + col1 AS col1 FROM tab0 AS cor0 WHERE - CAST ( + - col1 AS INTEGER ) <> NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 FROM tab0 cor0 WHERE NOT 62 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4948
SELECT ALL + col0 * - + 83 + + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL + col0 * - + 83 + + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT MAX( DISTINCT - - col0 ) col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4949
SELECT MAX ( DISTINCT - - col0 ) col0 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 61 * + col0 + col0 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4951
SELECT DISTINCT + COUNT( * ) DIV + - MAX( - col2 ) AS col0, 8 + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0
5

skipif mysql # not compatible
query II rowsort label-4951
SELECT DISTINCT + COUNT ( * ) / + - MAX ( - col2 ) AS col0, 8 + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0
5

query I rowsort
SELECT - ( - col0 ) - - - col2 FROM tab2
----
17
23
24

query II rowsort
SELECT ALL col2 + + col1 + + 73 * + col0 + col0, col0 AS col1 FROM tab1
----
3884
51
6354
85
6849
91

query I rowsort
SELECT ALL - ( + col2 ) * col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4955
SELECT col2 FROM tab0 WHERE - ( + ( - 37 ) ) NOT IN ( ( + - col2 ) - + + CAST( 38 AS SIGNED ) - - 39 )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4955
SELECT col2 FROM tab0 WHERE - ( + ( - 37 ) ) NOT IN ( ( + - col2 ) - + + CAST ( 38 AS INTEGER ) - - 39 )
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + 86 IS NOT NULL
----

query I rowsort
SELECT ALL - 43 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-43
-43
-43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4959
SELECT DISTINCT + 44 + - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT + 44 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 24 * - col1 AS col1 FROM tab1
----
-1128
-120
-336

onlyif mysql # aggregate syntax: 
query II rowsort label-4961
SELECT ALL - COUNT( * ) AS col1, 81 FROM tab0 AS cor0
----
-3
81

skipif mysql # not compatible
query II rowsort label-4961
SELECT ALL - COUNT ( * ) AS col1, 81 FROM tab0 AS cor0
----
-3
81

query I rowsort
SELECT + + ( + col1 ) FROM tab0 cor0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 43 * + 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 + + col0 AND + col0 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4965
SELECT DISTINCT col0 col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4965
SELECT DISTINCT col0 col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT - CAST( - + col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4966
SELECT - CAST ( - + col2 AS INTEGER ) FROM tab2
----
23
40
58

query II rowsort
SELECT 7 AS col1, col2 AS col0 FROM tab0
----
7
10
7
47
7
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT MIN( - 19 ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-4968
SELECT MIN ( - 19 ) FROM tab2
----
-19

query I rowsort
SELECT ( + - col0 ) * - - 79 * + + 70 + - - 16 AS col0 FROM tab0
----
-481094
-536394
-82934

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 WHERE + col1 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 47, - 21 col1 FROM tab1
----
47
-21
47
-21
47
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT SUM( ALL col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT SUM ( ALL col0 ) AS col1 FROM tab2
----
185

query II rowsort
SELECT DISTINCT col0, col2 AS col0 FROM tab0 cor0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 AS col1, + 53 * - - ( col0 ) col1 FROM tab1 AS cor0
----
51
2703
85
4505
91
4823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 + - ( - col2 ) col1 FROM tab1 AS cor0
----
-5
32
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col1 FROM tab1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT DISTINCT - - COUNT( * ) + - ( + COUNT( * ) ) FROM tab0 WHERE NOT - 23 = 63
----
0

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT - - COUNT ( * ) + - ( + COUNT ( * ) ) FROM tab0 WHERE NOT - 23 = 63
----
0

query I rowsort
SELECT ALL - - 69 AS col2 FROM tab1 AS cor0
----
69
69
69

onlyif mysql # DIV for integer division: 
query II rowsort label-4979
SELECT - col2 DIV col0 + + col0 + col2 + + + col1, col2 FROM tab2 AS cor0
----
120
23
181
40
200
58

skipif mysql # not compatible
query II rowsort label-4979
SELECT - col2 / col0 + + col0 + col2 + + + col1, col2 FROM tab2 AS cor0
----
120
23
181
40
200
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT + + ( 77 ) + - COUNT( * ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT + + ( 77 ) + - COUNT ( * ) FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT + 63 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4981
SELECT + 63 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT col1 + 64 FROM tab0
----
145
65
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - 58 ) * + col0 * - col2 + - 54 col1 FROM tab1 WHERE + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT - 63 NOT IN ( col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT + 39 + + + 69 - COUNT( * ) FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT + 39 + + + 69 - COUNT ( * ) FROM tab2
----
105

query II rowsort
SELECT - col0, col1 - - 79 AS col1 FROM tab1
----
-51
93
-85
84
-91
126

query I rowsort
SELECT ALL + col2 * + - col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 25 + + ( - + 28 ) IS NOT NULL
----

query I rowsort
SELECT - col2 * + - 76 FROM tab2 AS cor0
----
1748
3040
4408

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 4 + + col1 IS NOT NULL
----

query I rowsort
SELECT + col2 * - 97 FROM tab0 AS cor0
----
-4559
-9603
-970

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + col2 + + col0 = ( NULL )
----

query II rowsort
SELECT + col2 * - col2 * + - ( col0 ) AS col2, 35 FROM tab0 AS cor0
----
33135
35
8700
35
950697
35

query I rowsort
SELECT ALL + - 34 * - 43 + + ( + + col0 ) FROM tab1 AS cor0
----
1513
1547
1553

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - ( - - col1 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * 48 * + - col0 FROM tab0 AS cor0
----
-4656
-58320
-87696

onlyif mysql # DIV for integer division: 
query I rowsort label-4997
SELECT ALL - ( ( - col1 ) ) DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL - ( ( - col1 ) ) / + col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - col1 BETWEEN col1 / + 35 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT + - COUNT( * ) AS col2 FROM tab0 WHERE NOT + ( + col1 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4999
SELECT + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + ( + col1 ) IS NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5000
SELECT + MIN( ALL - 84 ) DIV + COUNT( * ) AS col2 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-5000
SELECT + MIN ( ALL - 84 ) / + COUNT ( * ) AS col2 FROM tab0
----
-28

query II rowsort
SELECT - 92, 68 AS col2 FROM tab2
----
-92
68
-92
68
-92
68

query I rowsort
SELECT ALL - ( - col1 ) * - col2 + + + col0 FROM tab1
----
-1293
-210
-3105

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 77 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - + col1 col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5005
SELECT ALL * FROM tab2 WHERE NOT + - CAST( NULL AS DECIMAL ) IN ( col2 - + CAST( NULL AS SIGNED ) + - + col1 + + + 87 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-5005
SELECT ALL * FROM tab2 WHERE NOT + - CAST ( NULL AS REAL ) IN ( col2 - + CAST ( NULL AS INTEGER ) + - + col1 + + + 87 * - col2 )
----

query I rowsort
SELECT - col2 + - - col0 AS col1 FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT + + 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
69

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 19 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5009
SELECT - 92 DIV + 37 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5009
SELECT - 92 / + 37 FROM tab0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT DISTINCT + col1 + + col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT + col1 + + col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 3 * + 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT + COUNT( * ) * - + 55 FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-5012
SELECT + COUNT ( * ) * - + 55 FROM tab0 AS cor0
----
-165

query I rowsort
SELECT - - 43 - + col2 AS col2 FROM tab2 AS cor0
----
-15
20
3

query I rowsort
SELECT DISTINCT - col1 + + + col0 + - + col2 FROM tab2 AS cor0
----
-28
-50
-53

query I rowsort
SELECT DISTINCT + - ( + col0 ) - - 82 AS col0 FROM tab1 cor0
----
-3
-9
31

query I rowsort
SELECT DISTINCT 12 + ( + 58 ) AS col0 FROM tab1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT + 31 + - + ( + COUNT( * ) ) AS col1 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-5017
SELECT + 31 + - + ( + COUNT ( * ) ) AS col1 FROM tab0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5018
SELECT - col1 DIV + + col2 + + + col1 FROM tab0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-5018
SELECT - col1 / + + col2 + + + col1 FROM tab0
----
1
19
80

query I rowsort
SELECT DISTINCT ( - - col2 ) - + col0 * 50 FROM tab2
----
-2277
-3160
-3692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5020
SELECT ALL + ( - CAST( - + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL + ( - CAST ( - + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * - col0 + - 26 col2 FROM tab2 AS cor0
----
-4212
-5850
-6851

query I rowsort
SELECT + 62 * - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5023
SELECT ALL COUNT( * ) / CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL COUNT ( * ) / CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT 85 * + - 84 FROM tab1
----
-7140

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT DISTINCT + COUNT( ALL col1 ) * - ( 56 ) AS col2 FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT + COUNT ( ALL col1 ) * - ( 56 ) AS col2 FROM tab2
----
-168

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 93 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( + col2 * - - 0 * - + col2 / + col0 * + - 50 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5029
SELECT CAST( 1 AS SIGNED ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5029
SELECT CAST ( 1 AS INTEGER ) FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col2 FROM tab0 cor0
----
210
3807
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE NOT + col2 - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + + 63 * + col2 + - - col0 FROM tab2 AS cor0
----
1495
2584
3729

query II rowsort
SELECT ALL + + col0 AS col0, 85 + + ( 49 ) AS col2 FROM tab1 AS cor0
----
51
134
85
134
91
134

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT COUNT( ALL 81 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( ALL 81 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 80 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * col1 * + + col0 + - col2 * + col0 FROM tab0 cor0
----
-9506
37497
97710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5039
SELECT ALL - 45 DIV - COUNT( * ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL - 45 / - COUNT ( * ) FROM tab1
----
15

query I rowsort
SELECT ALL + + 92 + + col2 * - col0 FROM tab2 WHERE NOT col1 * - col1 IS NULL
----
-2468
-4258
-966

query I rowsort
SELECT DISTINCT - 38 * + col2 AS col1 FROM tab0
----
-1786
-3762
-380

query I rowsort
SELECT ALL - 88 + - - col0 AS col2 FROM tab2
----
-13
-24
-42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 <= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT + COUNT( - 40 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5044
SELECT + COUNT ( - 40 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 10 FROM tab1 AS cor0 WHERE col0 = + col2 + + + 80 + ( + ( col1 ) ) * - - 6 / - col2
----

query I rowsort
SELECT - col0 + + 17 + + - ( 38 ) + + - 25 AS col2 FROM tab1 AS cor0
----
-131
-137
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5048
SELECT DISTINCT - + col0 DIV + 70 AS col1 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT - + col0 / + 70 AS col1 FROM tab0 cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 34 + 53 col1 FROM tab2 cor0
----
87
87
87

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT + CAST( NULL AS SIGNED ) + 52 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT + CAST ( NULL AS INTEGER ) + 52 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5052
SELECT - CAST( NULL AS DECIMAL ) + + 71 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT - CAST ( NULL AS REAL ) + + 71 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5054
SELECT ALL 26 DIV + - col2 + col1 - col0 * + col1 * - col2 FROM tab1 AS cor0
----
25080
290883
68558

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL 26 / + - col2 + col1 - col0 * + col1 * - col2 FROM tab1 AS cor0
----
25080
290883
68558

query I rowsort
SELECT ALL col0 * + 10 + + - col2 FROM tab0 AS cor0
----
103
860
871

query I rowsort
SELECT ALL - ( + 2 ) - + + col2 * - - col1 FROM tab2
----
-1175
-3082
-3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5057
SELECT + col2 + + - CAST( NULL AS SIGNED ) + + col0 + - col0 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT + col2 + + - CAST ( NULL AS INTEGER ) + + col0 + - col0 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col1 < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 97 col1, - col0 * - - col0 AS col2 FROM tab0
----
97
-225
97
-7569
97
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 col1 FROM tab0
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5061
SELECT - CAST( NULL AS SIGNED ) AS col2, 1 FROM tab0 AS cor0
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
query II rowsort label-5061
SELECT - CAST ( NULL AS INTEGER ) AS col2, 1 FROM tab0 AS cor0
----
NULL
1
NULL
1
NULL
1

query II rowsort
SELECT ALL col2 AS col2, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 85 col0 FROM tab2 AS cor0 WHERE NOT 4 <> + 45
----

query I rowsort
SELECT DISTINCT + - 16 * - + 28 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL 55 * + COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL 55 * + COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT - - col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5066
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT - - col1 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT ALL 74 * + 79 + col1 + - CAST( NULL AS SIGNED ) - col2 / - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL 74 * + 79 + col1 + - CAST ( NULL AS INTEGER ) - col2 / - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5068
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5068
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5069
SELECT - COUNT( DISTINCT col1 ), + COUNT( * ) DIV - SUM( DISTINCT 31 ) AS col1 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-5069
SELECT - COUNT ( DISTINCT col1 ), + COUNT ( * ) / - SUM ( DISTINCT 31 ) AS col1 FROM tab1 AS cor0
----
-3
0

query I rowsort
SELECT ALL - 1 * + 59 FROM tab1 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5071
SELECT ALL - - MAX( ALL - col0 ) AS col1, - 4 FROM tab0 cor0
----
-15
-4

skipif mysql # not compatible
query II rowsort label-5071
SELECT ALL - - MAX ( ALL - col0 ) AS col1, - 4 FROM tab0 cor0
----
-15
-4

query I rowsort
SELECT ALL + 62 + col0 AS col2 FROM tab0 AS cor0
----
149
159
77

query II rowsort
SELECT DISTINCT col0 * - 19 * col1, - 90 AS col1 FROM tab2
----
-44574
-90
-93632
-90
-95475
-90

query I rowsort
SELECT + col2 * - + 20 FROM tab1
----
-1180
-1360
-1920

onlyif mysql # aggregate syntax: 
query II rowsort label-5075
SELECT DISTINCT 25, + MIN( DISTINCT - + col2 ) AS col0 FROM tab0
----
25
-99

skipif mysql # not compatible
query II rowsort label-5075
SELECT DISTINCT 25, + MIN ( DISTINCT - + col2 ) AS col0 FROM tab0
----
25
-99

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab0 WHERE NOT - 18 IS NOT NULL
----

query I rowsort
SELECT - col0 * + - 65 FROM tab2
----
2990
4160
4875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5078
SELECT 49 DIV + + ( + MAX( DISTINCT + 1 ) ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-5078
SELECT 49 / + + ( + MAX ( DISTINCT + 1 ) ) FROM tab0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT DISTINCT - 28 * - COUNT( * ) AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT - 28 * - COUNT ( * ) AS col0 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT + 46 * COUNT( * ) FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-5080
SELECT + 46 * COUNT ( * ) FROM tab1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT ALL - 84 * + + COUNT( * ) FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL - 84 * + + COUNT ( * ) FROM tab2
----
-252

query I rowsort
SELECT DISTINCT col1 * + + 29 AS col0 FROM tab2
----
1479
1943
2233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5083
SELECT - + CAST( NULL AS SIGNED ) + + ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( + + col0, + CAST( - 45 AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5083
SELECT - + CAST ( NULL AS INTEGER ) + + ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( + + col0, + CAST ( - 45 AS REAL ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5084
SELECT * FROM tab2 AS cor0 WHERE ( + col2 * - + ( + - 20 ) ) NOT IN ( col2, col1 * + col1 * + col1 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5084
SELECT * FROM tab2 AS cor0 WHERE ( + col2 * - + ( + - 20 ) ) NOT IN ( col2, col1 * + col1 * + col1 * CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - 86 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT ALL + col2 * CAST( NULL AS SIGNED ) * ( - 81 ) * + 96 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) * ( - 81 ) * + 96 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5087
SELECT DISTINCT + 5 * COUNT( * ) AS col1, + COUNT( * ) * + 63 FROM tab2
----
15
189

skipif mysql # not compatible
query II rowsort label-5087
SELECT DISTINCT + 5 * COUNT ( * ) AS col1, + COUNT ( * ) * + 63 FROM tab2
----
15
189

onlyif mysql # DIV for integer division: 
query II rowsort label-5088
SELECT DISTINCT + col2 DIV + col1, - col0 AS col1 FROM tab2 AS cor0
----
0
-46
0
-64
0
-75

skipif mysql # not compatible
query II rowsort label-5088
SELECT DISTINCT + col2 / + col1, - col0 AS col1 FROM tab2 AS cor0
----
0
-46
0
-64
0
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT COUNT( * ) - 61 AS col0 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5089
SELECT COUNT ( * ) - 61 AS col0 FROM tab1 AS cor0
----
-58

query II rowsort
SELECT ALL 92 + col2, - col0 * + col0 * - col1 AS col1 FROM tab2 AS cor0
----
115
107916
132
315392
150
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT + 52 * + COUNT( * ) - + + 48 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-5091
SELECT + 52 * + COUNT ( * ) - + + 48 FROM tab2 AS cor0
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5092
SELECT ALL CAST( - MIN( ALL 50 ) AS SIGNED ), - SUM( DISTINCT - col2 ) col2 FROM tab2
----
-50
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5092
SELECT ALL CAST ( - MIN ( ALL 50 ) AS INTEGER ), - SUM ( DISTINCT - col2 ) col2 FROM tab2
----
-50
121

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 79 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + + 22, + col1 FROM tab2 AS cor0
----
22
51
22
67
22
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5095
SELECT DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + col2 ) * + col2 + - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT + + col1 DIV + + col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5097
SELECT + + col1 / + + col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT DISTINCT + - MIN( - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT + - MIN ( - col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5099
SELECT CAST( + + MAX( + 47 ) AS SIGNED ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-5099
SELECT CAST ( + + MAX ( + 47 ) AS INTEGER ) FROM tab2
----
47

query I rowsort
SELECT ALL + ( - + col1 ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT ALL MIN( + + 75 ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL MIN ( + + 75 ) FROM tab0
----
75

query I rowsort
SELECT - col2 + + - 88 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * col1 + 35 * + col1 * - 56 FROM tab1 AS cor0 WHERE NOT ( + col1 IS NULL )
----
-26096
-88924
-9505

query I rowsort
SELECT ALL - + 2 * + col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT + - ( - + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5105
SELECT + - ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 88 + - 50 AS col2 FROM tab1 AS cor0
----
-138
-138
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT ALL SUM( DISTINCT + + 72 ) + - 33 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL SUM ( DISTINCT + + 72 ) + - 33 FROM tab1 AS cor0
----
39

query II rowsort
SELECT DISTINCT + col2 AS col0, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query I rowsort
SELECT DISTINCT - col2 + 29 AS col0 FROM tab0 AS cor0
----
-18
-70
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT ( - CAST( NULL AS SIGNED ) ) + - - col2 * + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT ( - CAST ( NULL AS INTEGER ) ) + - - col2 * + - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 58 ) + 10 AS col0 FROM tab1
----
-48
-48
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5112
SELECT ALL col1 DIV - col0 + + 4 DIV - col2 col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5112
SELECT ALL col1 / - col0 + + 4 / - col2 col2 FROM tab2
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 24 + - col2 * - col1 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT + SUM( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5114
SELECT + SUM ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + + col0 * - 77 - 75 FROM tab2 AS cor0
----
-3617
-5003
-5850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + - col2 * - + col1 FROM tab1 AS cor0
----
1330
290
3149

query I rowsort
SELECT + + 18 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5119
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - 83 * - + MAX( - + col2 ) + + 43 AS col1 FROM tab1 AS cor0
----
-4854

skipif mysql # not compatible
query I rowsort label-5120
SELECT - 83 * - + MAX ( - + col2 ) + + 43 AS col1 FROM tab1 AS cor0
----
-4854

query I rowsort
SELECT DISTINCT + col0 * + 83 * + col0 * - - col0 FROM tab0 AS cor0
----
280125
54655749
75751859

query I rowsort
SELECT col0 * + ( - col0 ) * + + col1 AS col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab0 cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT DISTINCT + + COUNT( * ) * ( - 5 ) AS col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT + + COUNT ( * ) * ( - 5 ) AS col1 FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT - COUNT( * ) * - SUM( ALL + 79 ) FROM tab0 cor0
----
711

skipif mysql # not compatible
query I rowsort label-5125
SELECT - COUNT ( * ) * - SUM ( ALL + 79 ) FROM tab0 cor0
----
711

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND + - ( - 85 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT DISTINCT - SUM( ALL ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT - SUM ( ALL ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col2 * + col1, - col1 AS col2 FROM tab2
----
1173
-51
3080
-77
3886
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT - CAST( - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5129
SELECT - CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - - col0 ) AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL - MIN( col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - MIN ( col0 ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT DISTINCT + MIN( - - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT + MIN ( - - col0 ) AS col1 FROM tab0 AS cor0
----
15

query II rowsort
SELECT + 82 * 35 + - - 91 * + col0 + + - col0 AS col2, + col0 FROM tab1
----
10520
85
11060
91
7460
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT DISTINCT + SUM( + - col1 ) + + 49 * + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-342

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT + SUM ( + - col1 ) + + 49 * + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT MAX( DISTINCT + 50 ) AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT MAX ( DISTINCT + 50 ) AS col1 FROM tab1 AS cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5136
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 44 * + 32 <= + 69 + + CAST( NULL AS SIGNED ) + + col1 * col1
----

skipif mysql # not compatible
query III rowsort label-5136
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 44 * + 32 <= + 69 + + CAST ( NULL AS INTEGER ) + + col1 * col1
----

query II rowsort
SELECT ALL + col1, + 96 FROM tab1 AS cor0
----
14
96
47
96
5
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5138
SELECT + - col0 col1, + col2 / + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5138
SELECT + - col0 col1, + col2 / + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT DISTINCT - 32 + - - 92 * - col1 + + col1 FROM tab2 AS cor0
----
-4673
-6129
-7039

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT + col2 IS NULL )
----

query I rowsort
SELECT - 88 * + - col2 FROM tab2
----
2024
3520
5104

query II rowsort
SELECT ALL + 98 AS col0, col0 AS col2 FROM tab2
----
98
46
98
64
98
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT col1 DIV - - 82 + col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5143
SELECT col1 / - - 82 + col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5144
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + CAST( - ( + 67 ) AS SIGNED ) AND + - col0 + col1 / + col2
----

skipif mysql # not compatible
query III rowsort label-5144
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + CAST ( - ( + 67 ) AS INTEGER ) AND + - col0 + col1 / + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col1, col0 FROM tab2 cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT DISTINCT - 5 + + col0 + + col1 FROM tab1
----
133
60
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND - - 18
----
0

skipif mysql # not compatible
query I rowsort label-5147
SELECT + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND - - 18
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col1 FROM tab1 AS cor0
----
-85
-85
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5149
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + 46 BETWEEN - CAST( NULL AS SIGNED ) AND 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5149
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + 46 BETWEEN - CAST ( NULL AS INTEGER ) AND 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NOT ( NOT NULL >= col1 )
----

skipif mysql # not compatible
query I rowsort label-5150
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NOT ( NOT NULL >= col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT - 19 * - - COUNT( * ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT - 19 * - - COUNT ( * ) FROM tab1 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT + - MIN( - - ( ( col0 ) ) ) * - + 90 AS col2 FROM tab0 AS cor0
----
1350

skipif mysql # not compatible
query I rowsort label-5152
SELECT + - MIN ( - - ( ( col0 ) ) ) * - + 90 AS col2 FROM tab0 AS cor0
----
1350

query I rowsort
SELECT ALL col1 * 32 + + col2 AS col2 FROM tab1 AS cor0
----
1572
219
544

onlyif mysql # DIV for integer division: 
query I rowsort label-5154
SELECT DISTINCT 26 DIV + col2 col1 FROM tab0
----
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5154
SELECT DISTINCT 26 / + col2 col1 FROM tab0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT - MAX( DISTINCT + col2 ) * - 54 + - 20 FROM tab1
----
5164

skipif mysql # not compatible
query I rowsort label-5155
SELECT - MAX ( DISTINCT + col2 ) * - 54 + - 20 FROM tab1
----
5164

query III rowsort
SELECT * FROM tab2 WHERE NOT - 74 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT DISTINCT col2 / - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT col2 / - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT ALL col1 AS col1, 20 + + + col1 FROM tab2
----
51
71
67
87
77
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col1 FROM tab0
----
10
10
10

query I rowsort
SELECT DISTINCT + ( + - 21 ) FROM tab1
----
-21

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT - MIN( - - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5162
SELECT - MIN ( - - col2 ) FROM tab1
----
-59

query I rowsort
SELECT DISTINCT 61 FROM tab1 AS cor0 WHERE 78 * - col2 * + + col0 NOT IN ( - - col2 )
----
61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 <= - col0 + + 32
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT DISTINCT ( 65 ) * + + CAST( - MIN( ALL - + col1 ) AS SIGNED ) + + + 95 FROM tab2 AS cor0
----
5100

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT ( 65 ) * + + CAST ( - MIN ( ALL - + col1 ) AS INTEGER ) + + + 95 FROM tab2 AS cor0
----
5100

query I rowsort
SELECT DISTINCT - + 13 * + col1 FROM tab1 AS cor0
----
-182
-611
-65

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col2 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL - - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + - col1 + + - col2 - col1 FROM tab0 AS cor0
----
-101
-209
-52

query II rowsort
SELECT ALL - + ( 3 ) AS col0, - col1 FROM tab2 cor0
----
-3
-51
-3
-67
-3
-77

query I rowsort
SELECT - - 75 + + col1 - - 26 FROM tab0 cor0
----
102
122
182

query I rowsort
SELECT DISTINCT + 25 + + col2 FROM tab0 AS cor0
----
124
35
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT - COUNT( * ) + - 47 col2 FROM tab0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5173
SELECT - COUNT ( * ) + - 47 col2 FROM tab0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL 84 + - COUNT( * ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL 84 + - COUNT ( * ) FROM tab2
----
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > col2 * 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, + 57 col2 FROM tab0
----
15
57
87
57
97
57

query I rowsort
SELECT DISTINCT 15 - + col0 AS col1 FROM tab1
----
-36
-70
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT - CAST( + 66 AS SIGNED ) FROM tab1
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-5179
SELECT - CAST ( + 66 AS INTEGER ) FROM tab1
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + + 40 FROM tab0 cor0 WHERE NOT col2 + - ( col0 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 71 col0 FROM tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND + + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT DISTINCT COUNT( * ) + + 4 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT COUNT ( * ) + + 4 FROM tab1 AS cor0
----
7

query I rowsort
SELECT - + 96 - col1 AS col1 FROM tab2 AS cor0
----
-147
-163
-173

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE ( NOT NULL NOT BETWEEN - - 12 AND - 11 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 86 <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT - MAX( + + 66 ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-5186
SELECT - MAX ( + + 66 ) FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT ALL + - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL + - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT + col2, + col0 + 59 FROM tab0
----
10
146
47
74
99
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5189
SELECT 4 * + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5189
SELECT 4 * + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query II rowsort
SELECT + col0, - 1 * - + col2 * + col0 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 72 * - - 16 * + col0 AS col1 FROM tab2 AS cor0
----
-52992
-73728
-86400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT + CAST( NULL AS SIGNED ) * + - col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5194
SELECT + CAST ( NULL AS INTEGER ) * + - col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT ALL - col1 * - - 90 * - + col2 + + + CAST( - 35 AS SIGNED ) - - 34 * + - col0 + - + 20 AS col2 FROM tab2 cor0
----
103951
274969
347135

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL - col1 * - - 90 * - + col2 + + + CAST ( - 35 AS INTEGER ) - - 34 * + - col0 + - + 20 AS col2 FROM tab2 cor0
----
103951
274969
347135

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT - 42 + - + 70 - - col2 * col1 * col2 * + 79 * - - col0 IN ( + col1, - col1 + - col2, - + col2 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT DISTINCT - + COUNT( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5197
SELECT DISTINCT - + COUNT ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5198
SELECT DISTINCT - - col2 DIV col0 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT - - col2 / col0 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + 55 * 46 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + 55 * 46 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 91 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 col2 FROM tab0 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) * - + AVG ( ALL + + col1 ) FROM tab1 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) * - + AVG ( ALL + + col1 ) FROM tab1 AS cor0 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT ALL 26 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
49
66
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5204
SELECT DISTINCT + CAST( NULL AS SIGNED ), + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-5204
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL COUNT( * ) * - COUNT( * ) - + ( - COUNT( * ) ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL COUNT ( * ) * - COUNT ( * ) - + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5206
SELECT 0 DIV - - MIN( DISTINCT - 55 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5206
SELECT 0 / - - MIN ( DISTINCT - 55 ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * + + 79 * - 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ALL - - 37 - ( + + COUNT( DISTINCT + + col0 ) ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL - - 37 - ( + + COUNT ( DISTINCT + + col0 ) ) FROM tab1 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT DISTINCT + - ( 13 ) + - col1 / + CAST( NULL AS SIGNED ) + col2 + - col2 + + col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT + - ( 13 ) + - col1 / + CAST ( NULL AS INTEGER ) + col2 + - col2 + + col2 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT COUNT( * ) + MIN( 9 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-5210
SELECT COUNT ( * ) + MIN ( 9 ) FROM tab2
----
12

query I rowsort
SELECT ALL + + col0 FROM tab1 WHERE + ( - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + - 95 - - - col2 AS col2 FROM tab1
----
4749
8016
8577

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5213
SELECT 95 + COUNT( * ) DIV - COUNT( * ) + + COUNT( * ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-5213
SELECT 95 + COUNT ( * ) / - COUNT ( * ) + + COUNT ( * ) FROM tab2
----
97

query I rowsort
SELECT ALL 66 - - - col1 + + 24 FROM tab0
----
69
89
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT + COUNT( * ) + + + 42 AS col1 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5215
SELECT + COUNT ( * ) + + + 42 AS col1 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT ALL + - COUNT( * ) * - 11 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
99

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL + - COUNT ( * ) * - 11 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
99

query II rowsort
SELECT 17 AS col2, 61 AS col2 FROM tab1
----
17
61
17
61
17
61

query I rowsort
SELECT - 80 - + col2 FROM tab0 WHERE NOT + col0 * + - col1 + - col0 + 49 * + col1 > + + 60
----
-179
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT + + 94 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5219
SELECT + + 94 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5220
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT - - 69 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5222
SELECT DISTINCT - SUM( + + ( - col0 ) ) FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) < + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT - SUM ( + + ( - col0 ) ) FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) < + col1
----
NULL

query I rowsort
SELECT ALL - ( - - ( - col1 ) ) AS col2 FROM tab2 cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT DISTINCT MIN( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT DISTINCT 17 * 6 - + ( - COUNT( * ) ) * ( + + 12 ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT 17 * 6 - + ( - COUNT ( * ) ) * ( + + 12 ) FROM tab2 AS cor0
----
138

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 8 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5228
SELECT ( + ( COUNT( * ) ) ) col0, SUM( ALL + col1 ) FROM tab1 AS cor0
----
3
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5228
SELECT ( + ( COUNT ( * ) ) ) col0, SUM ( ALL + col1 ) FROM tab1 AS cor0
----
3
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT + MAX( - - col1 ) * COUNT( * ) col2 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5229
SELECT + MAX ( - - col1 ) * COUNT ( * ) col2 FROM tab0 AS cor0
----
243

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 95 * - + 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT - CAST( NULL AS SIGNED ) * col2 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT - CAST ( NULL AS INTEGER ) * col2 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT + COUNT( col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5232
SELECT + COUNT ( col0 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5233
SELECT + CAST( - COUNT( * ) AS SIGNED ) DIV 59 + - + COUNT( * ), + 78 DIV - COUNT( * ) - - + SUM( + col0 ) AS col2 FROM tab0
----
-3
173

skipif mysql # not compatible
query II rowsort label-5233
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) / 59 + - + COUNT ( * ), + 78 / - COUNT ( * ) - - + SUM ( + col0 ) AS col2 FROM tab0
----
-3
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * - 87 col1 FROM tab2
----
-3915
-3915
-3915

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT NULL >= - 83 AND NOT 29 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT ALL - 30 AS col1 FROM tab1 WHERE NOT - - CAST( + - col2 AS SIGNED ) IN ( col2, col2 + col2 * + + CAST( NULL AS SIGNED ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL - 30 AS col1 FROM tab1 WHERE NOT - - CAST ( + - col2 AS INTEGER ) IN ( col2, col2 + col2 * + + CAST ( NULL AS INTEGER ) * col2 )
----

query II rowsort
SELECT ALL + col1 AS col2, + col0 * - col1 + + 79 FROM tab1
----
14
-635
47
-4198
5
-346

query I rowsort
SELECT 53 + ( - col2 ) AS col1 FROM tab0
----
-46
43
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT ALL - COUNT( * ) * - COUNT( * ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5239
SELECT ALL - COUNT ( * ) * - COUNT ( * ) col2 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT COUNT( * ) + 46 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-5241
SELECT COUNT ( * ) + 46 FROM tab1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-5242
SELECT 18 AS col2, COUNT( * ) AS col0 FROM tab1
----
18
3

skipif mysql # not compatible
query II rowsort label-5242
SELECT 18 AS col2, COUNT ( * ) AS col0 FROM tab1
----
18
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT 32 * COUNT( * ) AS col1 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-5244
SELECT 32 * COUNT ( * ) AS col1 FROM tab0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT - COUNT( * ) * 60 AS col1 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-5245
SELECT - COUNT ( * ) * 60 AS col1 FROM tab1
----
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT ALL - - ( + col1 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL - - ( + col1 ) / - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
0

query II rowsort
SELECT col1 + - + 97, col1 AS col1 FROM tab1 AS cor0
----
-50
47
-83
14
-92
5

query I rowsort
SELECT - 64 + + 92 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL - + 13 + - COUNT( * ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL - + 13 + - COUNT ( * ) FROM tab2 AS cor0
----
-16

query I rowsort
SELECT ALL - ( - + 0 ) - - col2 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 - 10 AS col0, 80 * - - 56 col2 FROM tab1 AS cor0
----
-106
4480
-69
4480
-78
4480

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 - + ( - - 56 ) >= + 34
----

query I rowsort
SELECT ALL 37 - - col1 + col0 AS col0 FROM tab0
----
133
135
145

query I rowsort
SELECT ALL + col0 * + + col0 + + 29 AS col2 FROM tab0
----
254
7598
9438

onlyif mysql # DIV for integer division: 
query I rowsort label-5255
SELECT ALL + col0 DIV - col2 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL + col0 / - col2 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-1
-1
-2

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - 22 AND col0
----

query I rowsort
SELECT DISTINCT ( 82 ) FROM tab1
----
82

query I rowsort
SELECT DISTINCT col2 * - + col2 - + - col0 FROM tab1
----
-3396
-4533
-9165

query I rowsort
SELECT - - ( + col1 ) AS col2 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + + 67 FROM tab0 cor0 WHERE NOT NULL <= 36
----

query I rowsort
SELECT ALL + col0 * col0 AS col1 FROM tab2 WHERE NOT - col1 + col2 / col1 BETWEEN 15 * - 92 AND NULL
----

query I rowsort
SELECT - ( + 98 ) FROM tab0
----
-98
-98
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col0 col1 FROM tab0 WHERE NULL <> - 15
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 + + col2 BETWEEN ( + 56 ) AND - col1
----

query III rowsort
SELECT * FROM tab0 WHERE col1 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT ALL + COUNT( * ) * COUNT( * ) FROM tab0 WHERE NOT col0 + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL + COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE NOT col0 + col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5268
SELECT ALL MIN( + 45 ) AS col0 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL MIN ( + 45 ) AS col0 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----
NULL

query I rowsort
SELECT ALL col0 * col1 - - 66 AS col1 FROM tab2
----
2412
4994
5091

query I rowsort
SELECT 84 AS col0 FROM tab0 WHERE NOT - ( - col1 ) IS NULL
----
84
84
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5271
SELECT ALL col0 DIV col2 + col0 * col2 AS col0 FROM tab1
----
4896
5016
6189

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL col0 / col2 + col0 * col2 AS col0 FROM tab1
----
4896
5016
6189

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * + col2 + + col2 IN ( - col0 * + 77 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + ( - ( + col2 ) ) col1 FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT MAX( + col1 ) FROM tab1 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT MAX ( + col1 ) FROM tab1 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + 48 AS col2 FROM tab2
----
-2208
-3072
-3600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5277
SELECT + CAST( NULL AS SIGNED ) + + col0 / col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT + CAST ( NULL AS INTEGER ) + + col0 / col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + 9 * - 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 - + col0 <= 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5280
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) * 25 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-5280
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) * 25 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT - 81 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - 94 FROM tab0 WHERE NOT + col2 NOT BETWEEN 65 AND - 34 * - col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5283
SELECT COUNT( * ) * ( + 1 ) FROM tab0 WHERE NOT + col2 - CAST( NULL AS SIGNED ) < ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5283
SELECT COUNT ( * ) * ( + 1 ) FROM tab0 WHERE NOT + col2 - CAST ( NULL AS INTEGER ) < ( col1 )
----
0

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT NULL = - 24 + + ( ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT DISTINCT + SUM( - col1 ) AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-5285
SELECT DISTINCT + SUM ( - col1 ) AS col0 FROM tab0 WHERE NOT col2 IS NULL
----
-103

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL > 83
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5287
SELECT + AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) + COUNT( 91 + + CAST( + col1 AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT + AVG ( DISTINCT CAST ( NULL AS REAL ) ) + COUNT ( 91 + + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE + 53 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5289
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) + COUNT( * ) * 14 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5289
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) + COUNT ( * ) * 14 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * + 73 + + 17 * - 51 FROM tab1 AS cor0
----
2856
5338
5776

query I rowsort
SELECT - 28 + 33 AS col1 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT - ( 8 ) + - col0 FROM tab2 AS cor0
----
-54
-72
-83

query III rowsort
SELECT * FROM tab1 WHERE 44 BETWEEN ( NULL ) AND col0 + + 53 / col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + 45 col2 FROM tab0
----
-35
2
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT SUM( DISTINCT 19 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-5295
SELECT SUM ( DISTINCT 19 ) FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT DISTINCT - COUNT( * ) - ( - COUNT( * ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT - COUNT ( * ) - ( - COUNT ( * ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL NOT BETWEEN ( col2 ) AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT 49 * + ( - MAX( - col1 ) * + 83 ) AS col0 FROM tab1
----
20335

skipif mysql # not compatible
query I rowsort label-5298
SELECT 49 * + ( - MAX ( - col1 ) * + 83 ) AS col0 FROM tab1
----
20335

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT + MIN( ALL col1 ) * COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5299
SELECT + MIN ( ALL col1 ) * COUNT ( * ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 44 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5302
SELECT DISTINCT + - col0 + - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-52
-85
-91

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT + - col0 + - col2 / col0 AS col0 FROM tab1 AS cor0
----
-52
-85
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 22 + - 6 / ( - col0 * col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - 93 ) FROM tab1 cor0
----
-93
-93
-93

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE ( + col1 ) <= + 71 * col0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL COUNT( * ) + COUNT( * ) AS col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT ALL 42 DIV + col1 - + 5 AS col0 FROM tab2 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL 42 / + col1 - + 5 AS col0 FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5308
SELECT 5 + - 70 DIV - 45 AS col1 FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-5308
SELECT 5 + - 70 / - 45 AS col1 FROM tab0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 col0 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT ALL 34 + + col0 + + col1 FROM tab2
----
131
175
176

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 36 + + 21 )
----

query I rowsort
SELECT - col1 * - + ( col0 ) FROM tab1 cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 15 col2 FROM tab2 AS cor0
----
345
600
870

query I rowsort
SELECT + 13 * + + 2 FROM tab1 AS cor0
----
26
26
26

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT ( + col2 = 65 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT ALL + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 / + 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT ALL - - COUNT( * ) + - 56 AS col1 FROM tab2 cor0
----
-53

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL - - COUNT ( * ) + - 56 AS col1 FROM tab2 cor0
----
-53

query I rowsort
SELECT - col2 * + col0 - - col2 FROM tab2 cor0 WHERE NOT col0 + + - col1 / + 51 > ( - col2 + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 + col2 / col2 col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 - + + col2 ) AND + col1 / col0
----

query I rowsort
SELECT DISTINCT + 76 + + 45 FROM tab0 cor0
----
121

query I rowsort
SELECT DISTINCT + ( - 73 ) FROM tab2 AS cor0
----
-73

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN ( - - col1 / + col0 ) AND + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5325
SELECT - COUNT( * ) DIV - 53 + + MAX( col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5325
SELECT - COUNT ( * ) / - 53 + + MAX ( col2 ) AS col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT MIN( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT + 38 IN ( - col1 )
----
-81

skipif mysql # not compatible
query I rowsort label-5326
SELECT MIN ( - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT + 38 IN ( - col1 )
----
-81

query I rowsort
SELECT col1 + + + 13 AS col1 FROM tab1 AS cor0
----
18
27
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5328
SELECT col1 + - col2 + + + col0 DIV + col0 + + 34 FROM tab0
----
-63
46
69

skipif mysql # not compatible
query I rowsort label-5328
SELECT col1 + - col2 + + + col0 / + col0 + + 34 FROM tab0
----
-63
46
69

query I rowsort
SELECT DISTINCT col2 * col2 + 51 AS col0 FROM tab1
----
3532
4675
9267

query II rowsort
SELECT + col1 + - 37, 66 AS col2 FROM tab0
----
-16
66
-36
66
44
66

query I rowsort
SELECT 45 + - col0 AS col2 FROM tab1
----
-40
-46
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT + CAST( - 51 AS SIGNED ) + col2 + + + 67 FROM tab2
----
39
56
74

skipif mysql # not compatible
query I rowsort label-5332
SELECT + CAST ( - 51 AS INTEGER ) + col2 + + + 67 FROM tab2
----
39
56
74

query I rowsort
SELECT ALL + 35 * + - col0 FROM tab0
----
-3045
-3395
-525

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT + col1 * + col1 + + col0 DIV - - 58 FROM tab2
----
2601
4490
5930

skipif mysql # not compatible
query I rowsort label-5334
SELECT + col1 * + col1 + + col0 / - - 58 FROM tab2
----
2601
4490
5930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5335
SELECT DISTINCT - COUNT( * ) DIV 78 FROM tab2 WHERE NOT + 7 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT - COUNT ( * ) / 78 FROM tab2 WHERE NOT + 7 <= ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT - col1 + - ( 44 ) DIV - + col2 FROM tab0
----
-1
-17
-81

skipif mysql # not compatible
query I rowsort label-5336
SELECT - col1 + - ( 44 ) / - + col2 FROM tab0
----
-1
-17
-81

query I rowsort
SELECT - 70 AS col2 FROM tab2 WHERE NULL IS NULL
----
-70
-70
-70

query I rowsort
SELECT ALL - ( + col0 ) + - - col1 AS col2 FROM tab0 AS cor0
----
-66
-96
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 99 ) <= - 40 * + col2 * col0 + col1 * - 11
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 17 <= - + col0
----

query I rowsort
SELECT ALL 2 * + - col1 * + 71 + + - col0 - ( col2 ) * - 95 + - ( - 31 ) FROM tab1 AS cor0
----
-274
4841
7112

query I rowsort
SELECT DISTINCT - col2 * 93 - 74 + col1 * col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 / 33 ) <= ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5344
SELECT ALL + + ( + 26 ) + - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-61
-71
11

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL + + ( + 26 ) + - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-61
-71
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT DISTINCT 95 + - COUNT( * ) AS col0 FROM tab2 WHERE ( + - 56 / + - 12 + col2 ) IS NOT NULL
----
92

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT 95 + - COUNT ( * ) AS col0 FROM tab2 WHERE ( + - 56 / + - 12 + col2 ) IS NOT NULL
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5346
SELECT CAST( NULL AS SIGNED ) - - - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT CAST ( NULL AS INTEGER ) - - - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 97 * + - col1 - - col0 * 13 FROM tab2 WHERE NULL IS NULL
----
-4349
-5524
-6637

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT - COUNT( * ) * + 76 + COUNT( * ) * - COUNT( * ) FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-5348
SELECT - COUNT ( * ) * + 76 + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-237

query I rowsort
SELECT ALL + 69 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL - SUM( + col2 ) col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5350
SELECT ALL - SUM ( + col2 ) col0 FROM tab1 AS cor0
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT - 49 * + col1 + + col1 DIV + 29 - - 9 AS col2 FROM tab0 cor0
----
-1020
-3958
-40

skipif mysql # not compatible
query I rowsort label-5351
SELECT - 49 * + col1 + + col1 / + 29 - - 9 AS col2 FROM tab0 cor0
----
-1020
-3958
-40

query I rowsort
SELECT + 50 * - 42 + - col2 + 18 AS col0 FROM tab2 AS cor0
----
-2105
-2122
-2140

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( + col1 * + col1 )
----

query I rowsort
SELECT DISTINCT - col2 * + + col0 + col1 * + 65 + + - col0 FROM tab1 AS cor0
----
-3224
-4037
-4775

query II rowsort
SELECT col1 AS col0, col2 AS col1 FROM tab0 cor0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5356
SELECT - CAST( NULL AS SIGNED ) * + ( + col0 ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( CAST( + + col1 AS SIGNED ) * - col2 * - 61 - ( + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-5356
SELECT - CAST ( NULL AS INTEGER ) * + ( + col0 ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( CAST ( + + col1 AS INTEGER ) * - col2 * - 61 - ( + col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5357
SELECT DISTINCT 16 DIV ( + COUNT( * ) ) AS col1 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT 16 / ( + COUNT ( * ) ) AS col1 FROM tab0
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 50 / + col2 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5359
SELECT * FROM tab2 WHERE NOT ( + CAST( col1 AS DECIMAL ) ) IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5359
SELECT * FROM tab2 WHERE NOT ( + CAST ( col1 AS REAL ) ) IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col2 FROM tab0
----
18
18
18

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - 57 ) IS NOT NULL
----

query I rowsort
SELECT + 50 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT - col0 * + col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5364
SELECT - 8 AS col1, - 38 + col1 * - CAST( NULL AS SIGNED ) / + col2 FROM tab0
----
-8
NULL
-8
NULL
-8
NULL

skipif mysql # not compatible
query II rowsort label-5364
SELECT - 8 AS col1, - 38 + col1 * - CAST ( NULL AS INTEGER ) / + col2 FROM tab0
----
-8
NULL
-8
NULL
-8
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL + MIN( - + 79 ) * - COUNT( * ) + + - 22 FROM tab2 AS cor0
----
215

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL + MIN ( - + 79 ) * - COUNT ( * ) + + - 22 FROM tab2 AS cor0
----
215

query I rowsort
SELECT ALL + col0 * + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT + 71 * + + COUNT( * ) AS col0 FROM tab2 cor0
----
213

skipif mysql # not compatible
query I rowsort label-5368
SELECT + 71 * + + COUNT ( * ) AS col0 FROM tab2 cor0
----
213

query I rowsort
SELECT + 48 AS col0 FROM tab1 cor0
----
48
48
48

query I rowsort
SELECT - col2 * - - col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5371
SELECT DISTINCT + 9 * - ( + CAST( + - col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
207
360
522

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT + 9 * - ( + CAST ( + - col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
207
360
522

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT DISTINCT 40 + - MIN( ALL - ( 39 ) ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT 40 + - MIN ( ALL - ( 39 ) ) FROM tab2 AS cor0
----
79

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - - col2 FROM tab2 AS cor0 WHERE ( NOT - 17 >= NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + - col0 + - col2 NOT IN ( - col2, - 30 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 * + col0 * col2 FROM tab2 cor0
----
197120
291450
53958

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 32 IS NULL
----

query I rowsort
SELECT ALL - - col0 + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5380
SELECT ALL CAST( - - MIN( 54 ) AS SIGNED ) col0 FROM tab0 cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5380
SELECT ALL CAST ( - - MIN ( 54 ) AS INTEGER ) col0 FROM tab0 cor0
----
54

query I rowsort
SELECT DISTINCT + 99 + + col0 FROM tab0 cor0
----
114
186
196

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 >= - - 42
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 13 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT - CAST( + col2 AS SIGNED ) * - 15 FROM tab2
----
345
600
870

skipif mysql # not compatible
query I rowsort label-5384
SELECT - CAST ( + col2 AS INTEGER ) * - 15 FROM tab2
----
345
600
870

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5385
SELECT DISTINCT CAST( NULL AS SIGNED ), + CAST( + col1 AS SIGNED ) + col1 col2 FROM tab0
----
NULL
162
NULL
2
NULL
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5385
SELECT DISTINCT CAST ( NULL AS INTEGER ), + CAST ( + col1 AS INTEGER ) + col1 col2 FROM tab0
----
NULL
162
NULL
2
NULL
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5386
SELECT - col1 DIV + col1 + + + 87 * - - col1 AS col1 FROM tab0
----
1826
7046
86

skipif mysql # not compatible
query I rowsort label-5386
SELECT - col1 / + col1 + + + 87 * - - col1 AS col1 FROM tab0
----
1826
7046
86

query I rowsort
SELECT 46 * - col2 + - - col2 FROM tab2
----
-1035
-1800
-2610

query I rowsort
SELECT + col0 + - 54 AS col0 FROM tab0
----
-39
33
43

query I rowsort
SELECT ALL + col0 + + 34 FROM tab1
----
119
125
85

query I rowsort
SELECT + col1 + - - 91 FROM tab2
----
142
158
168

query I rowsort
SELECT ALL + + col2 + - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 8 - 94 FROM tab1
----
-86
-86
-86

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + col0 * - col1 - col0 AS col2 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT DISTINCT - - ( col1 ) * col1 FROM tab0 cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5396
SELECT ALL + col0 * - 85 + + CAST( NULL AS SIGNED ) + + col2 - - col0 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 63 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL + col0 * - 85 + + CAST ( NULL AS INTEGER ) + + col2 - - col0 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 63 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT - SUM( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5397
SELECT - SUM ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, + 15 col2 FROM tab1
----
14
15
47
15
5
15

query II rowsort
SELECT - 14, + col2 FROM tab2
----
-14
23
-14
40
-14
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - 99 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT COUNT( * ) * - + 69 FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-5401
SELECT COUNT ( * ) * - + 69 FROM tab0
----
-207

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT + 61 DIV + col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-5402
SELECT + 61 / + col2 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT + col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT - MAX( ALL + + ( ( - col0 ) ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5404
SELECT - MAX ( ALL + + ( ( - col0 ) ) ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5405
SELECT * FROM tab2 WHERE NOT NULL = + 76 + + 13 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5405
SELECT * FROM tab2 WHERE NOT NULL = + 76 + + 13 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 8 * - - 33 AS col1 FROM tab1
----
264
264
264

query I rowsort
SELECT ALL - ( 27 ) AS col2 FROM tab0 cor0
----
-27
-27
-27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = col1 / + 51
----

query I rowsort
SELECT DISTINCT ( - - 34 ) FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5410
SELECT ALL COUNT( * ), - 99 AS col2 FROM tab2
----
3
-99

skipif mysql # not compatible
query II rowsort label-5410
SELECT ALL COUNT ( * ), - 99 AS col2 FROM tab2
----
3
-99

query I rowsort
SELECT ALL - 90 * - col0 FROM tab1 AS cor0
----
4590
7650
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT COUNT( * ) * - + 84 * - 30 AS col0 FROM tab1 AS cor0
----
7560

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT COUNT ( * ) * - + 84 * - 30 AS col0 FROM tab1 AS cor0
----
7560

query II rowsort
SELECT - + col2 + 34 + - + col2 + + + ( + + 95 ) * + col1, - 56 AS col1 FROM tab2 AS cor0
----
4833
-56
6283
-56
7269
-56

query I rowsort
SELECT DISTINCT - + col1 + - + col1 * + col0 AS col2 FROM tab1 AS cor0
----
-430
-4324
-728

query I rowsort
SELECT DISTINCT 3 + + + col1 FROM tab1 AS cor0
----
17
50
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5416
SELECT DISTINCT + 30 AS col1, + ( - MAX( DISTINCT - col2 ) ) AS col0 FROM tab0 AS cor0
----
30
10

skipif mysql # not compatible
query II rowsort label-5416
SELECT DISTINCT + 30 AS col1, + ( - MAX ( DISTINCT - col2 ) ) AS col0 FROM tab0 AS cor0
----
30
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5417
SELECT COUNT( * ) DIV COUNT( DISTINCT + + 47 ) * + COUNT( ( + col0 ) ) + - 39 * - 41 col0 FROM tab1
----
1608

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5417
SELECT COUNT ( * ) / COUNT ( DISTINCT + + 47 ) * + COUNT ( ( + col0 ) ) + - 39 * - 41 col0 FROM tab1
----
1608

onlyif mysql # aggregate syntax: 
query II rowsort label-5418
SELECT DISTINCT - COUNT( * ) + ( MAX( + - ( col1 ) ) ) AS col1, COUNT( * ) AS col1 FROM tab0
----
-4
3

skipif mysql # not compatible
query II rowsort label-5418
SELECT DISTINCT - COUNT ( * ) + ( MAX ( + - ( col1 ) ) ) AS col1, COUNT ( * ) AS col1 FROM tab0
----
-4
3

query I rowsort
SELECT col2 + - + col0 + - - col1 FROM tab2
----
28
50
53

query I rowsort
SELECT - col0 + + + 31 FROM tab1
----
-20
-54
-60

query I rowsort
SELECT + col1 * - 68 AS col1 FROM tab2
----
-3468
-4556
-5236

query II rowsort
SELECT ALL 85 * - + col0 + - col0, - col1 AS col0 FROM tab2
----
-3956
-51
-5504
-77
-6450
-67

query I rowsort
SELECT col0 * + + 48 - col2 FROM tab2 AS cor0
----
2185
3032
3542

query I rowsort
SELECT - col1 * 84 * - - 77 FROM tab1 AS cor0
----
-303996
-32340
-90552

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - - col0 * + + 79 <> NULL )
----

query II rowsort
SELECT - 33, col1 FROM tab0 AS cor0
----
-33
1
-33
21
-33
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT MIN( DISTINCT + + col2 ) col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5427
SELECT MIN ( DISTINCT + + col2 ) col0 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT - MIN( - 11 ) FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5428
SELECT - MIN ( - 11 ) FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5429
SELECT COUNT( 62 ) DIV + 96 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5429
SELECT COUNT ( 62 ) / + 96 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - col1 * 74 AS col0 FROM tab0 AS cor0
----
-1554
-5994
-74

query III rowsort
SELECT * FROM tab0 WHERE NOT 34 IS NULL OR NOT NULL > NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 24 - + + col1 FROM tab1 WHERE ( col1 ) <> - col0 + ( + col2 )
----
-29
-38
-71

query I rowsort
SELECT ALL 57 + + 74 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - 97 * - 97 FROM tab0
----
9409

query I rowsort
SELECT ALL - 1 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - + 67 AND - col0 * + + 95 + - col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT - - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5437
SELECT - - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT MAX( DISTINCT + 8 ) AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-5438
SELECT MAX ( DISTINCT + 8 ) AS col1 FROM tab0
----
8

query I rowsort
SELECT DISTINCT - ( + + col0 ) + - col1 FROM tab1 AS cor0
----
-138
-65
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 16 + - col0 col2 FROM tab1 AS cor0
----
-101
-107
-67

query I rowsort
SELECT DISTINCT 19 * - - 69 + 63 AS col1 FROM tab0 AS cor0
----
1374

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE col0 * + 90 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT ALL + 22 * + col2 + col2 FROM tab2
----
1334
529
920

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT 58 - - + COUNT( * ) FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-5445
SELECT 58 - - + COUNT ( * ) FROM tab2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT SUM( - - col1 ) + + SUM( DISTINCT + + col0 ) + + - COUNT( * ) - MAX( ALL + - 59 ) FROM tab0
----
358

skipif mysql # not compatible
query I rowsort label-5446
SELECT SUM ( - - col1 ) + + SUM ( DISTINCT + + col0 ) + + - COUNT ( * ) - MAX ( ALL + - 59 ) FROM tab0
----
358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 + col2 col0 FROM tab2
----
122
139
157

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5448
SELECT 6 + + - 57 + + col1 DIV CAST( + col1 AS SIGNED ) * + col1 * - + col2 AS col0 FROM tab0
----
-150
-261
-3858

skipif mysql # not compatible
query I rowsort label-5448
SELECT 6 + + - 57 + + col1 / CAST ( + col1 AS INTEGER ) * + col1 * - + col2 AS col0 FROM tab0
----
-150
-261
-3858

query I rowsort
SELECT DISTINCT ( col1 ) * - 62 AS col1 FROM tab2
----
-3162
-4154
-4774

query I rowsort
SELECT ALL 43 * + + col2 * col1 FROM tab1
----
12685
137428
57792

query I rowsort
SELECT - col0 + 19 AS col1 FROM tab0
----
-68
-78
4

query I rowsort
SELECT DISTINCT ( - col1 ) + + + col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 + + 53 FROM tab0 AS cor0
----
-28
32
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * - 58 + - 23 + - col1 col2 FROM tab0
----
1174
34
4594

query I rowsort
SELECT + - 4 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5456
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED ) * + 62
----

skipif mysql # not compatible
query III rowsort label-5456
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER ) * + 62
----

query I rowsort
SELECT + - col1 * - + 53 FROM tab1 AS cor0
----
2491
265
742

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL + + COUNT( * ) col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5458
SELECT ALL + + COUNT ( * ) col0 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT col1 DIV + 19 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5460
SELECT col1 / + 19 FROM tab1
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT DISTINCT MAX( DISTINCT col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT MAX ( DISTINCT col2 ) AS col0 FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 col0 FROM tab2
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT ALL - col0 * CAST( - + col2 AS SIGNED ) FROM tab1 WHERE NULL = + ( - + col1 )
----

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL - col0 * CAST ( - + col2 AS INTEGER ) FROM tab1 WHERE NULL = + ( - + col1 )
----

query I rowsort
SELECT + 81 * col2 FROM tab0
----
3807
8019
810

query II rowsort
SELECT - 77 AS col0, + col1 FROM tab1
----
-77
14
-77
47
-77
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5467
SELECT DISTINCT * FROM tab0 WHERE - col1 + + col1 * - col2 / 36 + - + col0 * - + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5467
SELECT DISTINCT * FROM tab0 WHERE - col1 + + col1 * - col2 / 36 + - + col0 * - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 58 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1, - col1, col2 )
----

query I rowsort
SELECT + 88 * - col0 - - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT 32 IS NULL
----
-4539
-7565
-8099

onlyif mysql # aggregate syntax: 
query II rowsort label-5471
SELECT + COUNT( * ) AS col1, MAX( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
3
-1

skipif mysql # not compatible
query II rowsort label-5471
SELECT + COUNT ( * ) AS col1, MAX ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
3
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col2, + 27 * + 33 col0 FROM tab2 AS cor0
----
-46
891
-64
891
-75
891

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - + ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE - 40 IS NULL
----

query I rowsort
SELECT col0 + + + col2 AS col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 / 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 38 + col1 * - col0 FROM tab2 AS cor0
----
-2308
-4890
-4987

query I rowsort
SELECT DISTINCT ( + col0 ) + - col0 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT 53 + MIN( ALL + col2 ) FROM tab1 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-5479
SELECT 53 + MIN ( ALL + col2 ) FROM tab1 AS cor0
----
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 72 + - 0 col1 FROM tab1 AS cor0
----
72
72
72

query I rowsort
SELECT - + ( - + 46 ) + + + col1 AS col2 FROM tab1 cor0
----
51
60
93

query I rowsort
SELECT col2 + 87 AS col0 FROM tab0 AS cor0
----
134
186
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5483
SELECT col0 * col0 FROM tab1 cor0 WHERE col1 / col0 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5483
SELECT col0 * col0 FROM tab1 cor0 WHERE col1 / col0 <= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col0 + - - col2 FROM tab0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5485
SELECT DISTINCT col0 DIV + + 62 col1 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5485
SELECT DISTINCT col0 / + + 62 col1 FROM tab1
----
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5486
SELECT ALL + 64 - + col1 + + col0 + - col2 * 3 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL + 64 - + col1 + + col0 + - col2 * 3 + + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 95 - 48 FROM tab0
----
-143

query I rowsort
SELECT ALL + ( - + col0 ) - + - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 67 * - col1 * + col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT ALL ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT ALL + SUM( ALL + ( - - col1 ) ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL + SUM ( ALL + ( - - col1 ) ) AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT + 72 + 90 AS col0 FROM tab0 cor0
----
162

query II rowsort
SELECT DISTINCT 1, col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

query I rowsort
SELECT col1 * + 65 AS col0 FROM tab0 AS cor0
----
1365
5265
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 * - - 73 col2 FROM tab1
----
4964
4964
4964

query III rowsort
SELECT * FROM tab1 WHERE NOT 40 < ( + 31 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 24 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT ALL + col2 AS col0, + col1 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 53 IN ( + + 47, - col2 - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2, col0 AS col0 FROM tab0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT DISTINCT + col2 AS col2, 10 AS col0 FROM tab0
----
10
10
47
10
99
10

query II rowsort
SELECT ALL - 17, 71 AS col2 FROM tab0 AS cor0
----
-17
71
-17
71
-17
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT - MIN( + 15 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT - MIN ( + 15 ) FROM tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT col2 * + col0 AS col2 FROM tab0 cor0 WHERE NOT + col1 NOT BETWEEN + + 48 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + col0 ) NOT BETWEEN + - col1 + + col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 WHERE NOT ( NULL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT 10 * + COUNT( * ) AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT 10 * + COUNT ( * ) AS col0 FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT SUM( ALL - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT SUM ( ALL - col1 ) FROM tab0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col2 FROM tab2
----
23
23
23

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5512
SELECT + 16 DIV - - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5512
SELECT + 16 / - - col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - - 80 * + col2 + - col1 AND NULL
----

query I rowsort
SELECT ALL - col2 + 16 FROM tab2 AS cor0
----
-24
-42
-7

query I rowsort
SELECT + col0 + - 99 FROM tab1 AS cor0
----
-14
-48
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT ALL 81 + - 81 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL 81 + - 81 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL - ( + - COUNT( * ) ) * - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL - ( + - COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

query II rowsort
SELECT DISTINCT + col0, 91 FROM tab1
----
51
91
85
91
91
91

query I rowsort
SELECT ALL - ( - + 32 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT + + 87 AS col1 FROM tab0 WHERE NOT + + col0 NOT IN ( + col0 - + - col0 + + col2 + + col1, 74, + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT DISTINCT + 28 * - 90 + - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-2529

skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT + 28 * - 90 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-2529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT ALL + CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT DISTINCT - CAST( - - 68 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-68

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT - CAST ( - - 68 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-68

query II rowsort
SELECT - ( + + col2 ) * + col0, col1 AS col2 FROM tab1 AS cor0
----
-4896
14
-5015
5
-6188
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col0 col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT 94 - + col1 - - ( + col2 ) * + 61 AS col0 FROM tab1 AS cor0
----
3688
4195
5936

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT DISTINCT + COUNT( * ) + - 2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT + COUNT ( * ) + - 2 FROM tab1 cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 85 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT DISTINCT 2 + 37 * + + COUNT( * ) AS col1 FROM tab0
----
113

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT 2 + 37 * + + COUNT ( * ) AS col1 FROM tab0
----
113

query I rowsort
SELECT ALL - col0 * 64 - + col0 AS col1 FROM tab2
----
-2990
-4160
-4875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - - col1 col2 FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5532
SELECT DISTINCT COUNT( * ) * 37, - CAST( + AVG ( ALL - 11 ) AS SIGNED ) AS col2 FROM tab2
----
111
11

skipif mysql # not compatible
query II rowsort label-5532
SELECT DISTINCT COUNT ( * ) * 37, - CAST ( + AVG ( ALL - 11 ) AS INTEGER ) AS col2 FROM tab2
----
111
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT - MAX( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5534
SELECT - MAX ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL + 57 * 69 * - col1 AS col0 FROM tab2
----
-200583
-263511
-302841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5536
SELECT - CAST( - + COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5536
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query II rowsort
SELECT - 82 AS col0, + 10 AS col1 FROM tab1
----
-82
10
-82
10
-82
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 + 50 + 61 col1 FROM tab2 AS cor0
----
-1062
-2969
-3775

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 58 NOT BETWEEN + + col0 AND NULL
----
64
77
40
75
67
58

query I rowsort
SELECT + 3 + col1 AS col2 FROM tab0 cor0
----
24
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT - ( 5 ) * COUNT( * ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT - ( 5 ) * COUNT ( * ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT 28 + - col2 * - ( + 45 ) AS col2 FROM tab1
----
2683
3088
4348

query I rowsort
SELECT 34 * col0 + + ( - col1 ) FROM tab0
----
2937
3297
429

onlyif mysql # DIV for integer division: 
query I rowsort label-5544
SELECT ALL + 1 DIV + - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL + 1 / + - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 7 + + col0 AS col2 FROM tab1
----
44
78
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5546
SELECT DISTINCT 66 col0, + COUNT( * ) col2 FROM tab1
----
66
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5546
SELECT DISTINCT 66 col0, + COUNT ( * ) col2 FROM tab1
----
66
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col1, + col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT ALL + CAST( - 0 AS SIGNED ) * + - 93 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL + CAST ( - 0 AS INTEGER ) * + - 93 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT 76, col0 FROM tab2 AS cor0
----
76
46
76
64
76
75

query I rowsort
SELECT 81 FROM tab2 cor0 WHERE + 49 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5552
SELECT 1, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-5552
SELECT 1, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5553
SELECT ALL 53 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL 53 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + + 46 + + - col0 + + + 36 * - col1 * + - col0 FROM tab2 AS cor0 WHERE - 17 IS NOT NULL
----
177430
180929
84479

query I rowsort
SELECT DISTINCT 75 * - 7 * ( - - col2 ) - - col1 AS col1 FROM tab2
----
-12024
-20923
-30383

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT MIN( + 85 ) AS col2 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5556
SELECT MIN ( + 85 ) AS col2 FROM tab2 AS cor0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT + col1 DIV col2 + + col2 + - col0 DIV 78 + ( + + col0 ) * 97 * - 15 AS col1 FROM tab1 cor0
----
-123617
-132338
-74109

skipif mysql # not compatible
query I rowsort label-5557
SELECT + col1 / col2 + + col2 + - col0 / 78 + ( + + col0 ) * 97 * - 15 AS col1 FROM tab1 cor0
----
-123617
-132338
-74109

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= NULL OR NULL > - + 4 - + col2 * ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT DISTINCT ( - COUNT( 84 ) ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT ( - COUNT ( 84 ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE - col0 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT - + col2 * 23 DIV col1 AS col0 FROM tab2 AS cor0
----
-10
-11
-19

skipif mysql # not compatible
query I rowsort label-5561
SELECT - + col2 * 23 / col1 AS col0 FROM tab2 AS cor0
----
-10
-11
-19

query I rowsort
SELECT - ( 49 ) FROM tab1
----
-49
-49
-49

query I rowsort
SELECT ALL col0 - - - col2 AS col2 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT DISTINCT MIN( ALL + + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT MIN ( ALL + + col0 ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT DISTINCT 89 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( - col0 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT 89 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( - col0 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5566
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5566
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5567
SELECT ALL col1 + CAST( NULL AS SIGNED ) AS col0, - col0 + - 57 - + - 14 * + col1 FROM tab1 AS cor0 WHERE NOT col0 > NULL
----

skipif mysql # not compatible
query II rowsort label-5567
SELECT ALL col1 + CAST ( NULL AS INTEGER ) AS col0, - col0 + - 57 - + - 14 * + col1 FROM tab1 AS cor0 WHERE NOT col0 > NULL
----

query II rowsort
SELECT - col0, - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-46
-2346
-64
-4928
-75
-5025

query I rowsort
SELECT DISTINCT - + 88 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-88

query I rowsort
SELECT + + 76 FROM tab2 cor0
----
76
76
76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + - col2 * col2 + + + 70 > + 1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT + ( col2 ) FROM tab0 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) + - 1 + - col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-5572
SELECT + ( col2 ) FROM tab0 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) + - 1 + - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5573
SELECT ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5574
SELECT ALL + + MAX( DISTINCT + 21 ), COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5574
SELECT ALL + + MAX ( DISTINCT + 21 ), COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5575
SELECT + ( + COUNT( * ) ) AS col1, - ( - 73 ) col0 FROM tab1 AS cor0
----
3
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5575
SELECT + ( + COUNT ( * ) ) AS col1, - ( - 73 ) col0 FROM tab1 AS cor0
----
3
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5576
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) + - - 59 / + MIN( ALL - - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - - 59 / + MIN ( ALL - - col2 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT DISTINCT 5 + COUNT( - + col1 ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT 5 + COUNT ( - + col1 ) FROM tab2
----
8

query I rowsort
SELECT ALL + 73 - + 79 * 63 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c1053716a8d725a9c488e9d8f748a643

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5579
SELECT - col2 AS col1, CAST( NULL AS SIGNED ) FROM tab1 WHERE + 69 + - 77 / + col2 = + - col0 + col2
----

skipif mysql # not compatible
query II rowsort label-5579
SELECT - col2 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 WHERE + 69 + - 77 / + col2 = + - col0 + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + 0 + - 53 + - + 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL + MIN( + + col1 ) * - 76 AS col2 FROM tab1
----
-380

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL + MIN ( + + col1 ) * - 76 AS col2 FROM tab1
----
-380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5582
SELECT 12 DIV + + ( 46 ) + - + COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5582
SELECT 12 / + + ( 46 ) + - + COUNT ( * ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col0 + 42 - col2 FROM tab2 AS cor0
----
59
65
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT + SUM( - 40 ) AS col1 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-5585
SELECT + SUM ( - 40 ) AS col1 FROM tab2
----
-120

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab1 cor1 ON NULL IS NULL WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT ALL - 30 * + - CAST( NULL AS SIGNED ) / + + COUNT( * ) * - 41 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL - 30 * + - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) * - 41 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT - - 14 - - - COUNT( * ) + COUNT( * ) AS col1 FROM tab0 cor0
----
14

skipif mysql # not compatible
query I rowsort label-5588
SELECT - - 14 - - - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 cor0
----
14

query I rowsort
SELECT + + 59 - - col0 + - col0 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT ALL ( - 28 ) + + col1 FROM tab0 AS cor0
----
-27
-7
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5591
SELECT - 82 - + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT - 82 - + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL 59 + + - MIN( - col2 ) AS col2 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL 59 + + - MIN ( - col2 ) AS col2 FROM tab2 AS cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT DISTINCT - SUM( + col1 ) + COUNT( * ) * - 5 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT - SUM ( + col1 ) + COUNT ( * ) * - 5 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT ALL 67 * + col2 AS col1 FROM tab1 AS cor0
----
3953
4556
6432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 72 col1, + 89 FROM tab0 cor0
----
72
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT SUM( - 29 ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-5596
SELECT SUM ( - 29 ) FROM tab1
----
-87

query I rowsort
SELECT - ( + col0 ) * - + col1 AS col0 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT ALL - 84 DIV - + ( col1 ) FROM tab0
----
1
4
84

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - 84 / - + ( col1 ) FROM tab0
----
1
4
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT DISTINCT + ( + 97 ) * 83 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + ( + 97 ) * 83 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - 59 * - col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 >= - 24 + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 = - - 80 / col2 + col1 * - 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col1 AS col2, - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 - - 30, + 64, - + 61, 27 + - 99 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 78 ) * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + + col2 - 34 + + col0 FROM tab0 AS cor0
----
109
163
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT + COUNT( * ) + + ( 42 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5606
SELECT + COUNT ( * ) + + ( 42 ) FROM tab0 AS cor0
----
45

query II rowsort
SELECT DISTINCT + 25 + 0 AS col2, 17 FROM tab2
----
25
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT ALL + COUNT( * ) * SUM( ALL - col1 ) AS col0 FROM tab0
----
-309

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL + COUNT ( * ) * SUM ( ALL - col1 ) AS col0 FROM tab0
----
-309

query I rowsort
SELECT ALL col0 * - - 83 FROM tab0
----
1245
7221
8051

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5610
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 >= + ( - CAST( - + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5610
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 >= + ( - CAST ( - + col0 AS INTEGER ) )
----

query I rowsort
SELECT col2 * 51 AS col2 FROM tab1
----
3009
3468
4896

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5612
SELECT DISTINCT - 32 DIV + CAST( 14 AS SIGNED ) + + 89 AS col0 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT - 32 / + CAST ( 14 AS INTEGER ) + + 89 AS col0 FROM tab0 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5613
SELECT ALL * FROM tab1 AS cor0 WHERE + 81 <= - - col0 * + col0 * + CAST( + col0 AS SIGNED ) - + - col1 * - 69
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5613
SELECT ALL * FROM tab1 AS cor0 WHERE + 81 <= - - col0 * + col0 * + CAST ( + col0 AS INTEGER ) - + - col1 * - 69
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND + col0 * - col1 + + col0
----

query I rowsort
SELECT - col0 + ( + col1 ) * - + col2 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT col1 FROM tab0 WHERE - col2 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5617
SELECT DISTINCT 33 DIV - MAX( + + 81 ) col1, - MIN( DISTINCT + 0 ) AS col1 FROM tab1
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5617
SELECT DISTINCT 33 / - MAX ( + + 81 ) col1, - MIN ( DISTINCT + 0 ) AS col1 FROM tab1
----
0
0

query I rowsort
SELECT - 73 + - col0 + - col1 + + - col1 + + col0 * col2 AS col2 FROM tab2
----
2269
4068
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 71, col2 col1 FROM tab0
----
71
10
71
47
71
99

query II rowsort
SELECT DISTINCT 80, col0 AS col0 FROM tab2 cor0
----
80
46
80
64
80
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT DISTINCT COUNT( * ) * 14 + + 4 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT COUNT ( * ) * 14 + + 4 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5622
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5622
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col1 * - 77 - + col1 FROM tab2 AS cor0
----
-3978
-5226
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT DISTINCT - COUNT( 26 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT - COUNT ( 26 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 70 * + + col2 AS col2 FROM tab1 cor0
----
4130
4760
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT DISTINCT + MAX( DISTINCT - ( col1 ) ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5626
SELECT DISTINCT + MAX ( DISTINCT - ( col1 ) ) col1 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5627
SELECT col1 * + col2 - + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT col1 * + col2 - + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT - MIN( DISTINCT col1 ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5628
SELECT - MIN ( DISTINCT col1 ) col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col0 * + 10 * - col2 AS col0 FROM tab2 AS cor0
----
-10580
-25600
-43500

onlyif mysql # aggregate syntax: 
query II rowsort label-5630
SELECT ALL 85 col0, + MIN( + + 12 ) FROM tab2 AS cor0
----
85
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5630
SELECT ALL 85 col0, + MIN ( + + 12 ) FROM tab2 AS cor0
----
85
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT - 23 * - MAX( DISTINCT - col1 ) FROM tab2
----
-1173

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - 23 * - MAX ( DISTINCT - col1 ) FROM tab2
----
-1173

onlyif mysql # DIV for integer division: 
query II rowsort label-5633
SELECT col1 col1, col2 DIV + + col2 AS col1 FROM tab1
----
14
1
47
1
5
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5633
SELECT col1 col1, col2 / + + col2 AS col1 FROM tab1
----
14
1
47
1
5
1

query II rowsort
SELECT + 26 AS col1, 18 AS col2 FROM tab2 cor0
----
26
18
26
18
26
18

query II rowsort
SELECT - - 27, + col0 FROM tab0 AS cor0
----
27
15
27
87
27
97

query II rowsort
SELECT ALL - 14 + 53 AS col1, col0 FROM tab0 AS cor0
----
39
15
39
87
39
97

query I rowsort
SELECT DISTINCT + col1 + + col1 * + - 62 AS col0 FROM tab0 AS cor0
----
-1281
-4941
-61

query I rowsort
SELECT + + ( - col1 ) AS col0 FROM tab1 cor0
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 85 * + - 96 + + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5640
SELECT - - CAST( + 9 AS SIGNED ) AS col0 FROM tab0 cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-5640
SELECT - - CAST ( + 9 AS INTEGER ) AS col0 FROM tab0 cor0
----
9
9
9

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN col2 + + col1 + - 14 AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT DISTINCT + + COUNT( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT + + COUNT ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT + ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5643
SELECT + ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT 11 + + COUNT( * ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT 11 + + COUNT ( * ) FROM tab0
----
14

query I rowsort
SELECT 71 + col2 AS col2 FROM tab0
----
118
170
81

query I rowsort
SELECT col0 + + ( + - ( - col0 ) ) * col0 AS col2 FROM tab2
----
2162
4160
5700

query III rowsort
SELECT * FROM tab0 WHERE - 66 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 * + 49 - + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - ( 93 ) + - + ( + 51 ) FROM tab0 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5650
SELECT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-85
-68
-91
-96
-51

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col2 AND + 35 * - col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT DISTINCT 47 * - ( + ( + COUNT( * ) ) ) FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT 47 * - ( + ( + COUNT ( * ) ) ) FROM tab2 AS cor0
----
-141

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= + ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5655
SELECT DISTINCT - MIN( 40 ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
-40
-3

skipif mysql # not compatible
query II rowsort label-5655
SELECT DISTINCT - MIN ( 40 ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
-40
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL 16 * + COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL 16 * + COUNT ( * ) FROM tab2
----
48

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 12 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - + col1 * - - 59 * + 84 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5659
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - ( + 2 ) FROM tab0
----
-2
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT ALL col0 DIV - - col2 col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5661
SELECT ALL col0 / - - col2 col0 FROM tab0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT + MIN( DISTINCT 87 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-5662
SELECT + MIN ( DISTINCT 87 ) FROM tab0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5663
SELECT - 15 DIV + 38 * + 80 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT - 15 / + 38 * + 80 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + - 74 ) AS col1 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT DISTINCT + col2 * + col2 + ( + + col1 ) * - col0 AS col2 FROM tab0 AS cor0 WHERE ( - - ( ( col2 ) ) ) NOT BETWEEN NULL AND - ( 58 )
----
-1727
9704
994

query I rowsort
SELECT DISTINCT - col2 * - - 50 + + + 21 + + - col1 FROM tab0 AS cor0
----
-2410
-4930
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT DISTINCT + SUM( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT + SUM ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - - 66 * - col2 FROM tab2 AS cor0
----
-1518
-2640
-3828

query I rowsort
SELECT DISTINCT - - ( + 46 ) FROM tab0 AS cor0
----
46

query I rowsort
SELECT 6 * - + col2 + + col0 AS col2 FROM tab2 AS cor0
----
-176
-273
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5671
SELECT DISTINCT + + CAST( NULL AS SIGNED ) col2, col0 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5671
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) col2, col0 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5672
SELECT ALL - - col2 + 92 + + 80 + - + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5672
SELECT ALL - - col2 + 92 + + 80 + - + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - - ( col0 ) AS col0 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL + SUM( DISTINCT 71 ) + + MAX( DISTINCT + + 83 ) FROM tab0 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL + SUM ( DISTINCT 71 ) + + MAX ( DISTINCT + + 83 ) FROM tab0 AS cor0
----
154

query I rowsort
SELECT DISTINCT - - 81 + 97 FROM tab0 AS cor0
----
178

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5676
SELECT + CAST( NULL AS DECIMAL ) + - 78 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT + CAST ( NULL AS REAL ) + - 78 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - + 33 col0 FROM tab0 AS cor0
----
-23
14
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5678
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5678
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5679
SELECT COUNT( * ) AS col2, + 84 FROM tab0 AS cor0
----
3
84

skipif mysql # not compatible
query II rowsort label-5679
SELECT COUNT ( * ) AS col2, + 84 FROM tab0 AS cor0
----
3
84

query I rowsort
SELECT + ( + - col0 ) AS col1 FROM tab2 WHERE col2 * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col1 FROM tab2
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col2 col0 FROM tab1 WHERE ( + col2 IS NULL )
----

query I rowsort
SELECT ALL - ( - col0 ) AS col1 FROM tab0 WHERE + col1 NOT IN ( 5 )
----
15
87
97

query II rowsort
SELECT ALL col0 - 35 + - col0 AS col2, ( 91 ) FROM tab2
----
-35
91
-35
91
-35
91

query I rowsort
SELECT - - 28 - - + col2 * 6 AS col1 FROM tab2 AS cor0
----
166
268
376

query I rowsort
SELECT - + col1 - + col2 + + col0 FROM tab2 AS cor0
----
-28
-50
-53

query II rowsort
SELECT DISTINCT 83 AS col0, col0 FROM tab2
----
83
46
83
64
83
75

query I rowsort
SELECT DISTINCT + col1 - - 72 AS col2 FROM tab2 WHERE + - 54 <> - col1 * - 57
----
123
139
149

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT DISTINCT + COUNT( * ) * - 89 AS col1 FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT + COUNT ( * ) * - 89 AS col1 FROM tab1 AS cor0
----
-267

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - - col0 ) <> NULL
----

query II rowsort
SELECT - - col1 AS col0, - col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT + SUM( - - 68 ) AS col1 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-5692
SELECT + SUM ( - - 68 ) AS col1 FROM tab2 AS cor0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT + ( + - MAX( 69 ) ) * SUM( DISTINCT + 87 ) AS col1 FROM tab1 AS cor0
----
-6003

skipif mysql # not compatible
query I rowsort label-5693
SELECT + ( + - MAX ( 69 ) ) * SUM ( DISTINCT + 87 ) AS col1 FROM tab1 AS cor0
----
-6003

query I rowsort
SELECT - 86 * - col2 AS col1 FROM tab2 AS cor0
----
1978
3440
4988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5695
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT ALL - - COUNT( * ) * 40 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL - - COUNT ( * ) * 40 FROM tab0 AS cor0
----
120

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 6 IS NOT NULL )
----

query I rowsort
SELECT ALL - col0 * 85 FROM tab1 AS cor0
----
-4335
-7225
-7735

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT ALL - COUNT( * ) * + 56 AS col2 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL - COUNT ( * ) * + 56 AS col2 FROM tab1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT DISTINCT MIN( DISTINCT + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT MIN ( DISTINCT + col1 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5701
SELECT ALL - 40 / - ( - col2 ) + + 9 AS col0 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL - 40 / - ( - col2 ) + + 9 AS col0 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col2 FROM tab2
----
6
6
6

query I rowsort
SELECT ALL + col1 * 22 FROM tab0
----
1782
22
462

query I rowsort
SELECT ALL + 91 FROM tab0 WHERE - col1 = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT SUM( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5705
SELECT SUM ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 28 col0 FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT ALL COUNT( * ) + - 8 AS col2 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL COUNT ( * ) + - 8 AS col2 FROM tab2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5708
SELECT ( - - CAST( + 45 AS SIGNED ) ) * + + col0 FROM tab1
----
2295
3825
4095

skipif mysql # not compatible
query I rowsort label-5708
SELECT ( - - CAST ( + 45 AS INTEGER ) ) * + + col0 FROM tab1
----
2295
3825
4095

query I rowsort
SELECT DISTINCT ( + 9 ) * - col2 * + col0 FROM tab1
----
-44064
-45135
-55692

query II rowsort
SELECT 74 AS col0, col0 FROM tab1 cor0
----
74
51
74
85
74
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT DISTINCT - SUM( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT - SUM ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

query II rowsort
SELECT col0 AS col1, + 8 FROM tab2 AS cor0
----
46
8
64
8
75
8

query I rowsort
SELECT - ( 43 ) AS col2 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL + ( 41 ) FROM tab0 AS cor0
----
41
41
41

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * + 84 * - 97 + - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 - - + col0 * + ( + 93 ) + 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 46 + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1390
3242
341

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT 44 IS NULL AND ( NULL ) IS NULL
----
51
67
77

query I rowsort
SELECT col1 * + col0 + - col0 AS col0 FROM tab0
----
0
1200
1740

query I rowsort
SELECT DISTINCT col1 * col0 + + ( - col1 ) + ( + col2 ) FROM tab2
----
2318
4891
5016

onlyif mysql # DIV for integer division: 
query II rowsort label-5721
SELECT 42 * + col2 * + col0 + - + col1 AS col2, - col1 DIV - col1 col0 FROM tab0
----
29529
1
36519
1
403325
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5721
SELECT 42 * + col2 * + col0 + - + col1 AS col2, - col1 / - col1 col0 FROM tab0
----
29529
1
36519
1
403325
1

query II rowsort
SELECT - col0 + - 55, col0 AS col1 FROM tab1
----
-106
51
-140
85
-146
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5723
SELECT ALL 52 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL 52 / - col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5724
SELECT DISTINCT - col1 AS col1, - CAST( - 32 AS SIGNED ) AS col1 FROM tab1 cor0
----
-14
32
-47
32
-5
32

skipif mysql # not compatible
query II rowsort label-5724
SELECT DISTINCT - col1 AS col1, - CAST ( - 32 AS INTEGER ) AS col1 FROM tab1 cor0
----
-14
32
-47
32
-5
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT DISTINCT CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5725
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 60 * + col0 + 88 NOT BETWEEN NULL AND ( - col0 )
----

query II rowsort
SELECT 37, + 11 AS col1 FROM tab0 AS cor0
----
37
11
37
11
37
11

query I rowsort
SELECT DISTINCT ( + col1 ) * ( 65 ) * + - col2 * + 8 + + 98 AS col2 FROM tab2 AS cor0
----
-1601502
-2020622
-609862

query I rowsort
SELECT DISTINCT col2 - - 61 * col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
1426
2480
3596

onlyif mysql # DIV for integer division: 
query I rowsort label-5730
SELECT col0 DIV + ( - col2 ) col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5730
SELECT col0 / + ( - col2 ) col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ALL - col0 * + col1 + + 79 FROM tab2 cor0
----
-2267
-4849
-4946

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + + 62 > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT ALL 80 * COUNT( DISTINCT + 47 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL 80 * COUNT ( DISTINCT + 47 ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT ALL col2 * + + ( - + col1 ) FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5735
SELECT ( - - CAST( + col2 AS SIGNED ) ) DIV + col0 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5735
SELECT ( - - CAST ( + col2 AS INTEGER ) ) / + col0 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT 89 FROM tab1, tab0 cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT - COUNT( * ) + + + 75 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-5737
SELECT - COUNT ( * ) + + + 75 FROM tab1
----
72

query II rowsort
SELECT + col2 AS col1, - col2 + + + col2 FROM tab0
----
10
0
47
0
99
0

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - + 98 * col1 * + 51 ) AND NULL
----

query I rowsort
SELECT ALL + col2 * 2 AS col1 FROM tab2
----
116
46
80

query I rowsort
SELECT ALL col2 + col2 AS col0 FROM tab2 WHERE - - 95 * - 26 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 / ( 90 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT DISTINCT + COUNT( * ) * + 91 col0 FROM tab0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5743
SELECT DISTINCT + COUNT ( * ) * + 91 col0 FROM tab0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT DISTINCT - 44 / MIN( - 29 ) AS col1 FROM tab0 WHERE NOT + col0 + - col1 > - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT - 44 / MIN ( - 29 ) AS col1 FROM tab0 WHERE NOT + col0 + - col1 > - 79
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + 15 FROM tab2 WHERE NOT NULL >= - ( col1 )
----

query I rowsort
SELECT + 4 + col0 AS col1 FROM tab1
----
55
89
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT + SUM( DISTINCT 19 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-5747
SELECT + SUM ( DISTINCT 19 ) FROM tab0
----
19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * - 47 + - col2 ) IS NULL
----

query I rowsort
SELECT col2 * 71 AS col0 FROM tab2
----
1633
2840
4118

query I rowsort
SELECT DISTINCT 49 - 62 AS col1 FROM tab1
----
-13

query I rowsort
SELECT + col1 * + 99 AS col1 FROM tab0
----
2079
8019
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5752
SELECT ALL + col1 col0 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) BETWEEN - col1 AND ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5752
SELECT ALL + col1 col0 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN - col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT ALL 39 + - ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL 39 + - ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col2 + + 88 * 97 FROM tab1
----
-680
3912
5055

query I rowsort
SELECT ALL ( 79 ) FROM tab2
----
79
79
79

query I rowsort
SELECT ( 66 ) * - 63 FROM tab0
----
-4158
-4158
-4158

query III rowsort
SELECT * FROM tab2 WHERE NOT + 52 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT - ( - col1 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5758
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT - ( - col1 ) = NULL
----
0

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT 76 <> + 44 * col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT DISTINCT ( COUNT( * ) ) + COUNT( * ) col1 FROM tab0 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5760
SELECT DISTINCT ( COUNT ( * ) ) + COUNT ( * ) col1 FROM tab0 WHERE NULL IS NULL
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5761
SELECT DISTINCT col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT col1 * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * col2 NOT IN ( 30 * + 25 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT ALL 32 DIV - col1 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL 32 / - col1 FROM tab1
----
-2
-6
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 93 < col2
----

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL - 12 * - COUNT( * ) - 40 FROM tab2 WHERE NOT ( NULL ) > ( NULL )
----
-40

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL - 12 * - COUNT ( * ) - 40 FROM tab2 WHERE NOT ( NULL ) > ( NULL )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-5767
SELECT DISTINCT 22 DIV - col2 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT 22 / - col2 FROM tab0
----
-2
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 > ( NULL )
----

query I rowsort
SELECT - ( 26 ) + - 67 FROM tab0
----
-93
-93
-93

query I rowsort
SELECT col2 + 32 * col1 FROM tab2
----
1655
2202
2504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5771
SELECT DISTINCT + col0 + + col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT + col0 + + col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT 95 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5772
SELECT 95 / col2 FROM tab1
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5773
SELECT DISTINCT - col0 DIV 80 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT - col0 / 80 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT CAST( col2 AS SIGNED ) * + col1 AS col1 FROM tab2 WHERE col2 IN ( 72 * - col1 )
----

skipif mysql # not compatible
query I rowsort label-5775
SELECT CAST ( col2 AS INTEGER ) * + col1 AS col1 FROM tab2 WHERE col2 IN ( 72 * - col1 )
----

query I rowsort
SELECT 0 AS col0 FROM tab2 AS cor0 WHERE NOT + 71 NOT BETWEEN 98 / + 14 AND - col2
----

query I rowsort
SELECT 40 * col2 AS col0 FROM tab1 AS cor0
----
2360
2720
3840

query I rowsort
SELECT ( + 3 ) * - 39 FROM tab1 AS cor0
----
-117
-117
-117

query I rowsort
SELECT DISTINCT - 29 FROM tab0 cor0 WHERE NOT ( 63 * col2 ) = NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT 37 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL - SUM( ALL 24 ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL - SUM ( ALL 24 ) FROM tab2 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5782
SELECT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT 48 * COUNT( DISTINCT col1 ) AS col1 FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-5783
SELECT 48 * COUNT ( DISTINCT col1 ) AS col1 FROM tab0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT + 72 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
648

skipif mysql # not compatible
query I rowsort label-5784
SELECT + 72 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
648

query I rowsort
SELECT 73 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5786
SELECT ALL + COUNT( - 0 ) AS col2 FROM tab2 AS cor0 INNER JOIN tab0 ON 46 + CAST( NULL AS SIGNED ) <= ( + 31 )
----
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL + COUNT ( - 0 ) AS col2 FROM tab2 AS cor0 INNER JOIN tab0 ON 46 + CAST ( NULL AS INTEGER ) <= ( + 31 )
----
0

query I rowsort
SELECT + 61 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT + col2 * 6 FROM tab0
----
282
594
60

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5790
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - col1 BETWEEN ( col0 ) AND col1
----

skipif mysql # not compatible
query III rowsort label-5790
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - col1 BETWEEN ( col0 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5791
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * + col0 NOT IN ( CAST( NULL AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query III rowsort label-5791
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * + col0 NOT IN ( CAST ( NULL AS INTEGER ) + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5792
SELECT - + CAST( SUM( DISTINCT - col2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5792
SELECT - + CAST ( SUM ( DISTINCT - col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL - col1 * - ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT - COUNT( * ) - + 24 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
-24

skipif mysql # not compatible
query I rowsort label-5794
SELECT - COUNT ( * ) - + 24 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
-24

query I rowsort
SELECT DISTINCT col0 + + col2 FROM tab0 cor0 WHERE NULL BETWEEN col0 AND ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 >= 57 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 87 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 * - 5 FROM tab2 cor0
----
-230
-320
-375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5799
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT - 50 / ( - CAST( ( + col0 ) AS SIGNED ) ) IN ( col0 * 56 )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT - 50 / ( - CAST ( ( + col0 ) AS INTEGER ) ) IN ( col0 * 56 )
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col0 + col0 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 ) IS NULL OR - col0 * + col0 NOT IN ( - 99 * - 93 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5802
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN - 99 / + CAST( NULL AS SIGNED ) AND + 82
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-5802
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN - 99 / + CAST ( NULL AS INTEGER ) AND + 82
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL MAX( DISTINCT + - 52 ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL MAX ( DISTINCT + - 52 ) FROM tab2
----
-52

query I rowsort
SELECT ALL ( - col0 ) * 51 AS col1 FROM tab1
----
-2601
-4335
-4641

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT DISTINCT MAX( DISTINCT col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT MAX ( DISTINCT col1 ) AS col0 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5806
SELECT ALL - CAST( NULL AS SIGNED ) * col1 - + ( 70 + col0 ) AS col1 FROM tab1 WHERE NOT col0 * ( + 5 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 - + ( 70 + col0 ) AS col1 FROM tab1 WHERE NOT col0 * ( + 5 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5807
SELECT CAST( - - col2 AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5807
SELECT CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE 65 + 47 * col1 IS NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab2 WHERE col1 + 57 IS NOT NULL
----
58

query I rowsort
SELECT col0 + + 68 FROM tab1
----
119
153
159

query I rowsort
SELECT DISTINCT - - col1 + + col1 + - col0 * 15 AS col1 FROM tab0 AS cor0
----
-1263
-1453
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT - 6 + COUNT( * ) + + SUM( ALL col0 ) AS col1 FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-5813
SELECT - 6 + COUNT ( * ) + + SUM ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) + 54 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) + 54 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5815
SELECT DISTINCT + + MIN( - CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5815
SELECT DISTINCT + + MIN ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 4 < 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT - SUM( ALL 30 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-270

skipif mysql # not compatible
query I rowsort label-5817
SELECT - SUM ( ALL 30 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5818
SELECT ALL COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( col2 ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5820
SELECT + + col2 - + col1 DIV - 73 + + 98 col0 FROM tab1 cor0
----
157
166
194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5820
SELECT + + col2 - + col1 / - 73 + + 98 col0 FROM tab1 cor0
----
157
166
194

query I rowsort
SELECT ALL - + col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col2 - + col1 * - col1 + - col2 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 40 / col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT - ( - ( + col0 ) ) - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT - ( - ( + col0 ) ) - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 = - 20 * + col1 - 64
----

query I rowsort
SELECT ALL - col2 + + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT - COUNT( * ) * - + COUNT( * ) + 39 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-5827
SELECT - COUNT ( * ) * - + COUNT ( * ) + 39 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL - COUNT( * ) * - + 37 + - + COUNT( * ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL - COUNT ( * ) * - + 37 + - + COUNT ( * ) FROM tab2
----
108

query I rowsort
SELECT ALL col2 - - ( - col2 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 61 * col1 FROM tab1 WHERE ( + - ( - 49 ) - col1 ) IS NOT NULL
----
2867
305
854

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT ALL - MAX( DISTINCT - - col1 ) * - 95 AS col0 FROM tab1
----
4465

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL - MAX ( DISTINCT - - col1 ) * - 95 AS col0 FROM tab1
----
4465

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT MAX( col1 ) FROM tab2 WHERE NOT + - col1 / + + 61 <> 26 - col1 * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT MAX ( col1 ) FROM tab2 WHERE NOT + - col1 / + + 61 <> 26 - col1 * - col2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + 96 / + 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT - COUNT( * ) * - + 43 * - - SUM( DISTINCT - col2 ) AS col2 FROM tab2
----
-15609

skipif mysql # not compatible
query I rowsort label-5834
SELECT - COUNT ( * ) * - + 43 * - - SUM ( DISTINCT - col2 ) AS col2 FROM tab2
----
-15609

onlyif mysql # aggregate syntax: 
query II rowsort label-5835
SELECT ( - 90 ), COUNT( * ) col2 FROM tab2
----
-90
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5835
SELECT ( - 90 ), COUNT ( * ) col2 FROM tab2
----
-90
3

query I rowsort
SELECT col1 - + 27 + 22 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
0
42
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL - 48 * COUNT( * ) AS col1 FROM tab2 WHERE NOT ( - 47 * - 39 ) BETWEEN ( NULL ) AND - col1
----
-144

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL - 48 * COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( - 47 * - 39 ) BETWEEN ( NULL ) AND - col1
----
-144

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT - 76 IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - 5 AS col2 FROM tab0 WHERE NOT col1 NOT BETWEEN ( col2 + + col1 ) AND 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5840
SELECT 71 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT 71 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 97 AS col0 FROM tab2 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL MAX( DISTINCT + col1 ) * - COUNT( * ) * + + 80 col1 FROM tab0 AS cor0
----
-19440

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5842
SELECT ALL MAX ( DISTINCT + col1 ) * - COUNT ( * ) * + + 80 col1 FROM tab0 AS cor0
----
-19440

query I rowsort
SELECT col0 * + 68 FROM tab0
----
1020
5916
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT ALL SUM( DISTINCT col1 ) col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5844
SELECT ALL SUM ( DISTINCT col1 ) col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT col2 + 15 FROM tab1 AS cor0
----
111
74
83

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT - ( 65 ) <> NULL
----

query I rowsort
SELECT + col1 + col2 + 91 AS col2 FROM tab1 AS cor0
----
155
201
206

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 + - - col0 - 6 + - col0 ) BETWEEN - col1 * col0 AND ( 49 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + + ( col0 ) + col2 AS col2 FROM tab2 AS cor0
----
120
181
200

query II rowsort
SELECT DISTINCT + - col1, + col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT 82 + - + col2 FROM tab1 cor0
----
-14
14
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5852
SELECT ALL 30 * + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL 30 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + 26 AS col0, - col2 FROM tab2
----
26
-23
26
-40
26
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - - 82 ) IS NULL
----

query II rowsort
SELECT DISTINCT ( + 85 ) AS col1, - col0 - + col2 FROM tab1
----
85
-144
85
-147
85
-159

query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab0 WHERE NOT - col1 * 85 + - col1 * - - 49 + col2 IS NULL
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT ALL + ( + 52 ) * + MAX( + col1 ) FROM tab1 AS cor0
----
2444

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL + ( + 52 ) * + MAX ( + col1 ) FROM tab1 AS cor0
----
2444

query I rowsort
SELECT DISTINCT + 47 + + col1 AS col2 FROM tab2 AS cor0
----
114
124
98

query I rowsort
SELECT + ( 57 ) * + col0 AS col1 FROM tab0 AS cor0 WHERE col2 * 36 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT 2 - - 1 * ( ( - 38 ) ) + col2 + - col2 DIV col2 FROM tab0 AS cor0
----
-27
10
62

skipif mysql # not compatible
query I rowsort label-5860
SELECT 2 - - 1 * ( ( - 38 ) ) + col2 + - col2 / col2 FROM tab0 AS cor0
----
-27
10
62

query I rowsort
SELECT ALL col0 + + 98 + - 20 FROM tab2 AS cor0
----
124
142
153

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL 51 + - MIN( + 75 ) AS col1 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL 51 + - MIN ( + 75 ) AS col1 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT DISTINCT + 45 + - 22 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5864
SELECT - col2 AS col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5864
SELECT - col2 AS col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 WHERE + ( + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5866
SELECT + ( - 33 ) * - - COUNT( * ) DIV + + COUNT( * ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5866
SELECT + ( - 33 ) * - - COUNT ( * ) / + + COUNT ( * ) FROM tab1 AS cor0
----
-33

query I rowsort
SELECT + + 90 AS col1 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT DISTINCT + col2 * 13 FROM tab0 AS cor0
----
1287
130
611

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - - col1 + + - col1 * - 96 + - col1 IS NOT NULL )
----

query I rowsort
SELECT ( + - col0 ) + - - 32 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 * 44 <= ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 61 AS col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5873
SELECT ALL - 92 * col2 DIV - + ( + col0 ) col0 FROM tab1
----
173
63
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5873
SELECT ALL - 92 * col2 / - + ( + col0 ) col0 FROM tab1
----
173
63
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5874
SELECT - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 NOT IN ( + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT ALL - ( COUNT( * ) ) * + SUM( - + 69 ) * + COUNT( * ) * 66 AS col0 FROM tab2
----
122958

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL - ( COUNT ( * ) ) * + SUM ( - + 69 ) * + COUNT ( * ) * 66 AS col0 FROM tab2
----
122958

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT DISTINCT SUM( - 16 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT SUM ( - 16 ) FROM tab0
----
-48

query I rowsort
SELECT - col2 * + col2 * - + ( + + col0 ) AS col2 FROM tab1 AS cor0
----
295885
420784
470016

onlyif mysql # DIV for integer division: 
query I rowsort label-5878
SELECT ALL - col2 DIV - 25 FROM tab1 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - col2 / - 25 FROM tab1 AS cor0
----
2
2
3

query I rowsort
SELECT + ( + 78 ) AS col1 FROM tab2
----
78
78
78

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL <= - 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT - MAX( ALL + - 7 ) AS col1 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-5882
SELECT - MAX ( ALL + - 7 ) AS col1 FROM tab0
----
7

query I rowsort
SELECT ALL - 39 * + + 61 AS col0 FROM tab0 AS cor0
----
-2379
-2379
-2379

onlyif mysql # DIV for integer division: 
query I rowsort label-5884
SELECT - 3 DIV + - col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5884
SELECT - 3 / + - col1 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT DISTINCT + + col2 + - CAST( NULL AS SIGNED ) - - + col2 * - col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT + + col2 + - CAST ( NULL AS INTEGER ) - - + col2 * - col1 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5887
SELECT - ( + ( + CAST( - - COUNT( * ) AS SIGNED ) ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5887
SELECT - ( + ( + CAST ( - - COUNT ( * ) AS INTEGER ) ) ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5888
SELECT ALL + - SUM( ALL + ( CAST( - - col0 AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL + - SUM ( ALL + ( CAST ( - - col0 AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL - col2 + - 81 FROM tab0 AS cor0
----
-128
-180
-91

query I rowsort
SELECT DISTINCT - col0 + + - col0 * - col0 AS col1 FROM tab0 AS cor0
----
210
7482
9312

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col1 ) + - 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT DISTINCT MAX( col1 ) + - COUNT( * ) * + - 8 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT MAX ( col1 ) + - COUNT ( * ) * + - 8 FROM tab2
----
101

query II rowsort
SELECT ALL col0, + ( - - col0 ) * - - col1 * - col1 FROM tab1
----
51
-9996
85
-2125
91
-201019

query III rowsort
SELECT * FROM tab0 WHERE - col2 - + + 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + col2 ) + - + 72 * - - 61 * col2 + col2 FROM tab1
----
-259010
-298520
-421440

query I rowsort
SELECT - col0 + - 41 AS col0 FROM tab0
----
-128
-138
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT col2 * - - col1 + + col2 + col0 * - + CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
3312
7216
9569

skipif mysql # not compatible
query I rowsort label-5897
SELECT col2 * - - col1 + + col2 + col0 * - + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
3312
7216
9569

query I rowsort
SELECT + + 75 + col2 FROM tab0 cor0
----
122
174
85

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 + col1 ) BETWEEN col2 AND - 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col2 * + 38 - - + CAST( NULL AS SIGNED ) - - - 12, + col1 / - col1 )
----

skipif mysql # not compatible
query I rowsort label-5900
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col2 * + 38 - - + CAST ( NULL AS INTEGER ) - - - 12, + col1 / - col1 )
----

query I rowsort
SELECT DISTINCT col0 - + 9 AS col1 FROM tab1
----
42
76
82

query I rowsort
SELECT DISTINCT + - 37 - - + col0 FROM tab0 AS cor0
----
-22
50
60

query II rowsort
SELECT DISTINCT + col2, + col0 * + col1 * - col0 AS col1 FROM tab1 AS cor0
----
59
-36125
68
-389207
96
-36414

query I rowsort
SELECT DISTINCT ( - - col1 ) FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5907
SELECT + + 48 DIV + - col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5907
SELECT + + 48 / + - col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5908
SELECT * FROM tab2 WHERE NOT ( - col0 ) + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5908
SELECT * FROM tab2 WHERE NOT ( - col0 ) + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - 54 ) * + col1 AS col0 FROM tab0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-5910
SELECT ALL + COUNT( + col1 ) AS col0, COUNT( - col1 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5910
SELECT ALL + COUNT ( + col1 ) AS col0, COUNT ( - col1 ) FROM tab2
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT + 51 DIV - 36 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5911
SELECT + 51 / - 36 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - 17 FROM tab2 WHERE NOT NULL >= + + col0 / + - 2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT + MIN( ALL + - 19 ) AS col0 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-5914
SELECT + MIN ( ALL + - 19 ) AS col0 FROM tab1
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5915
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) BETWEEN ( - 70 + + col2 + + col2 + + 34 * col2 + - - 25 * CAST( ( - 15 ) AS DECIMAL ) / + col0 ) AND - ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-5915
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) BETWEEN ( - 70 + + col2 + + col2 + + 34 * col2 + - - 25 * CAST ( ( - 15 ) AS REAL ) / + col0 ) AND - ( col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5916
SELECT + + col1 * col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
56
59
92

skipif mysql # not compatible
query I rowsort label-5916
SELECT + + col1 * col1 / + col0 AS col1 FROM tab2 AS cor0
----
56
59
92

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 * - 68 NOT IN ( - - 83, - 87 - + col0 )
----

query I rowsort
SELECT ALL + 4 AS col1 FROM tab2 WHERE NOT 11 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * + col0 + + + ( + 75 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5920
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5920
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( + - 80 * + col2 * + col2 * - col2 + - col0 - col2 - 53 * + col0 + - 21 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 60 + + 68 + + - 20 IS NULL
----

query I rowsort
SELECT + 88 FROM tab1 AS cor0 WHERE NULL IS NULL
----
88
88
88

query II rowsort
SELECT DISTINCT col0 + + - col0 AS col0, - col0 * + col0 AS col0 FROM tab0
----
0
-225
0
-7569
0
-9409

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - + 25 ) NOT IN ( - 16 + + 93 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + - col2 ) * + col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL + ( + + col1 ) FROM tab0 WHERE NOT - 24 > - col2 * - col2 + + col0 * + 26
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5928
SELECT DISTINCT SUM( - + col2 ) * - 59 + + SUM( + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT SUM ( - + col2 ) * - 59 + + SUM ( + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + col2 + + + 49 AS col0 FROM tab0 AS cor0
----
148
59
96

query I rowsort
SELECT ( - col2 ) - + 14 FROM tab0 AS cor0
----
-113
-24
-61

query I rowsort
SELECT ALL - 30 + + col1 AS col2 FROM tab0 AS cor0
----
-29
-9
51

query I rowsort
SELECT + - 14 * - - col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1197
-129
-1357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5933
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col0 * + + 99 / + col2 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5933
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col0 * + + 99 / + col2 IS NULL
----
51
85
91

query II rowsort
SELECT DISTINCT col2, + ( 98 ) AS col1 FROM tab2 WHERE + + 77 + + - col2 < + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + - 91 FROM tab2 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + - 91 FROM tab2 cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT + ( + - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5936
SELECT + ( + - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( - + ( + - col0 ) ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL 48 + + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 * + + col2, + col1 )
----
48

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL 48 + + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 * + + col2, + col1 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5939
SELECT ALL MIN( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL MIN ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 65 AS col1 FROM tab0 AS cor0
----
-65
-65
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT - + col2 DIV - + 13 FROM tab1 AS cor0
----
4
5
7

skipif mysql # not compatible
query I rowsort label-5941
SELECT - + col2 / - + 13 FROM tab1 AS cor0
----
4
5
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT + - COUNT( * ) FROM tab1 WHERE + - ( - - col0 ) * + + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT + - COUNT ( * ) FROM tab1 WHERE + - ( - - col0 ) * + + col1 IS NOT NULL
----
-3

query I rowsort
SELECT + ( 42 ) AS col0 FROM tab1
----
42
42
42

query II rowsort
SELECT ALL - 43, - 43 AS col2 FROM tab1
----
-43
-43
-43
-43
-43
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5945
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-5945
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) FROM tab0
----
NULL
-3

query I rowsort
SELECT ALL + ( - 21 ) AS col0 FROM tab0
----
-21
-21
-21

query I rowsort
SELECT - 72 AS col1 FROM tab1 WHERE NOT - col0 * - col0 - + + 51 BETWEEN col0 AND col1
----
-72
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5948
SELECT CAST( NULL AS SIGNED ) AS col1, - col2 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-5948
SELECT CAST ( NULL AS INTEGER ) AS col1, - col2 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5949
SELECT DISTINCT - 73 AS col2, ( + + COUNT( * ) ) AS col1 FROM tab1
----
-73
3

skipif mysql # not compatible
query II rowsort label-5949
SELECT DISTINCT - 73 AS col2, ( + + COUNT ( * ) ) AS col1 FROM tab1
----
-73
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT MIN( 32 ) AS col1 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-5950
SELECT MIN ( 32 ) AS col1 FROM tab2
----
32

query I rowsort
SELECT DISTINCT col0 * 54 + - col2 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT + col0 * 35 FROM tab0 cor0
----
3045
3395
525

query I rowsort
SELECT ALL + col1 - + - 17 + - - ( - col0 ) AS col0 FROM tab2 cor0 WHERE 85 >= col0
----
22
30
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5954
SELECT + + MAX( 25 ) * + - MAX( + ( + - CAST( NULL AS SIGNED ) ) ) * - 29 + + 62 / - + 82 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT + + MAX ( 25 ) * + - MAX ( + ( + - CAST ( NULL AS INTEGER ) ) ) * - 29 + + 62 / - + 82 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 46 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT - ( - MIN( ALL + 66 ) ) AS col1 FROM tab1 WHERE col2 <> - col0
----
66

skipif mysql # not compatible
query I rowsort label-5956
SELECT - ( - MIN ( ALL + 66 ) ) AS col1 FROM tab1 WHERE col2 <> - col0
----
66

query I rowsort
SELECT ALL - 22 * - + 27 AS col1 FROM tab1 AS cor0
----
594
594
594

query I rowsort
SELECT + + ( + 58 ) FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT ALL col2 * col0 + + - 97 FROM tab0 cor0
----
608
773
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5960
SELECT DISTINCT - CAST( AVG ( - col2 ) AS SIGNED ) + + + 13 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT - CAST ( AVG ( - col2 ) AS INTEGER ) + + + 13 FROM tab0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5961
SELECT ALL + - 15 AS col0, COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-15
3

skipif mysql # not compatible
query II rowsort label-5961
SELECT ALL + - 15 AS col0, COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-15
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT ALL + col2 * - 79 * + 73 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL + col2 * - 79 * + 73 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + + 50 * - + col1, col2 * + + 40 * - 9 col1 FROM tab0
----
-1029
-3600
-3969
-16920
-49
-35640

query I rowsort
SELECT col1 + ( + col2 ) AS col0 FROM tab1 cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0, - col2 col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT DISTINCT MIN( DISTINCT - + col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT MIN ( DISTINCT - + col0 ) FROM tab0 cor0
----
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col2 AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5968
SELECT DISTINCT - - COUNT( * ) DIV 19 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT - - COUNT ( * ) / 19 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5969
SELECT DISTINCT - 17 DIV - 57 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT - 17 / - 57 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 83 * + - 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT 53 * COUNT( * ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-5973
SELECT 53 * COUNT ( * ) FROM tab0
----
159

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT col2 * - ( - 57 ), col2 FROM tab1
----
3363
59
3876
68
5472
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT COUNT( * ) * - 11 AS col0 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-5976
SELECT COUNT ( * ) * - 11 AS col0 FROM tab0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT DISTINCT MIN( + 84 ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT MIN ( + 84 ) AS col0 FROM tab0
----
84

query II rowsort
SELECT + col2 AS col0, + col0 * col2 AS col1 FROM tab1
----
59
5015
68
6188
96
4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT + - col0 * - col2 * 39 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT - 31 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT + - col0 * - col2 * 39 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT - 31 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 7 + col2 AS col0 FROM tab0 AS cor0
----
106
17
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT - MAX( - - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5981
SELECT - MAX ( - - col2 ) FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT + ( - + ( - - MAX( + col0 ) ) ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5982
SELECT + ( - + ( - - MAX ( + col0 ) ) ) FROM tab0 cor0
----
-97

query I rowsort
SELECT ALL col0 * 63 + - - 19 FROM tab0 AS cor0
----
5500
6130
964

onlyif mysql # aggregate syntax: 
query II rowsort label-5984
SELECT ALL + MAX( + - 41 ) AS col2, 49 AS col2 FROM tab2 AS cor0 WHERE col1 IN ( + + col1 )
----
-41
49

skipif mysql # not compatible
query II rowsort label-5984
SELECT ALL + MAX ( + - 41 ) AS col2, 49 AS col2 FROM tab2 AS cor0 WHERE col1 IN ( + + col1 )
----
-41
49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 <> - - 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5986
SELECT CAST( NULL AS SIGNED ) * + - col1 col2, - 30 FROM tab2
----
NULL
-30
NULL
-30
NULL
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5986
SELECT CAST ( NULL AS INTEGER ) * + - col1 col2, - 30 FROM tab2
----
NULL
-30
NULL
-30
NULL
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5987
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----
0

query I rowsort
SELECT ALL + 30 FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL ) OR NOT ( + 28 ) = - + col0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT DISTINCT + 73 * col1 DIV - col1 + + col0 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1273
-1813
-73

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT + 73 * col1 / - col1 + + col0 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1273
-1813
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5990
SELECT DISTINCT + - col0 + + + CAST( NULL AS SIGNED ) * - + col0 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5990
SELECT DISTINCT + - col0 + + + CAST ( NULL AS INTEGER ) * - + col0 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 35 * - col2 + + - 86 FROM tab0 AS cor0
----
-1731
-3551
-436

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 19 * + - 91 IS NULL
----

query II rowsort
SELECT 45 AS col0, - col2 + + - ( col1 ) FROM tab1 AS cor0
----
45
-110
45
-115
45
-64

query I rowsort
SELECT 18 * - - col2 FROM tab0
----
1782
180
846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT DISTINCT + col1 - - col2 + - - CAST( - 21 AS SIGNED ) FROM tab2
----
104
53
96

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT + col1 - - col2 + - - CAST ( - 21 AS INTEGER ) FROM tab2
----
104
53
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5997
SELECT * FROM tab1 WHERE NULL = + col1 * + + ( + - 60 ) * + 16 - CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5997
SELECT * FROM tab1 WHERE NULL = + col1 * + + ( + - 60 ) * + 16 - CAST ( + - col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT DISTINCT 29 + MIN( - col2 ) AS col1 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT 29 + MIN ( - col2 ) AS col1 FROM tab2
----
-29

query I rowsort
SELECT 16 - col2 + - col0 * + + col2 AS col2 FROM tab0
----
-736
-864
-9686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT ( col1 ) - + - col0 + - CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT ( col1 ) - + - col0 + - CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 48 * - col2 - - - col0 * col1 FROM tab2
----
-3450
-6848
-7809

query II rowsort
SELECT ALL - + ( + col2 ) AS col0, + col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT - COUNT( * ) * + - 16 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6003
SELECT - COUNT ( * ) * + - 16 FROM tab1 AS cor0
----
48

query I rowsort
SELECT - 56 * - col2 AS col1 FROM tab1 AS cor0
----
3304
3808
5376

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 / - col1 <= + 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 43 ) col2 FROM tab1 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT + COUNT( DISTINCT - - 96 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6008
SELECT + COUNT ( DISTINCT - - 96 ) AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT 14 AS col2, 69 - + col0 AS col2 FROM tab1 AS cor0
----
14
-16
14
-22
14
18

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 30 - + - col2 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - 24 * + col2 * + col0 - - col1 FROM tab1 AS cor0
----
10098863
11280398
7101245

onlyif mysql # aggregate syntax: 
query II rowsort label-6013
SELECT 16 AS col1, SUM( - + col1 ) FROM tab2 AS cor0
----
16
-195

skipif mysql # not compatible
query II rowsort label-6013
SELECT 16 AS col1, SUM ( - + col1 ) FROM tab2 AS cor0
----
16
-195

query I rowsort
SELECT DISTINCT + 57 * + 88 + 79 AS col1 FROM tab2 AS cor0
----
5095

query I rowsort
SELECT DISTINCT 2 * + 59 FROM tab1
----
118

query I rowsort
SELECT 1 / - 17 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6017
SELECT MIN( DISTINCT - col2 ) DIV COUNT( * ) AS col2 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-6017
SELECT MIN ( DISTINCT - col2 ) / COUNT ( * ) AS col2 FROM tab1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT + - COUNT( * ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6018
SELECT + - COUNT ( * ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT + 72 + + COUNT( * ) + - MIN( ALL col0 ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-6019
SELECT + 72 + + COUNT ( * ) + - MIN ( ALL col0 ) FROM tab0 AS cor0
----
60

query I rowsort
SELECT DISTINCT + - 2 + + 39 * - 22 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6022
SELECT SUM( ALL CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) / - 38 / + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT SUM ( ALL CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) / - 38 / + COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + col1 + col1 * - 67 * + 8 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) BETWEEN ( NULL ) AND col0 * - + 29
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT + ( 91 ) BETWEEN - + 18 / + col0 / - + col1 AND col0 * + 73
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND 91 * + col2 * - - col1
----

query III rowsort
SELECT * FROM tab2 WHERE - + 87 * + 1 IS NULL
----

query I rowsort
SELECT ALL col0 - + 56 + + 62 + + col1 AS col2 FROM tab0
----
102
104
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT - 81 + + + SUM( + 16 ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-6029
SELECT - 81 + + + SUM ( + 16 ) FROM tab2
----
-33

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > ( + - col2 )
----

query I rowsort
SELECT col0 + 61 FROM tab2
----
107
125
136

query I rowsort
SELECT DISTINCT col2 - + + col2 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT + COUNT( * ) FROM tab1 WHERE - - col1 * col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6033
SELECT + COUNT ( * ) FROM tab1 WHERE - - col1 * col0 IS NOT NULL
----
3

query II rowsort
SELECT 36 * + - ( - + col2 ) * - col2, col2 AS col1 FROM tab1
----
-125316
59
-166464
68
-331776
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( col2 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-6035
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT + + MAX( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6036
SELECT + + MAX ( DISTINCT - + col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 45 col2 FROM tab1 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6038
SELECT - CAST( - - COUNT( * ) AS SIGNED ) + + 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
37

skipif mysql # not compatible
query I rowsort label-6038
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) + + 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
37

query I rowsort
SELECT ALL + 33 FROM tab1 WHERE NOT + 60 IS NULL
----
33
33
33

query I rowsort
SELECT col0 + + col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT ALL + + SUM( ALL - 6 ) * + 14 + 65 AS col2 FROM tab2 cor0
----
-187

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL + + SUM ( ALL - 6 ) * + 14 + 65 AS col2 FROM tab2 cor0
----
-187

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6043
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - + CAST( NULL AS SIGNED ) NOT BETWEEN - + ( - - col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6043
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - + CAST ( NULL AS INTEGER ) NOT BETWEEN - + ( - - col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT DISTINCT - + col1 + col0 * CAST( + col2 AS SIGNED ) AS col1 FROM tab1 cor0
----
4882
5010
6141

skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT - + col1 + col0 * CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 cor0
----
4882
5010
6141

query II rowsort
SELECT ALL ( ( col0 ) ), - ( + col1 ) FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 * + col1 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6047
SELECT ALL + 0 DIV - ( + - col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + 0 / - ( + - col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT ALL + 59 DIV + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL + 59 / + col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT DISTINCT + COUNT( * ) * + 46 AS col0 FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT + COUNT ( * ) * + 46 AS col0 FROM tab0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT DISTINCT + 3 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT + 3 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + 96 + - col1 + + + col1 AS col2 FROM tab2 AS cor0
----
4416
6144
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT + + COUNT( * ) + + - ( - - COUNT( * ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6052
SELECT + + COUNT ( * ) + + - ( - - COUNT ( * ) ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT 21 + + COUNT( * ) + COUNT( * ) * - 71 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-6053
SELECT 21 + + COUNT ( * ) + COUNT ( * ) * - 71 FROM tab2
----
-189

query I rowsort
SELECT ALL - + 82 AS col1 FROM tab2 AS cor0
----
-82
-82
-82

query II rowsort
SELECT ALL 86 * - col2 AS col2, + col0 AS col0 FROM tab1 AS cor0
----
-5074
85
-5848
91
-8256
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6056
SELECT - MAX( + col1 ), 77 * - COUNT( * ) * 16 * - 74 + COUNT( * ) - MIN( col1 ) AS col1 FROM tab0 AS cor0
----
-81
273506

skipif mysql # not compatible
query II rowsort label-6056
SELECT - MAX ( + col1 ), 77 * - COUNT ( * ) * 16 * - 74 + COUNT ( * ) - MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
-81
273506

query I rowsort
SELECT ALL + col2 * + - ( - + col1 ) * + + col2 + + 39 + - 26 AS col1 FROM tab2 cor0
----
123213
225401
26992

onlyif mysql # DIV for integer division: 
query I rowsort label-6058
SELECT DISTINCT col0 DIV - + col0 + + - ( + col0 ) FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT col0 / - + col0 + + - ( + col0 ) FROM tab2 AS cor0
----
-47
-65
-76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 66 * + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6060
SELECT DISTINCT * FROM tab2 WHERE NOT col0 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6060
SELECT DISTINCT * FROM tab2 WHERE NOT col0 = + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ALL + SUM( ALL col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL + SUM ( ALL col0 ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT + SUM( ALL col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6062
SELECT + SUM ( ALL col2 ) AS col1 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6063
SELECT 76 AS col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
76
NULL
76
NULL
76
NULL

skipif mysql # not compatible
query II rowsort label-6063
SELECT 76 AS col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
76
NULL
76
NULL
76
NULL

query I rowsort
SELECT ALL - - 57 AS col1 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT SUM( - + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6065
SELECT SUM ( - + col1 ) FROM tab1
----
-66

query I rowsort
SELECT ALL + 6 * - col1 AS col2 FROM tab1 AS cor0
----
-282
-30
-84

query II rowsort
SELECT 18, + col0 AS col2 FROM tab2 cor0
----
18
46
18
64
18
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 / - col0 / - ( ( - ( + 98 ) ) ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + col0 + - + ( 57 ) + + col1 col2 FROM tab1 AS cor0
----
4853
4963
6178

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT + 48 * col0 DIV + col2 FROM tab0
----
15
417
47

skipif mysql # not compatible
query I rowsort label-6070
SELECT + 48 * col0 / + col2 FROM tab0
----
15
417
47

onlyif mysql # DIV for integer division: 
query II rowsort label-6071
SELECT ALL + col1 * - 75 * col0 AS col0, col0 * col1 DIV + - 73 FROM tab1
----
-31875
-5
-320775
-58
-53550
-9

skipif mysql # not compatible
query II rowsort label-6071
SELECT ALL + col1 * - 75 * col0 AS col0, col0 * col1 / + - 73 FROM tab1
----
-31875
-5
-320775
-58
-53550
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6072
SELECT ALL CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL CAST ( NULL AS REAL ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + - col1 + - col2 FROM tab2
----
-2624
-4547
-5969

query I rowsort
SELECT - + col1 + - - col1 + 51 AS col0 FROM tab0 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT - 62 * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-558

skipif mysql # not compatible
query I rowsort label-6076
SELECT - 62 * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-558

query I rowsort
SELECT - - 62 AS col2 FROM tab0 WHERE ( NULL < col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 < - col2 * + col2 - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT SUM( col0 ) FROM tab2 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT SUM ( col0 ) FROM tab2 AS cor0 WHERE NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT ( COUNT( col0 ) ) - + + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6080
SELECT ( COUNT ( col0 ) ) - + + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL + 28 + - + 27 + COUNT( * ) * - 9 FROM tab2 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL + 28 + - + 27 + COUNT ( * ) * - 9 FROM tab2 cor0
----
-26

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 53 < NULL
----

query I rowsort
SELECT DISTINCT + - 55 AS col2 FROM tab2 cor0
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + ( - - col2 ) ), - col0 col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT DISTINCT + MIN( + 38 ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT + MIN ( + 38 ) FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT + MAX( + 49 ) AS col0 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-6087
SELECT + MAX ( + 49 ) AS col0 FROM tab2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT SUM( ALL - col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-6088
SELECT SUM ( ALL - col0 ) AS col0 FROM tab0
----
-199

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 95 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col0 - ( + - col1 ) NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6091
SELECT DISTINCT - 72 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT - 72 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6092
SELECT 82 * col1 DIV - CAST( - col2 AS SIGNED ) FROM tab0
----
0
141
172

skipif mysql # not compatible
query I rowsort label-6092
SELECT 82 * col1 / - CAST ( - col2 AS INTEGER ) FROM tab0
----
0
141
172

onlyif mysql # DIV for integer division: 
query I rowsort label-6093
SELECT DISTINCT - col1 + - 94 DIV col0 FROM tab1 WHERE + - col2 * col2 IS NOT NULL
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT - col1 + - 94 / col0 FROM tab1 WHERE + - col2 * col2 IS NOT NULL
----
-15
-48
-6

query II rowsort
SELECT 30 AS col1, + ( - - col2 ) + + + col0 FROM tab1
----
30
144
30
147
30
159

query I rowsort
SELECT ALL + 94 + - col2 * col0 FROM tab1 AS cor0
----
-4802
-4921
-6094

query I rowsort
SELECT ( + col0 ) * - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - col2 + + 52 + - + col2, col1 FROM tab1 AS cor0
----
-140
14
-66
5
-84
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT - + COUNT( DISTINCT + + 54 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6098
SELECT - + COUNT ( DISTINCT + + 54 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 18 <= - col1 + 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * + col1 + - - col2 + + + col1 FROM tab0 cor0
----
-179
-3679
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT + COUNT( * ) col0 FROM tab1 WHERE NULL < - - col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6101
SELECT + COUNT ( * ) col0 FROM tab1 WHERE NULL < - - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6102
SELECT - 39 DIV col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6102
SELECT - 39 / col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab0 WHERE NOT - 99 <= 49
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6104
SELECT ALL * FROM tab1 WHERE NOT ( - CAST( + 95 AS DECIMAL ) * - + 17 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6104
SELECT ALL * FROM tab1 WHERE NOT ( - CAST ( + 95 AS REAL ) * - + 17 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6105
SELECT DISTINCT - + MIN( - + CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT - + MIN ( - + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6106
SELECT ALL - - col0 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL - - col0 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT ALL 64 + - COUNT( * ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL 64 + - COUNT ( * ) AS col2 FROM tab2
----
61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT DISTINCT + COUNT( DISTINCT ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT + COUNT ( DISTINCT ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + ( + col0 ) * - 12 FROM tab0 AS cor0
----
-1044
-1164
-180

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE NOT NULL <> - - 78
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6112
SELECT - - col2 * + 44 * col2 + 30 FROM tab0 WHERE NOT col0 IN ( - 16 * + CAST( - + col1 AS DECIMAL ) + col1 + - 85 * + col2, + 35, col0 + + ( + 68 ) + - col1 - - ( - - 45 ) * - col2 / + 12 * - 94 + + col2 + col0 * - - col0 * + 45 * 68, ( col2 ), - ( col1 ) )
----
431274
4430
97226

skipif mysql # not compatible
query I rowsort label-6112
SELECT - - col2 * + 44 * col2 + 30 FROM tab0 WHERE NOT col0 IN ( - 16 * + CAST ( - + col1 AS REAL ) + col1 + - 85 * + col2, + 35, col0 + + ( + 68 ) + - col1 - - ( - - 45 ) * - col2 / + 12 * - 94 + + col2 + col0 * - - col0 * + 45 * 68, ( col2 ), - ( col1 ) )
----
431274
4430
97226

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT MIN( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-6113
SELECT MIN ( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23

query II rowsort
SELECT DISTINCT - 56 AS col2, 29 FROM tab1
----
-56
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT - COUNT( * ) + COUNT( ALL - - 65 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6115
SELECT - COUNT ( * ) + COUNT ( ALL - - 65 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6116
SELECT CAST( col2 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-6116
SELECT CAST ( col2 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6117
SELECT DISTINCT - MAX( - - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT - MAX ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query II rowsort
SELECT + ( col0 ) AS col2, col1 * - 97 AS col0 FROM tab0 AS cor0
----
15
-7857
87
-2037
97
-97

query I rowsort
SELECT ALL + + col0 + - col2 + - 70 AS col1 FROM tab2 AS cor0
----
-46
-47
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 9 col0 FROM tab1 AS cor0
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + 61 col1 FROM tab0 cor0
----
148
158
76

query I rowsort
SELECT + 56 + - col0 AS col1 FROM tab1
----
-29
-35
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL COUNT( * ) * MIN( col1 ) + - 0 AS col2 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL COUNT ( * ) * MIN ( col1 ) + - 0 AS col2 FROM tab2
----
153

query I rowsort
SELECT ALL - 15 * col2 * col0 * + col0 AS col0 FROM tab1
----
-3745440
-6394125
-8446620

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT + COUNT( * ) + + - COUNT( DISTINCT - + col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6125
SELECT + COUNT ( * ) + + - COUNT ( DISTINCT - + col1 ) FROM tab1
----
0

query I rowsort
SELECT ( - 65 ) + + 36 FROM tab0
----
-29
-29
-29

query I rowsort
SELECT + col1 * col0 * col2 + - - 47 AS col1 FROM tab0
----
18317
57152
9650

query I rowsort
SELECT col0 + - 1 FROM tab1
----
50
84
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT - 22 + - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-6129
SELECT - 22 + - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, - 43 FROM tab2
----
51
-43
67
-43
77
-43

query I rowsort
SELECT ALL col0 + + col1 * - 60 AS col1 FROM tab0 cor0 WHERE NULL IN ( + col2 + col2 / - col0, col2 )
----

query I rowsort
SELECT + - 73 AS col2 FROM tab0 AS cor0
----
-73
-73
-73

query II rowsort
SELECT DISTINCT + col1, col1 + + - col0 FROM tab0 AS cor0
----
1
-96
21
-66
81
66

query I rowsort
SELECT DISTINCT + + col2 * - 0 - col2 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 64 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col1, - col2 AS col1 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT - ( + - 88 ) * + col2 FROM tab1 cor0
----
5192
5984
8448

query I rowsort
SELECT ALL + col0 * + 50 + col1 * + 25 FROM tab0 cor0
----
2775
4875
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT ALL + - COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL + - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + col0 * col2 * + col1 AS col2 FROM tab2 AS cor0
----
197120
291450
53958

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 < - col0 - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT - 93 * + ( - COUNT( * ) ) AS col1 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-6142
SELECT - 93 * + ( - COUNT ( * ) ) AS col1 FROM tab0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT + MAX( DISTINCT col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6143
SELECT + MAX ( DISTINCT col2 ) FROM tab0
----
99

query II rowsort
SELECT - + col0, 42 AS col1 FROM tab1 WHERE NOT - + ( 22 ) IS NULL
----
-51
42
-85
42
-91
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT ALL - MIN( DISTINCT col2 ) * + + MIN( - col1 ) FROM tab2 cor0
----
1771

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL - MIN ( DISTINCT col2 ) * + + MIN ( - col1 ) FROM tab2 cor0
----
1771

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6147
SELECT DISTINCT + 79, + CAST( + col1 AS SIGNED ) + - - 69 + - col0 AS col0 FROM tab0
----
79
-27
79
135
79
3

skipif mysql # not compatible
query II rowsort label-6147
SELECT DISTINCT + 79, + CAST ( + col1 AS INTEGER ) + - - 69 + - col0 AS col0 FROM tab0
----
79
-27
79
135
79
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < 32
----

query I rowsort
SELECT DISTINCT + - col1 + + + col0 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( ( NULL ) IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col2 AS col1, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6152
SELECT ALL - 49 DIV CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE - col0 <> col1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL - 49 / CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE - col0 <> col1
----
-1
-4
0

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE - col0 > + + 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT MIN( ALL + col1 ) col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6154
SELECT MIN ( ALL + col1 ) col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( - col1 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT ALL - SUM( DISTINCT - col1 ) + + - COUNT( * ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL - SUM ( DISTINCT - col1 ) + + - COUNT ( * ) AS col1 FROM tab1
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col0 FROM tab2
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6158
SELECT CAST( NULL AS SIGNED ) / col0 * + 75 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6158
SELECT CAST ( NULL AS INTEGER ) / col0 * + 75 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 WHERE NOT - col1 = col1
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT - - COUNT( * ) FROM tab2 WHERE 69 - + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6160
SELECT - - COUNT ( * ) FROM tab2 WHERE 69 - + col0 IS NULL
----
0

query I rowsort
SELECT col0 + - - 3 * col0 AS col2 FROM tab0 AS cor0
----
348
388
60

onlyif mysql # DIV for integer division: 
query II rowsort label-6162
SELECT - col2 + + 14 AS col2, col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
-45
0
-54
0
-82
1

skipif mysql # not compatible
query II rowsort label-6162
SELECT - col2 + + 14 AS col2, col2 / + col0 AS col0 FROM tab1 AS cor0
----
-45
0
-54
0
-82
1

query I rowsort
SELECT - col0 * - + col2 AS col1 FROM tab0 AS cor0
----
705
870
9603

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + - 72 IS NOT NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT ALL - COUNT( * ) * - COUNT( * ) * + - 51 FROM tab1
----
-459

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * + - 51 FROM tab1
----
-459

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT DISTINCT - - 3 DIV + 45 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT - - 3 / + 45 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + - 4 * - 12 AS col1 FROM tab0 AS cor0
----
48

query I rowsort
SELECT DISTINCT - col0 * col0 * + 10 + col0 * col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT + + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6169
SELECT + + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL + col1 * + 87 AS col0 FROM tab2 AS cor0
----
4437
5829
6699

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 * col0 * + col2 + col1 col2 FROM tab0 cor0
----
-44334
-54789
-604988

query I rowsort
SELECT ALL + 82 * - - 7 AS col2 FROM tab2 AS cor0
----
574
574
574

onlyif mysql # DIV for integer division: 
query II rowsort label-6173
SELECT ALL - col0 * - - col2 * col1 AS col0, - 27 DIV + 27 - + 33 FROM tab0 AS cor0
----
-18270
-34
-57105
-34
-9603
-34

skipif mysql # not compatible
query II rowsort label-6173
SELECT ALL - col0 * - - col2 * col1 AS col0, - 27 / + 27 - + 33 FROM tab0 AS cor0
----
-18270
-34
-57105
-34
-9603
-34

query I rowsort
SELECT - ( 13 ) * - 5 + col0 AS col2 FROM tab1 AS cor0
----
116
150
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6175
SELECT DISTINCT + SUM( - CAST( NULL AS SIGNED ) ) * 41 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + SUM ( - CAST ( NULL AS INTEGER ) ) * 41 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6176
SELECT DISTINCT - col1 DIV - 77 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT - col1 / - 77 FROM tab2
----
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6177
SELECT + col1 AS col1, col2 DIV 50 - - + 61 * - col1 FROM tab2
----
51
-3111
67
-4086
77
-4697

skipif mysql # not compatible
query II rowsort label-6177
SELECT + col1 AS col1, col2 / 50 - - + 61 * - col1 FROM tab2
----
51
-3111
67
-4086
77
-4697

query I rowsort
SELECT ALL 35 * + col1 FROM tab2
----
1785
2345
2695

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > - 89
----

query I rowsort
SELECT + 32 + 4 FROM tab1 cor0
----
36
36
36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + 71 AND NULL
----

query I rowsort
SELECT + col2 * - col0 + + - col2 + - ( - col1 ) * + - col1 + - 0 + col1 AS col2 FROM tab2 AS cor0
----
-3631
-8452
-8830

query II rowsort
SELECT ALL - col1 + - col1 AS col2, + 31 + - + 2 + - + 4 * - - col1 AS col0 FROM tab2 AS cor0
----
-102
-175
-134
-239
-154
-279

query I rowsort
SELECT ALL - 92 * 94 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ae0f4fbe7aac712184702b7f1d406a3d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + - col1, 18 col1 FROM tab2
----
1173
18
3080
18
3886
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6186
SELECT * FROM tab1 WHERE 5 / - col0 + CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6186
SELECT * FROM tab1 WHERE 5 / - col0 + CAST ( NULL AS INTEGER ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, - col1 col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL + col0 + - - col1 + 67 AS col0 FROM tab2 AS cor0
----
164
208
209

query I rowsort
SELECT + + 78 - - - col2 FROM tab0 AS cor0
----
-21
31
68

query I rowsort
SELECT DISTINCT col0 * - + col0 FROM tab1 cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + 27 * - 26 + - col0 * + ( + + 19 ) * + - col2 AS col2 FROM tab0 AS cor0
----
12693
15828
181755

query I rowsort
SELECT DISTINCT - col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT + MIN( col2 ) col1 FROM tab2 WHERE NULL IS NULL
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6193
SELECT + MIN ( col2 ) col1 FROM tab2 WHERE NULL IS NULL
----
23

query I rowsort
SELECT DISTINCT + col1 + + + col2 AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT ALL 89 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query II rowsort label-6196
SELECT ALL - COUNT( * ) - - + ( + + 96 ), 1 AS col0 FROM tab2
----
93
1

skipif mysql # not compatible
query II rowsort label-6196
SELECT ALL - COUNT ( * ) - - + ( + + 96 ), 1 AS col0 FROM tab2
----
93
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 45 col1 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 AS cor0 WHERE NOT + 26 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT - - ( - - 76 ) * - SUM( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-14060

skipif mysql # not compatible
query I rowsort label-6199
SELECT - - ( - - 76 ) * - SUM ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-14060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6200
SELECT - col0 + - col0 FROM tab0 AS cor0 WHERE NOT + 97 IN ( - 59 + col1, - col0 + + + col2, - col2 * + CAST( NULL AS SIGNED ) * col1, + col2 )
----

skipif mysql # not compatible
query I rowsort label-6200
SELECT - col0 + - col0 FROM tab0 AS cor0 WHERE NOT + 97 IN ( - 59 + col1, - col0 + + + col2, - col2 * + CAST ( NULL AS INTEGER ) * col1, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT + + CAST( 56 AS SIGNED ) FROM tab2 cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-6201
SELECT + + CAST ( 56 AS INTEGER ) FROM tab2 cor0
----
56
56
56

query II rowsort
SELECT DISTINCT - 76 AS col0, col2 AS col2 FROM tab1 AS cor0
----
-76
59
-76
68
-76
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6203
SELECT ALL * FROM tab0 WHERE - col2 NOT BETWEEN + col0 * + col0 AND ( + CAST( NULL AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6203
SELECT ALL * FROM tab0 WHERE - col2 NOT BETWEEN + col0 * + col0 AND ( + CAST ( NULL AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT SUM( col0 ) * - ( 78 ) FROM tab0 WHERE NOT NULL NOT IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6204
SELECT SUM ( col0 ) * - ( 78 ) FROM tab0 WHERE NOT NULL NOT IN ( - col2 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6205
SELECT DISTINCT - COUNT( ALL CAST( NULL AS DECIMAL ) ) + + 4 AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT - COUNT ( ALL CAST ( NULL AS REAL ) ) + + 4 AS col2 FROM tab0
----
4

query I rowsort
SELECT ALL 26 + col1 FROM tab1
----
31
40
73

query I rowsort
SELECT 49 FROM tab2 WHERE + col1 <= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT ALL + SUM( ALL - col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL + SUM ( ALL - col1 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT + 79 + - col0 * + 62 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6210
SELECT * FROM tab1 WHERE NOT + col0 IN ( + 66 * CAST( + col2 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6210
SELECT * FROM tab1 WHERE NOT + col0 IN ( + 66 * CAST ( + col2 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + + 38 * col2 AS col1 FROM tab1
----
2247
2631
3662

onlyif mysql # DIV for integer division: 
query I rowsort label-6212
SELECT col1 + + col0 DIV 7 FROM tab2
----
57
77
86

skipif mysql # not compatible
query I rowsort label-6212
SELECT col1 + + col0 / 7 FROM tab2
----
57
77
86

query I rowsort
SELECT ALL col1 * + 42 AS col1 FROM tab2
----
2142
2814
3234

query I rowsort
SELECT ALL col2 * + 42 + - 39 FROM tab2
----
1641
2397
927

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6215
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6215
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col1 - - col1 AS col2 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6217
SELECT + CAST( - 48 AS SIGNED ) AS col0 FROM tab2 WHERE ( 22 ) IS NOT NULL
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-6217
SELECT + CAST ( - 48 AS INTEGER ) AS col0 FROM tab2 WHERE ( 22 ) IS NOT NULL
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6218
SELECT + CAST( 32 AS SIGNED ) AS col1 FROM tab1
----
32
32
32

skipif mysql # not compatible
query I rowsort label-6218
SELECT + CAST ( 32 AS INTEGER ) AS col1 FROM tab1
----
32
32
32

query I rowsort
SELECT DISTINCT + 36 + ( 63 ) FROM tab1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 + 5 col1 FROM tab2
----
59
59
59

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN col0 * col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT ( col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT ( col0 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT MIN( 64 ) AS col1 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-6223
SELECT MIN ( 64 ) AS col1 FROM tab2
----
64

query I rowsort
SELECT DISTINCT col2 + - 76 AS col1 FROM tab0 AS cor0
----
-29
-66
23

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( - 28 ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT 54 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 38 )
----

query I rowsort
SELECT ALL 73 * + ( 43 ) AS col0 FROM tab1
----
3139
3139
3139

query I rowsort
SELECT DISTINCT 38 * col2 FROM tab2 cor0
----
1520
2204
874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 * col0 col2 FROM tab1 AS cor0
----
510
850
910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6230
SELECT DISTINCT + MAX( DISTINCT + col1 ) DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT + MAX ( DISTINCT + col1 ) / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + ( + col0 ) AND + col1 * 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT ALL ( COUNT( ALL + 5 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * 56 - - col0 NOT IN ( + col0 * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL ( COUNT ( ALL + 5 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 * 56 - - col0 NOT IN ( + col0 * - col1 )
----
0

query I rowsort
SELECT ALL + - col1 - 50 FROM tab0 AS cor0
----
-131
-51
-71

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT + COUNT( col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6235
SELECT + COUNT ( col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6236
SELECT - MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT - MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 53 * - - col0 - + col2 AS col1 FROM tab2
----
2415
3352
3917

query I rowsort
SELECT - 57 * + col2 - col1 * col2 AS col0 FROM tab1
----
-3658
-6816
-7072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6239
SELECT DISTINCT col0 + CAST( 65 AS SIGNED ) * - 41 col1 FROM tab1 WHERE NOT 77 BETWEEN ( col2 ) AND + 11
----
-2574
-2580
-2614

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6239
SELECT DISTINCT col0 + CAST ( 65 AS INTEGER ) * - 41 col1 FROM tab1 WHERE NOT 77 BETWEEN ( col2 ) AND + 11
----
-2574
-2580
-2614

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT MIN( + 17 ) AS col0 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-6241
SELECT MIN ( + 17 ) AS col0 FROM tab1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> ( col2 + col2 )
----

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> ( col2 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL + SUM( DISTINCT - 38 ) AS col1 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL + SUM ( DISTINCT - 38 ) AS col1 FROM tab1
----
-38

query II rowsort
SELECT ALL col0 AS col1, + col2 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 78 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - + 3 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - col1 ) + + col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 IN ( 12 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1, 62 AS col2 FROM tab1 AS cor0
----
14
62
47
62
5
62

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL + SUM( col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL + SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + + 29 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( col1 * + + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 < + col0
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6257
SELECT col0 DIV 7 col2 FROM tab1 WHERE + col2 NOT IN ( col1 )
----
12
13
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6257
SELECT col0 / 7 col2 FROM tab1 WHERE + col2 NOT IN ( col1 )
----
12
13
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT - COUNT( DISTINCT + col0 ) FROM tab2 WHERE ( + + col0 / + 70 + 0 ) = + 5
----
0

skipif mysql # not compatible
query I rowsort label-6258
SELECT - COUNT ( DISTINCT + col0 ) FROM tab2 WHERE ( + + col0 / + 70 + 0 ) = + 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT 52 * COUNT( * ) FROM tab0 WHERE - col1 + + col2 NOT BETWEEN ( - 56 / - col2 ) AND col1 * 46
----
156

skipif mysql # not compatible
query I rowsort label-6259
SELECT 52 * COUNT ( * ) FROM tab0 WHERE - col1 + + col2 NOT BETWEEN ( - 56 / - col2 ) AND col1 * 46
----
156

query I rowsort
SELECT col2 + - - 54 FROM tab0
----
101
153
64

query I rowsort
SELECT DISTINCT - col2 * + 86 AS col2 FROM tab2
----
-1978
-3440
-4988

query I rowsort
SELECT ALL 97 * + - col0 * 64 FROM tab2
----
-285568
-397312
-465600

query I rowsort
SELECT + 0 FROM tab2 WHERE ( - 36 ) <> col2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT COUNT( * ) + + MAX( DISTINCT - col0 ) AS col2 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-6264
SELECT COUNT ( * ) + + MAX ( DISTINCT - col0 ) AS col2 FROM tab1
----
-48

query I rowsort
SELECT 44 + - 66 FROM tab2 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6266
SELECT - 8 * - 21 * - CAST( + col2 AS SIGNED ) + - col1 FROM tab0 cor0
----
-16633
-1701
-7977

skipif mysql # not compatible
query I rowsort label-6266
SELECT - 8 * - 21 * - CAST ( + col2 AS INTEGER ) + - col1 FROM tab0 cor0
----
-16633
-1701
-7977

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT DISTINCT COUNT( * ) + - ( + COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT COUNT ( * ) + - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT 59 * + - 98 * + ( 27 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 723c6ff2c5a942a7ab69f21ab1ebad76

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + + 55 - 27
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6270
SELECT col1 * - CAST( NULL AS DECIMAL ) / + + col1 * + CAST( col2 AS SIGNED ) * - col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6270
SELECT col1 * - CAST ( NULL AS REAL ) / + + col1 * + CAST ( col2 AS INTEGER ) * - col2 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6271
SELECT + CAST( + col1 AS SIGNED ) - - 8 AS col0, - col0 FROM tab2
----
59
-46
75
-75
85
-64

skipif mysql # not compatible
query II rowsort label-6271
SELECT + CAST ( + col1 AS INTEGER ) - - 8 AS col0, - col0 FROM tab2
----
59
-46
75
-75
85
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT DISTINCT COUNT( * ) * + + 77 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT COUNT ( * ) * + + 77 FROM tab0
----
231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 27 + col2 - - 85 - - col2 col0 FROM tab2 AS cor0
----
-1365
-490
-915

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL COUNT( * ) * + 29 AS col1 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL COUNT ( * ) * + 29 AS col1 FROM tab0 AS cor0
----
87

query I rowsort
SELECT col2 - 52 FROM tab2 AS cor0
----
-12
-29
6

query I rowsort
SELECT + - 59 - + 72 + - col2 * + 64 * - 49 FROM tab0 AS cor0
----
147261
310333
31229

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE col1 * 38 > - - col0 / col2 + col0 + - col0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT ALL + SUM( ( - 4 ) ) AS col1 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL + SUM ( ( - 4 ) ) AS col1 FROM tab0 AS cor0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6279
SELECT ALL - 65 + - COUNT( ( 43 ) ) / COUNT( * ) - CAST( NULL AS SIGNED ) * - 37 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT ALL - 65 + - COUNT ( ( 43 ) ) / COUNT ( * ) - CAST ( NULL AS INTEGER ) * - 37 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 + + - 31 FROM tab2 cor0
----
-8
27
9

query I rowsort
SELECT DISTINCT col1 - + 96 AS col2 FROM tab1 cor0
----
-49
-82
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT DISTINCT COUNT( * ) * - ( 2 ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT COUNT ( * ) * - ( 2 ) AS col1 FROM tab0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * col0 IN ( + + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6284
SELECT ALL MIN( + 43 ) AS col0, 76 - + - COUNT( * ) AS col1 FROM tab2
----
43
79

skipif mysql # not compatible
query II rowsort label-6284
SELECT ALL MIN ( + 43 ) AS col0, 76 - + - COUNT ( * ) AS col1 FROM tab2
----
43
79

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( col0 ) IS NOT NULL )
----

query I rowsort
SELECT + col2 * col2 FROM tab0 WHERE NOT 87 <= ( - ( + ( col2 ) ) / + col2 )
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query II rowsort label-6287
SELECT ALL - 37 AS col1, MAX( + col2 ) AS col0 FROM tab1
----
-37
96

skipif mysql # not compatible
query II rowsort label-6287
SELECT ALL - 37 AS col1, MAX ( + col2 ) AS col0 FROM tab1
----
-37
96

query I rowsort
SELECT DISTINCT + 7 + 0 * col0 FROM tab1 AS cor0 WHERE + 67 NOT IN ( + col2 + 84 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT DISTINCT - COUNT( col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT - COUNT ( col0 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + + + 10 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 + + col0 + col1 FROM tab0 WHERE ( 53 ) = col2 * + + col2
----

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE col0 + col0 + + + 94 IS NULL
----

query I rowsort
SELECT ALL + col2 + + col2 + - + col0 AS col0 FROM tab2 AS cor0
----
0
16
41

query I rowsort
SELECT DISTINCT col1 + - - col1 * - - col0 FROM tab1 AS cor0
----
430
4324
728

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 26, - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE 89 * + col0 * col0 * + col2 * + - col1 + - 76 + col0 IN ( - 0 )
----

query II rowsort
SELECT ALL - 10 AS col1, - col2 FROM tab1
----
-10
-59
-10
-68
-10
-96

query I rowsort
SELECT - 8 * - col1 * ( + + col1 ) FROM tab2
----
20808
35912
47432

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT ALL - COUNT( * ) * 29 AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL - COUNT ( * ) * 29 AS col2 FROM tab1
----
-87

query I rowsort
SELECT ALL - 56 * + + 45 AS col1 FROM tab1
----
-2520
-2520
-2520

query II rowsort
SELECT - 76 AS col0, + col2 FROM tab0 AS cor0
----
-76
10
-76
47
-76
99

query I rowsort
SELECT - - 38 + col2 AS col2 FROM tab2 AS cor0
----
61
78
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6304
SELECT DISTINCT - 60 DIV - - COUNT( * ) FROM tab0, tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT - 60 / - - COUNT ( * ) FROM tab0, tab2 cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6305
SELECT + col1 AS col1 FROM tab2 WHERE ( + col0 + - + ( + col2 ) + + - col0 * + CAST( + col2 AS SIGNED ) * + - col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6305
SELECT + col1 AS col1 FROM tab2 WHERE ( + col0 + - + ( + col2 ) + + - col0 * + CAST ( + col2 AS INTEGER ) * + - col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 84 / - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6307
SELECT + - COUNT( + + 20 ) + + 72 AS col2 FROM tab1 AS cor0 WHERE - CAST( - col0 AS SIGNED ) IS NULL
----
72

skipif mysql # not compatible
query I rowsort label-6307
SELECT + - COUNT ( + + 20 ) + + 72 AS col2 FROM tab1 AS cor0 WHERE - CAST ( - col0 AS INTEGER ) IS NULL
----
72

query I rowsort
SELECT DISTINCT + 16 + ( - 21 ) FROM tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6309
SELECT - SUM( ALL + - col2 ) DIV SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6309
SELECT - SUM ( ALL + - col2 ) / SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col2 AS col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT COUNT( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6311
SELECT COUNT ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6312
SELECT ALL 2 * - col0 AS col0, CAST( NULL AS SIGNED ) * + + col1 AS col0 FROM tab0 AS cor0
----
-174
NULL
-194
NULL
-30
NULL

skipif mysql # not compatible
query II rowsort label-6312
SELECT ALL 2 * - col0 AS col0, CAST ( NULL AS INTEGER ) * + + col1 AS col0 FROM tab0 AS cor0
----
-174
NULL
-194
NULL
-30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT + MIN( ALL + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6313
SELECT + MIN ( ALL + col1 ) FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0 cor0 WHERE NOT - col0 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT DISTINCT 98 * - + COUNT( ALL - + 75 ) FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT 98 * - + COUNT ( ALL - + 75 ) FROM tab2
----
-294

query I rowsort
SELECT 58 AS col2 FROM tab1 WHERE NOT + + 92 * col2 + + 3 NOT IN ( + 32 * - - 69, col0 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6317
SELECT ALL * FROM tab2 WHERE + 5 + col1 BETWEEN NULL AND ( + col2 - - 98 * + CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6317
SELECT ALL * FROM tab2 WHERE + 5 + col1 BETWEEN NULL AND ( + col2 - - 98 * + CAST ( - col1 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 32 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6319
SELECT DISTINCT col0 DIV - + 53 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT col0 / - + 53 FROM tab1
----
-1
0

query I rowsort
SELECT - + col1 * - ( - - col1 ) * + + col0 FROM tab2 WHERE NOT + + 19 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT ALL - 52 * COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 WHERE col0 - 24 >= - col0 * + 43 + + col0 * col0
----
0

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL - 52 * COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 WHERE col0 - 24 >= - col0 * + 43 + + col0 * col0
----
0

query I rowsort
SELECT ALL ( col2 ) * 0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT DISTINCT COUNT( ALL 77 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT COUNT ( ALL 77 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col0 + - col0 * - 65 * + + col2 AS col1 FROM tab2 AS cor0
----
166336
282675
68724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 AS col0, - 61 * + + 92 col2 FROM tab2 AS cor0
----
-51
-5612
-67
-5612
-77
-5612

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col2 FROM tab2 cor0 WHERE ( + col0 ) * - + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 / + - col1 >= - - col0
----
0

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 / + - col1 >= - - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6329
SELECT 98, ( col0 ) * + 84 + - + CAST( NULL AS SIGNED ) - + col1 AS col1 FROM tab1 AS cor0
----
98
NULL
98
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-6329
SELECT 98, ( col0 ) * + 84 + - + CAST ( NULL AS INTEGER ) - + col1 AS col1 FROM tab1 AS cor0
----
98
NULL
98
NULL
98
NULL

query II rowsort
SELECT DISTINCT 84 AS col1, col0 AS col0 FROM tab2 AS cor0
----
84
46
84
64
84
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT ALL + COUNT( * ) + + 97 AS col0 FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL + COUNT ( * ) + + 97 AS col0 FROM tab1 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT SUM( ALL + + 85 ) FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-6332
SELECT SUM ( ALL + + 85 ) FROM tab0 AS cor0
----
255

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE col1 BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6334
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN CAST( NULL AS SIGNED ) + + - 30 * + ( + 39 ) AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6334
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN CAST ( NULL AS INTEGER ) + + - 30 * + ( + 39 ) AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col0 + + + 21 FROM tab0 AS cor0
----
-66
-76
6

query I rowsort
SELECT DISTINCT + 66 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6337
SELECT ALL - col2 + 21 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) - - 60 - + CAST( NULL AS SIGNED ) + + col2 * - col1 + - ( - ( + - col2 ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL - col2 + 21 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) - - 60 - + CAST ( NULL AS INTEGER ) + + col2 * - col1 + - ( - ( + - col2 ) ) IS NULL
----

query I rowsort
SELECT ALL - col2 + + 91 + - - col2 + + 6 AS col0 FROM tab2 cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT - 55 * + ( - MIN( + col0 ) ) FROM tab2 cor0 WHERE - col0 IS NOT NULL
----
2530

skipif mysql # not compatible
query I rowsort label-6339
SELECT - 55 * + ( - MIN ( + col0 ) ) FROM tab2 cor0 WHERE - col0 IS NOT NULL
----
2530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6340
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE - col0 * - ( + col0 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE - col0 * - ( + col0 ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col2 * col0 * + 96 FROM tab2
----
-101517
-245683
-417533

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT DISTINCT MAX( DISTINCT + 91 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT MAX ( DISTINCT + 91 ) AS col1 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6343
SELECT - col0 DIV + col2 + - 84 FROM tab1 AS cor0
----
-84
-85
-85

skipif mysql # not compatible
query I rowsort label-6343
SELECT - col0 / + col2 + - 84 FROM tab1 AS cor0
----
-84
-85
-85

query I rowsort
SELECT DISTINCT - 10 + col1 FROM tab1 cor0
----
-5
37
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT MIN( DISTINCT + + 45 ) - - COUNT( * ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-6345
SELECT MIN ( DISTINCT + + 45 ) - - COUNT ( * ) AS col1 FROM tab2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6346
SELECT 84 - 80 - + + ( col1 ) * + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT 84 - 80 - + + ( col1 ) * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT ALL + 24 + - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL + 24 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 57 - + - col0 col0 FROM tab0
----
-2664
-483
-5546

query I rowsort
SELECT ALL - + col0 * col2 * - ( - 72 ) FROM tab1 cor0
----
-352512
-361080
-445536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6350
SELECT - + 19 * + CAST( ( COUNT( * ) ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-6350
SELECT - + 19 * + CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-57

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1, + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6352
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 32 * + + col0 / + CAST( NULL AS DECIMAL ) / 47 / 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6352
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 32 * + + col0 / + CAST ( NULL AS REAL ) / 47 / 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6353
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT DISTINCT - SUM( DISTINCT - col0 ) * + 77 * - + 22 AS col0 FROM tab1 AS cor0
----
-384538

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT - SUM ( DISTINCT - col0 ) * + 77 * - + 22 AS col0 FROM tab1 AS cor0
----
-384538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6355
SELECT - MIN( - CAST( - col2 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6355
SELECT - MIN ( - CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-10

query II rowsort
SELECT DISTINCT - col2, ( + + col1 ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - 37 ) + - ( - 4 ) IS NOT NULL
----

query I rowsort
SELECT + 91 + - col2 AS col2 FROM tab2 WHERE NOT - col2 + - - 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT DISTINCT + MIN( - + ( - col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT + MIN ( - + ( - col1 ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT SUM( + col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6360
SELECT SUM ( + col0 ) AS col1 FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( col1 ) ) col2 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6362
SELECT DISTINCT CAST( + + MAX( + col1 ) AS SIGNED ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT CAST ( + + MAX ( + col1 ) AS INTEGER ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT ALL + MAX( DISTINCT + + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + MAX ( DISTINCT + + col0 ) FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6364
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0, 67 AS col2 FROM tab1 AS cor0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-6364
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0, 67 AS col2 FROM tab1 AS cor0
----
NULL
67

query I rowsort
SELECT col2 * col0 * col0 * + + col1 * - - col1 FROM tab2
----
126585468
1464536250
971407360

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ALL - + 30 + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-21

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL - + 30 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT DISTINCT + ( - COUNT( DISTINCT + + 26 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6367
SELECT DISTINCT + ( - COUNT ( DISTINCT + + 26 ) ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT - ( 18 ) + - COUNT( * ) - + - COUNT( * ) col0 FROM tab2
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6368
SELECT - ( 18 ) + - COUNT ( * ) - + - COUNT ( * ) col0 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL - - ( - ( + MAX( ALL - col2 ) ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL - - ( - ( + MAX ( ALL - col2 ) ) ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 88 AS col0 FROM tab0 AS cor0
----
4136
8712
880

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6373
SELECT MAX( + ( + - col2 ) ) FROM tab1 AS cor0 WHERE CAST( - + 8 AS SIGNED ) BETWEEN - - 80 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT MAX ( + ( + - col2 ) ) FROM tab1 AS cor0 WHERE CAST ( - + 8 AS INTEGER ) BETWEEN - - 80 AND NULL
----
NULL

query I rowsort
SELECT - 61 + col0 + col0 - - col1 FROM tab0 AS cor0
----
134
134
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT COUNT( ALL - col1 ) + COUNT( + + ( - + ( - col0 ) ) ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6375
SELECT COUNT ( ALL - col1 ) + COUNT ( + + ( - + ( - col0 ) ) ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col1 NOT IN ( col0, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT + col2 * + 32 * + - 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-6377
SELECT + col2 * + 32 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + - col1 ) col2 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + 77 FROM tab1
----
14
77
47
77
5
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT ALL - SUM( DISTINCT + col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL - SUM ( DISTINCT + col0 ) AS col2 FROM tab1
----
-227

query I rowsort
SELECT ( + - 63 ) * col0 FROM tab2
----
-2898
-4032
-4725

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT + col1 * - col1 * + - col0 + - - col2 + col2 < col0 * - + 40 * + col0 + - - col2
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - col1 - 75 FROM tab1
----
-122
-80
-89

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= 35
----

query II rowsort
SELECT + ( - col2 ) - - - col1 + - col1 AS col0, col2 + - - 80 FROM tab1 AS cor0
----
-124
176
-162
148
-69
139

onlyif mysql # aggregate syntax: 
query II rowsort label-6386
SELECT ALL COUNT( * ), COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-6386
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-6387
SELECT - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - - ( + col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col0 FROM tab0 AS cor0
----
-12
-12
-12

query I rowsort
SELECT - 53 * + ( - col1 ) + - - col1 AS col2 FROM tab2 AS cor0
----
2754
3618
4158

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 cor0 WHERE NOT + col0 / col0 - - - col1 + 39 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT + COUNT( * ) * - COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6393
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab0 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT + col2 DIV + 97 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6394
SELECT + col2 / + 97 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL + MAX( ALL + - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + MAX ( ALL + - col2 ) FROM tab1
----
-59

query II rowsort
SELECT ALL col2, + 35 FROM tab2
----
23
35
40
35
58
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL - SUM( DISTINCT col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL - SUM ( DISTINCT col1 ) FROM tab0
----
-103

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + 24
----

query I rowsort
SELECT + ( + 47 ) FROM tab1 WHERE NOT col2 < NULL
----

query I rowsort
SELECT DISTINCT col2 * - + col1 * + - col2 + - ( + ( - 72 ) ) FROM tab0
----
179001
2172
9873

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6401
SELECT - - COUNT( CAST( - - col0 AS SIGNED ) ) * 36 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-6401
SELECT - - COUNT ( CAST ( - - col0 AS INTEGER ) ) * 36 FROM tab2 AS cor0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col1 + - 67 + - - col2 col0 FROM tab2 AS cor0
----
116
30
90

query I rowsort
SELECT ALL - - col1 + + + 11 AS col2 FROM tab1 AS cor0
----
16
25
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT + - MIN( col2 ) FROM tab1 AS cor0 WHERE col2 / + col0 IS NOT NULL OR ( NOT col1 IS NOT NULL )
----
-59

skipif mysql # not compatible
query I rowsort label-6404
SELECT + - MIN ( col2 ) FROM tab1 AS cor0 WHERE col2 / + col0 IS NOT NULL OR ( NOT col1 IS NOT NULL )
----
-59

query II rowsort
SELECT DISTINCT - - 63 + + 38 * + 93, - col2 + 26 AS col2 FROM tab1 AS cor0
----
3597
-33
3597
-42
3597
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 * - col1 * - col0 col0 FROM tab1
----
12852
7650
76986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 61 ) col1 FROM tab0 WHERE NOT ( 9 ) IS NULL
----
61
61
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6408
SELECT CAST( NULL AS SIGNED ) * 7 AS col2, + MAX( ALL - col1 ) AS col0 FROM tab1
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-6408
SELECT CAST ( NULL AS INTEGER ) * 7 AS col2, + MAX ( ALL - col1 ) AS col0 FROM tab1
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT DISTINCT + - COUNT( * ) + 20 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT + - COUNT ( * ) + 20 FROM tab1 AS cor0
----
17

query I rowsort
SELECT 8 AS col0 FROM tab0 cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL + COUNT( * ) * - ( + COUNT( * ) ) AS col1 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL + COUNT ( * ) * - ( + COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 38 - - 87 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 - - col0 + 12 * + col2 - - col1 * + col1 FROM tab1 AS cor0
----
1413
3163
823

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT MAX( - 15 ) + 4 AS col2 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-6414
SELECT MAX ( - 15 ) + 4 AS col2 FROM tab0
----
-11

query I rowsort
SELECT ALL col0 - + - 39 FROM tab0
----
126
136
54

query II rowsort
SELECT - col2 + + 33 * + 6, col2 FROM tab1
----
102
96
130
68
139
59

query I rowsort
SELECT 12 + + col1 * 21 - + col2 FROM tab2
----
1060
1361
1589

query I rowsort
SELECT ALL - 39 * 55 AS col0 FROM tab1
----
-2145
-2145
-2145

query I rowsort
SELECT ALL 11 * + col1 FROM tab1
----
154
517
55

query I rowsort
SELECT DISTINCT 1 / col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 + + - 64 + + col1 FROM tab0
----
-22
-62
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6422
SELECT DISTINCT - 45 DIV COUNT( - col2 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT - 45 / COUNT ( - col2 ) FROM tab0
----
-15

query II rowsort
SELECT ALL 98 AS col1, - col0 FROM tab0
----
98
-15
98
-87
98
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6424
SELECT ALL + 53 + col1 FROM tab2 cor0 WHERE NOT col2 < 98 + - 68 + + col1 DIV - 77 * 19
----
120
130

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL + 53 + col1 FROM tab2 cor0 WHERE NOT col2 < 98 + - 68 + + col1 / - 77 * 19
----
120
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL - + MAX( ALL - ( + col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL - + MAX ( ALL - ( + col2 ) ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT - CAST( - 64 AS SIGNED ) FROM tab0 AS cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-6426
SELECT - CAST ( - 64 AS INTEGER ) FROM tab0 AS cor0
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6427
SELECT ALL - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > 79
----

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > 79
----

query I rowsort
SELECT DISTINCT 80 + + col2 - - col2 + - col0 AS col2 FROM tab0 cor0
----
13
159
181

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT DISTINCT - COUNT( * ) * + 75 AS col0 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT - COUNT ( * ) * + 75 AS col0 FROM tab2 AS cor0
----
-225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6430
SELECT - COUNT( * ) - ( - + CAST( + COUNT( * ) AS SIGNED ) ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-6430
SELECT - COUNT ( * ) - ( - + CAST ( + COUNT ( * ) AS INTEGER ) ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, + col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL - - col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6433
SELECT DISTINCT - COUNT( * ), + 45 AS col0 FROM tab0 WHERE ( ( NOT ( NOT col0 BETWEEN NULL AND - col0 ) ) )
----
0
45

skipif mysql # not compatible
query II rowsort label-6433
SELECT DISTINCT - COUNT ( * ), + 45 AS col0 FROM tab0 WHERE ( ( NOT ( NOT col0 BETWEEN NULL AND - col0 ) ) )
----
0
45

query I rowsort
SELECT + ( 90 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col1 FROM tab2 AS cor0
----
-62
-62
-62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 / col1 * col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT MAX( ALL - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT 69 IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-6437
SELECT MAX ( ALL - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT 69 IS NULL
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6438
SELECT ALL + - COUNT( + CAST( + 10 AS SIGNED ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL + - COUNT ( + CAST ( + 10 AS INTEGER ) ) FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT + col1 DIV ( - + 9 ) col1 FROM tab2 cor0
----
-5
-7
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6439
SELECT + col1 / ( - + 9 ) col1 FROM tab2 cor0
----
-5
-7
-8

query II rowsort
SELECT col1 AS col2, - col2 AS col1 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + col0 ) NOT IN ( - col2, - col1 )
----

query II rowsort
SELECT + ( - col1 ) * 73, col1 * + 34 + - 91 - - col2 + 60 AS col2 FROM tab2
----
-3723
1726
-4891
2305
-5621
2627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6443
SELECT DISTINCT CAST( col2 AS SIGNED ) col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6443
SELECT DISTINCT CAST ( col2 AS INTEGER ) col0 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL + 19 AS col2 FROM tab1
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL - MAX( - + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL - MAX ( - + col1 ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + col1 / + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 IN ( - col1, - 37 / 27 / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 IN ( + col1 + - 31 * + 79, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL MIN( - 3 ) * COUNT( * ) * + 44 AS col2 FROM tab2
----
-396

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL MIN ( - 3 ) * COUNT ( * ) * + 44 AS col2 FROM tab2
----
-396

query II rowsort
SELECT DISTINCT - ( + 65 ), col2 AS col1 FROM tab1 cor0
----
-65
59
-65
68
-65
96

query II rowsort
SELECT ALL - col0 AS col2, + 24 FROM tab1
----
-51
24
-85
24
-91
24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6452
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - + ( - CAST( NULL AS DECIMAL ) ) * + CAST( NULL AS SIGNED ) * col1 BETWEEN NULL AND ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-6452
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - + ( - CAST ( NULL AS REAL ) ) * + CAST ( NULL AS INTEGER ) * col1 BETWEEN NULL AND ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + ( col2 ) * + - col0 col1 FROM tab1 AS cor0
----
-4845
-4930
-6097

query I rowsort
SELECT 60 + - - 67 + + col2 * col2 FROM tab1 AS cor0
----
3608
4751
9343

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 26 + + col0 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT ALL - - 79 + + COUNT( * ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL - - 79 + + COUNT ( * ) FROM tab1 AS cor0
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6457
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) >= 58
----

skipif mysql # not compatible
query I rowsort label-6457
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) >= 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6458
SELECT ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6459
SELECT + 31 AS col1, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
31
-3

skipif mysql # not compatible
query II rowsort label-6459
SELECT + 31 AS col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
31
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT DISTINCT + 93 + - COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT + 93 + - COUNT ( * ) FROM tab2 AS cor0
----
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT ALL + 11 + - ( COUNT( DISTINCT + - col1 ) ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL + 11 + - ( COUNT ( DISTINCT + - col1 ) ) FROM tab1
----
8

query I rowsort
SELECT + col2 * + + 33 FROM tab2
----
1320
1914
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col0 col2 FROM tab0
----
-66
66
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 NOT BETWEEN - + col2 AND - - 22 + - 14 * + - col1 * - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT + COUNT( * ) FROM tab0 WHERE ( 41 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6466
SELECT + COUNT ( * ) FROM tab0 WHERE ( 41 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 49 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT DISTINCT + MAX( ALL - - col0 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6468
SELECT DISTINCT + MAX ( ALL - - col0 ) col0 FROM tab0 AS cor0
----
97

query II rowsort
SELECT ALL - + col1, - ( - col2 ) FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN 92 AND - col2
----

query I rowsort
SELECT DISTINCT 52 * - - 89 * - col2 FROM tab1 AS cor0
----
-273052
-314704
-444288

onlyif mysql # DIV for integer division: 
query I rowsort label-6471
SELECT + - 94 DIV 45 * - - 54 FROM tab1 AS cor0
----
-108
-108
-108

skipif mysql # not compatible
query I rowsort label-6471
SELECT + - 94 / 45 * - - 54 FROM tab1 AS cor0
----
-108
-108
-108

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 13 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * col0 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6474
SELECT ALL - CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL - CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + - col0 + - col1 FROM tab2 AS cor0 WHERE NOT col1 * col1 * col1 + + col0 IS NOT NULL
----

query I rowsort
SELECT + + 22 AS col1 FROM tab2 cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query II rowsort label-6477
SELECT - + 57 AS col0, COUNT( * ) FROM tab1 AS cor0
----
-57
3

skipif mysql # not compatible
query II rowsort label-6477
SELECT - + 57 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
-57
3

query I rowsort
SELECT DISTINCT - - col0 + - col0 * - col2 - + col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + col1 * 22 FROM tab1 cor0
----
1034
110
308

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL 74 * + SUM( DISTINCT - + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-13690

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL 74 * + SUM ( DISTINCT - + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-13690

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6481
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 <> - + CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query III rowsort label-6481
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 <> - + CAST ( NULL AS INTEGER ) + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6482
SELECT + COUNT( * ) DIV 95, 88 AS col0 FROM tab2
----
0
88

skipif mysql # not compatible
query II rowsort label-6482
SELECT + COUNT ( * ) / 95, 88 AS col0 FROM tab2
----
0
88

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6484
SELECT - col1 DIV + col1 + - + ( - + col2 ) FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-6484
SELECT - col1 / + col1 + - + ( - + col2 ) FROM tab1
----
58
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT ALL + COUNT( + - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL + COUNT ( + - col2 ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT col1, col1 * - ( 41 ) AS col2 FROM tab0 AS cor0
----
1
-41
21
-861
81
-3321

query I rowsort
SELECT ALL col2 + + + col2 + + - 7 FROM tab2 cor0 WHERE NULL IS NULL
----
109
39
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT + 89 * + COUNT( * ) + + + 82 FROM tab2 AS cor0
----
349

skipif mysql # not compatible
query I rowsort label-6488
SELECT + 89 * + COUNT ( * ) + + + 82 FROM tab2 AS cor0
----
349

query I rowsort
SELECT DISTINCT col1 + col1 * - + 48 FROM tab1 AS cor0
----
-2209
-235
-658

query I rowsort
SELECT DISTINCT + - col1 * - 92 + - col1 AS col1 FROM tab2 AS cor0
----
4641
6097
7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT + 67 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT + 67 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + + + col2 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6494
SELECT DISTINCT + + col0 / - CAST( + ( - col1 ) AS SIGNED ) + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT + + col0 / - CAST ( + ( - col1 ) AS INTEGER ) + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - - 10 + - 4 + + 2
----

query I rowsort
SELECT - + 94 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT DISTINCT ( + + 84 ) + 49 + col1 + + col2 - - - col2 * col1 AS col0 FROM tab0 AS cor0
----
-3546
-46
134

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT - COUNT( * ) - - 40 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-6498
SELECT - COUNT ( * ) - - 40 FROM tab2 AS cor0
----
37

query I rowsort
SELECT col1 - + - 24 AS col2 FROM tab0 AS cor0
----
105
25
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT DISTINCT SUM( ALL 28 ) + ( + 17 ) AS col0 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT SUM ( ALL 28 ) + ( + 17 ) AS col0 FROM tab0 AS cor0
----
101

query I rowsort
SELECT ALL 27 FROM tab1 AS cor0 WHERE NULL IS NULL
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6502
SELECT DISTINCT - col1 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT - col1 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + 36 + col1 AS col2 FROM tab0
----
117
37
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6504
SELECT - COUNT( DISTINCT + 60 ) * + COUNT( * ) FROM tab1 WHERE + CAST( NULL AS SIGNED ) * col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6504
SELECT - COUNT ( DISTINCT + 60 ) * + COUNT ( * ) FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * col1 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + col1 col0 FROM tab1
----
-14
14
-47
47
-5
5

query I rowsort
SELECT - col2 * - + 0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6507
SELECT DISTINCT + 28, + SUM( col0 ) * 41 * - 48 AS col0 FROM tab0
----
28
-391632

skipif mysql # not compatible
query II rowsort label-6507
SELECT DISTINCT + 28, + SUM ( col0 ) * 41 * - 48 AS col0 FROM tab0
----
28
-391632

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT DISTINCT - SUM( DISTINCT + + col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT - SUM ( DISTINCT + + col0 ) AS col0 FROM tab2
----
-185

query II rowsort
SELECT DISTINCT 20, col2 FROM tab2
----
20
23
20
40
20
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6510
SELECT - CAST( NULL AS SIGNED ) AS col1, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-6510
SELECT - CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6512
SELECT - col1 DIV 18 AS col0 FROM tab2 AS cor0
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-6512
SELECT - col1 / 18 AS col0 FROM tab2 AS cor0
----
-2
-3
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6513
SELECT DISTINCT - 7 DIV - 76 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT - 7 / - 76 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6514
SELECT ALL + 45 DIV + + MIN( DISTINCT - col1 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL + 45 / + + MIN ( DISTINCT - col1 ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6515
SELECT ALL col2 * + CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL col2 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT DISTINCT COUNT( * ) + - 16 AS col0 FROM tab2 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT COUNT ( * ) + - 16 AS col0 FROM tab2 cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6517
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6517
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = CAST ( + col0 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab2 AS cor0 WHERE NOT col1 + + 83 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6519
SELECT - col0 + - col2 DIV + 17 + - col2 AS col2 FROM tab1 AS cor0
----
-147
-152
-163

skipif mysql # not compatible
query I rowsort label-6519
SELECT - col0 + - col2 / + 17 + - col2 AS col2 FROM tab1 AS cor0
----
-147
-152
-163

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6521
SELECT DISTINCT col0 DIV + ( - col0 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT col0 / + ( - col0 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT ALL - COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL - COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6523
SELECT - CAST( - 76 AS SIGNED ) + + 29 AS col1 FROM tab0
----
105
105
105

skipif mysql # not compatible
query I rowsort label-6523
SELECT - CAST ( - 76 AS INTEGER ) + + 29 AS col1 FROM tab0
----
105
105
105

query II rowsort
SELECT ALL 97, col2 FROM tab2
----
97
23
97
40
97
58

query II rowsort
SELECT + col1 AS col1, col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6526
SELECT CAST( CAST( - 84 AS SIGNED ) AS SIGNED ) AS col1, col2 FROM tab0
----
-84
10
-84
47
-84
99

skipif mysql # not compatible
query II rowsort label-6526
SELECT CAST ( CAST ( - 84 AS INTEGER ) AS INTEGER ) AS col1, col2 FROM tab0
----
-84
10
-84
47
-84
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6527
SELECT - COUNT( * ) DIV - + COUNT( * ) col1 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6527
SELECT - COUNT ( * ) / - + COUNT ( * ) col1 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 91 <= + + ( + col2 )
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT 22 * - col2 AS col0 FROM tab1
----
-1298
-1496
-2112

query I rowsort
SELECT DISTINCT + 2 + - col0 AS col1 FROM tab1 AS cor0
----
-49
-83
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6531
SELECT DISTINCT - 9 * - CAST( NULL AS SIGNED ) + MIN( ALL 34 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT - 9 * - CAST ( NULL AS INTEGER ) + MIN ( ALL 34 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 77 * - 12 + - 64 FROM tab0
----
860
860
860

query I rowsort
SELECT + col2 + - - 33 FROM tab0
----
132
43
80

query I rowsort
SELECT - 41 + + col0 FROM tab1
----
10
44
50

query II rowsort
SELECT ALL 12, 48 * - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 82 - - - col2
----

query I rowsort
SELECT + + 12 * - col2 AS col0 FROM tab2 AS cor0
----
-276
-480
-696

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + ( - 61 ) ) FROM tab2 AS cor0
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6539
SELECT ALL + CAST( NULL AS SIGNED ) * + - 64 * + col1 + + 67 * + col2 + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 64 * + col1 + + 67 * + col2 + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 67 AS col0, 99 AS col1 FROM tab0 cor0
----
67
99
67
99
67
99

query II rowsort
SELECT DISTINCT + 34 AS col0, col0 AS col2 FROM tab0 AS cor0
----
34
15
34
87
34
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT ALL - + SUM( - - 54 ) + 68 col2 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6542
SELECT ALL - + SUM ( - - 54 ) + 68 col2 FROM tab2 AS cor0
----
-94

query I rowsort
SELECT ALL - col2 + - col1 * + - col0 AS col2 FROM tab2 AS cor0
----
2323
4888
4967

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) + col2 + + 70 + - + col2 / - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 FROM tab1 WHERE + col1 * col1 + + - ( col2 ) * + - 91 / col0 IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( + + 21 ) IS NULL
----

query I rowsort
SELECT + - 48 * - - col0 FROM tab2 AS cor0
----
-2208
-3072
-3600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 * col0 + + col1 * ( + col2 ) col0 FROM tab2 AS cor0 WHERE - 15 + - col2 >= - col2 * col0
----
166920
330136
49841

query I rowsort
SELECT - + col2 * + - col1 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL BETWEEN 70 AND NULL
----

query I rowsort
SELECT + 22 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - + col1 AS col2, + 31 FROM tab2 AS cor0
----
-51
31
-67
31
-77
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT + COUNT( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6555
SELECT + COUNT ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT 54, col2 FROM tab0 AS cor0
----
54
10
54
47
54
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6557
SELECT - 38, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-38
3

skipif mysql # not compatible
query II rowsort label-6557
SELECT - 38, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-38
3

onlyif mysql # DIV for integer division: 
query II rowsort label-6558
SELECT ALL 52 AS col1, 20 DIV + ( + col1 ) + col2 DIV 22 * - col1 FROM tab2 AS cor0
----
52
-134
52
-51
52
-77

skipif mysql # not compatible
query II rowsort label-6558
SELECT ALL 52 AS col1, 20 / + ( + col1 ) + col2 / 22 * - col1 FROM tab2 AS cor0
----
52
-134
52
-51
52
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND + 55
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6560
SELECT + col0 col0 FROM tab0 WHERE + + CAST( - - col0 AS DECIMAL ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6560
SELECT + col0 col0 FROM tab0 WHERE + + CAST ( - - col0 AS REAL ) IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6561
SELECT * FROM tab0 WHERE + ( + CAST( NULL AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query III rowsort label-6561
SELECT * FROM tab0 WHERE + ( + CAST ( NULL AS INTEGER ) ) > NULL
----

query I rowsort
SELECT DISTINCT + col2 * + ( - col1 ) AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6563
SELECT 62 DIV - - 32 + - + col2 + + 84 AS col0 FROM tab2
----
27
45
62

skipif mysql # not compatible
query I rowsort label-6563
SELECT 62 / - - 32 + - + col2 + + 84 AS col0 FROM tab2
----
27
45
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT - COUNT( * ) + + 49 col0 FROM tab1
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6564
SELECT - COUNT ( * ) + + 49 col0 FROM tab1
----
46

query I rowsort
SELECT ALL 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL + col2 - col0 * - col2 FROM tab0
----
752
880
9702

query I rowsort
SELECT col0 - + - 95 FROM tab0
----
110
182
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - 15 col1 FROM tab2
----
-61
-79
-90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6569
SELECT ALL 77 DIV + CAST( + 90 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL 77 / + CAST ( + 90 AS INTEGER ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 - + + col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT + + col1 + + 47 AS col1 FROM tab2 AS cor0
----
114
124
98

query I rowsort
SELECT 36 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT - ( COUNT( col0 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6573
SELECT - ( COUNT ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT + SUM( col2 ) col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6574
SELECT DISTINCT + SUM ( col2 ) col2 FROM tab0 cor0
----
156

query I rowsort
SELECT col2 * + 96 FROM tab1 cor0
----
5664
6528
9216

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT - ( - 74 ) IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, + ( - + col1 ) * + 86 + 18 col1 FROM tab0
----
15
-6948
87
-1788
97
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT + + ( + + 94 ) + - SUM( - col1 ) AS col1 FROM tab1 WHERE NOT - col2 <= + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT + + ( + + 94 ) + - SUM ( - col1 ) AS col1 FROM tab1 WHERE NOT - col2 <= + - col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6579
SELECT ALL - - CAST( NULL AS SIGNED ) * + col1 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-6579
SELECT ALL - - CAST ( NULL AS INTEGER ) * + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6580
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ), col0, - - col0 * - + col0 * col2 + col2 + + col1, - CAST( NULL AS SIGNED ), - 82 )
----

skipif mysql # not compatible
query III rowsort label-6580
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ), col0, - - col0 * - + col0 * col2 + col2 + + col1, - CAST ( NULL AS INTEGER ), - 82 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 45 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6582
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE ( NOT - + col2 * CAST( - 36 AS SIGNED ) NOT BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE ( NOT - + col2 * CAST ( - 36 AS INTEGER ) NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT - - 77 + + - ( + - col1 ) FROM tab0 AS cor0
----
158
78
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6584
SELECT DISTINCT - 8 + 23 DIV col2 + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
16
32
50

skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT - 8 + 23 / col2 + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
16
32
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + COUNT( * ) + - 78 + + COUNT( * ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-6585
SELECT + COUNT ( * ) + - 78 + + COUNT ( * ) FROM tab1 AS cor0
----
-72

query I rowsort
SELECT ALL + col2 * + + 42 AS col2 FROM tab0
----
1974
4158
420

query I rowsort
SELECT DISTINCT 16 * - col2 FROM tab2
----
-368
-640
-928

query I rowsort
SELECT + 95 * - - 65 * col2 * + 23 FROM tab2
----
3266575
5681000
8237450

query I rowsort
SELECT ALL - col1 * + - col2 AS col2 FROM tab1
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 * - 63 + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 / col1 - - + col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT 83 * - col1 AS col0 FROM tab1
----
-1162
-3901
-415

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * + 19 AS col1 FROM tab2 AS cor0
----
1216
1425
874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT DISTINCT - col2 * + ( - col2 ) + + col1 + - 80 * - - col2 * + 92 * - - CAST( NULL AS SIGNED ) + + + col2 * col2 + 18 * - + 53 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT - col2 * + ( - col2 ) + + col1 + - 80 * - - col2 * + 92 * - - CAST ( NULL AS INTEGER ) + + + col2 * col2 + 18 * - + 53 AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - 69 * + 58
----

query I rowsort
SELECT - col1 + 48 AS col2 FROM tab0 AS cor0
----
-33
27
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6598
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE ( CAST( - - 23 AS SIGNED ) = col2 )
----

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE ( CAST ( - - 23 AS INTEGER ) = col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6599
SELECT ALL - col1 DIV + - col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL - col1 / + - col1 FROM tab2
----
1
1
1

query I rowsort
SELECT + + col1 FROM tab0 WHERE NOT ( NULL NOT BETWEEN + col0 AND - - 50 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6601
SELECT DISTINCT col0 DIV col2, col1 FROM tab1
----
0
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-6601
SELECT DISTINCT col0 / col2, col1 FROM tab1
----
0
14
1
47
1
5

query I rowsort
SELECT + ( col2 ) FROM tab1 cor0 WHERE NOT - 25 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 51 col2 FROM tab2 AS cor0
----
-2346
-3264
-3825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6604
SELECT - CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) * - 59 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) * - 59 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col1 * + + 17 AS col0 FROM tab1 AS cor0
----
-238
-799
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6607
SELECT + SUM( ALL + - 12 ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6607
SELECT + SUM ( ALL + - 12 ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT - SUM( - ( 26 ) ) * + + 72 AS col1 FROM tab0 cor0
----
5616

skipif mysql # not compatible
query I rowsort label-6608
SELECT - SUM ( - ( 26 ) ) * + + 72 AS col1 FROM tab0 cor0
----
5616

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 10 <> - col0 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 col2 FROM tab2
----
99
99
99

query I rowsort
SELECT ALL ( + 21 ) AS col0 FROM tab1
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT - MAX( - - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6612
SELECT - MAX ( - - col1 ) AS col0 FROM tab2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, 63 * - col1 FROM tab2 AS cor0
----
-23
-3213
-40
-4851
-58
-4221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - + col2 col0 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT + - col0 * - + col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 89, - 64 col0 FROM tab0 AS cor0
----
-89
-64
-89
-64
-89
-64

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE 88 IS NOT NULL
----
-23
-40
-58

query II rowsort
SELECT + - col2, 36 * - + 80 AS col1 FROM tab1 AS cor0
----
-59
-2880
-68
-2880
-96
-2880

onlyif mysql # aggregate syntax: 
query II rowsort label-6619
SELECT - + 7, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-7
3

skipif mysql # not compatible
query II rowsort label-6619
SELECT - + 7, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-7
3

query I rowsort
SELECT ALL 3 + 56 FROM tab1 AS cor0
----
59
59
59

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= NULL
----

query I rowsort
SELECT 32 + - 93 AS col0 FROM tab1 WHERE + col2 < - 31
----

query I rowsort
SELECT ALL - col1 * + col0 + - col2 + 45 FROM tab2
----
-2324
-4923
-5038

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col1 col1, 21 FROM tab1
----
1344
21
295
21
3196
21

query I rowsort
SELECT DISTINCT col1 * - + col2 - 8 AS col2 FROM tab1
----
-1352
-303
-3204

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( ( - 48 ) + - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6627
SELECT ALL + ( + - 8 ) DIV 67 * - 53 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL + ( + - 8 ) / 67 * - 53 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 79 ) + - 4 col2 FROM tab2
----
-83
-83
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6629
SELECT COUNT( * ) DIV - 46 - + - COUNT( * ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6629
SELECT COUNT ( * ) / - 46 - + - COUNT ( * ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + ( - + col2 ) + - col2 AS col2 FROM tab2 cor0
----
-116
-46
-80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 37 + + 34 IS NULL
----

query II rowsort
SELECT 41, col2 FROM tab1
----
41
59
41
68
41
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT SUM( 54 ) FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-6633
SELECT SUM ( 54 ) FROM tab0
----
162

query III rowsort
SELECT ALL * FROM tab1 WHERE 88 * + 13 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 * + col2 col1 FROM tab1
----
1056
649
748

query II rowsort
SELECT ALL 98 AS col0, + col0 AS col2 FROM tab0
----
98
15
98
87
98
97

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - col1 IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL + - 5 AS col1 FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6639
SELECT DISTINCT - CAST( + 11 AS SIGNED ) FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT - CAST ( + 11 AS INTEGER ) FROM tab2 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT - - COUNT( ALL + col2 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6640
SELECT - - COUNT ( ALL + col2 ) col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col1 * 23 FROM tab0 AS cor0
----
1863
23
483

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 NOT BETWEEN - col0 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT ALL - ( + + MIN( - - 83 ) ) * - + COUNT( * ) FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL - ( + + MIN ( - - 83 ) ) * - + COUNT ( * ) FROM tab2 AS cor0
----
249

query I rowsort
SELECT ALL 84 * col0 FROM tab2
----
3864
5376
6300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6645
SELECT ALL + COUNT( * ) DIV - 40 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6645
SELECT ALL + COUNT ( * ) / - 40 col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> + + 35 / + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT COUNT( 30 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6647
SELECT COUNT ( 30 ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6648
SELECT DISTINCT 18 DIV COUNT( * ) * + ( - COUNT( * ) ) * + MIN( + col1 ) * - 19 AS col2 FROM tab2
----
17442

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT 18 / COUNT ( * ) * + ( - COUNT ( * ) ) * + MIN ( + col1 ) * - 19 AS col2 FROM tab2
----
17442

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT ALL MAX( - - col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL MAX ( - - col1 ) FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT DISTINCT + COUNT( * ) + - - 33 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT + COUNT ( * ) + - - 33 FROM tab1 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT ALL - CAST( NULL AS SIGNED ) + + - 24 * + col2 * + col2 * - 73 + ( + col1 ) 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-6651
SELECT ALL - CAST ( NULL AS INTEGER ) + + - 24 * + col2 * + col2 * - 73 + ( + col1 ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6652
SELECT - col0 * - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT - col0 * - - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ( - MAX( col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6653
SELECT ( - MAX ( col1 ) ) FROM tab0
----
-81

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6655
SELECT DISTINCT - col1 + + col0 * CAST( NULL AS SIGNED ) - col1 col0 FROM tab1 AS cor0 WHERE + 22 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6655
SELECT DISTINCT - col1 + + col0 * CAST ( NULL AS INTEGER ) - col1 col0 FROM tab1 AS cor0 WHERE + 22 IS NULL
----

query II rowsort
SELECT ALL + col2, - col0 / + 66 - - + col0 - - 96 AS col0 FROM tab0 AS cor0 WHERE col2 * - col2 + - 4 >= NULL
----

query I rowsort
SELECT ALL 66 * - 22 * col2 + - 52 FROM tab2 AS cor0
----
-33448
-58132
-84268

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL <= - col1
----
0

skipif mysql # not compatible
query I rowsort label-6658
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <= - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT DISTINCT COUNT( ( col2 ) ) - + 38 AS col2 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT COUNT ( ( col2 ) ) - + 38 AS col2 FROM tab0
----
-35

query I rowsort
SELECT ALL + col1 - + + col0 + + + col2 FROM tab0
----
-56
113
3

query III rowsort
SELECT * FROM tab1 WHERE + col1 * - - col1 / - + col2 NOT IN ( - - col1, 60 * - col1, col0 * col0 - + col2 - 61 / - col2, + 87 + - + 5, - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 28 FROM tab1 WHERE NOT NULL IN ( - col0, + 84 * + col1 - + - 1 + + 66, - + 27, - 21 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - col1 col2 FROM tab2 cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL + - col2 + 45 - + col2 FROM tab1 AS cor0
----
-147
-73
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - + 1 NOT BETWEEN - + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 97 <> - 49 + - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT COUNT( * ) + + + 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
30

skipif mysql # not compatible
query I rowsort label-6667
SELECT COUNT ( * ) + + + 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
30

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6669
SELECT ALL + - col0 / - + 32 AS col0 FROM tab1 WHERE col2 + - col2 >= + + col0 + - + 79 + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL + - col0 / - + 32 AS col0 FROM tab1 WHERE col2 + - col2 >= + + col0 + - + 79 + - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 43 + - 6 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
37

query I rowsort
SELECT DISTINCT - 91 * - col2 AS col0 FROM tab0
----
4277
9009
910

query I rowsort
SELECT ALL - 18 AS col2 FROM tab1
----
-18
-18
-18

query I rowsort
SELECT + + col2 * + + col2 - 94 FROM tab1 AS cor0
----
3387
4530
9122

query I rowsort
SELECT DISTINCT + + 78 AS col1 FROM tab0 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT - + MIN( col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6675
SELECT - + MIN ( col2 ) FROM tab2 cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6676
SELECT DISTINCT + CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT DISTINCT + CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6677
SELECT ALL - COUNT( * ) * + 69 - CAST( NULL AS SIGNED ) * - + 46 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - COUNT ( * ) * + 69 - CAST ( NULL AS INTEGER ) * - + 46 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6678
SELECT + + 45 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6678
SELECT + + 45 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - + col0 * col0 FROM tab2 cor0
----
262144
421875
97336

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT DISTINCT - 26 DIV col1 DIV ( - 44 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT - 26 / col1 / ( - 44 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT + col2 + + 53 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 12 col1, 13 FROM tab0
----
-12
13
-12
13
-12
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col0 AS col2 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT ALL MIN( DISTINCT col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL MIN ( DISTINCT col2 ) FROM tab0
----
10

query I rowsort
SELECT DISTINCT ( - col2 ) * - 12 FROM tab1 AS cor0
----
1152
708
816

onlyif mysql # DIV for integer division: 
query I rowsort label-6686
SELECT - 27 * + col2 + - + col0 DIV col2 + + col2 FROM tab1 AS cor0
----
-1535
-1769
-2496

skipif mysql # not compatible
query I rowsort label-6686
SELECT - 27 * + col2 + - + col0 / col2 + + col2 FROM tab1 AS cor0
----
-1535
-1769
-2496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 + + col2 col1 FROM tab0 AS cor0
----
108
19
56

query I rowsort
SELECT col2 + + 64 AS col2 FROM tab1 AS cor0
----
123
132
160

query I rowsort
SELECT ALL ( col2 ) + - col2 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + - col0 IN ( + col1 * ( - 99 * - col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT - ( ( MIN( DISTINCT col0 ) ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6691
SELECT - ( ( MIN ( DISTINCT col0 ) ) ) FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 ) > - col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT + ( CAST( col0 AS SIGNED ) ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6693
SELECT + ( CAST ( col0 AS INTEGER ) ) FROM tab0
----
15
87
97

query I rowsort
SELECT ALL - 80 + 49 AS col2 FROM tab1 WHERE NOT + col0 - - 28 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 46 * - col2 + + col2 ) IS NULL
----

query I rowsort
SELECT ALL 64 * col1 AS col1 FROM tab2
----
3264
4288
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT col0 DIV 28 AS col2 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6697
SELECT col0 / 28 AS col2 FROM tab2
----
1
2
2

query I rowsort
SELECT ALL + 32 * 50 - 1 FROM tab1
----
1599
1599
1599

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT - COUNT( * ) FROM tab1 WHERE NULL = + col0
----
0

skipif mysql # not compatible
query I rowsort label-6699
SELECT - COUNT ( * ) FROM tab1 WHERE NULL = + col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6700
SELECT + 82 DIV COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-6700
SELECT + 82 / COUNT ( * ) FROM tab1
----
27

query I rowsort
SELECT 86 * + 28 FROM tab2 WHERE - col1 + + 82 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT BETWEEN + ( + col0 ) AND - col1 * col1
----

query I rowsort
SELECT ALL 71 - + col2 FROM tab0
----
-28
24
61

query I rowsort
SELECT + col0 * + 60 FROM tab1
----
3060
5100
5460

query I rowsort
SELECT DISTINCT + 65 + - col2 AS col0 FROM tab2
----
25
42
7

query I rowsort
SELECT ALL col0 + 50 FROM tab0
----
137
147
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT + COUNT( + col2 ) + ( COUNT( * ) ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6707
SELECT + COUNT ( + col2 ) + ( COUNT ( * ) ) AS col1 FROM tab2
----
6

query I rowsort
SELECT 93 + col1 AS col1 FROM tab2
----
144
160
170

query III rowsort
SELECT * FROM tab0 WHERE 65 + 46 BETWEEN NULL AND 48 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6711
SELECT DISTINCT + col2 DIV 80 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT + col2 / 80 FROM tab0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 29 ) NOT BETWEEN + col0 AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6713
SELECT ALL COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab0 cor0 WHERE NOT ( col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab0 cor0 WHERE NOT ( col1 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - col0 / col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( + col0 * 16 )
----

query I rowsort
SELECT + col1 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col0 AND + 79 - col2 * col0
----

query I rowsort
SELECT ALL + col2 * 40 AS col1 FROM tab1 AS cor0
----
2360
2720
3840

query I rowsort
SELECT DISTINCT col0 * - 50 AS col0 FROM tab0 AS cor0
----
-4350
-4850
-750

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 37 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 12 * col0 - 15 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT ALL + SUM( + 35 ) AS col0 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + SUM ( + 35 ) AS col0 FROM tab1 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT + - 68 + MAX( + col1 + 40 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-419

skipif mysql # not compatible
query I rowsort label-6723
SELECT + - 68 + MAX ( + col1 + 40 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-419

query I rowsort
SELECT ALL - col1 + + 93 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 * col0 + + col2 ) BETWEEN + col2 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 91 * - 95 FROM tab1
----
-8645

query I rowsort
SELECT - 48 * 69 FROM tab2 WHERE NOT ( - col1 ) <> - 62
----

query I rowsort
SELECT DISTINCT + ( ( + col1 ) ) * + col1 AS col1 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT DISTINCT 24 * - CAST( ( - col1 ) AS SIGNED ) FROM tab1
----
1128
120
336

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT 24 * - CAST ( ( - col1 ) AS INTEGER ) FROM tab1
----
1128
120
336

query I rowsort
SELECT DISTINCT + 8 * 8 FROM tab0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 + col0 col2 FROM tab2 AS cor0
----
134
152
163

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 - col1 BETWEEN col1 * - col1 - ( col1 + col2 ) AND ( + 33 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 + - col2 col1 FROM tab0 AS cor0 WHERE NULL < col1 + 74 / + 88
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 54 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT DISTINCT - COUNT( * ) + ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT - COUNT ( * ) + ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-6

query I rowsort
SELECT ALL + - col0 + - 46 + col1 AS col1 FROM tab1 AS cor0
----
-126
-83
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT + + 9 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6737
SELECT + + 9 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT + - col0 + - + col2 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT 63 + + + col1 FROM tab2
----
114
130
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6740
SELECT + CAST( 93 AS SIGNED ) + - col2 AS col0 FROM tab1
----
-3
25
34

skipif mysql # not compatible
query I rowsort label-6740
SELECT + CAST ( 93 AS INTEGER ) + - col2 AS col0 FROM tab1
----
-3
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ( + COUNT( ALL col0 ) ) * - ( 3 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + - 30 )
----
0

skipif mysql # not compatible
query I rowsort label-6741
SELECT ( + COUNT ( ALL col0 ) ) * - ( 3 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + - 30 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6742
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + CAST( NULL AS SIGNED ) AND 34
----
15
81
47

skipif mysql # not compatible
query III rowsort label-6742
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND 34
----
15
81
47

query I rowsort
SELECT + + col2 AS col1 FROM tab1 AS cor0 WHERE 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL 18 + - + COUNT( * ) AS col1 FROM tab2 cor0
----
15

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL 18 + - + COUNT ( * ) AS col1 FROM tab2 cor0
----
15

query II rowsort
SELECT - - col0 AS col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT MIN( + col2 ) - 4 col0 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6746
SELECT MIN ( + col2 ) - 4 col0 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----
NULL

query I rowsort
SELECT ALL - col0 * + + col1 - col1 + + 20 * - 23 * - col2 - + 81 AS col0 FROM tab1 AS cor0
----
26629
26875
43351

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT + col1 DIV + - 57 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6748
SELECT + col1 / + - 57 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6749
SELECT ALL + COUNT( * ) + - + COUNT( * ) * - - 96 + - 17 DIV COUNT( col0 - col0 ) FROM tab0 AS cor0
----
-290

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) * - - 96 + - 17 / COUNT ( col0 - col0 ) FROM tab0 AS cor0
----
-290

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6750
SELECT - col1 * CAST( NULL AS DECIMAL ) - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT - col1 * CAST ( NULL AS REAL ) - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col0 >= - col2
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + col2 - + col0 * + ( + 53 ) NOT BETWEEN col0 - 93 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 51 * col0 FROM tab2 WHERE NOT - col2 * col1 * - 14 IS NULL
----
2346
3264
3825

query I rowsort
SELECT + 58 AS col2 FROM tab2 WHERE NOT NULL IN ( - 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT MIN( - ( col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT MIN ( - ( col2 ) ) FROM tab2
----
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT + 23 / - col1 * + col0 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6758
SELECT DISTINCT COUNT( * ) DIV ( - COUNT( * ) ) * - + ( COUNT( * ) ) + COUNT( * ) AS col1 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT COUNT ( * ) / ( - COUNT ( * ) ) * - + ( COUNT ( * ) ) + COUNT ( * ) AS col1 FROM tab1 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT ALL - ( - + COUNT( col1 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL - ( - + COUNT ( col1 ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6760
SELECT col1, CAST( + - col1 AS DECIMAL ) / + col1 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-6760
SELECT col1, CAST ( + - col1 AS REAL ) / + col1 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 15 * + 34 AS col1 FROM tab1 AS cor0 WHERE NOT ( - 58 ) NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( col0 * + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT - MAX( - - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6763
SELECT - MAX ( - - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT DISTINCT + 99, col0 * col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - 16 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 * + - col2 col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6766
SELECT + 34 * CAST( - COUNT( * ) * 44 AS SIGNED ) col1 FROM tab1 cor0 WHERE NOT ( + - col0 ) - - - 16 * - - col0 * + col0 IS NULL
----
-4488

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6766
SELECT + 34 * CAST ( - COUNT ( * ) * 44 AS INTEGER ) col1 FROM tab1 cor0 WHERE NOT ( + - col0 ) - - - 16 * - - col0 * + col0 IS NULL
----
-4488

query I rowsort
SELECT + col1 * col1 + + col0 FROM tab2 AS cor0
----
2647
4564
5993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col2 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL 98 AS col0 FROM tab0 cor0 WHERE col2 * + col1 > - - col0 * col2
----
98

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT ( + col2 ) BETWEEN - ( - + 40 ) + - col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT - COUNT( * ) + - + MIN( ALL - 88 ) FROM tab1 WHERE col1 < ( 89 )
----
85

skipif mysql # not compatible
query I rowsort label-6771
SELECT - COUNT ( * ) + - + MIN ( ALL - 88 ) FROM tab1 WHERE col1 < ( 89 )
----
85

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6773
SELECT + col1 AS col0 FROM tab2 WHERE 6 NOT BETWEEN ( NULL ) AND 44 * + + col2 / - 74 + + col0 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6773
SELECT + col1 AS col0 FROM tab2 WHERE 6 NOT BETWEEN ( NULL ) AND 44 * + + col2 / - 74 + + col0 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - 72 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT DISTINCT 88 * + COUNT( - + 74 ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT 88 * + COUNT ( - + 74 ) FROM tab0
----
264

query I rowsort
SELECT + col0 * - - col0 + + + col1 FROM tab2
----
2167
4173
5692

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT ( - col2 * + 64 ) NOT BETWEEN ( col2 ) AND ( + ( col2 ) * - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 33
----

query III rowsort
SELECT * FROM tab0 WHERE ( + - col1 ) NOT IN ( + 72 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6780
SELECT 96 + - + SUM( + col1 ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6780
SELECT 96 + - + SUM ( + col1 ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + - col0 + + + col1 FROM tab0 AS cor0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 + col1 col0 FROM tab2 AS cor0
----
112
128
138

query I rowsort
SELECT 68 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 + 50 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
131
51
71

query I rowsort
SELECT col0 * - col0 * 2 + col0 + col1 AS col1 FROM tab0 AS cor0
----
-15030
-18720
-354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6786
SELECT + ( - ( - - 84 ) ) * 75 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( + 46, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6786
SELECT + ( - ( - - 84 ) ) * 75 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( + 46, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + + col1 + - + col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 73 col1 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL ( + ( + + 67 ) ) * + ( - 92 ) + MIN( DISTINCT 59 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-6105

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL ( + ( + + 67 ) ) * + ( - 92 ) + MIN ( DISTINCT 59 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-6105

onlyif mysql # aggregate syntax: 
query II rowsort label-6790
SELECT ALL + 86 + COUNT( * ) AS col1, COUNT( * ) FROM tab0 WHERE NOT - 79 IS NULL
----
89
3

skipif mysql # not compatible
query II rowsort label-6790
SELECT ALL + 86 + COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 WHERE NOT - 79 IS NULL
----
89
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6791
SELECT - 92 - + col1 DIV + + col0 FROM tab2
----
-92
-93
-93

skipif mysql # not compatible
query I rowsort label-6791
SELECT - 92 - + col1 / + + col0 FROM tab2
----
-92
-93
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT ( col0 ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - + col2 col1 FROM tab1 AS cor0
----
-21
-54
-82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 17 * + 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 * + col1 ) = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT 44 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6796
SELECT 44 / - col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 + + + col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT DISTINCT col2 DIV + 74 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT col2 / + 74 FROM tab0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT ALL - 41 * ( 71 ) DIV - col0 FROM tab0
----
194
30
33

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL - 41 * ( 71 ) / - col0 FROM tab0
----
194
30
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6800
SELECT ALL - col1 DIV 84 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL - col1 / 84 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT DISTINCT - SUM( 24 ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT - SUM ( 24 ) AS col0 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT COUNT( + + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6802
SELECT COUNT ( + + col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6803
SELECT + 97 AS col2, + COUNT( * ) FROM tab0
----
97
3

skipif mysql # not compatible
query II rowsort label-6803
SELECT + 97 AS col2, + COUNT ( * ) FROM tab0
----
97
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6804
SELECT DISTINCT + COUNT( * ) DIV + ( COUNT( * ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT + COUNT ( * ) / + ( COUNT ( * ) ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 * + 75 col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * + - col1 * col1 - col1 + 26 FROM tab2 AS cor0
----
-237211
-260403
-59848

query II rowsort
SELECT DISTINCT + col0 AS col0, 4 AS col0 FROM tab2 AS cor0
----
46
4
64
4
75
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6808
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6809
SELECT ALL - COUNT( * ) AS col2, 17 AS col2 FROM tab0 AS cor0
----
-3
17

skipif mysql # not compatible
query II rowsort label-6809
SELECT ALL - COUNT ( * ) AS col2, 17 AS col2 FROM tab0 AS cor0
----
-3
17

query I rowsort
SELECT ALL - - 20 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT - col2 * col0 + + col0 AS col0 FROM tab2 cor0
----
-1012
-2496
-4275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6812
SELECT ALL - CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL - CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - + 99 ) col2, col0 FROM tab0 AS cor0
----
99
15
99
87
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + 64 + + ( - - 6 ) col1 FROM tab1 AS cor0
----
-3002
-314
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT + COUNT( * ) + 85 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-6815
SELECT + COUNT ( * ) + 85 FROM tab2 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT DISTINCT - + MAX( 79 ) + - ( - - COUNT( * ) ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT - + MAX ( 79 ) + - ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
-82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * + col0 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6818
SELECT 78 * + - CAST( + col0 AS SIGNED ) AS col2 FROM tab0
----
-1170
-6786
-7566

skipif mysql # not compatible
query I rowsort label-6818
SELECT 78 * + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6819
SELECT + 78 DIV 89 DIV COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6819
SELECT + 78 / 89 / COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT 68 * + + 57 AS col0 FROM tab0
----
3876
3876
3876

query I rowsort
SELECT DISTINCT + col2 * + + col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT DISTINCT + 14 * + COUNT( * ) AS col1 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT + 14 * + COUNT ( * ) AS col1 FROM tab1
----
42

query II rowsort
SELECT col2, col1 AS col2 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL + 81 * - col0 AS col2 FROM tab1
----
-4131
-6885
-7371

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT + SUM( ALL - - 80 ) AS col2 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT + SUM ( ALL - - 80 ) AS col2 FROM tab2
----
240

query I rowsort
SELECT ALL col2 + ( - 39 ) FROM tab2
----
-16
1
19

query I rowsort
SELECT - 97 * + 16 FROM tab1 AS cor0 WHERE - col0 <> + col1
----
-1552
-1552
-1552

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6828
SELECT - - 69 + + + col1 - - CAST( NULL AS DECIMAL ), - col2 - CAST( NULL AS SIGNED ) / ( - - col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6828
SELECT - - 69 + + + col1 - - CAST ( NULL AS REAL ), - col2 - CAST ( NULL AS INTEGER ) / ( - - col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 68 + + col1 FROM tab2 AS cor0
----
119
135
145

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= - - col1
----

query I rowsort
SELECT ALL + col1 + - + 65 AS col2 FROM tab1 AS cor0
----
-18
-51
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT 55 + + COUNT( * ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-6832
SELECT 55 + + COUNT ( * ) FROM tab1
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0, - 96 AS col0 FROM tab0 AS cor0
----
-15
-96
-87
-96
-97
-96

query I rowsort
SELECT ALL 58 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + 59 col1 FROM tab1 AS cor0
----
-3481
-4012
-5664

onlyif mysql # DIV for integer division: 
query I rowsort label-6837
SELECT col2 DIV - + 23 FROM tab0 AS cor0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-6837
SELECT col2 / - + 23 FROM tab0 AS cor0
----
-2
-4
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT - + MAX( DISTINCT - 19 ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6839
SELECT - + MAX ( DISTINCT - 19 ) FROM tab0 AS cor0
----
19

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2 + - + 78
----

query II rowsort
SELECT 88, 50 FROM tab0 WHERE NOT NULL IN ( - col0, col2 / + col2 + - - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT DISTINCT + 75 DIV - col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT + 75 / - col2 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6843
SELECT DISTINCT 8 DIV col2 col1, 43 FROM tab2
----
0
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6843
SELECT DISTINCT 8 / col2 col1, 43 FROM tab2
----
0
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6844
SELECT ALL + CAST( - col1 AS SIGNED ), - col1 AS col2 FROM tab1
----
-14
-14
-47
-47
-5
-5

skipif mysql # not compatible
query II rowsort label-6844
SELECT ALL + CAST ( - col1 AS INTEGER ), - col1 AS col2 FROM tab1
----
-14
-14
-47
-47
-5
-5

query II rowsort
SELECT - + 66 AS col1, col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6846
SELECT + MAX( col1 ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
77
3

skipif mysql # not compatible
query II rowsort label-6846
SELECT + MAX ( col1 ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
77
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 67 - - 77 > NULL
----

query I rowsort
SELECT ALL + + col2 * - 93 AS col1 FROM tab1 AS cor0
----
-5487
-6324
-8928

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT + + col1 + + col2 IN ( + 88 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6850
SELECT DISTINCT + COUNT( * ) AS col1, - 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-76

skipif mysql # not compatible
query II rowsort label-6850
SELECT DISTINCT + COUNT ( * ) AS col1, - 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT SUM( ALL 97 ) AS col2 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-6851
SELECT SUM ( ALL 97 ) AS col2 FROM tab2 AS cor0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT DISTINCT 71 * - col2 * ( + + ( ( + - CAST( NULL AS SIGNED ) ) ) ) * - - ( - + 2 ) + + 61 FROM tab1 AS cor0 WHERE 40 * col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT 71 * - col2 * ( + + ( ( + - CAST ( NULL AS INTEGER ) ) ) ) * - - ( - + 2 ) + + 61 FROM tab1 AS cor0 WHERE 40 * col2 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 + - 28 * - col0 * + col0 * + col2 * + + col1 col2 FROM tab0 AS cor0
----
23984101
26081749
44505721

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT + COUNT( ALL 77 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6854
SELECT + COUNT ( ALL 77 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6855
SELECT DISTINCT SUM( + CAST( - + ( 14 ) AS SIGNED ) ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6855
SELECT DISTINCT SUM ( + CAST ( - + ( 14 ) AS INTEGER ) ) FROM tab2 AS cor0
----
-42

query I rowsort
SELECT + col2 FROM tab1 WHERE + 86 IS NULL
----

query I rowsort
SELECT + col1 + + col0 + - col1 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6858
SELECT ALL + CAST( - col2 AS SIGNED ) * col2 * - col2 FROM tab0
----
1000
103823
970299

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL + CAST ( - col2 AS INTEGER ) * col2 * - col2 FROM tab0
----
1000
103823
970299

query I rowsort
SELECT col0 * - 1 + + + col0 + - + col0 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-6860
SELECT ( - + col1 ) + - + col2 + - 28 DIV + 73, - col0 * + col1 AS col2 FROM tab1
----
-110
-714
-115
-4277
-64
-425

skipif mysql # not compatible
query II rowsort label-6860
SELECT ( - + col1 ) + - + col2 + - 28 / + 73, - col0 * + col1 AS col2 FROM tab1
----
-110
-714
-115
-4277
-64
-425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6861
SELECT - col0 / + - col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6861
SELECT - col0 / + - col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6862
SELECT col0 + col2 + - - col0 DIV - col1, + col1 FROM tab0
----
62
81
93
21
99
1

skipif mysql # not compatible
query II rowsort label-6862
SELECT col0 + col2 + - - col0 / - col1, + col1 FROM tab0
----
62
81
93
21
99
1

query I rowsort
SELECT + 61 + col2 * - col1 FROM tab1
----
-1283
-234
-3135

query I rowsort
SELECT 86 + + col0 FROM tab2
----
132
150
161

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6865
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-6865
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 < 33 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ( + ( - COUNT( * ) ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6867
SELECT ( + ( - COUNT ( * ) ) ) FROM tab0 cor0
----
-3

query I rowsort
SELECT ( + + 53 ) - + ( 11 ) FROM tab1
----
42
42
42

query I rowsort
SELECT DISTINCT + 89 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
89

query I rowsort
SELECT DISTINCT - ( - + col2 ) FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT MAX( ALL 30 ) * + + COUNT( * ) AS col2 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-6871
SELECT MAX ( ALL 30 ) * + + COUNT ( * ) AS col2 FROM tab2
----
90

query I rowsort
SELECT DISTINCT 88 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE NOT - 11 * - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6874
SELECT + + COUNT( * ) AS col2, + MAX( ALL col0 ) FROM tab1 AS cor0
----
3
91

skipif mysql # not compatible
query II rowsort label-6874
SELECT + + COUNT ( * ) AS col2, + MAX ( ALL col0 ) FROM tab1 AS cor0
----
3
91

query I rowsort
SELECT DISTINCT - 87 * - col1 FROM tab2 cor0
----
4437
5829
6699

query I rowsort
SELECT ALL + - 42 * + 42 FROM tab2 AS cor0
----
-1764
-1764
-1764

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 * - - col1 BETWEEN ( + col0 + + - 49 - + col0 + - col0 * - 43 * + 41 * 70 * - 19 ) AND col1 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT + + col1 DIV + - col2 col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6878
SELECT + + col1 / + - col2 col2 FROM tab2 AS cor0
----
-1
-1
-2

query II rowsort
SELECT col0, col2 AS col2 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6880
SELECT ALL col2 DIV + - col2 + - + col0 * - 75 AS col2 FROM tab0 AS cor0
----
1124
6524
7274

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL col2 / + - col2 + - + col0 * - 75 AS col2 FROM tab0 AS cor0
----
1124
6524
7274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6881
SELECT + 34 col0, CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0 FROM tab1
----
34
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6881
SELECT + 34 col0, CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1
----
34
NULL

query II rowsort
SELECT - col0, col1 AS col2 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT DISTINCT - ( - COUNT( 8 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT - ( - COUNT ( 8 ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6884
SELECT + MIN( col0 ) * - - 46 - - CAST( NULL AS DECIMAL ) + - 90 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6884
SELECT + MIN ( col0 ) * - - 46 - - CAST ( NULL AS REAL ) + - 90 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 64 * + 90 AS col2 FROM tab2
----
5760
5760
5760

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= 87
----

query I rowsort
SELECT - 64 AS col1 FROM tab1 WHERE NULL IS NULL
----
-64
-64
-64

query I rowsort
SELECT + - 50 AS col0 FROM tab2 WHERE col1 <> + 46 - - col0
----
-50
-50
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6890
SELECT DISTINCT COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 BETWEEN - + col2 AND + - 70
----

query I rowsort
SELECT DISTINCT - col0 + + - col2 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6893
SELECT ALL - 74 + 68, - 33 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6
99

skipif mysql # not compatible
query II rowsort label-6893
SELECT ALL - 74 + 68, - 33 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6894
SELECT * FROM tab1 AS cor0 WHERE + 80 NOT IN ( 4, - CAST( NULL AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query III rowsort label-6894
SELECT * FROM tab1 AS cor0 WHERE + 80 NOT IN ( 4, - CAST ( NULL AS INTEGER ), - col0 )
----

query I rowsort
SELECT DISTINCT 91 + + - 63 + - - col2 + col0 * + col1 * - col2 AS col0 FROM tab0
----
-18232
-57030
-9476

query I rowsort
SELECT DISTINCT - 1 AS col0 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 * - + col2 col0 FROM tab0
----
-1833
-3861
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT DISTINCT + COUNT( + 62 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT + COUNT ( + 62 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT DISTINCT COUNT( * ) - - + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT COUNT ( * ) - - + COUNT ( * ) AS col0 FROM tab1
----
6

query III rowsort
SELECT * FROM tab0 WHERE 8 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6901
SELECT DISTINCT + + 93 DIV - + col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT + + 93 / - + col2 FROM tab2 WHERE NOT + col1 IS NULL
----
-1
-2
-4

query I rowsort
SELECT 33 - - col1 AS col0 FROM tab2 AS cor0
----
100
110
84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 ) >= ( + col0 + 64 - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6904
SELECT 84 + + + CAST( NULL AS SIGNED ) * + - 68 * + 69 * + 43 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT 84 + + + CAST ( NULL AS INTEGER ) * + - 68 * + 69 * + 43 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6905
SELECT DISTINCT - col2 - + col1 + + CAST( + - 9 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
-263
-814
-973

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT - col2 - + col1 + + CAST ( + - 9 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
-263
-814
-973

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6906
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) / + 32 < NULL
----

skipif mysql # not compatible
query III rowsort label-6906
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) / + 32 < NULL
----

query I rowsort
SELECT - col2 * + 5 + - + 90 + - - col1 / - 62 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6908
SELECT + CAST( + + ( - ( MIN( ALL + 16 ) ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6908
SELECT + CAST ( + + ( - ( MIN ( ALL + 16 ) ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT DISTINCT COUNT( DISTINCT + ( ( col2 ) ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT COUNT ( DISTINCT + ( ( col2 ) ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6910
SELECT + + CAST( + col0 AS SIGNED ), 97 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6910
SELECT + + CAST ( + col0 AS INTEGER ), 97 FROM tab2 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT DISTINCT + ( - 17 ) * + + COUNT( * ) col1 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6911
SELECT DISTINCT + ( - 17 ) * + + COUNT ( * ) col1 FROM tab0 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT DISTINCT + 51 * - COUNT( * ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT + 51 * - COUNT ( * ) FROM tab0 AS cor0
----
-153

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( - col0 BETWEEN 54 + - col1 AND - + col2 / - col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6914
SELECT DISTINCT MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - 35 FROM tab0
----
1645
3465
350

query I rowsort
SELECT DISTINCT col1 * + + 92 AS col1 FROM tab1 AS cor0
----
1288
4324
460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT 59 + - CAST( + AVG ( DISTINCT + 86 ) AS SIGNED ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-6917
SELECT 59 + - CAST ( + AVG ( DISTINCT + 86 ) AS INTEGER ) FROM tab1 AS cor0
----
-27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 20 NOT BETWEEN + col1 + + 33 * col2 AND - - col2 * col1
----

query I rowsort
SELECT DISTINCT - col0 + + col1 + col1 * + + col1 AS col0 FROM tab0 AS cor0
----
-95
375
6627

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT ALL + MIN( DISTINCT - - col2 ) * + 51 + COUNT( * ) AS col2 FROM tab0 cor0
----
513

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL + MIN ( DISTINCT - - col2 ) * + 51 + COUNT ( * ) AS col2 FROM tab0 cor0
----
513

query II rowsort
SELECT ALL 0 AS col2, col1 AS col0 FROM tab2
----
0
51
0
67
0
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 * - col0 col0 FROM tab1
----
-1479
-2465
-2639

query III rowsort
SELECT * FROM tab1 WHERE col1 <= - col2 * - 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT DISTINCT - 74 * + ( + + ( MIN( DISTINCT - col2 ) ) ) FROM tab2
----
4292

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - 74 * + ( + + ( MIN ( DISTINCT - col2 ) ) ) FROM tab2
----
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT DISTINCT 3 * - SUM( - col1 ) AS col0 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT 3 * - SUM ( - col1 ) AS col0 FROM tab2
----
585

onlyif mysql # DIV for integer division: 
query I rowsort label-6927
SELECT + - col0 DIV - ( - 61 ) + + 40 AS col1 FROM tab1 AS cor0
----
39
39
40

skipif mysql # not compatible
query I rowsort label-6927
SELECT + - col0 / - ( - 61 ) + + 40 AS col1 FROM tab1 AS cor0
----
39
39
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6928
SELECT - - 46 DIV - 97 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6928
SELECT - - 46 / - 97 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT - - 31 - + + MIN( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6929
SELECT - - 31 - + + MIN ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
16

query I rowsort
SELECT DISTINCT ( - col0 ) * - 2 + - 42 AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT + - 77 + COUNT( DISTINCT 88 ) AS col1 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-6931
SELECT + - 77 + COUNT ( DISTINCT 88 ) AS col1 FROM tab1 AS cor0
----
-76

query I rowsort
SELECT 91 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col1 * + col2 * 13 + - + col2 AS col2, col0 FROM tab2 AS cor0
----
-15272
46
-40080
64
-50576
75

query I rowsort
SELECT DISTINCT + 2 + col0 + + + 99 FROM tab0
----
116
188
198

query I rowsort
SELECT ALL - 97 * + col1 AS col0 FROM tab2
----
-4947
-6499
-7469

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 90 + col2 + col2 * col0 * - 60 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6937
SELECT DISTINCT + 64 DIV ( - - col1 ) AS col0 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT + 64 / ( - - col1 ) AS col0 FROM tab1
----
1
12
4

query III rowsort
SELECT * FROM tab1 WHERE + - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT - MAX( DISTINCT 36 ) + + - COUNT( * ) + - 56 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-6939
SELECT - MAX ( DISTINCT 36 ) + + - COUNT ( * ) + - 56 FROM tab1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL + MAX( ALL - col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + MAX ( ALL - col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT DISTINCT 87 - + - SUM( DISTINCT + - 95 ) col2 FROM tab1
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6941
SELECT DISTINCT 87 - + - SUM ( DISTINCT + - 95 ) col2 FROM tab1
----
-8

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + col2
----

query I rowsort
SELECT + ( - 9 ) AS col0 FROM tab2
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT COUNT( * ) col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6944
SELECT COUNT ( * ) col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT + - col1 * 87 AS col2 FROM tab2 AS cor0
----
-4437
-5829
-6699

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6947
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + + col2 * - CAST( + - col2 AS SIGNED ) > col2
----

skipif mysql # not compatible
query III rowsort label-6947
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + + col2 * - CAST ( + - col2 AS INTEGER ) > col2
----

query II rowsort
SELECT DISTINCT + col1, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6949
SELECT ALL - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 < - col2 * - + 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, col2 - + 2 AS col0 FROM tab2 cor0
----
-51
21
-67
56
-77
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6952
SELECT + - COUNT( * ) AS col0, 70 AS col2 FROM tab1 AS cor0
----
-3
70

skipif mysql # not compatible
query II rowsort label-6952
SELECT + - COUNT ( * ) AS col0, 70 AS col2 FROM tab1 AS cor0
----
-3
70

query II rowsort
SELECT ALL + col1, 1 * - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NULL > - 79 / - col1 * + 56 / + + col0 ) )
----

query I rowsort
SELECT 0 * - ( + col2 ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT + MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6956
SELECT + MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT col1 + - - 15 FROM tab0
----
16
36
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6958
SELECT ALL - col2 * + col1 - - col1 + + col2 * - col0 AS col0, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-1059
NULL
-4431
NULL
-9701
NULL

skipif mysql # not compatible
query II rowsort label-6958
SELECT ALL - col2 * + col1 - - col1 + + col2 * - col0 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-1059
NULL
-4431
NULL
-9701
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT ALL - - 39 + - COUNT( * ) AS col2 FROM tab2 cor0
----
36

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL - - 39 + - COUNT ( * ) AS col2 FROM tab2 cor0
----
36

query I rowsort
SELECT col1 * - col0 + + + 70 FROM tab2 AS cor0
----
-2276
-4858
-4955

onlyif mysql # DIV for integer division: 
query I rowsort label-6961
SELECT DISTINCT + col2 DIV 14 AS col2 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT + col2 / 14 AS col2 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT ALL - + col0 + - col2 + col0 + + col0 AS col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6964
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) + + + col1 >= NULL
----

skipif mysql # not compatible
query III rowsort label-6964
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) + + + col1 >= NULL
----

query II rowsort
SELECT + 81 AS col2, + col1 FROM tab2
----
81
51
81
67
81
77

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col2 IS NULL ) OR NOT - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - + 43 - col1 FROM tab1
----
-2207
-3660
-3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6968
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col0 FROM tab0 WHERE ( + 25 * + col2 + - 28 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 WHERE ( + 25 * + col2 + - 28 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT DISTINCT + col1 DIV + + 78 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT + col1 / + + 78 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT SUM( - 50 ) - + COUNT( * ) AS col2 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-6970
SELECT SUM ( - 50 ) - + COUNT ( * ) AS col2 FROM tab0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE col2 * + col1 - + 87 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6973
SELECT col1 DIV ( - - 13 ) * + + 83 AS col0 FROM tab2 AS cor0
----
249
415
415

skipif mysql # not compatible
query I rowsort label-6973
SELECT col1 / ( - - 13 ) * + + 83 AS col0 FROM tab2 AS cor0
----
249
415
415

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

query I rowsort
SELECT - 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
31

query I rowsort
SELECT - 9 * col0 * 32 + + + 5 AS col1 FROM tab0 AS cor0
----
-25051
-27931
-4315

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 66 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 28 ) col2 FROM tab0 AS cor0
----
-28

query I rowsort
SELECT ALL - ( + col2 ) * - - 48 * col1 AS col0 FROM tab2 AS cor0
----
-147840
-186528
-56304

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT + MAX( ALL + 50 ) FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-6981
SELECT + MAX ( ALL + 50 ) FROM tab2 AS cor0
----
50

query I rowsort
SELECT DISTINCT - ( + 60 ) AS col0 FROM tab2
----
-60

query I rowsort
SELECT ALL col1 * + 11 * + 36 AS col0 FROM tab2
----
20196
26532
30492

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT COUNT( * ) + 16 - - + SUM( DISTINCT col2 ) col1 FROM tab1
----
242

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6985
SELECT COUNT ( * ) + 16 - - + SUM ( DISTINCT col2 ) col1 FROM tab1
----
242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 69 * - col0 col1 FROM tab1
----
-3423
-5806
-6211

query II rowsort
SELECT 1 * + - col0 + col2, col0 * - ( - 37 ) AS col2 FROM tab2 AS cor0
----
-17
2775
-23
1702
-24
2368

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT + + COUNT( - - col0 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6988
SELECT + + COUNT ( - - col0 ) AS col1 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 24 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6991
SELECT - CAST( 62 AS SIGNED ) AS col2, col1 * 96 AS col2 FROM tab0
----
-62
2016
-62
7776
-62
96

skipif mysql # not compatible
query II rowsort label-6991
SELECT - CAST ( 62 AS INTEGER ) AS col2, col1 * 96 AS col2 FROM tab0
----
-62
2016
-62
7776
-62
96

query I rowsort
SELECT 84 - + col2 FROM tab2
----
26
44
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6993
SELECT - col2 - - CAST( 68 AS SIGNED ) + - col0 AS col0 FROM tab2
----
-1
-36
-65

skipif mysql # not compatible
query I rowsort label-6993
SELECT - col2 - - CAST ( 68 AS INTEGER ) + - col0 AS col0 FROM tab2
----
-1
-36
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6994
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( 88 ) + + MIN( - col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( 88 ) + + MIN ( - col0 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 - col2 AS col1 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT + col0 - + 74 AS col0 FROM tab0 AS cor0
----
-59
13
23

query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6998
SELECT CAST( NULL AS SIGNED ) + + - COUNT( + - col0 ), + 35 AS col0 FROM tab1
----
NULL
35

skipif mysql # not compatible
query II rowsort label-6998
SELECT CAST ( NULL AS INTEGER ) + + - COUNT ( + - col0 ), + 35 AS col0 FROM tab1
----
NULL
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT DISTINCT COUNT( DISTINCT + 93 ) * + COUNT( * ) col2 FROM tab1, tab1 AS cor0 WHERE NOT - - 49 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6999
SELECT DISTINCT COUNT ( DISTINCT + 93 ) * + COUNT ( * ) col2 FROM tab1, tab1 AS cor0 WHERE NOT - - 49 IS NOT NULL
----
0

query I rowsort
SELECT col1 * - + col2 AS col2 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 95 * col0 AS col2 FROM tab1
----
4845
8075
8645

query II rowsort
SELECT ALL + col0 AS col2, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT - 47 * 52 * 51 FROM tab1 AS cor0
----
-124644

query II rowsort
SELECT DISTINCT - col1 AS col2, + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT CAST( + 44 AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif mysql # not compatible
query I rowsort label-7006
SELECT CAST ( + 44 AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL col2 * - col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-1664
-3439
-575

onlyif mysql # DIV for integer division: 
query II rowsort label-7008
SELECT ALL col0, ( col2 ) DIV - col1 * + - col1 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-7008
SELECT ALL col0, ( col2 ) / - col1 * + - col1 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7009
SELECT ALL col2 + + col1 DIV 59 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL col2 + + col1 / 59 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT col2 + + - 58 + + + 58 + + col2 * col0 AS col1 FROM tab1 AS cor0
----
4992
5074
6256

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT - 47 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-7012
SELECT - 47 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-7013
SELECT + col1 * col0 DIV + col2 FROM tab0
----
0
182
25

skipif mysql # not compatible
query I rowsort label-7013
SELECT + col1 * col0 / + col2 FROM tab0
----
0
182
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT DISTINCT - 74 * - COUNT( * ) AS col0 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT - 74 * - COUNT ( * ) AS col0 FROM tab1
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT ALL 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-7015
SELECT ALL col2 / col0 col2 FROM tab0
----
0
1
3

query I rowsort
SELECT + col0 + + + 9 FROM tab1 AS cor0
----
100
60
94

query I rowsort
SELECT ALL + - col1 + - + ( + - 57 ) AS col1 FROM tab0 AS cor0
----
-24
36
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7018
SELECT - ( 19 ) - 95 * - + 68 + - CAST( NULL AS DECIMAL ) col0 FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7018
SELECT - ( 19 ) - 95 * - + 68 + - CAST ( NULL AS REAL ) col0 FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 40 * col2 AS col1 FROM tab2 cor0
----
1600
2320
920

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 9 + + 24 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - + 49 + 36 + col2 FROM tab2 cor0
----
10
27
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7022
SELECT ALL col1 * + 67 + + CAST( NULL AS SIGNED ) AS col1, - col0 - - - 81 - col1 AS col2 FROM tab2 AS cor0
----
NULL
-178
NULL
-222
NULL
-223

skipif mysql # not compatible
query II rowsort label-7022
SELECT ALL col1 * + 67 + + CAST ( NULL AS INTEGER ) AS col1, - col0 - - - 81 - col1 AS col2 FROM tab2 AS cor0
----
NULL
-178
NULL
-222
NULL
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT COUNT( * ) - + 74 AS col2 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7023
SELECT COUNT ( * ) - + 74 AS col2 FROM tab1 AS cor0
----
-71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7025
SELECT DISTINCT + ( AVG ( - + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT + ( AVG ( - + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT DISTINCT MIN( DISTINCT col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col0 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7027
SELECT + - col0 * col1 + + ( - + col0 ) DIV col2 AS col2 FROM tab2 WHERE NOT - 73 IS NULL
----
-2348
-4929
-5026

skipif mysql # not compatible
query I rowsort label-7027
SELECT + - col0 * col1 + + ( - + col0 ) / col2 AS col2 FROM tab2 WHERE NOT - 73 IS NULL
----
-2348
-4929
-5026

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT ALL + 47 * - - COUNT( * ) col2 FROM tab2
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7028
SELECT ALL + 47 * - - COUNT ( * ) col2 FROM tab2
----
141

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 <> NULL
----

query I rowsort
SELECT ALL - - ( + - 8 ) AS col2 FROM tab0 AS cor0
----
-8
-8
-8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - ( - col1 ) AND NULL
----

query I rowsort
SELECT ALL col2 * - col0 * - ( col1 ) FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7033
SELECT + + SUM( - + col1 ) * - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + + col1 * + 33 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT + + SUM ( - + col1 ) * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + + col1 * + 33 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT ( - SUM( ALL + - col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7034
SELECT ( - SUM ( ALL + - col0 ) ) FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-7035
SELECT DISTINCT + col0 DIV - - col2 + - 80 + - ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-65
15
17

skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT + col0 / - - col2 + - 80 + - ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-65
15
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ALL + 97 + - MAX( - col0 ) FROM tab2 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL + 97 + - MAX ( - col0 ) FROM tab2 AS cor0
----
143

query I rowsort
SELECT col1 * + + 17 FROM tab0 AS cor0
----
1377
17
357

query II rowsort
SELECT DISTINCT 3 AS col0, ( col1 ) FROM tab0 AS cor0
----
3
1
3
21
3
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7039
SELECT DISTINCT - CAST( - 4 AS SIGNED ) + col1 * - col2 FROM tab0 cor0
----
-206
-3803
-95

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT - CAST ( - 4 AS INTEGER ) + col1 * - col2 FROM tab0 cor0
----
-206
-3803
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7040
SELECT DISTINCT - col1, - CAST( + + col0 AS SIGNED ) AS col1 FROM tab1
----
-14
-51
-47
-91
-5
-85

skipif mysql # not compatible
query II rowsort label-7040
SELECT DISTINCT - col1, - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab1
----
-14
-51
-47
-91
-5
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT 73 DIV - col1 FROM tab2 WHERE NULL IS NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7041
SELECT 73 / - col1 FROM tab2 WHERE NULL IS NULL
----
-1
-1
0

query I rowsort
SELECT col2 + + 84 FROM tab0
----
131
183
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT + 15 + + MAX( 34 ) + + + COUNT( * ) * + 28 * COUNT( * ) + - 68 FROM tab0
----
233

skipif mysql # not compatible
query I rowsort label-7043
SELECT + 15 + + MAX ( 34 ) + + + COUNT ( * ) * + 28 * COUNT ( * ) + - 68 FROM tab0
----
233

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT 11 + + COUNT( * ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7045
SELECT 11 + + COUNT ( * ) FROM tab0 AS cor0
----
14

query I rowsort
SELECT - - col2 + + ( + - 53 ) + + + col2 FROM tab1 AS cor0
----
139
65
83

query II rowsort
SELECT ALL + - col1 * - - col0 AS col0, col1 AS col2 FROM tab1 AS cor0
----
-425
5
-4277
47
-714
14

query I rowsort
SELECT DISTINCT + col0 * - 19 FROM tab0 AS cor0
----
-1653
-1843
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7049
SELECT MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-7050
SELECT ALL - + col2 - + 54 + + - col2 DIV - 21 AS col0 FROM tab1 AS cor0
----
-111
-119
-146

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL - + col2 - + 54 + + - col2 / - 21 AS col0 FROM tab1 AS cor0
----
-111
-119
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT + MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7051
SELECT + MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 78 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + + 21 * + col0 * + - ( - + 96 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7054
SELECT + COUNT( col2 ) - - CAST( - MAX( - 55 ) AS SIGNED ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-7054
SELECT + COUNT ( col2 ) - - CAST ( - MAX ( - 55 ) AS INTEGER ) FROM tab1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7055
SELECT * FROM tab2 cor0 WHERE NULL >= col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7055
SELECT * FROM tab2 cor0 WHERE NULL >= col1 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT DISTINCT + - SUM( ALL + - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT + - SUM ( ALL + - col1 ) FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 * col0 col1 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + ( + col2 ), + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( + ( + col2 ), + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL ( SUM( + - 20 ) ) FROM tab2 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL ( SUM ( + - 20 ) ) FROM tab2 cor0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7060
SELECT + + SUM( ALL - 15 ) AS col2, - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * - COUNT( 59 ) + - - 43 AS col1 FROM tab2 AS cor0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-7060
SELECT + + SUM ( ALL - 15 ) AS col2, - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * - COUNT ( 59 ) + - - 43 AS col1 FROM tab2 AS cor0
----
-45
NULL

query II rowsort
SELECT ALL + col1, col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT - 87 * + + 70 AS col2 FROM tab0
----
-6090
-6090
-6090

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT + MIN( + 44 ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-7063
SELECT + MIN ( + 44 ) FROM tab2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7064
SELECT - CAST( - 35 AS SIGNED ) * + 69 FROM tab0
----
2415
2415
2415

skipif mysql # not compatible
query I rowsort label-7064
SELECT - CAST ( - 35 AS INTEGER ) * + 69 FROM tab0
----
2415
2415
2415

query I rowsort
SELECT DISTINCT col2 * - - 63 FROM tab1
----
3717
4284
6048

query II rowsort
SELECT ALL col2 AS col2, 19 FROM tab2
----
23
19
40
19
58
19

query I rowsort
SELECT ALL + ( + col2 ) AS col2 FROM tab1 WHERE NOT + 52 * 70 * + 94 < col0 + + 11
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT MAX( DISTINCT + 62 ) FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-7068
SELECT MAX ( DISTINCT + 62 ) FROM tab2
----
62

query I rowsort
SELECT DISTINCT col0 + 37 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT - COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7070
SELECT - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col2 * 65 * col1 FROM tab2
----
200200
252590
76245

query I rowsort
SELECT ( - 87 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col1 + 68 AS col1, + col0 + - col1 * - - col2 + + 30 FROM tab0
----
149
-3762
69
28
89
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT + 10 - 59 * - + 82 * - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-43532

skipif mysql # not compatible
query I rowsort label-7074
SELECT + 10 - 59 * - + 82 * - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-43532

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT + 1 + + COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-7075
SELECT + 1 + + COUNT ( * ) FROM tab2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7076
SELECT ALL - 89 + + CAST( NULL AS SIGNED ) col1, - col1 + - 88 + - col1 * - col1 AS col1 FROM tab0 AS cor0
----
NULL
-88
NULL
332
NULL
6392

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7076
SELECT ALL - 89 + + CAST ( NULL AS INTEGER ) col1, - col1 + - 88 + - col1 * - col1 AS col1 FROM tab0 AS cor0
----
NULL
-88
NULL
332
NULL
6392

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT ALL COUNT( col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL COUNT ( col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 82 col1 FROM tab2 AS cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT - COUNT( + col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7079
SELECT - COUNT ( + col2 ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT MIN( ALL - 44 ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-7080
SELECT MIN ( ALL - 44 ) FROM tab0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7081
SELECT ALL - COUNT( ALL col2 ) DIV - 6 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL - COUNT ( ALL col2 ) / - 6 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7082
SELECT DISTINCT 53 DIV COUNT( * ) * - - COUNT( * ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT 53 / COUNT ( * ) * - - COUNT ( * ) FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7083
SELECT ALL col1 AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7083
SELECT ALL col1 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT - col2 - 81 AS col1 FROM tab1 AS cor0
----
-140
-149
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7086
SELECT ALL + COUNT( * ) DIV + MAX( DISTINCT + 50 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL + COUNT ( * ) / + MAX ( DISTINCT + 50 ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7087
SELECT DISTINCT - + col2 + col2 * + col2 col2, col2 DIV - col0 - - + col2 AS col2 FROM tab1 AS cor0
----
3422
59
4556
68
9120
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7087
SELECT DISTINCT - + col2 + col2 * + col2 col2, col2 / - col0 - - + col2 AS col2 FROM tab1 AS cor0
----
3422
59
4556
68
9120
95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < ( - col1 ) * + col0
----

query I rowsort
SELECT - col1 + 75 + + 19 AS col1 FROM tab2 AS cor0
----
17
27
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT + COUNT( * ) - + ( + 87 ) AS col0 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT + COUNT ( * ) - + ( + 87 ) AS col0 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT ALL - col1 * 97 + - col2 - col2 AS col1 FROM tab2 AS cor0
----
-4993
-6615
-7549

query I rowsort
SELECT 85 + 81 + + col1 FROM tab2 AS cor0
----
217
233
243

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 IS NULL OR NOT NULL < + col2
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT + col1 IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + 17 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - col1, + col1 AS col2 FROM tab1 cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7097
SELECT - - col0 * + col1 - + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1134
1806
96

skipif mysql # not compatible
query I rowsort label-7097
SELECT - - col0 * + col1 - + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1134
1806
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT ALL + + SUM( DISTINCT + + ( 24 ) ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL + + SUM ( DISTINCT + + ( 24 ) ) FROM tab1 AS cor0
----
24

query I rowsort
SELECT DISTINCT ( - - col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + col2 IS NOT NULL
----

query I rowsort
SELECT ( + + col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + col2 + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * 19 >= + - col2 - 21
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 >= - - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( col2 ) NOT BETWEEN NULL AND - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 85 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT 14 + - + SUM( + + col2 ) FROM tab2 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-7107
SELECT 14 + - + SUM ( + + col2 ) FROM tab2 AS cor0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT COUNT( * ) + + MIN( DISTINCT + + ( 19 ) ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7108
SELECT COUNT ( * ) + + MIN ( DISTINCT + + ( 19 ) ) FROM tab1 AS cor0
----
22

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> col0 * 4
----

query II rowsort
SELECT ALL col0, col1 + 84 FROM tab2
----
46
135
64
161
75
151

query I rowsort
SELECT DISTINCT - + 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT + - COUNT( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7112
SELECT + - COUNT ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + col2 col2 FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 26 + col1 * + col1 * + ( + + col0 ) AS col1 FROM tab2 AS cor0
----
120244
338183
380496

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT + COUNT( * ) + + ( - COUNT( * ) ) + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7116
SELECT + COUNT ( * ) + + ( - COUNT ( * ) ) + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 68 * + col2 * + 88 * + - 64 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + + + 72 FROM tab2 cor0
----
-5
21
5

query I rowsort
SELECT DISTINCT + col2 + - + col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL + col1 - - 58 AS col1 FROM tab1
----
105
63
72

query I rowsort
SELECT 5 + + col1 FROM tab2
----
56
72
82

query I rowsort
SELECT ALL - 51 AS col0 FROM tab2 WHERE NOT + ( + - col1 ) >= - col2
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL COUNT( ALL - col1 ) * - COUNT( * ) + + + 96 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL COUNT ( ALL - col1 ) * - COUNT ( * ) + + + 96 FROM tab2
----
87

query I rowsort
SELECT ( + + 23 ) * + ( 15 ) FROM tab2
----
345
345
345

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT DISTINCT + 7 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT + 7 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL - ( - - COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL - ( - - COUNT ( * ) ) FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT - 39 + + col0 FROM tab2 AS cor0
----
25
36
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + - col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 * - - col0 col2 FROM tab2
----
1656
2304
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT - - MIN( + + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7130
SELECT - - MIN ( + + col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - 52 * col1 / + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( 45 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * - col0 * + ( + 10 ) / 91 * + - col1 NOT IN ( + col2 / + - col2 + + + col2, - 48 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT + 88 DIV 61 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7133
SELECT + 88 / 61 AS col1 FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7134
SELECT ALL + col1 DIV + col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL + col1 / + col1 AS col0 FROM tab2
----
1
1
1

query II rowsort
SELECT DISTINCT col2, 21 FROM tab1
----
59
21
68
21
96
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7136
SELECT ALL SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT ALL + 40 + - + 90 + + col1 AS col0 FROM tab1 AS cor0
----
-3
-36
-45

query I rowsort
SELECT - col1 + col1 - + col2 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 16 <> col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 51 * - - col1 * + - 76 * + 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 0 + col1 FROM tab1 AS cor0 WHERE NULL = - 56
----

query I rowsort
SELECT ALL - + col1 + + + col0 AS col2 FROM tab0 AS cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 + - col0 col0 FROM tab1 cor0
----
-102
-136
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT - COUNT( ALL - + col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7145
SELECT - COUNT ( ALL - + col1 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL - - 47 + - col0 * - 36 * col1 AS col1 FROM tab0 AS cor0
----
3539
43787
65819

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT SUM( ALL - 0 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7147
SELECT SUM ( ALL - 0 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT COUNT( ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7148
SELECT COUNT ( ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7149
SELECT ALL ( - col1 ) DIV - col2 - col0 AS col2 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL ( - col1 ) / - col2 - col0 AS col2 FROM tab2
----
-44
-63
-74

query I rowsort
SELECT col0 - 70 FROM tab0
----
-55
17
27

query I rowsort
SELECT DISTINCT 1 - - ( col1 ) * + + 99 FROM tab2
----
5050
6634
7624

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7152
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL <= CAST( col0 AS SIGNED ) - + 42 ) )
----

skipif mysql # not compatible
query III rowsort label-7152
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL <= CAST ( col0 AS INTEGER ) - + 42 ) )
----

query I rowsort
SELECT DISTINCT + + 86 * - - col1 + col1 AS col0 FROM tab1 AS cor0
----
1218
4089
435

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT COUNT( ALL + - col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7154
SELECT COUNT ( ALL + - col2 ) FROM tab0 cor0
----
3

query II rowsort
SELECT ALL col2, - ( col1 ) AS col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT DISTINCT + MIN( + col2 ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7156
SELECT DISTINCT + MIN ( + col2 ) col1 FROM tab1
----
59

query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + col0 ) + - col1 > + 39
----
51
14
96

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT BETWEEN + 57 AND - col0 + 67
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 82 + col2 FROM tab0
----
129
181
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7161
SELECT * FROM tab0 WHERE NULL <> + col0 + CAST( - col1 AS SIGNED ) * - 18
----

skipif mysql # not compatible
query III rowsort label-7161
SELECT * FROM tab0 WHERE NULL <> + col0 + CAST ( - col1 AS INTEGER ) * - 18
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col0 FROM tab2 WHERE NOT ( NULL ) <> 8 + - col1
----

query I rowsort
SELECT ( 95 ) AS col0 FROM tab1
----
95
95
95

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + col1 ) NOT IN ( col1 )
----

query I rowsort
SELECT 38 FROM tab0 WHERE NOT ( 69 ) IS NOT NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE + 30 * col0 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT DISTINCT - SUM( - col0 ) AS col2 FROM tab0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT - SUM ( - col0 ) AS col2 FROM tab0 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT - col1 * ( - col1 ) NOT BETWEEN col1 AND + col2 * - 26
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN col2 AND ( 58 )
----
64
77
40
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT + col2 + ( - col2 ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT DISTINCT + col0 DIV col0 + 52 AS col1 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT + col0 / col0 + 52 AS col1 FROM tab0
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col0 FROM tab1 WHERE NOT + col1 * - 69 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 - - 67 / + col0 ) <= - 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 49 ) = ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 79 + col1 AS col0 FROM tab2
----
130
146
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT DISTINCT - COUNT( DISTINCT ( col0 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT - COUNT ( DISTINCT ( col0 ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT AVG ( ALL col2 ) FROM tab2 WHERE NOT col1 IN ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT - MIN( + 90 ) * COUNT( * ) FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-7180
SELECT - MIN ( + 90 ) * COUNT ( * ) FROM tab2
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT + 18 * + MIN( ALL + col1 * + col1 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-7181
SELECT + 18 * + MIN ( ALL + col1 * + col1 ) FROM tab0
----
18

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE 21 * col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - ( + 47 ) col2 FROM tab0 AS cor0
----
-134
-144
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT 62 + + COUNT( * ) AS col0 FROM tab2 cor0
----
65

skipif mysql # not compatible
query I rowsort label-7185
SELECT 62 + + COUNT ( * ) AS col0 FROM tab2 cor0
----
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 15
----

query I rowsort
SELECT - 52 * col2 AS col2 FROM tab0 cor0
----
-2444
-5148
-520

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( - col0 ) ) = ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 55 + 60 * 57 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 48610f6f810276eb10118c3fd7029a96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 65 NOT IN ( 11 * col1 + - ( col2 + + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT DISTINCT COUNT( ALL + col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT COUNT ( ALL + col2 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7192
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
-9

query I rowsort
SELECT ALL 82 * + col1 + ( col0 ) FROM tab2
----
4228
5569
6378

query I rowsort
SELECT col1 - col0 * + 85 FROM tab0 AS cor0
----
-1194
-7374
-8244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7195
SELECT CAST( 33 AS SIGNED ) - col1 FROM tab2 AS cor0
----
-18
-34
-44

skipif mysql # not compatible
query I rowsort label-7195
SELECT CAST ( 33 AS INTEGER ) - col1 FROM tab2 AS cor0
----
-18
-34
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7196
SELECT + 54 DIV + col1 + + col2 FROM tab0 AS cor0
----
12
153
47

skipif mysql # not compatible
query I rowsort label-7196
SELECT + 54 / + col1 + + col2 FROM tab0 AS cor0
----
12
153
47

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE col0 BETWEEN col0 AND - 80 * ( col2 * - col1 ) + - col1
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7198
SELECT 10 + - col2 DIV - 99 AS col0 FROM tab0 AS cor0
----
10
10
11

skipif mysql # not compatible
query I rowsort label-7198
SELECT 10 + - col2 / - 99 AS col0 FROM tab0 AS cor0
----
10
10
11

query I rowsort
SELECT ALL + col0 + - 45 AS col0 FROM tab0 AS cor0
----
-30
42
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 + col0 col2 FROM tab2 AS cor0
----
140
158
169

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT IN ( 46 - ( - col0 ) * - 34 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + col1 + 69 FROM tab2 AS cor0
----
2415
4997
5094

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 + + - col2 FROM tab1
----
-118
-136
-192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7205
SELECT * FROM tab1 WHERE col1 * - col2 + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7205
SELECT * FROM tab1 WHERE col1 * - col2 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 - + 74 FROM tab0
----
-53
-73
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT + COUNT( * ) + 79 * + COUNT( * ) AS col2 FROM tab2 WHERE - 86 IS NOT NULL
----
240

skipif mysql # not compatible
query I rowsort label-7207
SELECT + COUNT ( * ) + 79 * + COUNT ( * ) AS col2 FROM tab2 WHERE - 86 IS NOT NULL
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7208
SELECT - ( - col2 ) * - ( - CAST( col1 AS SIGNED ) * - 13 ) AS col2 FROM tab0
----
-1287
-2730
-49491

skipif mysql # not compatible
query I rowsort label-7208
SELECT - ( - col2 ) * - ( - CAST ( col1 AS INTEGER ) * - 13 ) AS col2 FROM tab0
----
-1287
-2730
-49491

query I rowsort
SELECT col2 + 42 AS col1 FROM tab1 WHERE - col1 IS NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NULL > ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT DISTINCT - 61 * + - COUNT( * ) FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT - 61 * + - COUNT ( * ) FROM tab0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT ALL - MAX( DISTINCT + 38 ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL - MAX ( DISTINCT + 38 ) FROM tab0 AS cor0
----
-38

query I rowsort
SELECT + - col1 * + - 96 AS col1 FROM tab2 AS cor0
----
4896
6432
7392

query I rowsort
SELECT ALL col2 * 42 AS col1 FROM tab2
----
1680
2436
966

query II rowsort
SELECT ALL 75, 76 AS col0 FROM tab2
----
75
76
75
76
75
76

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE ( NULL ) = ( + 44 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7218
SELECT 59, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
59
NULL
59
NULL
59
NULL

skipif mysql # not compatible
query II rowsort label-7218
SELECT 59, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
59
NULL
59
NULL
59
NULL

query I rowsort
SELECT ALL + col0 * + col1 * col1 AS col1 FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT ( - - ( - 37 ) ) AS col0 FROM tab1 AS cor0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col1 * + 49 ) AND 77
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 + - col1 * - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 + - col1 * - col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7225
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) * - COUNT( * ) - + 50 + + 89 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - COUNT ( * ) - + 50 + + 89 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( - col0 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND ( NULL )
----

query I rowsort
SELECT ALL col0 + - - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT DISTINCT CAST( + col0 AS SIGNED ) col2 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7229
SELECT DISTINCT CAST ( + col0 AS INTEGER ) col2 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT - - 76 * + + 11 FROM tab2 AS cor0
----
836
836
836

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7231
SELECT MIN( + CAST( + col0 AS SIGNED ) ) * - COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-7231
SELECT MIN ( + CAST ( + col0 AS INTEGER ) ) * - COUNT ( * ) FROM tab1
----
-153

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 ) NOT BETWEEN - col2 + ( - 12 ) / + ( - 60 ) AND ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7233
SELECT + COUNT( ALL CAST( + + CAST( - + col0 AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7233
SELECT + COUNT ( ALL CAST ( + + CAST ( - + col0 AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ALL - COUNT( * ) * - - COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab1
----
-9

query I rowsort
SELECT ALL + 66 * + col2 FROM tab0
----
3102
6534
660

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 6 >= + col2
----

query I rowsort
SELECT DISTINCT col2 + + 68 * col2 FROM tab1 cor0
----
4071
4692
6624

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 BETWEEN col0 AND NULL
----

query I rowsort
SELECT - 75 + - col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-115
-133
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT ALL - 16 + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL - 16 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7241
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * - 26 + - col1 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7241
SELECT DISTINCT + + CAST ( NULL AS REAL ) * - 26 + - col1 col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 * + + col0 + + col2 + - + col2 AS col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT - col0 * - col1 + - ( + ( + ( - 31 ) ) ) + 5 FROM tab0
----
1251
133
1863

query I rowsort
SELECT 62 + + 49 AS col1 FROM tab2
----
111
111
111

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( + col2 + - - col1 + ( col1 ) ) NOT BETWEEN ( col1 ) AND - col1
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ALL - ( - 64 ) * + COUNT( * ) - 35 * COUNT( * ) + + 57 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL - ( - 64 ) * + COUNT ( * ) - 35 * COUNT ( * ) + + 57 FROM tab2 AS cor0
----
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - col1 AS col2 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT ALL + ( + col0 ) DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL + ( + col0 ) / col0 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - 22 - col1 FROM tab0 AS cor0
----
-103
-23
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 - + col0 col1 FROM tab1 AS cor0
----
-55
-89
-95

query I rowsort
SELECT col0 * col2 - + col0 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT - col0 - 54 AS col0 FROM tab0 AS cor0
----
-141
-151
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-7253
SELECT 98 DIV + col1 - col2 AS col2 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-7253
SELECT 98 / + col1 - col2 AS col2 FROM tab2
----
-22
-39
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7254
SELECT DISTINCT col0 - CAST( - col2 AS SIGNED ) + - col1 FROM tab2
----
18
27
66

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT col0 - CAST ( - col2 AS INTEGER ) + - col1 FROM tab2
----
18
27
66

query I rowsort
SELECT + 59 * col1 * col1 AS col2 FROM tab1 WHERE + - col1 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT DISTINCT + SUM( - col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + SUM ( - col1 ) AS col1 FROM tab2
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 15 col2, ( - - 60 ) + - - col1 AS col0 FROM tab1
----
15
107
15
65
15
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT DISTINCT + MAX( - ( - + col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7258
SELECT DISTINCT + MAX ( - ( - + col0 ) ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7259
SELECT * FROM tab0 WHERE NOT + ( - 47 ) NOT IN ( + col1 * - - CAST( col1 AS SIGNED ) + - col0 * 50 + - 21 )
----

skipif mysql # not compatible
query III rowsort label-7259
SELECT * FROM tab0 WHERE NOT + ( - 47 ) NOT IN ( + col1 * - - CAST ( col1 AS INTEGER ) + - col0 * 50 + - 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT - COUNT( ALL + - 35 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT - COUNT ( ALL + - 35 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7261
SELECT ALL + COUNT( * ), ( + COUNT( * ) ) + - + 30 * + - 14 AS col1 FROM tab0 AS cor0
----
3
423

skipif mysql # not compatible
query II rowsort label-7261
SELECT ALL + COUNT ( * ), ( + COUNT ( * ) ) + - + 30 * + - 14 AS col1 FROM tab0 AS cor0
----
3
423

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 60 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7262
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 60 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7263
SELECT - + CAST( NULL AS SIGNED ) * + col2 + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT - + CAST ( NULL AS INTEGER ) * + col2 + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7264
SELECT ALL - - 58, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
58
-3

skipif mysql # not compatible
query II rowsort label-7264
SELECT ALL - - 58, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
58
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 28 IN ( - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7266
SELECT ALL 7 * + + col1 * - col1 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL 7 * + + col1 * - col1 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT MAX( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7267
SELECT MAX ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT - - MAX( 25 ) + - 42 FROM tab0 AS cor0 WHERE NOT - col1 <= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7268
SELECT - - MAX ( 25 ) + - 42 FROM tab0 AS cor0 WHERE NOT - col1 <= col0
----
NULL

query I rowsort
SELECT + ( + ( col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + col2 ) + - 84 - - - 65 IS NOT NULL
----

query II rowsort
SELECT + col2, + ( 84 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7271
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( - CAST( NULL AS SIGNED ) ) ) BETWEEN - 67 AND - col2 * + - col2
----

skipif mysql # not compatible
query III rowsort label-7271
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( - CAST ( NULL AS INTEGER ) ) ) BETWEEN - 67 AND - col2 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 75 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 75 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 93 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7274
SELECT DISTINCT - ( - - 47 ) * + + COUNT( * ) * + + MAX( + col0 ) + CAST( NULL AS SIGNED ) / + SUM( ALL CAST( col1 AS SIGNED ) ) + + 84 / - 64 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT - ( - - 47 ) * + + COUNT ( * ) * + + MAX ( + col0 ) + CAST ( NULL AS INTEGER ) / + SUM ( ALL CAST ( col1 AS INTEGER ) ) + + 84 / - 64 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE 50 NOT IN ( - - col0 / - 12 )
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL NOT IN ( - - col1 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 26 = NULL
----

query I rowsort
SELECT DISTINCT + 32 + - col2 * + col1 AS col1 FROM tab1
----
-1312
-263
-3164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7279
SELECT DISTINCT CAST( NULL AS SIGNED ) * 19 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 19 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 83 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 94 * ( 82 ) FROM tab0
----
7708
7708
7708

query I rowsort
SELECT DISTINCT col2 * + 32 FROM tab0
----
1504
3168
320

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE 61 / col0 > ( + + col0 ) OR NOT 38 NOT IN ( + ( - col0 ) / + 3 + - col1 )
----

query I rowsort
SELECT ALL 98 * - 42 FROM tab2
----
-4116
-4116
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT + 46 + + - COUNT( * ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-7285
SELECT + 46 + + - COUNT ( * ) FROM tab2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT DISTINCT COUNT( ALL - 96 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT COUNT ( ALL - 96 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT col0 * - 42 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 61 col0 FROM tab2
----
101
119
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7290
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NULL <= NULL OR + ( - - col2 ) NOT BETWEEN ( - + col2 + col1 * - col2 * + col2 * - CAST( + col2 AS DECIMAL ) ) AND - col2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NULL <= NULL OR + ( - - col2 ) NOT BETWEEN ( - + col2 + col1 * - col2 * + col2 * - CAST ( + col2 AS REAL ) ) AND - col2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT COUNT( * ) + + + 6 + + 51 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7291
SELECT COUNT ( * ) + + + 6 + + 51 FROM tab1 AS cor0
----
60

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT + - col1 + 25 FROM tab1 cor0
----
-22
11
20

query I rowsort
SELECT ALL 59 - - 43 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 AND - 93
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < col1 + + 78 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT col2 IS NULL ) OR + col2 + - + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE + 26 <> NULL
----

query I rowsort
SELECT DISTINCT col1 + - + col0 * + col1 * - 25 / 52 - + col0 FROM tab2 WHERE + 79 IN ( + col0 - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col0 FROM tab1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7301
SELECT AVG ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT AVG ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ( - 53 ) FROM tab2
----
-53
-53
-53

query I rowsort
SELECT 25 * + col0 FROM tab1
----
1275
2125
2275

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE ( + col1 * col2 * - + 35 ) > col2 AND NOT ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT - - ( COUNT( * ) ) FROM tab1 WHERE NOT + 70 * col0 / col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7305
SELECT - - ( COUNT ( * ) ) FROM tab1 WHERE NOT + 70 * col0 / col1 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 * + - 39 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7307
SELECT + 2 AS col2, - SUM( + 20 ) col2 FROM tab2 AS cor0
----
2
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7307
SELECT + 2 AS col2, - SUM ( + 20 ) col2 FROM tab2 AS cor0
----
2
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 38 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-38

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 98 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 78
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - col2 + + 21 * col0 * - col2 AS col1 FROM tab0 AS cor0
----
-15510
-19140
-211266

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7313
SELECT ALL - 83 * - CAST( NULL AS SIGNED ), col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-7313
SELECT ALL - 83 * - CAST ( NULL AS INTEGER ), col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT + col2 * 75 * - col2 AS col0 FROM tab2
----
-120000
-252300
-39675

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( - col2 IS NOT NULL ) )
----

query I rowsort
SELECT + col1 * 60 FROM tab1
----
2820
300
840

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ALL MAX( col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL MAX ( col1 ) AS col2 FROM tab1
----
47

query II rowsort
SELECT DISTINCT + 71 * - 31, - col1 * + 71 AS col2 FROM tab0
----
-2201
-1491
-2201
-5751
-2201
-71

query I rowsort
SELECT - 7 + + 15 FROM tab2
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-7320
SELECT - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT ( col1 ) + + col0 DIV - + ( - col1 ) AS col2 FROM tab1
----
17
22
48

skipif mysql # not compatible
query I rowsort label-7321
SELECT ( col1 ) + + col0 / - + ( - col1 ) AS col2 FROM tab1
----
17
22
48

query I rowsort
SELECT DISTINCT - - col1 + - col1 + col0 FROM tab2 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 - + - col0 col0 FROM tab1
----
111
145
151

query II rowsort
SELECT - - col2 AS col2, 15 FROM tab1 AS cor0
----
59
15
68
15
96
15

query I rowsort
SELECT + + ( + - col2 ) AS col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-7326
SELECT - col2 DIV col2 * col1, - 50 AS col1 FROM tab2 cor0
----
-51
-50
-67
-50
-77
-50

skipif mysql # not compatible
query II rowsort label-7326
SELECT - col2 / col2 * col1, - 50 AS col1 FROM tab2 cor0
----
-51
-50
-67
-50
-77
-50

query I rowsort
SELECT ALL + ( - ( + col1 ) ) * + 58 + - col1 AS col1 FROM tab0 AS cor0
----
-1239
-4779
-59

query I rowsort
SELECT DISTINCT 70 * - col1 AS col0 FROM tab2 AS cor0
----
-3570
-4690
-5390

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * - + 73 + + 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7330
SELECT CAST( + ( - - col2 ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7330
SELECT CAST ( + ( - - col2 ) AS INTEGER ) FROM tab2
----
23
40
58

query I rowsort
SELECT ( + + col1 ) * + - col2 AS col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT col0 * + - col0 AS col1 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7333
SELECT ALL + - MIN( DISTINCT + CAST( + col2 AS SIGNED ) ) FROM tab0 WHERE - 95 <> + + 36
----
-10

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL + - MIN ( DISTINCT + CAST ( + col2 AS INTEGER ) ) FROM tab0 WHERE - 95 <> + + 36
----
-10

query I rowsort
SELECT DISTINCT 82 * - col0 * + col2 FROM tab0
----
-57810
-71340
-787446

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT ALL 0 DIV - - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL 0 / - - col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT + MIN( DISTINCT - col0 ) / + - 49 FROM tab2 WHERE NOT NULL IN ( col0, - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT + MIN ( DISTINCT - col0 ) / + - 49 FROM tab2 WHERE NOT NULL IN ( col0, - col2 )
----
NULL

query I rowsort
SELECT 56 * + ( - col1 ) AS col0 FROM tab1
----
-2632
-280
-784

query II rowsort
SELECT ALL + 87, col1 * col2 + col2 AS col0 FROM tab1 AS cor0 WHERE col1 BETWEEN + 70 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7340
SELECT - ( - COUNT( * ) ) DIV - 90 AS col2 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT - ( - COUNT ( * ) ) / - 90 AS col2 FROM tab1, tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7341
SELECT COUNT( * ) AS col0, 35 + - + COUNT( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
3
35

skipif mysql # not compatible
query II rowsort label-7341
SELECT COUNT ( * ) AS col0, 35 + - + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
3
35

query I rowsort
SELECT DISTINCT col1 * - col1 + + ( + + col1 ) * + ( col2 ) FROM tab1
----
1148
270
987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7343
SELECT ALL CAST( + - MAX( DISTINCT - col2 ) AS SIGNED ) + + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL CAST ( + - MAX ( DISTINCT - col2 ) AS INTEGER ) + + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7344
SELECT - + CAST( - col0 AS SIGNED ) * + + 73 FROM tab1 AS cor0
----
3723
6205
6643

skipif mysql # not compatible
query I rowsort label-7344
SELECT - + CAST ( - col0 AS INTEGER ) * + + 73 FROM tab1 AS cor0
----
3723
6205
6643

query II rowsort
SELECT - col0, - ( ( - 98 ) ) AS col0 FROM tab0 cor0
----
-15
98
-87
98
-97
98

query I rowsort
SELECT DISTINCT + 94 + col1 AS col0 FROM tab2 AS cor0
----
145
161
171

query I rowsort
SELECT + + ( + 42 ) + + 76 FROM tab2 AS cor0
----
118
118
118

query I rowsort
SELECT DISTINCT - + 54 + + 10 FROM tab2 cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT DISTINCT - COUNT( * ) + - SUM( DISTINCT + + 60 ) AS col0 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT - COUNT ( * ) + - SUM ( DISTINCT + + 60 ) AS col0 FROM tab2 AS cor0
----
-63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= + 62
----

query II rowsort
SELECT DISTINCT col0, + 85 + - ( + - 14 ) FROM tab0
----
15
99
87
99
97
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IS NULL AND col2 <> NULL
----

query I rowsort
SELECT ALL 73 - col2 * - col0 AS col0 FROM tab2
----
1131
2633
4423

query I rowsort
SELECT + col1 * + 34 + - col0 * col2 AS col2 FROM tab1
----
-4420
-4590
-4845

onlyif mysql # DIV for integer division: 
query I rowsort label-7355
SELECT + 5 DIV + + 30 + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7355
SELECT + 5 / + + 30 + col1 FROM tab2
----
51
67
77

query I rowsort
SELECT - col0 * - col2 + + - col2 FROM tab1
----
4800
4956
6120

query II rowsort
SELECT ALL + col0 AS col0, 99 + - - col2 + 85 * + col1 AS col0 FROM tab0
----
15
7031
87
1894
97
283

query I rowsort
SELECT ALL col0 + + + ( 36 ) FROM tab2 AS cor0
----
100
111
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT + - MAX( ALL + 65 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-65

skipif mysql # not compatible
query I rowsort label-7359
SELECT + - MAX ( ALL + 65 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-65

query I rowsort
SELECT - col2 - + 38 + + - col2 * - 3 AS col0 FROM tab2
----
42
78
8

query I rowsort
SELECT ALL col1 * + 44 - + col0 FROM tab1
----
135
1977
565

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 40 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7363
SELECT + - col2 * + - CAST( NULL AS SIGNED ) AS col1, - col1 * - + 13 + + + 35 AS col2 FROM tab1 cor0
----
NULL
100
NULL
217
NULL
646

skipif mysql # not compatible
query II rowsort label-7363
SELECT + - col2 * + - CAST ( NULL AS INTEGER ) AS col1, - col1 * - + 13 + + + 35 AS col2 FROM tab1 cor0
----
NULL
100
NULL
217
NULL
646

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + col0
----

query I rowsort
SELECT DISTINCT - 90 * col2 + col1 FROM tab2 AS cor0
----
-2019
-3523
-5153

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 = col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + 19 )
----

query I rowsort
SELECT ALL - 56 * - + col0 + - 22 AS col0 FROM tab0 AS cor0
----
4850
5410
818

onlyif mysql # DIV for integer division: 
query I rowsort label-7369
SELECT ALL + 4 * - + ( + 88 ) DIV - col1 FROM tab0
----
16
352
4

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL + 4 * - + ( + 88 ) / - col1 FROM tab0
----
16
352
4

query II rowsort
SELECT DISTINCT + col2 * + col0 * + col0 AS col0, col1 FROM tab2
----
163840
77
326250
67
48668
51

query I rowsort
SELECT ALL + 54 * 62 * + col1 FROM tab2
----
170748
224316
257796

query I rowsort
SELECT col2 * + 64 AS col0 FROM tab2
----
1472
2560
3712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT - CAST( NULL AS SIGNED ) * - col0 / 96 + + ( - + 3 ) FROM tab0 WHERE NOT ( NOT ( NULL ) NOT BETWEEN 58 / + col1 AND NULL )
----

skipif mysql # not compatible
query I rowsort label-7373
SELECT - CAST ( NULL AS INTEGER ) * - col0 / 96 + + ( - + 3 ) FROM tab0 WHERE NOT ( NOT ( NULL ) NOT BETWEEN 58 / + col1 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL - MIN( + + col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL - MIN ( + + col0 ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT ALL + 22 * - 43 FROM tab2
----
-946
-946
-946

query I rowsort
SELECT DISTINCT - 89 * + - col0 * - col1 FROM tab1
----
-37825
-380653
-63546

query I rowsort
SELECT 32 * + col2 AS col0 FROM tab1
----
1888
2176
3072

query I rowsort
SELECT ALL ( - col1 ) + - 39 - - ( 65 ) FROM tab0 AS cor0
----
-55
25
5

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 11 * + col1 - - col0 - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - col2 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 60 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 <= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 NOT BETWEEN - + col0 AND 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2 + - 15 AS col0, col1 FROM tab1 cor0
----
-111
14
-74
5
-83
47

query I rowsort
SELECT - ( - - 71 ) AS col1 FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT ALL 0 + + - ( - + col1 ) FROM tab0 cor0
----
1
21
81

query II rowsort
SELECT DISTINCT col0 * + 23 + - 76 - - 72 AS col2, + col0 FROM tab0 AS cor0
----
1997
87
2227
97
341
15

query I rowsort
SELECT ALL - 10 AS col1 FROM tab2 WHERE NOT NULL > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7389
SELECT col0 - - + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT col0 - - + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7390
SELECT DISTINCT + - 69 AS col0, + COUNT( * ) AS col0 FROM tab2 cor0
----
-69
3

skipif mysql # not compatible
query II rowsort label-7390
SELECT DISTINCT + - 69 AS col0, + COUNT ( * ) AS col0 FROM tab2 cor0
----
-69
3

query I rowsort
SELECT DISTINCT + + 26 * + + col1 AS col0 FROM tab1 cor0
----
1222
130
364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7392
SELECT SUM( ALL CAST( - ( - col0 ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT col0 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT SUM ( ALL CAST ( - ( - col0 ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT col0 = ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - col1 AS col0 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IS NOT NULL OR ( - 46 ) NOT IN ( - col1, - col1 + - col0 * col1 * - + col1 * col1, col1 * - col1, 27 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 * + ( col1 ) + 31 FROM tab2 cor0
----
2632
4520
5960

onlyif mysql # aggregate syntax: 
query II rowsort label-7396
SELECT ALL + COUNT( * ) col2, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7396
SELECT ALL + COUNT ( * ) col2, COUNT ( * ) FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - - col2 - - col1 - 74 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT col0 AS col0, col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7399
SELECT 87 DIV - col1 + - col0 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-7399
SELECT 87 / - col1 + - col0 FROM tab2 AS cor0
----
-47
-65
-76

query I rowsort
SELECT ALL + 94 * col0 FROM tab1
----
4794
7990
8554

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 BETWEEN NULL AND - col2
----

query II rowsort
SELECT ALL ( + + 6 ), col0 FROM tab2
----
6
46
6
64
6
75

query II rowsort
SELECT ALL + 58 * + + col1 * - col2, - col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7404
SELECT DISTINCT - AVG ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * col0 col1, col1 FROM tab2
----
1058
51
2560
77
4350
67

query I rowsort
SELECT DISTINCT ( ( - 96 ) ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL - 28 * + MIN( - col2 ) FROM tab1
----
2688

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - 28 * + MIN ( - col2 ) FROM tab1
----
2688

query I rowsort
SELECT 94 + - ( + + ( - + col2 ) ) FROM tab0
----
104
141
193

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT + - COUNT( * ) FROM tab0 AS cor0 WHERE - 2 - + col0 * 80 * col2 + 46 - - - col0 * - 38 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7409
SELECT + - COUNT ( * ) FROM tab0 AS cor0 WHERE - 2 - + col0 * 80 * col2 + 46 - - - col0 * - 38 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT 80 * - + COUNT( * ) FROM tab0
----
-240

skipif mysql # not compatible
query I rowsort label-7410
SELECT 80 * - + COUNT ( * ) FROM tab0
----
-240

query II rowsort
SELECT 51 AS col0, 98 AS col2 FROM tab2
----
51
98
51
98
51
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 54, 6 col0 FROM tab0 AS cor0
----
54
6
54
6
54
6

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 35 >= ( - + 31 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 60 - - - col2 + 4 * + 47 - 95 AS col2 FROM tab1 cor0
----
57
85
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 - - 71 col0 FROM tab1 AS cor0
----
153
153
153

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7416
SELECT - - CAST( NULL AS DECIMAL ) + 67 * + col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT - - CAST ( NULL AS REAL ) + 67 * + col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 30 + + col0 AS col1 FROM tab0 AS cor0
----
117
127
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7419
SELECT ALL + 54 + - + CAST( - - 15 AS SIGNED ) FROM tab1 AS cor0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL + 54 + - + CAST ( - - 15 AS INTEGER ) FROM tab1 AS cor0
----
39
39
39

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 - + col2 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT + 46 + + MIN( - 8 ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-7422
SELECT + 46 + + MIN ( - 8 ) FROM tab0
----
38

query I rowsort
SELECT ALL 12 - + 98 * + - col2 FROM tab1
----
5794
6676
9420

query II rowsort
SELECT DISTINCT - col1 * - 77, + 7 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + col2 * col2 FROM tab0
----
178929
2100
9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7426
SELECT + 59 / - CAST( NULL AS SIGNED ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-7426
SELECT + 59 / - CAST ( NULL AS INTEGER ), col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 * + + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7428
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND col1 / + 26 + - + ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7428
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND col1 / + 26 + - + ( - + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + ( + - 81 ) + - - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT - ( MIN( - + 34 ) ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-7430
SELECT - ( MIN ( - + 34 ) ) FROM tab2
----
34

query I rowsort
SELECT - ( 8 ) * - - col1 + - - 24 AS col1 FROM tab0 AS cor0
----
-144
-624
16

query I rowsort
SELECT - ( + 55 ) FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7433
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - 78 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7433
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - 78 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 2 IS NOT NULL
----

query I rowsort
SELECT ALL + - 73 AS col1 FROM tab0 AS cor0
----
-73
-73
-73

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7437
SELECT COUNT( * ) AS col2, 26 FROM tab1
----
3
26

skipif mysql # not compatible
query II rowsort label-7437
SELECT COUNT ( * ) AS col2, 26 FROM tab1
----
3
26

query II rowsort
SELECT ALL - 86 AS col0, col1 FROM tab1
----
-86
14
-86
47
-86
5

query II rowsort
SELECT + 64 * col0, col0 AS col0 FROM tab2
----
2944
46
4096
64
4800
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52 col1, col0 * + - 72 AS col2 FROM tab0
----
-52
-1080
-52
-6264
-52
-6984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 13 AS col1, col2 * - col1 col1 FROM tab1
----
13
-1344
13
-295
13
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7442
SELECT ALL MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col1 * 15 FROM tab2
----
1005
1155
765

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 BETWEEN - - 95 AND NULL
----

query II rowsort
SELECT ALL 20, - col2 - + col0 AS col1 FROM tab2
----
20
-104
20
-133
20
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT ALL - 93 + + + COUNT( * ) + 17 AS col0 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL - 93 + + + COUNT ( * ) + 17 AS col0 FROM tab1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL COUNT( * ) + + - 59 AS col0 FROM tab1 WHERE NOT + col2 + - 31 IS NOT NULL
----
-59

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL COUNT ( * ) + + - 59 AS col0 FROM tab1 WHERE NOT + col2 + - 31 IS NOT NULL
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7448
SELECT ALL - - col2 * CAST( - + col0 AS SIGNED ) + - - col2 + + 45 FROM tab0 AS cor0
----
-613
-815
-9459

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL - - col2 * CAST ( - + col0 AS INTEGER ) + - - col2 + + 45 FROM tab0 AS cor0
----
-613
-815
-9459

onlyif mysql # DIV for integer division: 
query I rowsort label-7449
SELECT DISTINCT + col0 DIV - col1 + - col2 * 46 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-2162
-464
-4651

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT + col0 / - col1 + - col2 * 46 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-2162
-464
-4651

query I rowsort
SELECT DISTINCT - col0 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT DISTINCT 74 * - 57 + 93 * col1 + - col2 * 86 + - 62 AS col2 FROM tab1 AS cor0
----
-11234
-5757
-8889

query I rowsort
SELECT ALL col2 * - - ( - col0 ) FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT - col1 * + 93 FROM tab2 cor0
----
-4743
-6231
-7161

query I rowsort
SELECT - 82 * col1 - + 75 - + 94 FROM tab1
----
-1317
-4023
-579

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT ALL COUNT( * ) + + 52 col0 FROM tab1
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7455
SELECT ALL COUNT ( * ) + + 52 col0 FROM tab1
----
55

query I rowsort
SELECT + 55 - col0 AS col1 FROM tab1
----
-30
-36
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7457
SELECT - CAST( NULL AS DECIMAL ) - - - 97 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT - CAST ( NULL AS REAL ) - - - 97 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT COUNT( ALL + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 95 AND + 79 * - - col1 * - 99
----
0

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT COUNT ( ALL + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 95 AND + 79 * - - col1 * - 99
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col1 * + + col1 * col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7460
SELECT col0 DIV - - col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7460
SELECT col0 / - - col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - 64 * col0 AS col2 FROM tab2 AS cor0
----
-2944
-4096
-4800

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - 62 + - col0 / + - 34 * col1 * - 74 * + 71 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7463
SELECT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col1 FROM tab1 cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT 42 + + COUNT( DISTINCT col0 ) FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT 42 + + COUNT ( DISTINCT col0 ) FROM tab1 cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT + CAST( NULL AS SIGNED ) + 13 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT + CAST ( NULL AS INTEGER ) + 13 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - 95 AS col0 FROM tab0
----
-8
-80
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL + COUNT( * ) col2 FROM tab2 WHERE - 57 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7469
SELECT ALL + COUNT ( * ) col2 FROM tab2 WHERE - 57 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT DISTINCT + MAX( ALL - 17 ) * - + 52 AS col0 FROM tab2 AS cor0
----
884

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT + MAX ( ALL - 17 ) * - + 52 AS col0 FROM tab2 AS cor0
----
884

query I rowsort
SELECT ALL + 36 FROM tab0 AS cor0 WHERE NULL IS NULL
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT + - MIN( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7472
SELECT + - MIN ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL - col0 + col1 + + col1 AS col2 FROM tab0 AS cor0
----
-45
-95
147

query I rowsort
SELECT DISTINCT - + 99 + col1 AS col0 FROM tab2 AS cor0
----
-22
-32
-48

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT + 61 + col2 + + - col0 AS col2 FROM tab0
----
-16
63
93

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + 64 IS NULL )
----

query I rowsort
SELECT ALL - 33 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + col1 * + col2 + + 45
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7479
SELECT ALL 53 + - + 91 DIV COUNT( * ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL 53 + - + 91 / COUNT ( * ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) = - ( - 44 ) + - col1
----

query I rowsort
SELECT + 37 + + col2 + + col2 + - col2 FROM tab2 AS cor0
----
60
77
95

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 * + 74 <= NULL
----

query I rowsort
SELECT ALL - - col0 + + col1 - + col2 * + 97 FROM tab0 AS cor0
----
-4463
-862
-9505

query I rowsort
SELECT DISTINCT col0 - + ( - col2 ) FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL + 65 + + + col1 + + + 23 + + col0 FROM tab2
----
185
229
230

query I rowsort
SELECT ALL col2 * + + 62 AS col0 FROM tab1
----
3658
4216
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT + 53 * + COUNT( * ) AS col0 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-7487
SELECT + 53 * + COUNT ( * ) AS col0 FROM tab0
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7488
SELECT ALL + COUNT( * ) DIV COUNT( col0 ) AS col1 FROM tab1 WHERE NOT + col0 * - col2 * col1 + col0 * 41 * + col2 - + CAST( NULL AS SIGNED ) DIV + col0 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL + COUNT ( * ) / COUNT ( col0 ) AS col1 FROM tab1 WHERE NOT + col0 * - col2 * col1 + col0 * 41 * + col2 - + CAST ( NULL AS INTEGER ) / + col0 IS NOT NULL
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7489
SELECT + 38 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT + 38 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col0 * + 2 FROM tab0
----
-1410
-1740
-19206

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7491
SELECT - MIN( ALL + ( - 74 ) ) DIV 13 AS col2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7491
SELECT - MIN ( ALL + ( - 74 ) ) / 13 AS col2 FROM tab0 AS cor0
----
5

query I rowsort
SELECT ALL + + 70 FROM tab0 cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL COUNT( * ) * + MAX( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
273

query I rowsort
SELECT DISTINCT - 60 * - - col1 FROM tab1
----
-2820
-300
-840

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT - MIN( - - col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7496
SELECT - MIN ( - - col0 ) AS col0 FROM tab1
----
-51

query I rowsort
SELECT DISTINCT + 49 * - col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NOT NULL <= + col2 + + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL + - SUM( + 95 ) + + 20 AS col2 FROM tab1 AS cor0
----
-265

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL + - SUM ( + 95 ) + + 20 AS col2 FROM tab1 AS cor0
----
-265

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( + 40, col1 * + - 24, + - 90 + - col2 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7501
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - 82 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 82 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + - 69 ) FROM tab2
----
69
69
69

query I rowsort
SELECT ( + + col1 ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT CAST( NULL AS SIGNED ) * - 2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT CAST ( NULL AS INTEGER ) * - 2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 57 + 59 * 73 col0 FROM tab0
----
4169
4229
4249

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE + 63 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL - MIN( ALL - col0 ) - - 2 AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL - MIN ( ALL - col0 ) - - 2 AS col0 FROM tab1
----
93

query I rowsort
SELECT DISTINCT - 80 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-80

query I rowsort
SELECT DISTINCT 28 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
28

query II rowsort
SELECT DISTINCT col2 AS col1, col1 + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * ( + - col0 ) BETWEEN col2 AND + + ( + - 39 ) * + col2
----

query I rowsort
SELECT + - 93 - + - col1 AS col0 FROM tab1 AS cor0
----
-46
-79
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) - + - 36 + col0 col0 FROM tab1 AS cor0
----
180
183
195

query I rowsort
SELECT ALL + - 21 * - + 81 FROM tab2 AS cor0
----
1701
1701
1701

onlyif mysql # aggregate syntax: 
query II rowsort label-7515
SELECT ALL + 47 AS col1, - SUM( + 86 ) FROM tab1 AS cor0
----
47
-258

skipif mysql # not compatible
query II rowsort label-7515
SELECT ALL + 47 AS col1, - SUM ( + 86 ) FROM tab1 AS cor0
----
47
-258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 64 / - AVG ( DISTINCT - col0 ) + + 10 col1 FROM tab1 WHERE 41 IN ( - col1, - col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7517
SELECT ALL - COUNT( * ) col2 FROM tab0, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7517
SELECT ALL - COUNT ( * ) col2 FROM tab0, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----
0

query I rowsort
SELECT DISTINCT AVG ( - col2 ) + + 10 FROM tab2 AS cor0 WHERE - 80 IN ( - col2, - col0, - 73, - ( 5 ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + + ( col2 ) * 82 - col1 * + - 1 col2, ( + col1 ) FROM tab1 AS cor0
----
401486
14
411235
5
507463
47

query I rowsort
SELECT + - col0 * + + col0 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT + CAST( - + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7521
SELECT + CAST ( - + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 64 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT DISTINCT ( + COUNT( * ) ) AS col2 FROM tab1 WHERE NULL >= + - col2
----
0

skipif mysql # not compatible
query I rowsort label-7524
SELECT DISTINCT ( + COUNT ( * ) ) AS col2 FROM tab1 WHERE NULL >= + - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT + 13 * + + COUNT( * ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7525
SELECT + 13 * + + COUNT ( * ) FROM tab1 AS cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7526
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col1, col0, col0 FROM tab2 AS cor0
----
9 values hashing to 77c103e697eb21b5ec7c77bbb42ab419

skipif mysql # not compatible
query III rowsort label-7526
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col1, col0, col0 FROM tab2 AS cor0
----
9 values hashing to 77c103e697eb21b5ec7c77bbb42ab419

query I rowsort
SELECT ALL col2 + - col0 * - 76 FROM tab1 AS cor0
----
3972
6519
6984

query I rowsort
SELECT DISTINCT - 20 + col2 FROM tab2 AS cor0
----
20
3
38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / - ( + col2 ) = + col2
----

query II rowsort
SELECT + 15 + + - col2 * + col1 AS col2, 16 FROM tab1 AS cor0
----
-1329
16
-280
16
-3181
16

query III rowsort
SELECT * FROM tab1 WHERE + + ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT ALL + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7533
SELECT - ( COUNT( ALL + col0 ) ), CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7533
SELECT - ( COUNT ( ALL + col0 ) ), CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT ALL + 74 + 68 FROM tab0 AS cor0
----
142
142
142

onlyif mysql # aggregate syntax: 
query II rowsort label-7535
SELECT DISTINCT 67 + - + COUNT( DISTINCT + col2 ) AS col2, 75 AS col1 FROM tab0 AS cor0
----
64
75

skipif mysql # not compatible
query II rowsort label-7535
SELECT DISTINCT 67 + - + COUNT ( DISTINCT + col2 ) AS col2, 75 AS col1 FROM tab0 AS cor0
----
64
75

query II rowsort
SELECT 11 AS col0, col2 * col2 AS col1 FROM tab0 AS cor0
----
11
100
11
2209
11
9801

query I rowsort
SELECT DISTINCT - col0 * col1 - + col2 * - + 51 - - col1 AS col0 FROM tab0 AS cor0
----
-1296
1263
4953

query I rowsort
SELECT - 27 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT col0 - 34 - col2 FROM tab2
----
-10
-11
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT COUNT( ALL col2 ) + - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7540
SELECT COUNT ( ALL col2 ) + - - COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT 47 * + col0 - + col0 AS col2 FROM tab0 AS cor0
----
4002
4462
690

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT - + COUNT( * ) + 3 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col2 * + col1
----
3

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT - + COUNT ( * ) + 3 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col2 * + col1
----
3

query I rowsort
SELECT 63 * + - 47 AS col1 FROM tab2 cor0
----
-2961
-2961
-2961

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - 58 + - - col0 * col2 ) AND col0
----

query I rowsort
SELECT DISTINCT + + 72 + - + col0 + - col0 * + 69 - - col0 * + col1 - col2 AS col2 FROM tab2 AS cor0 WHERE NOT 88 * - col2 IS NULL
----
-211
-825
480

query I rowsort
SELECT + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 6 IS NULL
----
-46
-64
-75

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7548
SELECT DISTINCT MAX( ALL + CAST( NULL AS SIGNED ) ) * + 65 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT MAX ( ALL + CAST ( NULL AS INTEGER ) ) * + 65 AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7549
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) * - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) * - col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT MAX( - 28 ) FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-7550
SELECT MAX ( - 28 ) FROM tab1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT MIN( + ( + - ( col1 ) ) ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7551
SELECT MIN ( + ( + - ( col1 ) ) ) AS col1 FROM tab2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - col2 AS col1 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + col0 * - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 3 * - 26 FROM tab0 AS cor0
----
-78
-78
-78

query II rowsort
SELECT ALL - col0 AS col2, col2 AS col0 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT 1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL - SUM( DISTINCT - 43 ) * 0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL - SUM ( DISTINCT - 43 ) * 0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT 27 + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7559
SELECT 27 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + 37 col2, + col1 AS col0 FROM tab1 AS cor0
----
1739
47
185
5
518
14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 47 * col1 * - 73 IS NULL
----

query II rowsort
SELECT ALL + 57 AS col2, + 14 AS col2 FROM tab1 AS cor0
----
57
14
57
14
57
14

query I rowsort
SELECT DISTINCT + - col1 + - 19 FROM tab2 cor0
----
-70
-86
-96

query I rowsort
SELECT DISTINCT ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + 10 IS NULL
----

query I rowsort
SELECT - - 61 AS col2 FROM tab0 cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT - COUNT( DISTINCT + col1 ) - + - COUNT( * ) col0 FROM tab2 WHERE - col0 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7567
SELECT - COUNT ( DISTINCT + col1 ) - + - COUNT ( * ) col0 FROM tab2 WHERE - col0 < NULL
----
0

query I rowsort
SELECT ALL ( - col0 ) * 69 AS col2 FROM tab0
----
-1035
-6003
-6693

query I rowsort
SELECT - 79 * + 78 AS col0 FROM tab2 WHERE ( ( ( NOT + 9 IS NOT NULL ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7570
SELECT - 97 * COUNT( * ) DIV + COUNT( * ) FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-7570
SELECT - 97 * COUNT ( * ) / + COUNT ( * ) FROM tab1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL + COUNT( * ) - + + 2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL + COUNT ( * ) - + + 2 FROM tab2
----
1

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT + - col0 = NULL
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT + ( COUNT( col2 ) ) - 39 - - 24 * + 6 + - 79 * ( + 13 ) AS col2 FROM tab1
----
-919

skipif mysql # not compatible
query I rowsort label-7574
SELECT + ( COUNT ( col2 ) ) - 39 - - 24 * + 6 + - 79 * ( + 13 ) AS col2 FROM tab1
----
-919

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL COUNT( * ) * + + COUNT( * ) * + - 25 AS col0 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL COUNT ( * ) * + + COUNT ( * ) * + - 25 AS col0 FROM tab1
----
-225

query I rowsort
SELECT DISTINCT ( + col0 ) * + + 15 * + col2 * + col2 * + col0 AS col2 FROM tab0
----
11353500
1383264135
7455375

query I rowsort
SELECT DISTINCT col2 + + - ( + + 95 ) FROM tab0 AS cor0
----
-48
-85
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7578
SELECT DISTINCT - CAST( - - ( + - col0 ) AS SIGNED ) + - col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT - CAST ( - - ( + - col0 ) AS INTEGER ) + - col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT col1 + col1 + + + col0 * - 19 * - 95 * + col1 FROM tab2 AS cor0
----
4234632
8895194
9070259

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * 48 col0 FROM tab1 AS cor0
----
3888
3888
3888

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT ALL + col1 DIV - 45 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL + col1 / - 45 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7582
SELECT DISTINCT + ( - - CAST( - + 12 AS SIGNED ) ) AS col0 FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT + ( - - CAST ( - + 12 AS INTEGER ) ) AS col0 FROM tab2 cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7583
SELECT ALL - 51 AS col1, - CAST( NULL AS SIGNED ) / + col0 - - col0 FROM tab0 AS cor0
----
-51
NULL
-51
NULL
-51
NULL

skipif mysql # not compatible
query II rowsort label-7583
SELECT ALL - 51 AS col1, - CAST ( NULL AS INTEGER ) / + col0 - - col0 FROM tab0 AS cor0
----
-51
NULL
-51
NULL
-51
NULL

query I rowsort
SELECT + - 62 + - col1 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT MAX( DISTINCT - + col2 ) + 27 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7585
SELECT MAX ( DISTINCT - + col2 ) + 27 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----
NULL

query I rowsort
SELECT - col0 * - + col1 * + ( + 80 ) FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT ALL + MIN( ALL + - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL + MIN ( ALL + - col0 ) FROM tab2
----
-75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - col1 < NULL
----

query I rowsort
SELECT - - col2 + 46 FROM tab0 AS cor0
----
145
56
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT - + col0 DIV 32 + col0 * 78 + col1 AS col1 FROM tab2 AS cor0
----
3638
5067
5915

skipif mysql # not compatible
query I rowsort label-7590
SELECT - + col0 / 32 + col0 * 78 + col1 AS col1 FROM tab2 AS cor0
----
3638
5067
5915

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL = ( + 8 )
----
0

skipif mysql # not compatible
query I rowsort label-7591
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = ( + 8 )
----
0

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > - ( col2 ) / - col1 * - - col0 + + + 15
----

query I rowsort
SELECT DISTINCT - 12 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-12

query I rowsort
SELECT ALL 77 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + + 3 ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( - + col2 ) + ( 68 ) AS col1 FROM tab2 AS cor0
----
108
126
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT + - MIN( DISTINCT + 96 ) AS col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7597
SELECT + - MIN ( DISTINCT + 96 ) AS col2 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT - 85 AS col1 FROM tab1 AS cor0 WHERE + col2 * + 53 * + col1 IS NULL
----

query I rowsort
SELECT ALL + col0 * + - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + - 73 + 38 FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT DISTINCT + col2 + + CAST( + col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7601
SELECT DISTINCT + col2 + + CAST ( + col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT - 79 * - 15 + - col1 FROM tab0 AS cor0
----
1104
1164
1184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7603
SELECT + col2 * - - 92 + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7603
SELECT + col2 * - - 92 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT ALL - 91 * + - 98 * - MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
526162

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL - 91 * + - 98 * - MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
526162

query I rowsort
SELECT - 53 * - 8 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT DISTINCT - COUNT( col1 ) + + 42 AS col1 FROM tab2 cor0
----
39

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT - COUNT ( col1 ) + + 42 AS col1 FROM tab2 cor0
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7607
SELECT DISTINCT + - 49 FROM tab2 AS cor0 WHERE - CAST( col2 AS DECIMAL ) BETWEEN ( NULL ) AND col1
----

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT + - 49 FROM tab2 AS cor0 WHERE - CAST ( col2 AS REAL ) BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT ALL - + 95 - - - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1439
-3291
-390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col1 FROM tab0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7610
SELECT ALL col2 * - col1 DIV + col1 AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL col2 * - col1 / + col1 AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ( + + col0 ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL - MAX( ALL - - col2 ) * + COUNT( * ) AS col1 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL - MAX ( ALL - - col2 ) * + COUNT ( * ) AS col1 FROM tab2
----
-174

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + col1 * - - col2 = + 51
----

query III rowsort
SELECT * FROM tab2 WHERE 15 * col0 BETWEEN + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT MIN( - 2 ) AS col1 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7615
SELECT MIN ( - 2 ) AS col1 FROM tab1
----
-2

query I rowsort
SELECT + col1 * + 48 FROM tab0
----
1008
3888
48

query I rowsort
SELECT DISTINCT - col0 * + + 42 AS col2 FROM tab1
----
-2142
-3570
-3822

query I rowsort
SELECT DISTINCT col0 + - col0 * - ( - + col0 ) FROM tab0
----
-210
-7482
-9312

query I rowsort
SELECT DISTINCT col1 + - + col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL + 1 * - 68 + - ( 96 ) * + col0 * 87 AS col1 FROM tab1 AS cor0 WHERE NOT 13 BETWEEN - col2 AND - 14
----
-426020
-709988
-760100

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ALL COUNT( * ) * - MAX( DISTINCT - 28 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL COUNT ( * ) * - MAX ( DISTINCT - 28 ) FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL COUNT( * ) + 79 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
82

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL COUNT ( * ) + 79 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7623
SELECT - COUNT( * ) DIV - COUNT( * ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7623
SELECT - COUNT ( * ) / - COUNT ( * ) FROM tab2 cor0
----
1

query I rowsort
SELECT + + 56 * + col2 * + + col0 * - col0 FROM tab0 AS cor0
----
-4238640
-52163496
-592200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7625
SELECT ALL + CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( NULL ) BETWEEN NULL AND - + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( NULL ) BETWEEN NULL AND - + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT DISTINCT ( ( + COUNT( * ) ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT ( ( + COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7627
SELECT ALL + + COUNT( * ) * - COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-7627
SELECT ALL + + COUNT ( * ) * - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-9
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT 54 >= NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( - col0 ) BETWEEN NULL AND + ( 76 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT - 32 DIV - col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7630
SELECT - 32 / - col0 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT - MIN( col1 ) * - 61 AS col0 FROM tab1
----
305

skipif mysql # not compatible
query I rowsort label-7631
SELECT - MIN ( col1 ) * - 61 AS col0 FROM tab1
----
305

query I rowsort
SELECT ( 28 ) FROM tab0
----
28
28
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7633
SELECT DISTINCT - 18 AS col2, COUNT( - col1 ) AS col2 FROM tab2
----
-18
3

skipif mysql # not compatible
query II rowsort label-7633
SELECT DISTINCT - 18 AS col2, COUNT ( - col1 ) AS col2 FROM tab2
----
-18
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT - - ( - + COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT - - ( - + COUNT ( * ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ( + col2 ) + - 32 FROM tab0 AS cor0
----
-22
15
67

query I rowsort
SELECT col2 * col2 - + col0 FROM tab2
----
1536
3289
483

query III rowsort
SELECT * FROM tab0 WHERE NOT - 76 + ( 41 + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 38 * col0 FROM tab1 WHERE NULL <> ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT ALL - COUNT( * ) FROM tab0 WHERE + 28 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL - COUNT ( * ) FROM tab0 WHERE + 28 IS NOT NULL
----
-3

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * col1 + - col2 col0 FROM tab1
----
-39
-40
120

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 * col0 + col1 * 53 ) < col0 + + col2
----

query I rowsort
SELECT + 42 * - 41 AS col2 FROM tab0
----
-1722
-1722
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL - 94 + COUNT( * ) AS col0 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL - 94 + COUNT ( * ) AS col0 FROM tab2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7646
SELECT DISTINCT * FROM tab1 WHERE 15 * 97 + - col2 * CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7646
SELECT DISTINCT * FROM tab1 WHERE 15 * 97 + - col2 * CAST ( col0 AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 51 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 NOT BETWEEN 72 AND NULL
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT DISTINCT - MAX( + 62 ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT - MAX ( + 62 ) FROM tab0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - COUNT( * ) + - 51 * MAX( col2 ) FROM tab1
----
-4899

skipif mysql # not compatible
query I rowsort label-7650
SELECT - COUNT ( * ) + - 51 * MAX ( col2 ) FROM tab1
----
-4899

query I rowsort
SELECT DISTINCT 11 * + 39 FROM tab2
----
429

query I rowsort
SELECT col0 * 82 + 97 * 64 FROM tab1
----
10390
13178
13670

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT COUNT( DISTINCT + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7653
SELECT COUNT ( DISTINCT + col2 ) FROM tab2
----
3

query I rowsort
SELECT + ( + col2 ) AS col2 FROM tab0 WHERE NOT NULL IN ( 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT DISTINCT + 60 AS col1 FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT + 60 AS col1 FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 >= + 50
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT 93 + + COUNT( * ) FROM tab0 WHERE NOT + col1 * 49 = ( + col0 )
----
96

skipif mysql # not compatible
query I rowsort label-7657
SELECT 93 + + COUNT ( * ) FROM tab0 WHERE NOT + col1 * 49 = ( + col0 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7658
SELECT DISTINCT - col1 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT - col1 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT BETWEEN col2 - + 30 AND col1 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 + - 55 * 78 col2 FROM tab2
----
-4230
-4230
-4230

query III rowsort
SELECT * FROM tab2 WHERE + col0 <= ( + 59 * ( + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 82 FROM tab0 WHERE 32 NOT IN ( - col1 * + col0 )
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT DISTINCT + SUM( ALL 34 ) FROM tab0 WHERE 11 IS NOT NULL
----
102

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT + SUM ( ALL 34 ) FROM tab0 WHERE 11 IS NOT NULL
----
102

query III rowsort
SELECT ALL * FROM tab0 WHERE + 12 * 56 + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 + - col2 ) IS NOT NULL
----

query I rowsort
SELECT - 15 + - col1 AS col1 FROM tab1
----
-20
-29
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT - COUNT( * ) + + COUNT( * ) * - 56 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-7667
SELECT - COUNT ( * ) + + COUNT ( * ) * - 56 FROM tab2
----
-171

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * col2 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT - 5 + ( col2 ) FROM tab0
----
42
5
94

query I rowsort
SELECT + col0 * 71 FROM tab2
----
3266
4544
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT 95 / + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 95 / + col0 IS NULL
----
3

query I rowsort
SELECT DISTINCT ( + 12 ) FROM tab0 AS cor0 WHERE NOT 96 + 78 <= ( 12 + col1 / col2 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT 39 * COUNT( * ) FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-7673
SELECT 39 * COUNT ( * ) FROM tab2 AS cor0
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7674
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col2 + 42 IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col2 + 42 IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 28 IS NOT NULL
----

query I rowsort
SELECT ALL - 89 * col0 AS col1 FROM tab2 AS cor0
----
-4094
-5696
-6675

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT - 37 DIV col1 col0 FROM tab0 AS cor0
----
-1
-37
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7677
SELECT - 37 / col1 col0 FROM tab0 AS cor0
----
-1
-37
0

query I rowsort
SELECT - ( + 53 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 col0 FROM tab1 cor0 CROSS JOIN tab0
----
26

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < + 67
----

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 ) WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col2 FROM tab2 AS cor0 WHERE NOT 93 BETWEEN - col0 AND col0
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 46 col2 FROM tab2 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT + MIN( ALL - col0 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-7684
SELECT + MIN ( ALL - col0 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT ALL + MIN( DISTINCT + 92 ) FROM tab0 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL + MIN ( DISTINCT + 92 ) FROM tab0 AS cor0
----
92

query I rowsort
SELECT DISTINCT ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + col2 * ( + 81 ) FROM tab0 AS cor0
----
3807
8019
810

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 41 + col1 ) BETWEEN col1 + + 17 * ( 47 ) AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col0 FROM tab0 cor0
----
87
87
87

query I rowsort
SELECT + - 26 * col2 AS col1 FROM tab2 AS cor0
----
-1040
-1508
-598

query I rowsort
SELECT DISTINCT 21 * + col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN ( + col2 ) AND ( col0 - col1 * - 71 )
----

query I rowsort
SELECT + col1 * + + 58 * 72 FROM tab2
----
212976
279792
321552

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN - col2 AND ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT + 76 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT + 76 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + COUNT( * ) * - 47 - + 92 col0 FROM tab0 WHERE NOT + col1 IS NULL
----
-233

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7695
SELECT + COUNT ( * ) * - 47 - + 92 col0 FROM tab0 WHERE NOT + col1 IS NULL
----
-233

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - col0 - + 75 IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE NOT 95 NOT IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 40 NOT IN ( + 70 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT - COUNT( * ) + COUNT( * ) FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7699
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT col2 + + + 89 AS col2 FROM tab2
----
112
129
147

query I rowsort
SELECT ALL + 74 + - + col0 AS col0 FROM tab0 AS cor0
----
-13
-23
59

query I rowsort
SELECT ALL + 66 + - + col2 AS col2 FROM tab2 AS cor0
----
26
43
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT DISTINCT 36 * + + MAX( ALL - col2 ) + + ( + 4 ) * COUNT( * ) FROM tab1 AS cor0
----
-2112

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT 36 * + + MAX ( ALL - col2 ) + + ( + 4 ) * COUNT ( * ) FROM tab1 AS cor0
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT DISTINCT 1 * COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT 1 * COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab0 WHERE ( + + 10 ) IS NULL
----

query I rowsort
SELECT ( + 38 ) * col2 + 75 FROM tab1
----
2317
2659
3723

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7707
SELECT AVG ( - col1 ) * + - CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7707
SELECT AVG ( - col1 ) * + - CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7708
SELECT 0 DIV + - 34 - - col2 AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7708
SELECT 0 / + - 34 - - col2 AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT - 70 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query III rowsort
SELECT * FROM tab1 WHERE col0 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT + COUNT( + + col2 ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7711
SELECT + COUNT ( + + col2 ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7712
SELECT - ( + + col1 ) DIV 64 + col2 AS col1 FROM tab2 AS cor0
----
23
39
57

skipif mysql # not compatible
query I rowsort label-7712
SELECT - ( + + col1 ) / 64 + col2 AS col1 FROM tab2 AS cor0
----
23
39
57

query I rowsort
SELECT + col1 + + - ( + col0 ) + ( - col1 + col1 ) FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7714
SELECT * FROM tab0 AS cor0 WHERE NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7714
SELECT * FROM tab0 AS cor0 WHERE NULL >= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL - 37 * + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL - 37 * + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col2 FROM tab2 AS cor0 WHERE 31 BETWEEN - - 99 / ( col0 ) AND col0 * col0 - col2
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT + 31 + - CAST( + col0 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
1089
2591
4381

skipif mysql # not compatible
query I rowsort label-7717
SELECT + 31 + - CAST ( + col0 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
1089
2591
4381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7718
SELECT COUNT( * ) * + 18 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7718
SELECT COUNT ( * ) * + 18 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT + CAST( col0 AS SIGNED ) FROM tab1 AS cor0 WHERE ( 84 ) <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7719
SELECT + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 WHERE ( 84 ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7720
SELECT * FROM tab0 AS cor0 WHERE - CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7720
SELECT * FROM tab0 AS cor0 WHERE - CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT DISTINCT - col1 DIV 95 AS col1 FROM tab1 AS cor0 WHERE col1 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT - col1 / 95 AS col1 FROM tab1 AS cor0 WHERE col1 + + col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7722
SELECT ALL + col0 * + + ( - 95 ) - - col1 DIV + 92 FROM tab0
----
-1425
-8265
-9215

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL + col0 * + + ( - 95 ) - - col1 / + 92 FROM tab0
----
-1425
-8265
-9215

query I rowsort
SELECT DISTINCT + 15 / 5 - - 38 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT DISTINCT - ( - MAX( 55 ) ) - + COUNT( * ) col0 FROM tab2
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7724
SELECT DISTINCT - ( - MAX ( 55 ) ) - + COUNT ( * ) col0 FROM tab2
----
52

query I rowsort
SELECT ALL col0 - - 22 * + col1 + ( col1 ) * 72 AS col2 FROM tab2
----
4840
6373
7302

query I rowsort
SELECT DISTINCT + + col2 * - 71 + 3 FROM tab0 WHERE NOT col2 < NULL
----

query I rowsort
SELECT + ( - 40 ) AS col1 FROM tab0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ( + SUM( - - col2 ) ) col0 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7728
SELECT ( + SUM ( - - col2 ) ) col0 FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - - col0 ) col0, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT DISTINCT 15 FROM tab2 cor0 WHERE NOT - col0 NOT IN ( col2 * + 80 )
----

query I rowsort
SELECT 76 * - 2 FROM tab0 AS cor0
----
-152
-152
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL - MAX( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL - MAX ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - ( col0 ) AS col2 FROM tab1 WHERE NOT + ( - + col2 ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT ALL + + col2 + - col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 BETWEEN + 27 * + col2 AND 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7737
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = CAST( - 55 AS SIGNED ) - - 14
----

skipif mysql # not compatible
query III rowsort label-7737
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = CAST ( - 55 AS INTEGER ) - - 14
----

query I rowsort
SELECT DISTINCT 84 FROM tab0 AS cor0 WHERE NOT - col2 * + col2 IS NULL
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7739
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 IN ( - + col0 ) AND NOT CAST( col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7739
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 IN ( - + col0 ) AND NOT CAST ( col0 AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT + - col2 * - - CAST( NULL AS SIGNED ) - + col1 + + ( + - 68 ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT + - col2 * - - CAST ( NULL AS INTEGER ) - + col1 + + ( + - 68 ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT - COUNT( * ) * 6 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-7741
SELECT - COUNT ( * ) * 6 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7743
SELECT col0 DIV - 46 AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7743
SELECT col0 / - 46 AS col0 FROM tab0
----
-1
-2
0

query I rowsort
SELECT ALL + ( 17 ) FROM tab1
----
17
17
17

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 66 >= ( NULL )
----

query I rowsort
SELECT - ( col2 ) * 20 AS col2 FROM tab1
----
-1180
-1360
-1920

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE 43 NOT IN ( - col0, - col0 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT - MAX( ALL + col1 ) + + COUNT( * ) + + MAX( + col0 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7748
SELECT - MAX ( ALL + col1 ) + + COUNT ( * ) + + MAX ( + col0 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT - col1 * col2 + + 28 FROM tab1
----
-1316
-267
-3168

query III rowsort
SELECT * FROM tab2 WHERE + - col1 + - 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT - 93 + + 58 * + + MIN( DISTINCT - - col2 ) * - MIN( - col0 ) FROM tab1
----
311309

skipif mysql # not compatible
query I rowsort label-7751
SELECT - 93 + + 58 * + + MIN ( DISTINCT - - col2 ) * - MIN ( - col0 ) FROM tab1
----
311309

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < + col0 * + col2
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT col0 * col2 * - 80 + - + col0 NOT IN ( - 93 )
----

query I rowsort
SELECT ALL + - col0 * - ( + + 86 ) * - - 98 + + col0 * - + ( + + col2 ) * - 0 + + 65 AS col2 FROM tab2 AS cor0
----
387753
539457
632165

query II rowsort
SELECT DISTINCT - col1 + + 48 / + - col0, - 99 * + 95 AS col2 FROM tab0 cor0 WHERE NOT NULL <= 11
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE 11 IS NULL
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE - col1 - 13 BETWEEN 65 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE + col0 + - 32 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7758
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 + - 32 IS NOT NULL
----
-3

query II rowsort
SELECT DISTINCT col0, ( + - col1 ) AS col2 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT ( + col1 ) AS col1 FROM tab2 WHERE NOT + 91 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT + col1 * - 99 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7763
SELECT ALL * FROM tab1 WHERE NOT - + ( - col2 ) + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7763
SELECT ALL * FROM tab1 WHERE NOT - + ( - col2 ) + + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7764
SELECT ALL + COUNT( * ) AS col0, + COUNT( * ) + - 68 + - - 42 FROM tab2
----
3
-23

skipif mysql # not compatible
query II rowsort label-7764
SELECT ALL + COUNT ( * ) AS col0, + COUNT ( * ) + - 68 + - - 42 FROM tab2
----
3
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT ALL + SUM( ALL + col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + SUM ( ALL + col0 ) AS col2 FROM tab1
----
227

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - - col2 ) NOT BETWEEN col1 AND ( NULL )
----

query I rowsort
SELECT col0 * - - col0 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7768
SELECT DISTINCT - + CAST( 6 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT - + CAST ( 6 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-7769
SELECT + + col1 DIV - + col1 + - 35 AS col2, - 22 AS col2 FROM tab1 AS cor0
----
-36
-22
-36
-22
-36
-22

skipif mysql # not compatible
query II rowsort label-7769
SELECT + + col1 / - + col1 + - 35 AS col2, - 22 AS col2 FROM tab1 AS cor0
----
-36
-22
-36
-22
-36
-22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 * - - col2 - 10 - col2 AND + col1
----

query II rowsort
SELECT DISTINCT - - col0, col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + col0 > NULL
----

query I rowsort
SELECT DISTINCT - 85 * 43 FROM tab2
----
-3655

query I rowsort
SELECT DISTINCT + col1 + 17 FROM tab1 cor0
----
22
31
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT + + MAX( - 45 ) AS col2 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7776
SELECT + + MAX ( - 45 ) AS col2 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT - MIN( DISTINCT - + col2 ) col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7777
SELECT - MIN ( DISTINCT - + col2 ) col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + 71 + - + 85 * + 26 AS col0 FROM tab2 AS cor0
----
-2139

query I rowsort
SELECT ALL + - ( + - col0 ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + 81 + col0 AS col0 FROM tab2 cor0
----
127
145
156

query I rowsort
SELECT DISTINCT + ( 59 ) AS col0 FROM tab1 cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT ALL + CAST( - - col0 AS SIGNED ) * - col1 - - - col0 + - 89 col2 FROM tab2
----
-2481
-5081
-5189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7782
SELECT ALL + CAST ( - - col0 AS INTEGER ) * - col1 - - - col0 + - 89 col2 FROM tab2
----
-2481
-5081
-5189

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 85 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 56 + - col1 FROM tab0
----
-137
-57
-77

query I rowsort
SELECT - 3 + col0 FROM tab2
----
43
61
72

query I rowsort
SELECT DISTINCT ( - col2 ) * - 79 + col2 + col1 * + col1 FROM tab0
----
10321
1241
7921

onlyif mysql # DIV for integer division: 
query I rowsort label-7787
SELECT ALL + col0 DIV col2 * + col2 + + col0 FROM tab2 AS cor0
----
104
133
92

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL + col0 / col2 * + col2 + + col0 FROM tab2 AS cor0
----
104
133
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + + col2 + col0 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT + - 66 * 87 * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
17226

skipif mysql # not compatible
query I rowsort label-7790
SELECT + - 66 * 87 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
17226

query I rowsort
SELECT ALL + 11 + + col1 AS col2 FROM tab0 AS cor0
----
12
32
92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 3 * - - 81 * - col1 NOT IN ( col0 + + + ( col2 ), - ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7793
SELECT DISTINCT - col1 DIV - - ( - + 48 ) + col1 FROM tab2 cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT - col1 / - - ( - + 48 ) + col1 FROM tab2 cor0
----
52
68
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7794
SELECT CAST( NULL AS SIGNED ) * - - 1 + + + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7794
SELECT CAST ( NULL AS INTEGER ) * - - 1 + + + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT ALL + 78 + - col0 FROM tab0
----
-19
-9
63

query I rowsort
SELECT + ( - 17 ) + + - col0 FROM tab0 AS cor0
----
-104
-114
-32

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT COUNT( * ) + + SUM( ALL - - col2 ) AS col1 FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-7798
SELECT COUNT ( * ) + + SUM ( ALL - - col2 ) AS col1 FROM tab2 AS cor0
----
124

query I rowsort
SELECT - col2 * - - col1 + - - col2 * - + 46 AS col1 FROM tab1 cor0
----
-3009
-5760
-6324

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT ALL - + ( - 53 ) DIV + col0 + col0 AS col2 FROM tab0 AS cor0
----
18
87
97

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL - + ( - 53 ) / + col0 + col0 AS col2 FROM tab0 AS cor0
----
18
87
97

query I rowsort
SELECT ALL + + 59 AS col0 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT ALL - col1 * + + col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - 87, - col0 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + - 67 * + col2 > + - 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7804
SELECT DISTINCT * FROM tab0 WHERE + col2 * + + CAST( + + col1 AS SIGNED ) + + - 74 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7804
SELECT DISTINCT * FROM tab0 WHERE + col2 * + + CAST ( + + col1 AS INTEGER ) + + - 74 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7805
SELECT AVG ( ALL + CAST( NULL AS SIGNED ) ) / + - COUNT( * ), + 62 * - 29 AS col2 FROM tab2
----
NULL
-1798

skipif mysql # not compatible
query II rowsort label-7805
SELECT AVG ( ALL + CAST ( NULL AS INTEGER ) ) / + - COUNT ( * ), + 62 * - 29 AS col2 FROM tab2
----
NULL
-1798

query I rowsort
SELECT DISTINCT - 53 * + col2 + col2 + + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-2254
-4640
-7366

query I rowsort
SELECT ALL - + 94 AS col0 FROM tab1 cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL - + 43 + + 2 + ( + + ( COUNT( * ) ) ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + 91 ) IS NOT NULL
----
-122

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - + 43 + + 2 + ( + + ( COUNT ( * ) ) ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + 91 ) IS NOT NULL
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT MIN( + 2 ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-7809
SELECT MIN ( + 2 ) AS col0 FROM tab1
----
2

query III rowsort
SELECT * FROM tab0 WHERE NOT - 51 - - col1 * - col1 IN ( - col2 * - - col1 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0, - 46 AS col0 FROM tab1
----
51
-46
85
-46
91
-46

query II rowsort
SELECT DISTINCT 13 + - col0 + + col2, 0 AS col0 FROM tab0
----
-64
0
15
0
45
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 + + - col2 + + - 84 * 43 col1 FROM tab1 AS cor0
----
-3724
-3733
-3761

query I rowsort
SELECT ALL + + col0 + + 38 + - col2 + - col0 FROM tab0 AS cor0
----
-61
-9
28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - col0 * - - 93 - + 63 * 11 * 43 * ( col2 ) / - 58 + col0 < 26
----

query I rowsort
SELECT ALL - 91 FROM tab2 cor0 WHERE 13 * - col2 IS NOT NULL
----
-91
-91
-91

query I rowsort
SELECT DISTINCT - 80 + - ( 74 ) FROM tab2 AS cor0
----
-154

query III rowsort
SELECT * FROM tab1 WHERE + 72 * + col0 < + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT SUM( - + col1 ) col1 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7819
SELECT SUM ( - + col1 ) col1 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT MIN( col1 ) * - 16 AS col0 FROM tab2
----
-816

skipif mysql # not compatible
query I rowsort label-7820
SELECT MIN ( col1 ) * - 16 AS col0 FROM tab2
----
-816

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7821
SELECT * FROM tab1 WHERE + col0 + - col1 BETWEEN col2 * + 54 * col2 AND + + CAST( NULL AS SIGNED ) + - 62
----

skipif mysql # not compatible
query III rowsort label-7821
SELECT * FROM tab1 WHERE + col0 + - col1 BETWEEN col2 * + 54 * col2 AND + + CAST ( NULL AS INTEGER ) + - 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7822
SELECT 15 DIV + col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7822
SELECT 15 / + col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 41 * 63 FROM tab1
----
2583
2583
2583

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL - 29 * ( + 92 ) * + COUNT( * ) AS col2 FROM tab0
----
-8004

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL - 29 * ( + 92 ) * + COUNT ( * ) AS col2 FROM tab0
----
-8004

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col0 + + col2 + 31, + col2 )
----

query I rowsort
SELECT ALL 45 * - + 46 AS col2 FROM tab2
----
-2070
-2070
-2070

query I rowsort
SELECT - ( - + col1 ) - + col0 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT DISTINCT CAST( NULL AS SIGNED ) / 82 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 82 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT + 82 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7829
SELECT + 82 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT + COUNT( * ) + - MAX( DISTINCT - 98 ) col1 FROM tab1 AS cor0
----
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7830
SELECT + COUNT ( * ) + - MAX ( DISTINCT - 98 ) col1 FROM tab1 AS cor0
----
101

query I rowsort
SELECT + + ( 21 ) FROM tab2 AS cor0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7832
SELECT * FROM tab2 AS cor0 WHERE NOT 46 NOT IN ( + col1 * col1 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7832
SELECT * FROM tab2 AS cor0 WHERE NOT 46 NOT IN ( + col1 * col1 * + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT ALL + MAX( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL + MAX ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 63 - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 45 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 30 * - 25 FROM tab2 cor0
----
-750

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 IS NULL OR NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT - COUNT( * ) * + 69 AS col0 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-7838
SELECT - COUNT ( * ) * + 69 AS col0 FROM tab2 AS cor0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT DISTINCT - 86 * COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT - 86 * COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
-258

query II rowsort
SELECT + col1 * - + col1 + + 8, + col0 + - col0 AS col0 FROM tab2 AS cor0
----
-2593
0
-4481
0
-5921
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT + - 97 + + 40 * AVG ( DISTINCT + 99 ) / + COUNT( * ) FROM tab0 WHERE NOT ( NULL ) >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT + - 97 + + 40 * AVG ( DISTINCT + 99 ) / + COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) >= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT DISTINCT ( + 78 ) * + + COUNT( * ) AS col1 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT ( + 78 ) * + + COUNT ( * ) AS col1 FROM tab0
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-7843
SELECT DISTINCT - 40 DIV - 3 AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT - 40 / - 3 AS col1 FROM tab2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7844
SELECT DISTINCT 18 DIV - - 49 * - 4 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT 18 / - - 49 * - 4 AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( - - 23 ) * - ( - - 29 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7846
SELECT 24 AS col1, 70 + + + col1 + - 9 + - - col1 * col1 AS col1 FROM tab2 WHERE NOT - col1 IN ( - - CAST( NULL AS SIGNED ) * + col0 * - + col1 )
----

skipif mysql # not compatible
query II rowsort label-7846
SELECT 24 AS col1, 70 + + + col1 + - 9 + - - col1 * col1 AS col1 FROM tab2 WHERE NOT - col1 IN ( - - CAST ( NULL AS INTEGER ) * + col0 * - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - MIN( - 0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7847
SELECT - MIN ( - 0 ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7848
SELECT DISTINCT - 35 - - - COUNT( * ) AS col1 FROM tab1 WHERE + CAST( col2 AS SIGNED ) BETWEEN + col1 AND - - 45
----
-35

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT - 35 - - - COUNT ( * ) AS col1 FROM tab1 WHERE + CAST ( col2 AS INTEGER ) BETWEEN + col1 AND - - 45
----
-35

query II rowsort
SELECT ALL - col2 AS col1, + col0 * - + col0 FROM tab2 AS cor0
----
-23
-2116
-40
-4096
-58
-5625

query I rowsort
SELECT ALL - col1 * + 54 FROM tab1 AS cor0
----
-2538
-270
-756

query I rowsort
SELECT ALL ( 17 ) AS col2 FROM tab2 cor0
----
17
17
17

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <= - col1
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7853
SELECT DISTINCT col0 / + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT col0 / + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - col0, - 62 * - col2 col2 FROM tab2 AS cor0
----
-8
3596
13
2480
5
1426

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT - + 90 * + + 45 + COUNT( * ) col2 FROM tab1 AS cor0 WHERE NULL <> - col2 * - col2
----
-4050

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7856
SELECT - + 90 * + + 45 + COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NULL <> - col2 * - col2
----
-4050

query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab1 WHERE NOT NULL < + 16
----

query I rowsort
SELECT ALL - 12 - col2 - col0 * - col0 FROM tab2
----
2081
4044
5555

query III rowsort
SELECT * FROM tab2 WHERE + 46 / - + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col1 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT DISTINCT - 84 AS col1, col0 FROM tab0
----
-84
15
-84
87
-84
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ( + - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7863
SELECT ( + - COUNT ( * ) ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, - col2 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NULL > + 52 * - col1 / - 42 * - col0
----

query I rowsort
SELECT DISTINCT col0 / - - col2 / - col2 + - - col1 FROM tab1 AS cor0 WHERE NULL >= col2
----

query I rowsort
SELECT ALL col0 - + + col1 * - col1 - + - col0 AS col1 FROM tab1 AS cor0
----
195
2391
298

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7868
SELECT * FROM tab0 WHERE col0 * + - 93 / + + CAST( - col2 AS SIGNED ) / col0 * 91 <= NULL
----

skipif mysql # not compatible
query III rowsort label-7868
SELECT * FROM tab0 WHERE col0 * + - 93 / + + CAST ( - col2 AS INTEGER ) / col0 * 91 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT 70 * - COUNT( * ) FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-7869
SELECT 70 * - COUNT ( * ) FROM tab0 AS cor0
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL + + MIN( DISTINCT + col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL + + MIN ( DISTINCT + col1 ) FROM tab0 cor0
----
1

query I rowsort
SELECT ALL - 55 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 62 * - - 48 FROM tab1 AS cor0
----
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT ALL SUM( DISTINCT - + col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL SUM ( DISTINCT - + col1 ) FROM tab1 cor0
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-7874
SELECT + col0 DIV ( - - col0 ) * + + col2 - + col0 AS col1, + 1 AS col2 FROM tab2 AS cor0
----
-17
1
-23
1
-24
1

skipif mysql # not compatible
query II rowsort label-7874
SELECT + col0 / ( - - col0 ) * + + col2 - + col0 AS col1, + 1 AS col2 FROM tab2 AS cor0
----
-17
1
-23
1
-24
1

query II rowsort
SELECT ALL + col1 * 59 AS col2, ( + - col0 ) + ( + col2 ) FROM tab0 AS cor0
----
1239
-77
4779
32
59
2

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 - + col0 - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT ALL - 79 DIV 4 col0 FROM tab1
----
-19
-19
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7877
SELECT ALL - 79 / 4 col0 FROM tab1
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7878
SELECT + 34 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7878
SELECT + 34 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT DISTINCT - COUNT( + + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT - COUNT ( + + col1 ) FROM tab1
----
-3

query I rowsort
SELECT ALL 97 FROM tab1 WHERE NOT + col2 IS NULL
----
97
97
97

onlyif mysql # DIV for integer division: 
query II rowsort label-7881
SELECT - col1 col0, col0 + + col1 + col0 DIV + col0 FROM tab2
----
-51
98
-67
143
-77
142

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7881
SELECT - col1 col0, col0 + + col1 + col0 / + col0 FROM tab2
----
-51
98
-67
143
-77
142

onlyif mysql # aggregate syntax: 
query II rowsort label-7882
SELECT + COUNT( * ) AS col2, 65 AS col1 FROM tab0
----
3
65

skipif mysql # not compatible
query II rowsort label-7882
SELECT + COUNT ( * ) AS col2, 65 AS col1 FROM tab0
----
3
65

query II rowsort
SELECT - col2 AS col0, col1 AS col0 FROM tab2 WHERE NOT + + col2 >= - 80
----

query I rowsort
SELECT DISTINCT - + 23 + col1 AS col0 FROM tab0 AS cor0
----
-2
-22
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7885
SELECT * FROM tab2 AS cor0 WHERE NOT + ( CAST( + 62 AS DECIMAL ) ) BETWEEN col1 AND NULL
----
64
77
40
75
67
58

skipif mysql # not compatible
query III rowsort label-7885
SELECT * FROM tab2 AS cor0 WHERE NOT + ( CAST ( + 62 AS REAL ) ) BETWEEN col1 AND NULL
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7886
SELECT ALL col0, CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7886
SELECT ALL col0, CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - + col2 ) - + 83 IS NULL
----

query I rowsort
SELECT ALL + + ( - 25 ) * col1 + 97 AS col2 FROM tab1 AS cor0
----
-1078
-253
-28

query II rowsort
SELECT - col2 AS col2, 67 AS col0 FROM tab2 AS cor0
----
-23
67
-40
67
-58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT DISTINCT - - col0 + 13 DIV 40 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT - - col0 + 13 / 40 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
46
64
75

query II rowsort
SELECT ALL + col0 - + - col0 + ( - - col2 ), col0 FROM tab1 AS cor0
----
198
51
229
85
250
91

query II rowsort
SELECT col2, - 42 AS col0 FROM tab2 AS cor0
----
23
-42
40
-42
58
-42

query I rowsort
SELECT 64 - 88 FROM tab0
----
-24
-24
-24

query I rowsort
SELECT col2 * + + col2 - - 25 FROM tab2
----
1625
3389
554

query I rowsort
SELECT + + 75 AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
75
75
75

query I rowsort
SELECT ALL - col1 * - 57 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col0 + col1 AS col0, - col1 FROM tab2 AS cor0
----
141
-77
142
-67
97
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT DISTINCT COUNT( DISTINCT - 85 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT COUNT ( DISTINCT - 85 ) AS col2 FROM tab1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7899
SELECT DISTINCT 98 col2, - COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab1
----
98
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7899
SELECT DISTINCT 98 col2, - COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab1
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL + MIN( DISTINCT 30 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL + MIN ( DISTINCT 30 ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT ALL - 91 * - - col1 AS col1 FROM tab2 AS cor0
----
-4641
-6097
-7007

query I rowsort
SELECT ( + - col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT - col1 AS col1, col1 * + col1 AS col2 FROM tab0 AS cor0
----
-1
1
-21
441
-81
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT - CAST( NULL AS SIGNED ) / col2 + col2 + + - 66 * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT - CAST ( NULL AS INTEGER ) / col2 + col2 + + - 66 * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT - COUNT( * ) * + 86 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-7905
SELECT - COUNT ( * ) * + 86 FROM tab1 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT MIN( col2 ) * - MAX( ALL + - col2 ) FROM tab2 AS cor0
----
529

skipif mysql # not compatible
query I rowsort label-7906
SELECT MIN ( col2 ) * - MAX ( ALL + - col2 ) FROM tab2 AS cor0
----
529

query I rowsort
SELECT DISTINCT + col0 * - + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + - 66 * col2 + 26 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT + + COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN + col2 AND 51
----
0

skipif mysql # not compatible
query I rowsort label-7909
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN + col2 AND 51
----
0

query II rowsort
SELECT DISTINCT + col2 + 97 AS col0, col0 AS col0 FROM tab2
----
120
46
137
64
155
75

query I rowsort
SELECT ALL - - 28 AS col1 FROM tab2 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7912
SELECT - - COUNT( * ), COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-7912
SELECT - - COUNT ( * ), COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

query I rowsort
SELECT ALL - - col1 * + col1 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + - 8 AS col1 FROM tab2 AS cor0
----
-31
-48
-66

query I rowsort
SELECT - col1 + - col1 + - 60 AS col2 FROM tab1 AS cor0
----
-154
-70
-88

query I rowsort
SELECT - - ( - - col1 ) + + col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7917
SELECT DISTINCT 14 * col1 + + col2 DIV - col0 FROM tab1 AS cor0
----
195
658
70

skipif mysql # not compatible
query I rowsort label-7917
SELECT DISTINCT 14 * col1 + + col2 / - col0 FROM tab1 AS cor0
----
195
658
70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 14 IS NULL
----

query I rowsort
SELECT col1 + 73 FROM tab1 cor0
----
120
78
87

query I rowsort
SELECT ALL + - col0 * - - col2 * col0 * + col1 + + col0 FROM tab1 cor0
----
-2131290
-26465985
-3495693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7921
SELECT DISTINCT - col1 - + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT - col1 - + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 + + ( + col1 ) col1 FROM tab2 AS cor0
----
19
29
3

query I rowsort
SELECT DISTINCT + col2 - - col2 + - col1 + col0 + + 25 * col2 * - 91 FROM tab2 cor0
----
-131826
-52284
-90933

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL 4 - 22 + - ( MAX( - + col2 ) ) AS col0 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL 4 - 22 + - ( MAX ( - + col2 ) ) AS col0 FROM tab2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7925
SELECT ALL + COUNT( - - col0 ) FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL + COUNT ( - - col0 ) FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7926
SELECT DISTINCT - 11 * + CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT - 11 * + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT COUNT( * ) - + 74 AS col1 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT COUNT ( * ) - + 74 AS col1 FROM tab0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT - COUNT( ALL - + 87 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7928
SELECT - COUNT ( ALL - + 87 ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7929
SELECT + 51 DIV + SUM( DISTINCT - + col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7929
SELECT + 51 / + SUM ( DISTINCT - + col1 ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 * - col2 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL MIN( DISTINCT - col1 ) - - 22 AS col1 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL MIN ( DISTINCT - col1 ) - - 22 AS col1 FROM tab2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL MAX( DISTINCT 0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL MAX ( DISTINCT 0 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL + ( - - col1 ) FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7934
SELECT ALL + 51 * + 94 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL + 51 * + 94 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 28 * + 16 + - - 61 AS col0 FROM tab0 cor0
----
-387
-387
-387

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7936
SELECT - col0 DIV - ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7936
SELECT - col0 / - ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-1
-1
-2

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL + 16 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + + 19
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col2 FROM tab2 AS cor0
----
64
64
64

query II rowsort
SELECT + - col1, col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
51
-67
67
-77
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 IN ( - col0 * col2, col2 + + 43, - - col2, + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 34 ) > ( NULL )
----

query I rowsort
SELECT ALL - + 41 FROM tab2 AS cor0
----
-41
-41
-41

query II rowsort
SELECT DISTINCT col0 * - + col1 * 93, - 2 * col2 - 13 AS col1 FROM tab0
----
-112995
-107
-169911
-33
-9021
-211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7946
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 84 * - col2 + + col2 + - - 97 * + 67 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT - 22 * + MIN( - col1 ) AS col2 FROM tab1
----
1034

skipif mysql # not compatible
query I rowsort label-7948
SELECT - 22 * + MIN ( - col1 ) AS col2 FROM tab1
----
1034

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7950
SELECT MIN( DISTINCT + col2 ) DIV - COUNT( * ) col1 FROM tab2
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7950
SELECT MIN ( DISTINCT + col2 ) / - COUNT ( * ) col1 FROM tab2
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7951
SELECT * FROM tab0 WHERE - col2 > col0 / - CAST( NULL AS DECIMAL ) + - col2
----

skipif mysql # not compatible
query III rowsort label-7951
SELECT * FROM tab0 WHERE - col2 > col0 / - CAST ( NULL AS REAL ) + - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 36 * + - col0 + + col0 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT 16 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
25

skipif mysql # not compatible
query I rowsort label-7953
SELECT 16 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT + - 67 - + - col2 + CAST( NULL AS SIGNED ) col2 FROM tab2 cor0 WHERE col1 NOT BETWEEN - ( - col2 ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7954
SELECT + - 67 - + - col2 + CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0 WHERE col1 NOT BETWEEN - ( - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT ( + col1 ) + - col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL - col2 + + ( + 84 ) + + col2 AS col1 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT - col2 - col0 + 56 + - - col0 - col1 * + + col0 + - col0 + col2 FROM tab0 AS cor0
----
-1174
-138
-1858

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7958
SELECT DISTINCT - 64 * - col1 * - col2 + + CAST( NULL AS SIGNED ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-7958
SELECT DISTINCT - 64 * - col1 * - col2 + + CAST ( NULL AS INTEGER ), col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT + + CAST( - col1 AS SIGNED ) - - + 39 AS col2 FROM tab1 AS cor0
----
-8
25
34

skipif mysql # not compatible
query I rowsort label-7959
SELECT + + CAST ( - col1 AS INTEGER ) - - + 39 AS col2 FROM tab1 AS cor0
----
-8
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL + 84 + + + COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL + 84 + + + COUNT ( * ) FROM tab0
----
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7961
SELECT - 59 + - col1 + + 72 DIV + ( - + 27 ) col0 FROM tab2 WHERE + CAST( col2 AS SIGNED ) * - - col1 * - col0 + - col1 <= - col1
----
-112
-128
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7961
SELECT - 59 + - col1 + + 72 / + ( - + 27 ) col0 FROM tab2 WHERE + CAST ( col2 AS INTEGER ) * - - col1 * - col0 + - col1 <= - col1
----
-112
-128
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-7962
SELECT - col0 DIV 86 - ( ( - col2 ) ) AS col1 FROM tab1
----
59
67
96

skipif mysql # not compatible
query I rowsort label-7962
SELECT - col0 / 86 - ( ( - col2 ) ) AS col1 FROM tab1
----
59
67
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT + MAX( ALL + 35 ) FROM tab2 WHERE + col0 * + ( + ( + col2 ) ) >= - col0
----
35

skipif mysql # not compatible
query I rowsort label-7963
SELECT + MAX ( ALL + 35 ) FROM tab2 WHERE + col0 * + ( + ( + col2 ) ) >= - col0
----
35

query I rowsort
SELECT col1 + 31 * + col1 AS col2 FROM tab0
----
2592
32
672

query I rowsort
SELECT ALL + 24 * col2 FROM tab1
----
1416
1632
2304

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 27 * + - col2 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7967
SELECT - + COUNT( * ) DIV - - 72 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7967
SELECT - + COUNT ( * ) / - - 72 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT ALL + COUNT( ALL col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL + COUNT ( ALL col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT SUM( 98 ) FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-7969
SELECT SUM ( 98 ) FROM tab1 AS cor0
----
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7970
SELECT MAX( + - CAST( 59 AS SIGNED ) ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-7970
SELECT MAX ( + - CAST ( 59 AS INTEGER ) ) FROM tab2
----
-59

query II rowsort
SELECT DISTINCT - 72, col0 FROM tab0 AS cor0
----
-72
15
-72
87
-72
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 96 * - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7973
SELECT DISTINCT COUNT( * ), - COUNT( * ) col0 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7973
SELECT DISTINCT COUNT ( * ), - COUNT ( * ) col0 FROM tab2 AS cor0
----
3
-3

query II rowsort
SELECT ALL - 87 AS col1, + col0 + 25 FROM tab2 AS cor0
----
-87
100
-87
71
-87
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT + + SUM( + 70 ) FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-7975
SELECT + + SUM ( + 70 ) FROM tab0 AS cor0
----
210

query I rowsort
SELECT - 28 AS col0 FROM tab1 cor0
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 + - col2 col0 FROM tab1 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7978
SELECT - COUNT( * ) AS col1, 25 AS col2 FROM tab0 AS cor0
----
-3
25

skipif mysql # not compatible
query II rowsort label-7978
SELECT - COUNT ( * ) AS col1, 25 AS col2 FROM tab0 AS cor0
----
-3
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7979
SELECT ALL + - COUNT( * ) AS col0, + 25 AS col0 FROM tab0 AS cor0
----
-3
25

skipif mysql # not compatible
query II rowsort label-7979
SELECT ALL + - COUNT ( * ) AS col0, + 25 AS col0 FROM tab0 AS cor0
----
-3
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT - COUNT( - - col0 ) FROM tab2 WHERE col0 BETWEEN + 3 + col0 * + col2 + + + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7980
SELECT - COUNT ( - - col0 ) FROM tab2 WHERE col0 BETWEEN + 3 + col0 * + col2 + + + col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NULL <> - + 67
----
0

skipif mysql # not compatible
query I rowsort label-7981
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NULL <> - + 67
----
0

query II rowsort
SELECT + col1 + + ( - + col1 ) AS col2, col2 AS col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT + - ( + SUM( ALL col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7983
SELECT + - ( + SUM ( ALL col2 ) ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL - col1 + + + col2 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7985
SELECT + CAST( + 50 AS SIGNED ) + col2 - + 63 + - + 66 + + - col2 FROM tab0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-7985
SELECT + CAST ( + 50 AS INTEGER ) + col2 - + 63 + - + 66 + + - col2 FROM tab0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL + MIN( - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL + MIN ( - col0 ) FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 + col1 col1 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # DIV for integer division: 
query I rowsort label-7988
SELECT ALL 48 DIV 18 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL 48 / 18 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7989
SELECT + CAST( col0 AS SIGNED ) DIV col0 + + col1 AS col0 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-7989
SELECT + CAST ( col0 AS INTEGER ) / col0 + + col1 AS col0 FROM tab2 AS cor0
----
52
68
78

query I rowsort
SELECT DISTINCT ( - col1 ) + + + col1 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT ALL + - COUNT( col0 ) + + + 66 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL + - COUNT ( col0 ) + + + 66 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7992
SELECT + - 21 * - COUNT( * ) + ( + COUNT( * ) ) DIV - - 69 * - 60 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7992
SELECT + - 21 * - COUNT ( * ) + ( + COUNT ( * ) ) / - - 69 * - 60 FROM tab1 AS cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT ALL + - col1 * - 6 + ( + + col2 ) * + col2 DIV col2 FROM tab2 AS cor0
----
329
460
502

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL + - col1 * - 6 + ( + + col2 ) * + col2 / col2 FROM tab2 AS cor0
----
329
460
502

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7994
SELECT COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7994
SELECT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT ( + - col0 ) * + col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7996
SELECT ALL 24 DIV + COUNT( * ) AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL 24 / + COUNT ( * ) AS col1 FROM tab0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7997
SELECT ALL + 14 DIV - - COUNT( * ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL + 14 / - - COUNT ( * ) AS col1 FROM tab2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT DISTINCT 8 DIV - 51 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT 8 / - 51 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7999
SELECT 41, + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NULL <= col0 AND NULL >= + col2
----

skipif mysql # not compatible
query II rowsort label-7999
SELECT 41, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL <= col0 AND NULL >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( 32 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 79 * - 74 - - 89 + - col2 * - 52 AS col0 FROM tab2 AS cor0
----
270201
376313
441555

query I rowsort
SELECT ALL 50 * col0 FROM tab1 cor0
----
2550
4250
4550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 AS cor0 WHERE NOT NULL > + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT col0 - + ( + col2 ) + - 55 * - 66 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT - 82 DIV col1 * col0 col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8005
SELECT - 82 / col1 * col0 col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8006
SELECT ALL + COUNT( * ), - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-9

skipif mysql # not compatible
query II rowsort label-8006
SELECT ALL + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8007
SELECT ALL col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 * - 64 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8010
SELECT DISTINCT 42 + SUM( CAST( - - 3 AS SIGNED ) ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT 42 + SUM ( CAST ( - - 3 AS INTEGER ) ) AS col0 FROM tab1
----
51

query I rowsort
SELECT ALL + col2 + + - col1 AS col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8012
SELECT + CAST( + ( + + col0 ) AS SIGNED ) AS col1, + ( - col1 ) - - - 27 FROM tab0 cor0
----
15
-108
87
-48
97
-28

skipif mysql # not compatible
query II rowsort label-8012
SELECT + CAST ( + ( + + col0 ) AS INTEGER ) AS col1, + ( - col1 ) - - - 27 FROM tab0 cor0
----
15
-108
87
-48
97
-28

query I rowsort
SELECT ALL - 55 + 59 AS col2 FROM tab2 AS cor0
----
4
4
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - ( - - 54 ) AND + col1 * + col0
----

query I rowsort
SELECT + 80 * - - col1 AS col1 FROM tab0
----
1680
6480
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( - - col2 ) * + col2 AND 65 / - 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT col0 FROM tab0 WHERE + - CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8017
SELECT col0 FROM tab0 WHERE + - CAST ( + col2 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 25 IN ( + col0 * 31, col0, + col0 / col0 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT DISTINCT + COUNT( * ) FROM tab0, tab1 cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT + COUNT ( * ) FROM tab0, tab1 cor0 WHERE NOT NULL IS NOT NULL
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 - + col1 * - + ( - 76 ) - col0 BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT 86 * - col2 + - - col1, - 99 AS col1 FROM tab0 AS cor0
----
-3961
-99
-839
-99
-8513
-99

query I rowsort
SELECT + - 75 FROM tab2 AS cor0 WHERE NOT + col0 > - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8023
SELECT + col1 DIV - 62 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8023
SELECT + col1 / - 62 AS col0 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT CAST( NULL AS SIGNED ) / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT CAST ( NULL AS INTEGER ) / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * 1 + - 42 * col0 FROM tab2 AS cor0
----
-1978
-2752
-3225

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL - 82 * + COUNT( * ) FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL - 82 * + COUNT ( * ) FROM tab0 AS cor0
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT 37 * MIN( ALL + + 92 ) FROM tab1 cor0
----
3404

skipif mysql # not compatible
query I rowsort label-8028
SELECT 37 * MIN ( ALL + + 92 ) FROM tab1 cor0
----
3404

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8029
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col2 AND - 34 * + - col1 - + - col0 + CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8029
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col2 AND - 34 * + - col1 - + - col0 + CAST ( col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL COUNT( * ) * 63 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL COUNT ( * ) * 63 FROM tab0
----
189

query II rowsort
SELECT ALL 63, + 93 AS col1 FROM tab2
----
63
93
63
93
63
93

query I rowsort
SELECT ALL - ( + 14 ) FROM tab1
----
-14
-14
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-8033
SELECT ALL col0 DIV 25 FROM tab1
----
2
3
3

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL col0 / 25 FROM tab1
----
2
3
3

query I rowsort
SELECT DISTINCT - - ( + col1 ) AS col1 FROM tab1 cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 * - + col2 col2 FROM tab0 AS cor0
----
-2209
-4653
-470

query I rowsort
SELECT ALL - - col1 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT - 7 * + MAX( DISTINCT + 69 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-483

skipif mysql # not compatible
query I rowsort label-8037
SELECT - 7 * + MAX ( DISTINCT + 69 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-483

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT DISTINCT - ( + + col1 ) DIV - col0 + + col2 + - col0 * col0 + - + ( col2 ) FROM tab1 cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT - ( + + col1 ) / - col0 + + col2 + - col0 * col0 + - + ( col2 ) FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT DISTINCT - COUNT( - + 50 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT - COUNT ( - + 50 ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 * + col2 col0 FROM tab2 cor0 WHERE NULL <= col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT + MIN( ALL + 99 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8042
SELECT + MIN ( ALL + 99 ) AS col2 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col2 ) col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT + col0 + - col0 - - col1 + - col0 FROM tab2 cor0
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8045
SELECT DISTINCT 2 DIV - + col1 - + 67 + + - ( - ( - 17 ) ) AS col1 FROM tab0 AS cor0
----
-84
-86

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT 2 / - + col1 - + 67 + + - ( - ( - 17 ) ) AS col1 FROM tab0 AS cor0
----
-84
-86

query I rowsort
SELECT - 73 + - + col0 * + + col2 AS col1 FROM tab2 AS cor0
----
-1131
-2633
-4423

query I rowsort
SELECT DISTINCT + 2 / + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT DISTINCT COUNT( * ) * + + 65 + + COUNT( * ) FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT COUNT ( * ) * + + 65 + + COUNT ( * ) FROM tab0 AS cor0
----
198

query I rowsort
SELECT + ( col0 ) + - 48 AS col1 FROM tab0 AS cor0
----
-33
39
49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 53 + 9 BETWEEN + col2 + col2 AND - + 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-8052
SELECT 34 DIV + 29 + - col1 AS col2, - col0 FROM tab0
----
-20
-87
-80
-15
0
-97

skipif mysql # not compatible
query II rowsort label-8052
SELECT 34 / + 29 + - col1 AS col2, - col0 FROM tab0
----
-20
-87
-80
-15
0
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT - 65 + COUNT( * ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-8053
SELECT - 65 + COUNT ( * ) FROM tab0
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 WHERE + + 9 IS NOT NULL
----
15
87
97

query I rowsort
SELECT col2 + - - 7 FROM tab2
----
30
47
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT COUNT( * ) * - 10 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-8056
SELECT COUNT ( * ) * - 10 FROM tab2
----
-30

query I rowsort
SELECT 27 + - col0 FROM tab0 AS cor0 WHERE ( NULL >= + ( col2 ) * + col0 * col1 )
----

query I rowsort
SELECT + 34 * + col0 AS col2 FROM tab2 AS cor0
----
1564
2176
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT - MIN( + 20 ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8059
SELECT - MIN ( + 20 ) FROM tab2 AS cor0
----
-20

query I rowsort
SELECT + col0 * - + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * - 61 * - - col2 + 40 AS col0 FROM tab0
----
134789
597901
6140

query II rowsort
SELECT DISTINCT + col0, - 74 + + col0 AS col1 FROM tab2 AS cor0
----
46
-28
64
-10
75
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8063
SELECT CAST( 91 AS SIGNED ) FROM tab0 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-8063
SELECT CAST ( 91 AS INTEGER ) FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT - 84 * col1 * + - col0 AS col0 FROM tab2 AS cor0
----
197064
413952
422100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT - - col2 * ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT - - col2 * ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 97 AS col0 FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT - ( + 89 ) FROM tab2 AS cor0
----
-89

query I rowsort
SELECT DISTINCT 48 FROM tab0 WHERE NOT - 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL COUNT( * ) + + 25 col2 FROM tab0, tab0 cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8069
SELECT ALL COUNT ( * ) + + 25 col2 FROM tab0, tab0 cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col2 FROM tab0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8071
SELECT SUM( 1 ) AS col0, 38 FROM tab1 AS cor0
----
3
38

skipif mysql # not compatible
query II rowsort label-8071
SELECT SUM ( 1 ) AS col0, 38 FROM tab1 AS cor0
----
3
38

query I rowsort
SELECT DISTINCT - - 61 * col1 AS col1 FROM tab2 AS cor0
----
3111
4087
4697

onlyif mysql # DIV for integer division: 
query I rowsort label-8073
SELECT - col2 + - 60 * - col0 DIV + + col0 AS col1 FROM tab2 AS cor0
----
2
20
37

skipif mysql # not compatible
query I rowsort label-8073
SELECT - col2 + - 60 * - col0 / + + col0 AS col1 FROM tab2 AS cor0
----
2
20
37

query I rowsort
SELECT ALL - + col0 + + - col0 AS col1 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT DISTINCT + 60 + 59 FROM tab0 cor0
----
119

query I rowsort
SELECT DISTINCT - col2 + 42 AS col2 FROM tab2 AS cor0
----
-16
19
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * - 52 NOT BETWEEN - col1 AND - ( - - 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 + + - ( - - 40 ) FROM tab1 AS cor0
----
-26
-35
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8079
SELECT DISTINCT - - col0 * 54 * + col1 * - 87 FROM tab0 AS cor0 WHERE NOT + CAST( - 55 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT - - col0 * 54 * + col1 * - 87 FROM tab0 AS cor0 WHERE NOT + CAST ( - 55 AS REAL ) IS NOT NULL
----

query II rowsort
SELECT ALL - col0 * - 20 AS col2, 23 FROM tab0
----
1740
23
1940
23
300
23

query I rowsort
SELECT 98 - ( - col2 ) FROM tab0
----
108
145
197

query I rowsort
SELECT DISTINCT 3 * - + 34 * + 32 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 + + col1 AND - col0
----

query I rowsort
SELECT DISTINCT + 53 * + 15 + + - col2 AS col1 FROM tab0 cor0
----
696
748
785

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 48 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8085
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * - col0 + - col0 - + + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8087
SELECT - + col0 AS col1, CAST( 74 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + 48 * col2 * - col0 / + + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8087
SELECT - + col0 AS col1, CAST ( 74 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 48 * col2 * - col0 / + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT MIN( + - 1 ) AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT MIN ( + - 1 ) AS col2 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8089
SELECT - ( - - COUNT( * ) ) * + COUNT( * ) col0, - 40 FROM tab0 AS cor0
----
-9
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8089
SELECT - ( - - COUNT ( * ) ) * + COUNT ( * ) col0, - 40 FROM tab0 AS cor0
----
-9
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT - SUM( DISTINCT + - col2 ) AS col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-8090
SELECT - SUM ( DISTINCT + - col2 ) AS col0 FROM tab2 cor0
----
121

query II rowsort
SELECT DISTINCT + col1 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8092
SELECT DISTINCT + 49, COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
49
0

skipif mysql # not compatible
query II rowsort label-8092
SELECT DISTINCT + 49, COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
49
0

query I rowsort
SELECT col1 / - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8094
SELECT ALL + 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-8094
SELECT ALL + CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL + MIN( + - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL + MIN ( + - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT + + col1 * - col0 + - - 23 * - col1 AS col1 FROM tab1 AS cor0
----
-1036
-5358
-540

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * - 81 AS col0 FROM tab1
----
4131
6885
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + + 20 col1 FROM tab1 WHERE NOT col0 + + col1 IS NULL
----
116
79
88

query I rowsort
SELECT ALL - ( + 20 ) * + - 70 AS col2 FROM tab0 cor0
----
1400
1400
1400

query I rowsort
SELECT 67 * + - 25 + + col1 - - col1 FROM tab0 AS cor0
----
-1513
-1633
-1673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8102
SELECT ALL - - col1 + CAST( + 18 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
19
39
99

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL - - col1 + CAST ( + 18 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
19
39
99

query II rowsort
SELECT - 91, col0 FROM tab2 AS cor0
----
-91
46
-91
64
-91
75

query I rowsort
SELECT - + 68 * - col2 AS col0 FROM tab1 AS cor0
----
4012
4624
6528

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( ( - ( - col1 ) ) * 57, - col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8106
SELECT ALL col1 AS col1, col0 * - col2 - + + 64 DIV + - col1 col1 FROM tab0 AS cor0
----
1
-9539
21
-867
81
-705

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8106
SELECT ALL col1 AS col1, col0 * - col2 - + + 64 / + - col1 col1 FROM tab0 AS cor0
----
1
-9539
21
-867
81
-705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT + 19 * + 34 * - 95 * CAST( + 66 AS SIGNED ) AS col2 FROM tab1
----
-4050420
-4050420
-4050420

skipif mysql # not compatible
query I rowsort label-8107
SELECT + 19 * + 34 * - 95 * CAST ( + 66 AS INTEGER ) AS col2 FROM tab1
----
-4050420
-4050420
-4050420

query I rowsort
SELECT 38 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query II rowsort
SELECT + col2 * - col1 + - - col2 + + col0 * - col0 AS col2, 42 * - col0 * + 48 AS col2 FROM tab2 AS cor0
----
-3266
-92736
-7136
-129024
-9453
-151200

query I rowsort
SELECT col2 + + ( - 58 ) + 91 FROM tab1 cor0
----
101
129
92

query I rowsort
SELECT + col1 + col1 * + 75 * ( + - col1 ) FROM tab2 AS cor0
----
-195024
-336608
-444598

query I rowsort
SELECT ALL + - col1 + - 46 * + + 51 FROM tab1 AS cor0
----
-2351
-2360
-2393

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8113
SELECT col2 * + col1 AS col2 FROM tab0 AS cor0 WHERE + col0 + + - CAST( + col0 AS SIGNED ) * - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8113
SELECT col2 * + col1 AS col2 FROM tab0 AS cor0 WHERE + col0 + + - CAST ( + col0 AS INTEGER ) * - col2 IS NULL
----

query I rowsort
SELECT - col0 + + 7 AS col2 FROM tab0 AS cor0
----
-8
-80
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL SUM( col2 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL SUM ( col2 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT 26 * - - MAX( col0 ) FROM tab0
----
2522

skipif mysql # not compatible
query I rowsort label-8116
SELECT 26 * - - MAX ( col0 ) FROM tab0
----
2522

query I rowsort
SELECT ALL + ( col0 ) * - ( + + col1 ) + ( 44 ) AS col1 FROM tab0 AS cor0
----
-1171
-1783
-53

query I rowsort
SELECT + + 63 - + col1 - - col0 - + col2 * + - 29 + + col1 FROM tab1 AS cor0
----
1859
2126
2898

query I rowsort
SELECT DISTINCT + + col0 * - 10 FROM tab2 AS cor0
----
-460
-640
-750

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 0 - + ( - col1 ) IS NULL OR NOT - col2 * + 68 + + 75 BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col0 + - - 80 * + col0 AS col1 FROM tab1 AS cor0
----
4131
6885
7371

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <> - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 * 60 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT + ( MIN( col1 ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8124
SELECT + ( MIN ( col1 ) ) AS col1 FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - 30 + col2 * - 22 NOT IN ( col1 * - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 14 ) = ( col1 ) + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT COUNT( + 45 ) + MIN( 24 ) AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-8127
SELECT COUNT ( + 45 ) + MIN ( 24 ) AS col1 FROM tab0
----
27

query III rowsort
SELECT * FROM tab1 WHERE col2 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col1 ) col2 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8130
SELECT ALL - col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) < col0
----

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL - col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) < col0
----

query I rowsort
SELECT DISTINCT + col0 * + col0 FROM tab0 WHERE NOT col2 * col2 = col1 + col0
----
225
7569
9409

query I rowsort
SELECT + ( 60 ) + + col1 AS col1 FROM tab1
----
107
65
74

query I rowsort
SELECT ALL ( + col0 ) - + 5 * 63 FROM tab1
----
-224
-230
-264

query I rowsort
SELECT ALL ( col1 ) FROM tab1 WHERE - col0 IN ( - 25 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT DISTINCT COUNT( * ) + - 8 AS col0 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT COUNT ( * ) + - 8 AS col0 FROM tab0
----
-5

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 84 + col1 ) IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT DISTINCT ( + col0 ) + col2 DIV col0 col2 FROM tab0
----
18
87
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8137
SELECT DISTINCT ( + col0 ) + col2 / col0 col2 FROM tab0
----
18
87
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8138
SELECT col2 - + col1 * + ( CAST( + col1 AS SIGNED ) + 69 * col0 ) AS col1 FROM tab1 WHERE NOT ( - col1 + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8138
SELECT col2 - + col1 * + ( CAST ( + col1 AS INTEGER ) + 69 * col0 ) AS col1 FROM tab1 WHERE NOT ( - col1 + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 col2 FROM tab2 WHERE + 39 / 1 IS NOT NULL
----
-8
13
5

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE NULL >= col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE ( 72 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE ( 72 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT + 3 * - 28 + - COUNT( * ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-8142
SELECT + 3 * - 28 + - COUNT ( * ) FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT DISTINCT - MAX( - 34 ) AS col1 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT - MAX ( - 34 ) AS col1 FROM tab2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8144
SELECT DISTINCT - 11 DIV MIN( + 79 ) + + 42 * - COUNT( * ) AS col2 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT - 11 / MIN ( + 79 ) + + 42 * - COUNT ( * ) AS col2 FROM tab1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT ( COUNT( * ) ) AS col1 FROM tab1 WHERE + 67 >= + col0
----
1

skipif mysql # not compatible
query I rowsort label-8145
SELECT ( COUNT ( * ) ) AS col1 FROM tab1 WHERE + 67 >= + col0
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col0 / - 54 - + col2 * col1
----

query III rowsort
SELECT * FROM tab0 WHERE ( 47 + col2 ) NOT BETWEEN NULL AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * 91 FROM tab2
----
2093
3640
5278

query I rowsort
SELECT DISTINCT + 25 FROM tab2 AS cor0 WHERE - col2 * + 18 + - col0 IS NOT NULL
----
25

query I rowsort
SELECT ALL + col2 + + 93 AS col2 FROM tab1 AS cor0
----
152
161
189

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT DISTINCT + 81 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT + 81 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
78

query I rowsort
SELECT col0 * col2 + 14 FROM tab0 AS cor0
----
719
884
9617

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT ALL COUNT( * ) * - 48 AS col2 FROM tab2 cor0 CROSS JOIN tab1
----
-432

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL COUNT ( * ) * - 48 AS col2 FROM tab2 cor0 CROSS JOIN tab1
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT + 44 + COUNT( * ) AS col0 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-8154
SELECT + 44 + COUNT ( * ) AS col0 FROM tab2
----
47

query I rowsort
SELECT ALL - ( - col2 ) / 36 FROM tab1 WHERE NULL NOT BETWEEN + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 52 * col1 IS NOT NULL
----

query I rowsort
SELECT col0 * + 8 AS col0 FROM tab1 WHERE ( + col1 ) BETWEEN col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT - COUNT( * ) * + ( COUNT( * ) ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8158
SELECT - COUNT ( * ) * + ( COUNT ( * ) ) FROM tab1
----
-9

query I rowsort
SELECT ALL - 5 + - col2 FROM tab2 AS cor0
----
-28
-45
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT DISTINCT + - COUNT( * ) + - SUM( 26 ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT + - COUNT ( * ) + - SUM ( 26 ) FROM tab1 AS cor0
----
-81

query I rowsort
SELECT DISTINCT col1 - 50 AS col1 FROM tab0 AS cor0
----
-29
-49
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8162
SELECT ALL + 14 AS col0 FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + 14 AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 86 ) BETWEEN col0 * - col2 AND col1 + - col2 * col1
----

query I rowsort
SELECT - ( - col2 ) - 95 FROM tab0 AS cor0
----
-48
-85
4

query I rowsort
SELECT DISTINCT col1 * - col1 - - 17 AS col0 FROM tab2 AS cor0
----
-2584
-4472
-5912

onlyif mysql # DIV for integer division: 
query I rowsort label-8166
SELECT DISTINCT - + col1 + 82 DIV 27 AS col2 FROM tab0 AS cor0
----
-18
-78
2

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT - + col1 + 82 / 27 AS col2 FROM tab0 AS cor0
----
-18
-78
2

query I rowsort
SELECT ALL + col0 * 17 FROM tab1 WHERE NOT ( col2 - - col0 ) >= NULL
----

query I rowsort
SELECT DISTINCT - 75 + + 9 + col2 FROM tab2
----
-26
-43
-8

query I rowsort
SELECT DISTINCT col0 * + 54 AS col0 FROM tab1
----
2754
4590
4914

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * 45 NOT IN ( + 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * col0 - - col1 AS col0 FROM tab1
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ( + SUM( ALL + 28 ) ) - COUNT( * ) AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-8172
SELECT ( + SUM ( ALL + 28 ) ) - COUNT ( * ) AS col0 FROM tab1
----
81

query I rowsort
SELECT + 61 - col1 AS col0 FROM tab2
----
-16
-6
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT DISTINCT + 48 - - + col0 + col2 DIV - 35 FROM tab0
----
135
143
62

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT + 48 - - + col0 + col2 / - 35 FROM tab0
----
135
143
62

query I rowsort
SELECT DISTINCT - ( + 35 ) FROM tab2
----
-35

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT + col0 IS NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 36 col1 FROM tab0 AS cor0
----
3132
3492
540

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT DISTINCT + 52 * + COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT + 52 * + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
468

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 35 + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = ( + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT + COUNT( - 39 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8181
SELECT + COUNT ( - 39 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8182
SELECT DISTINCT col2 DIV 81 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT col2 / 81 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ( + 44 ) FROM tab0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT DISTINCT - - ( SUM( DISTINCT - + 93 ) ) col2 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8185
SELECT DISTINCT - - ( SUM ( DISTINCT - + 93 ) ) col2 FROM tab2 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT - MAX( DISTINCT - 84 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8186
SELECT - MAX ( DISTINCT - 84 ) FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT DISTINCT - MIN( - 97 ) AS col1 FROM tab1 cor0
----
97

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT - MIN ( - 97 ) AS col1 FROM tab1 cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8188
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 26 + - CAST( NULL AS SIGNED ) + - 88 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 26 + - CAST ( NULL AS INTEGER ) + - 88 > ( NULL )
----
0

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NOT ( - col1 ) > 72
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8190
SELECT DISTINCT - + col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT - + col2 * - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 73 * + col0 AS col0 FROM tab0 AS cor0
----
1095
6351
7081

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT MAX( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8192
SELECT MAX ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT DISTINCT + COUNT( - col1 ) * + 61 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT + COUNT ( - col1 ) * + 61 FROM tab2 AS cor0
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT + 3 DIV col1 + - - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8194
SELECT + 3 / col1 + - - col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT DISTINCT - col1 * + col2 + 35 / CAST( 87 + - ( - 8 ) AS SIGNED ) col1 FROM tab2 AS cor0 WHERE NOT NULL > 82 + - + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8195
SELECT DISTINCT - col1 * + col2 + 35 / CAST ( 87 + - ( - 8 ) AS INTEGER ) col1 FROM tab2 AS cor0 WHERE NOT NULL > 82 + - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT ALL col0 + + col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
15
79
97

skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL col0 + + col0 / - col2 AS col0 FROM tab0 AS cor0
----
15
79
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 60 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL - SUM( 72 ) AS col2 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - SUM ( 72 ) AS col2 FROM tab0
----
-216

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND + 35
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + - col0 ) IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT NULL > + col2
----

query I rowsort
SELECT + col0 FROM tab0 WHERE - col2 NOT IN ( + - col1 * 70 )
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8203
SELECT - 59 + + + col2 DIV - col2 FROM tab2 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-8203
SELECT - 59 + + + col2 / - col2 FROM tab2 AS cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8204
SELECT DISTINCT 39 + + - CAST( NULL AS SIGNED ) / 42 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT 39 + + - CAST ( NULL AS INTEGER ) / 42 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 38 + col1 * + col0 * - col1 + 88 * - col2 FROM tab1 AS cor0
----
-18482
-207041
-7355

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8206
SELECT DISTINCT + col0 * 86 + CAST( 48 AS SIGNED ) DIV + col2 FROM tab0 AS cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
1291
7486
8342

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT + col0 * 86 + CAST ( 48 AS INTEGER ) / + col2 FROM tab0 AS cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
1291
7486
8342

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL > NULL )
----

query I rowsort
SELECT + - 5 * - + 84 + + + col2 * col1 * col0 FROM tab0 AS cor0
----
10023
18690
57525

query II rowsort
SELECT ALL + col2, col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT - + 90 + + col2 * 29 AS col2 FROM tab0 AS cor0
----
1273
200
2781

query II rowsort
SELECT + col1 + - col2 * + - col1 AS col1, 8 FROM tab1 cor0
----
1358
8
300
8
3243
8

query I rowsort
SELECT 53 + - col2 FROM tab0 AS cor0
----
-46
43
6

query I rowsort
SELECT + col2 + 81 * col1 AS col2 FROM tab1 AS cor0
----
1230
3875
464

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT + 14 + - ( - MIN( ALL - col2 ) ) AS col0 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT + 14 + - ( - MIN ( ALL - col2 ) ) AS col0 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT DISTINCT AVG ( DISTINCT + 12 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 98 * + col0 * + col1 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < - - col0
----

query II rowsort
SELECT ALL + col0 AS col1, + col2 AS col0 FROM tab0
----
15
47
87
10
97
99

query II rowsort
SELECT + 51 AS col0, + col0 AS col0 FROM tab2
----
51
46
51
64
51
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8221
SELECT DISTINCT col0 * + col2 FROM tab2 WHERE NOT - 98 IN ( - ( col0 ) + CAST( col2 AS DECIMAL ) * + col2 )
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT col0 * + col2 FROM tab2 WHERE NOT - 98 IN ( - ( col0 ) + CAST ( col2 AS REAL ) * + col2 )
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8223
SELECT DISTINCT + + 40 AS col2, + 19 + + + MIN( - 39 ) AS col2 FROM tab1 AS cor0
----
40
-20

skipif mysql # not compatible
query II rowsort label-8223
SELECT DISTINCT + + 40 AS col2, + 19 + + + MIN ( - 39 ) AS col2 FROM tab1 AS cor0
----
40
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8224
SELECT ALL - MIN( ALL + col0 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL - MIN ( ALL + col0 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT DISTINCT + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT + col2 / - col1 AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL col0 AS col0, 89 + col2 * - col1 * - ( 1 ) AS col2 FROM tab2 cor0
----
46
1262
64
3169
75
3975

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 * col0 * - + 61 - - + col1 + - - 97 * + col0 IS NULL
----

query I rowsort
SELECT 13 * - col2 AS col2 FROM tab2
----
-299
-520
-754

query I rowsort
SELECT ALL 24 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL - ( - + 78 ) AS col0 FROM tab0 cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT + SUM( col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-8231
SELECT + SUM ( col2 ) FROM tab0 cor0
----
156

query II rowsort
SELECT ALL - - col0 + - col2 * col1 AS col2, 69 FROM tab2 AS cor0
----
-1127
69
-3016
69
-3811
69

query I rowsort
SELECT - 37 FROM tab2 AS cor0 WHERE NOT col0 + + col2 < + ( + col2 ) + + + ( col2 ) / col1
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ( + - COUNT( * ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8234
SELECT ( + - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 67 * - + ( - 36 ) AS col2 FROM tab1 cor0
----
-2412
-2412
-2412

onlyif mysql # DIV for integer division: 
query II rowsort label-8236
SELECT ALL + 1 DIV col1 AS col1, 21 FROM tab0 AS cor0
----
0
21
0
21
1
21

skipif mysql # not compatible
query II rowsort label-8236
SELECT ALL + 1 / col1 AS col1, 21 FROM tab0 AS cor0
----
0
21
0
21
1
21

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - ( col1 ) AND ( NULL )
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN 13 * + col2 AND ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT 97 * COUNT( * ) col2 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8239
SELECT 97 * COUNT ( * ) col2 FROM tab1 AS cor0
----
291

query I rowsort
SELECT - + col1 * 35 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE - ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT - 83 * CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
1743
6723
83

skipif mysql # not compatible
query I rowsort label-8242
SELECT - 83 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
1743
6723
83

onlyif mysql # aggregate syntax: 
query II rowsort label-8243
SELECT - COUNT( * ), COUNT( * ) col1 FROM tab0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8243
SELECT - COUNT ( * ), COUNT ( * ) col1 FROM tab0
----
-3
3

query I rowsort
SELECT + col0 + + + col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT DISTINCT MAX( ALL + 46 ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT MAX ( ALL + 46 ) FROM tab0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT ALL + COUNT( * ) + + - COUNT( * ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT ALL col2 + + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL col2 + + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8248
SELECT + 86 AS col0, + COUNT( * ) * - COUNT( * ) + - + COUNT( * ) AS col2 FROM tab1
----
86
-12

skipif mysql # not compatible
query II rowsort label-8248
SELECT + 86 AS col0, + COUNT ( * ) * - COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab1
----
86
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT COUNT( * ) FROM tab2 WHERE NULL <> + col2
----
0

skipif mysql # not compatible
query I rowsort label-8249
SELECT COUNT ( * ) FROM tab2 WHERE NULL <> + col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8250
SELECT 30 DIV COUNT( * ) * - + ( - MAX( ALL col1 ) ) AS col1 FROM tab0
----
810

skipif mysql # not compatible
query I rowsort label-8250
SELECT 30 / COUNT ( * ) * - + ( - MAX ( ALL col1 ) ) AS col1 FROM tab0
----
810

query I rowsort
SELECT ALL + col1 * 58 FROM tab1
----
2726
290
812

query I rowsort
SELECT DISTINCT + + col2 * + col1 + + + 29 + col1 + - 16 FROM tab0 AS cor0
----
113
244
3901

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT DISTINCT MIN( - col2 ) AS col0 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT MIN ( - col2 ) AS col0 FROM tab1 cor0
----
-96

query I rowsort
SELECT DISTINCT + col2 + + + col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL 22 + - - 79 * + - 17 * - col0 FROM tab1 AS cor0
----
114177
122235
68515

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT 4 + 26 + - - 75 * - COUNT( * ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8256
SELECT 4 + 26 + - - 75 * - COUNT ( * ) AS col1 FROM tab2
----
-195

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE - 43 IS NULL
----

query I rowsort
SELECT - + 62 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8259
SELECT - COUNT( * ) - CAST( - 69 AS SIGNED ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8259
SELECT - COUNT ( * ) - CAST ( - 69 AS INTEGER ) FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8260
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE col0 / + 86 - + CAST( + col0 AS SIGNED ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE col0 / + 86 - + CAST ( + col0 AS INTEGER ) IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL ( + col2 ) + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8262
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - CAST( + - col0 AS SIGNED ) * ( + 62 ) + + 61 + - - col1 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-8262
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - CAST ( + - col0 AS INTEGER ) * ( + 62 ) + + 61 + - - col1 * + col0 )
----

query II rowsort
SELECT ALL - col1 - col0, col0 FROM tab2 AS cor0
----
-141
64
-142
75
-97
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8264
SELECT + col1 DIV - 25 FROM tab2
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-8264
SELECT + col1 / - 25 FROM tab2
----
-2
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT + SUM( + + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8265
SELECT + SUM ( + + col0 ) FROM tab2
----
185

query II rowsort
SELECT DISTINCT + col2, 5 * + col0 AS col1 FROM tab0
----
10
435
47
75
99
485

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL COUNT( ALL + 36 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL COUNT ( ALL + 36 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8268
SELECT - 27 - ( - ( - + COUNT( * ) ) ) AS col1, 52 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
-27
52

skipif mysql # not compatible
query II rowsort label-8268
SELECT - 27 - ( - ( - + COUNT ( * ) ) ) AS col1, 52 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
-27
52

query I rowsort
SELECT DISTINCT ( + + 79 ) FROM tab1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8270
SELECT DISTINCT * FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) ) NOT BETWEEN ( - 28 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8270
SELECT DISTINCT * FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( - 28 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT col0 * col0 FROM tab1 AS cor0 WHERE NOT + col0 * + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) NOT IN ( + + col0 )
----

skipif mysql # not compatible
query I rowsort label-8271
SELECT col0 * col0 FROM tab1 AS cor0 WHERE NOT + col0 * + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) NOT IN ( + + col0 )
----

query I rowsort
SELECT ALL - 87 * + col2 AS col2 FROM tab2 AS cor0
----
-2001
-3480
-5046

query II rowsort
SELECT DISTINCT + 9 AS col1, 45 AS col0 FROM tab2 AS cor0
----
9
45

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8274
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - ( - 1 ) ) + CAST( + ( - 36 ) AS DECIMAL ) AND + col2 * + ( 40 ) + - col0
----

skipif mysql # not compatible
query III rowsort label-8274
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - ( - 1 ) ) + CAST ( + ( - 36 ) AS REAL ) AND + col2 * + ( 40 ) + - col0
----

query I rowsort
SELECT + col2 * + - 64 FROM tab0 cor0
----
-3008
-6336
-640

onlyif mysql # aggregate syntax: 
query II rowsort label-8276
SELECT ALL COUNT( * ) AS col2, - MAX( + col2 ) FROM tab2
----
3
-58

skipif mysql # not compatible
query II rowsort label-8276
SELECT ALL COUNT ( * ) AS col2, - MAX ( + col2 ) FROM tab2
----
3
-58

query II rowsort
SELECT ALL col0, - 22 + 2 FROM tab1
----
51
-20
85
-20
91
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8278
SELECT 82 DIV + col0 AS col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-8278
SELECT 82 / + col0 AS col0 FROM tab0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT MAX( ALL - col2 ) col1 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8279
SELECT MAX ( ALL - col2 ) col1 FROM tab1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8280
SELECT - CAST( + - SUM( DISTINCT + col0 ) AS SIGNED ) * + 78 - 20 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 + col1, 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT - CAST ( + - SUM ( DISTINCT + col0 ) AS INTEGER ) * + 78 - 20 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 + col1, 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT ALL - MAX( - - col0 ) + - 10 - - MIN( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL - MAX ( - - col0 ) + - 10 - - MIN ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-192

query III rowsort
SELECT - 69 AS col2, + col2 * - 64 * - - col0 AS col0, + 70 AS col0 FROM tab2 AS cor0
----
9 values hashing to 9178d88c16b357e714e85c7dff471eb2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8283
SELECT ALL - col1 + - col2 + 91 + 62 DIV - CAST( + 90 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-26
-34
17

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL - col1 + - col2 + 91 + 62 / - CAST ( + 90 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-26
-34
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8284
SELECT + ( + + COUNT( * ) ) + - - CAST( NULL AS SIGNED ) * AVG ( - col0 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT + ( + + COUNT ( * ) ) + - - CAST ( NULL AS INTEGER ) * AVG ( - col0 ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8285
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE - + CAST( NULL AS SIGNED ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) < NULL
----
0

query I rowsort
SELECT + 14 + - 44 AS col2 FROM tab1
----
-30
-30
-30

query I rowsort
SELECT DISTINCT col0 * + col2 * + - col0 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8288
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8289
SELECT col0 DIV + 20 FROM tab0
----
0
4
4

skipif mysql # not compatible
query I rowsort label-8289
SELECT col0 / + 20 FROM tab0
----
0
4
4

query I rowsort
SELECT ALL col2 * - 48 AS col1 FROM tab0
----
-2256
-4752
-480

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8291
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + ( + CAST( + col0 AS SIGNED ) ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-8291
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + ( + CAST ( + col0 AS INTEGER ) ) IS NULL )
----

query II rowsort
SELECT - 7 AS col0, 78 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 847afc6072bc7b4249658d0f5cd35c82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8293
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 BETWEEN NULL AND - + CAST( NULL AS SIGNED ) * + - 31 )
----

skipif mysql # not compatible
query III rowsort label-8293
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 BETWEEN NULL AND - + CAST ( NULL AS INTEGER ) * + - 31 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8294
SELECT DISTINCT ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT col1 + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT col1 + + col1 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8295
SELECT DISTINCT + - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8295
SELECT DISTINCT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8296
SELECT ALL + - COUNT( * ), 36 AS col2 FROM tab1 cor0
----
-3
36

skipif mysql # not compatible
query II rowsort label-8296
SELECT ALL + - COUNT ( * ), 36 AS col2 FROM tab1 cor0
----
-3
36

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 97 ) BETWEEN NULL AND ( + 48 - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL + MAX( ALL - 60 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL + MAX ( ALL - 60 ) FROM tab1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8300
SELECT DISTINCT * FROM tab0 WHERE + col2 * col2 + + col2 + CAST( ( - 75 ) AS SIGNED ) + - - 81 / + 47 + col1 <= + + 45
----

skipif mysql # not compatible
query III rowsort label-8300
SELECT DISTINCT * FROM tab0 WHERE + col2 * col2 + + col2 + CAST ( ( - 75 ) AS INTEGER ) + - - 81 / + 47 + col1 <= + + 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT ALL + + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL + + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE + col1 / 6 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + AVG ( col1 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 8 FROM tab0 AS cor0 WHERE col2 > col1
----
8

query I rowsort
SELECT ALL - 12 + 45 AS col2 FROM tab0 AS cor0
----
33
33
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 36 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 + col2 + + col2 * col1 - + col2 + col2 * + + col0 * + + col1 + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT DISTINCT + - ( COUNT( * ) ), 90 AS col2 FROM tab2 AS cor0 WHERE + col2 < - - col0 + - - col0 - + 67 * - 33
----
-3
90

skipif mysql # not compatible
query II rowsort label-8308
SELECT DISTINCT + - ( COUNT ( * ) ), 90 AS col2 FROM tab2 AS cor0 WHERE + col2 < - - col0 + - - col0 - + 67 * - 33
----
-3
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 > - col0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT - + SUM( ALL + 59 ) * 48 col0 FROM tab1 AS cor0
----
-8496

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8310
SELECT - + SUM ( ALL + 59 ) * 48 col0 FROM tab1 AS cor0
----
-8496

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * - 91 <> + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8312
SELECT ALL + COUNT( * ) DIV - + 31 + - + COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL + COUNT ( * ) / - + 31 + - + COUNT ( * ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT col2 + - - 34 AS col2 FROM tab1
----
102
130
93

query I rowsort
SELECT ALL + col2 * + + ( 12 ) FROM tab0
----
1188
120
564

query I rowsort
SELECT - 72 FROM tab1 WHERE NULL IS NULL AND NOT ( NULL NOT BETWEEN 13 AND + 25 )
----

query I rowsort
SELECT + col0 FROM tab1 WHERE - col2 * col2 > + 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 - + col0 col2 FROM tab1
----
-2
38
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8318
SELECT col0 col0 FROM tab2 WHERE - 13 + + ( CAST( NULL AS SIGNED ) ) IS NULL AND NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8318
SELECT col0 col0 FROM tab2 WHERE - 13 + + ( CAST ( NULL AS INTEGER ) ) IS NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT 3 - + 76 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT col0 / - col0 + - - col2 * - 98 + + col0 * + col1 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( - 72 ) + + col2 * - col1 + 59 AS col0 FROM tab2 AS cor0
----
-1042
-2949
-3755

onlyif mysql # aggregate syntax: 
query II rowsort label-8322
SELECT - MAX( - col0 ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-8322
SELECT - MAX ( - col0 ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
51
3

query I rowsort
SELECT + 7 * + - 31 * + col2 FROM tab0 AS cor0
----
-10199
-21483
-2170

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT - ( + MIN( DISTINCT + col2 ) ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8324
SELECT - ( + MIN ( DISTINCT + col2 ) ) AS col2 FROM tab2 AS cor0
----
-23

query II rowsort
SELECT + 16 * col0, col0 FROM tab2 AS cor0
----
1024
64
1200
75
736
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8326
SELECT - + 29 DIV - + col2 AS col2 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8326
SELECT - + 29 / - + col2 AS col2 FROM tab2 cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT ALL + CAST( - + 26 AS SIGNED ) * - ( + + col1 ) FROM tab0
----
2106
26
546

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL + CAST ( - + 26 AS INTEGER ) * - ( + + col1 ) FROM tab0
----
2106
26
546

query I rowsort
SELECT 80 * + + col1 * + col1 * - col0 AS col1 FROM tab1
----
-16081520
-170000
-799680

query III rowsort
SELECT * FROM tab0 WHERE NOT - 7 IN ( + ( - col0 ) + + - 57, + col2, + + ( 97 ), col2 * + + col2 + - + 77 + col0 + + + 95 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8330
SELECT DISTINCT * FROM tab2 WHERE ( col0 / - CAST( NULL AS SIGNED ) + - - 69 - ( 39 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8330
SELECT DISTINCT * FROM tab2 WHERE ( col0 / - CAST ( NULL AS INTEGER ) + - - 69 - ( 39 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1, + ( col1 ) FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT ( + 26 ) AS col0 FROM tab1
----
26

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 - + col1 BETWEEN + col1 * - col1 - 92 AND - 80
----
87
21
10
97
1
99

query I rowsort
SELECT + 12 * - 50 FROM tab1, tab0 AS cor0
----
9 values hashing to 4b1aec8986528614cad6dbc283d86860

query I rowsort
SELECT DISTINCT + col1 - - col0 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT - 49 * COUNT( * ) col2 FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8336
SELECT - 49 * COUNT ( * ) col2 FROM tab2 AS cor0
----
-147

query II rowsort
SELECT - col0, col2 - + col1 AS col1 FROM tab0 AS cor0
----
-15
-34
-87
-11
-97
98

query II rowsort
SELECT DISTINCT + col1, + 48 AS col0 FROM tab1 AS cor0
----
14
48
47
48
5
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8339
SELECT - CAST( NULL AS SIGNED ) / 6 * - - 45 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT - CAST ( NULL AS INTEGER ) / 6 * - - 45 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8340
SELECT - CAST( NULL AS SIGNED ) / + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8340
SELECT - CAST ( NULL AS INTEGER ) / + + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 47 + + 99 FROM tab0
----
146

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 19 + - 2 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT - - 94 + + - 99 * col2 FROM tab2 AS cor0
----
-2183
-3866
-5648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8345
SELECT - CAST( NULL AS SIGNED ) + + 19 * + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT - CAST ( NULL AS INTEGER ) + + 19 * + col1 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1 + - col1, col2 AS col1 FROM tab1 AS cor0
----
-10
59
-28
96
-94
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8347
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * ( - col2 ) / - + CAST( NULL AS SIGNED ) * - 95 * 66 BETWEEN ( + col2 ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-8347
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * ( - col2 ) / - + CAST ( NULL AS INTEGER ) * - 95 * 66 BETWEEN ( + col2 ) AND - col1
----

query I rowsort
SELECT ALL + + 45 + - 59 * + - ( + col2 ) * + col2 FROM tab1 cor0
----
205424
272861
543789

query I rowsort
SELECT + ( + col0 ) * - 74 + + col0 AS col1 FROM tab0
----
-1095
-6351
-7081

query I rowsort
SELECT DISTINCT - ( col1 ) + ( + + col1 ) FROM tab1 WHERE + - col0 + + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL COUNT( - 89 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL COUNT ( - 89 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT DISTINCT MIN( + col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT MIN ( + col0 ) FROM tab0 cor0
----
15

query II rowsort
SELECT - 22, 94 AS col0 FROM tab2
----
-22
94
-22
94
-22
94

query I rowsort
SELECT ALL - 54 + - col1 AS col1 FROM tab2 WHERE NOT - 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT + MIN( - col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT + MIN ( - col2 ) FROM tab2 cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8357
SELECT - col2 DIV - + col0 col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8357
SELECT - col2 / - + col0 col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT DISTINCT + COUNT( DISTINCT - + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8358
SELECT DISTINCT + COUNT ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT ALL - 70 * - + COUNT( * ) FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL - 70 * - + COUNT ( * ) FROM tab0 AS cor0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT MAX( 73 ) AS col0 FROM tab0 cor0
----
73

skipif mysql # not compatible
query I rowsort label-8360
SELECT MAX ( 73 ) AS col0 FROM tab0 cor0
----
73

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 >= - 69 * - + col0 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8362
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-8362
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT 65 AS col0 FROM tab0 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-8363
SELECT 65 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8364
SELECT MIN( ALL + 26 ) DIV - 6 AS col1 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-8364
SELECT MIN ( ALL + 26 ) / - 6 AS col1 FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT + ( + - MIN( DISTINCT - 80 ) ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT + ( + - MIN ( DISTINCT - 80 ) ) FROM tab1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT ALL col1 DIV + + col2 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL col1 / + + col2 AS col2 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT + ( + ( + MAX( - col2 ) ) ) col0 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8367
SELECT DISTINCT + ( + ( + MAX ( - col2 ) ) ) col0 FROM tab2
----
-23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 57 >= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8369
SELECT - - CAST( + - col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8369
SELECT - - CAST ( + - col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT - SUM( - ( + - col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT - SUM ( - ( + - col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 col2 FROM tab1 cor0 WHERE ( NULL ) >= + 40
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT DISTINCT 11 DIV + 9 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT 11 / + 9 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8373
SELECT 38 + - 82 + - - col2 + - col2 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT 38 + - 82 + - - col2 + - col2 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8374
SELECT * FROM tab1 WHERE NULL BETWEEN + - CAST( NULL AS SIGNED ) AND - col2 * - 8 * - col0
----

skipif mysql # not compatible
query III rowsort label-8374
SELECT * FROM tab1 WHERE NULL BETWEEN + - CAST ( NULL AS INTEGER ) AND - col2 * - 8 * - col0
----

query I rowsort
SELECT - 38 * - col1 + col1 AS col1 FROM tab1
----
1833
195
546

query I rowsort
SELECT ( - + 58 ) FROM tab0 cor0 WHERE NULL <= 93
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT 72 + COUNT( * ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT 72 + COUNT ( * ) FROM tab2 cor0
----
75

query I rowsort
SELECT ALL 92 + - col0 AS col2 FROM tab1 AS cor0 WHERE col1 + 41 <= NULL
----

query I rowsort
SELECT ALL - - col2 * col1 - - col0 FROM tab1 AS cor0
----
1395
3287
380

query II rowsort
SELECT col2 - - - col0 + + + col0 + + col0 AS col0, + col2 FROM tab0
----
196
99
62
47
97
10

query I rowsort
SELECT ALL + col1 * + ( - - 47 ) + col2 AS col1 FROM tab0
----
146
3854
997

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT 88 + + 54 AS col1 FROM tab0
----
142
142
142

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT DISTINCT + 22 DIV + - col1 * + 47 * 19 + + col2 AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT + 22 / + - col1 * + 47 * 19 + + col2 AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8386
SELECT DISTINCT + COUNT( ALL + col1 ) col1, + 54 col1 FROM tab0 AS cor0
----
3
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8386
SELECT DISTINCT + COUNT ( ALL + col1 ) col1, + 54 col1 FROM tab0 AS cor0
----
3
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8387
SELECT - col2 DIV ( + - CAST( - col2 AS SIGNED ) ) AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8387
SELECT - col2 / ( + - CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT - 17 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 91 FROM tab2 WHERE NULL IS NULL
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( - 2 ) * + col0 col2 FROM tab1 AS cor0 WHERE NOT col2 + - - col2 = + + col2
----
-135
-165
-88

query I rowsort
SELECT - - 26 FROM tab2 AS cor0 WHERE NOT - 81 + - 1 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL + SUM( ALL + - 77 ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + SUM ( ALL + - 77 ) FROM tab2 AS cor0
----
-231

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 70 * + 21
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT + - COUNT( * ) * 73 AS col1 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT + - COUNT ( * ) * 73 AS col1 FROM tab1 AS cor0
----
-219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8396
SELECT ALL 77 DIV - COUNT( ALL + + col1 ) + - COUNT( * ) col0 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8396
SELECT ALL 77 / - COUNT ( ALL + + col1 ) + - COUNT ( * ) col0 FROM tab0 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col0 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 - col0 IS NULL
----

query I rowsort
SELECT ALL + ( - + col2 ) AS col2 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 94 AS col2, - col2 col2 FROM tab0
----
94
-10
94
-47
94
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 NOT IN ( col2, col2, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + + col1 ) FROM tab1 cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - - 15 col0, + col2, + - col1 FROM tab2 AS cor0
----
9 values hashing to cdf571f197f070845fddf64f7e4681b7

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE - col2 <> ( - col2 )
----

query II rowsort
SELECT + col0 AS col2, + col2 + 88 + - 96 * col1 AS col2 FROM tab1 AS cor0
----
51
-1160
85
-333
91
-4356

query I rowsort
SELECT 56 + - 18 FROM tab0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8407
SELECT ALL + - CAST( 61 AS SIGNED ) + - col1 * ( + + col1 ) AS col1, 95 + - col2 + - + col0 FROM tab1 AS cor0
----
-2270
-64
-257
-52
-86
-49

skipif mysql # not compatible
query II rowsort label-8407
SELECT ALL + - CAST ( 61 AS INTEGER ) + - col1 * ( + + col1 ) AS col1, 95 + - col2 + - + col0 FROM tab1 AS cor0
----
-2270
-64
-257
-52
-86
-49

query I rowsort
SELECT - 58 + col2 AS col0 FROM tab0 AS cor0
----
-11
-48
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT DISTINCT - COUNT( - ( - col1 ) ) + - MAX( DISTINCT + 89 ) AS col1 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT - COUNT ( - ( - col1 ) ) + - MAX ( DISTINCT + 89 ) AS col1 FROM tab0 AS cor0
----
-92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + col2 - + col1 * + col1 / - 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + col0 + + col0 * - 77 * + col0 * - col1 AS col2, col0 AS col0 FROM tab0 cor0
----
12238986
87
1403310
15
724396
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 49 - - 10 IS NULL
----

query I rowsort
SELECT ALL - 69 * - - 54 FROM tab1
----
-3726
-3726
-3726

query I rowsort
SELECT DISTINCT + col1 - + + col2 + + 2 * - 76 AS col2 FROM tab1
----
-173
-206
-234

query I rowsort
SELECT + 13 * + 63 FROM tab0
----
819
819
819

query I rowsort
SELECT - 28 * 17 AS col2 FROM tab1 AS cor0
----
-476
-476
-476

query II rowsort
SELECT DISTINCT + col2 AS col0, 77 FROM tab1 AS cor0
----
59
77
68
77
96
77

query I rowsort
SELECT ALL - 80 * - col2 + + 70 AS col2 FROM tab0 AS cor0
----
3830
7990
870

query I rowsort
SELECT - + ( col0 ) FROM tab2 AS cor0 WHERE NOT 43 IS NULL
----
-46
-64
-75

query II rowsort
SELECT ALL col2 AS col1, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT - 13 - + col1 * + 30 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1543
-2023
-2323

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT MIN( + 68 ) AS col1 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-8422
SELECT MIN ( + 68 ) AS col1 FROM tab0 AS cor0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8423
SELECT DISTINCT + col0 DIV col0 + - - col1 * col0 AS col1 FROM tab0 AS cor0
----
1216
1828
98

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT + col0 / col0 + - - col1 * col0 AS col1 FROM tab0 AS cor0
----
1216
1828
98

query I rowsort
SELECT DISTINCT - - 45 AS col0 FROM tab2 cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8425
SELECT - col2 DIV 79 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8425
SELECT - col2 / 79 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT ALL + COUNT( * ) AS col2, - 49 AS col0 FROM tab0
----
3
-49

skipif mysql # not compatible
query II rowsort label-8426
SELECT ALL + COUNT ( * ) AS col2, - 49 AS col0 FROM tab0
----
3
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT - COUNT( DISTINCT - col0 ) FROM tab0 WHERE NOT NULL = + col1 * - + col0 / - - ( + col2 ) - + - 21
----
0

skipif mysql # not compatible
query I rowsort label-8427
SELECT - COUNT ( DISTINCT - col0 ) FROM tab0 WHERE NOT NULL = + col1 * - + col0 / - - ( + col2 ) - + - 21
----
0

query I rowsort
SELECT ALL ( + 22 ) AS col2 FROM tab0
----
22
22
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8429
SELECT ALL 12 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL 12 * - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + - 87 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8431
SELECT 1 AS col1, COUNT( * ) FROM tab1
----
1
3

skipif mysql # not compatible
query II rowsort label-8431
SELECT 1 AS col1, COUNT ( * ) FROM tab1
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT + 66 * COUNT( * ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-8432
SELECT + 66 * COUNT ( * ) FROM tab2
----
198

query II rowsort
SELECT ALL 33 + col1 * 49 AS col1, col1 FROM tab2
----
2532
51
3316
67
3806
77

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE - col1 * - 48 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8435
SELECT DISTINCT - col0 DIV - + ( - col2 ) + - ( + col1 ) FROM tab0 AS cor0
----
-1
-29
-81

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT - col0 / - + ( - col2 ) + - ( + col1 ) FROM tab0 AS cor0
----
-1
-29
-81

query I rowsort
SELECT + 59 + col0 FROM tab1 AS cor0
----
110
144
150

query I rowsort
SELECT - 20 + + 28 + 51 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT - col1 - + 48 FROM tab1
----
-53
-62
-95

query I rowsort
SELECT ALL 86 AS col2 FROM tab0 WHERE NOT col1 + + 52 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8440
SELECT ALL COUNT( * ) * - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL COUNT ( * ) * - + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab0 cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT + + 3 FROM tab2 cor0 WHERE ( - col0 IS NOT NULL )
----
3
3
3

query I rowsort
SELECT DISTINCT + - 6 + - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-103
-147
-148

onlyif mysql # DIV for integer division: 
query I rowsort label-8444
SELECT 99 DIV + col2 + + col2 - + col0 - - 67 * - col2 - - col0 FROM tab2 cor0
----
-1514
-2638
-3827

skipif mysql # not compatible
query I rowsort label-8444
SELECT 99 / + col2 + + col2 - + col0 - - 67 * - col2 - - col0 FROM tab2 cor0
----
-1514
-2638
-3827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE 38 + + ( - ( - - col2 ) ) NOT IN ( CAST( NULL AS SIGNED ) / ( + - 90 ), + 48 )
----

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE 38 + + ( - ( - - col2 ) ) NOT IN ( CAST ( NULL AS INTEGER ) / ( + - 90 ), + 48 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 < + 94
----
15
81
47
87
21
10

query I rowsort
SELECT + 4 FROM tab0 AS cor0 WHERE + 57 - + + 56 * col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT col1 DIV - col0 - - col1 AS col0 FROM tab2
----
50
67
76

skipif mysql # not compatible
query I rowsort label-8448
SELECT col1 / - col0 - - col1 AS col0 FROM tab2
----
50
67
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8449
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL = - + col2 * - + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL = - + col2 * - + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT + MAX( ALL 31 ) + - + SUM( col2 ) AS col2 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-8450
SELECT + MAX ( ALL 31 ) + - + SUM ( col2 ) AS col2 FROM tab1
----
-192

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8452
SELECT CAST( + col2 AS SIGNED ) AS col1, - col1 FROM tab0
----
10
-21
47
-81
99
-1

skipif mysql # not compatible
query II rowsort label-8452
SELECT CAST ( + col2 AS INTEGER ) AS col1, - col1 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT ALL - 7 FROM tab1 WHERE - col1 + - col0 + + - 44 IS NOT NULL
----
-7
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( + 72 ) col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 44
----

query II rowsort
SELECT ALL ( - col1 ), col2 AS col0 FROM tab0
----
-1
99
-21
10
-81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 5 col0 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + ( 14 ) * - + col2 FROM tab2 AS cor0
----
-322
-560
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT COUNT( + col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8458
SELECT COUNT ( + col1 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - ( - 16 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - ( - col1 ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 2 <= - + col0 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + 16, - col0 * + col1 AS col1 FROM tab0 AS cor0
----
16
-1215
16
-1827
16
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8464
SELECT + + CAST( + 21 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-8464
SELECT + + CAST ( + 21 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
21
21
21

query II rowsort
SELECT - + 97 AS col1, 75 FROM tab0 AS cor0
----
-97
75
-97
75
-97
75

query I rowsort
SELECT ALL ( - 7 ) + col1 AS col0 FROM tab2 AS cor0
----
44
60
70

query I rowsort
SELECT - + ( - - col2 ) AS col1 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT ALL MIN( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL MIN ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT + + col1 FROM tab0 WHERE NULL BETWEEN col1 * + 72 * + col0 AND NULL
----

query I rowsort
SELECT 92 + 2 * - - ( - col1 ) FROM tab1
----
-2
64
82

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT IN ( + col2 * - col2, col0, + ( - + 82 ), + 79 * + col0 + ( col1 ), + 59 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) > + 39
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( 38 ) + - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT - COUNT( * ) * 86 col2 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8476
SELECT DISTINCT - COUNT ( * ) * 86 col2 FROM tab0 AS cor0
----
-258

query I rowsort
SELECT - 1 - + col1 * + col2 + + - col0 FROM tab0
----
-197
-298
-3823

query III rowsort
SELECT * FROM tab2 WHERE - 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8479
SELECT ALL * FROM tab1 cor0 WHERE - col2 * - - 51 BETWEEN NULL AND + ( - - col2 ) * + 27 + 83 + + + col0 + - - CAST( + col0 AS SIGNED ) * + 10
----

skipif mysql # not compatible
query III rowsort label-8479
SELECT ALL * FROM tab1 cor0 WHERE - col2 * - - 51 BETWEEN NULL AND + ( - - col2 ) * + 27 + 83 + + + col0 + - - CAST ( + col0 AS INTEGER ) * + 10
----

query I rowsort
SELECT - 80 * - + col0 + col0 * + 96 FROM tab2 AS cor0
----
11264
13200
8096

query I rowsort
SELECT - - col1 + + col1 + + col2 FROM tab1 AS cor0
----
124
162
69

query I rowsort
SELECT DISTINCT + col2 + col2 * - + col1 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT ALL + - 87 + + + 7 FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT 15 FROM tab0 WHERE ( NOT col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8485
SELECT ALL col2 * + ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL col2 * + ( CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + - 8 ) AS col2 FROM tab0
----
8

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - ( - 90 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col2, + col1 FROM tab0 cor0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8489
SELECT DISTINCT - col2 col1, + 22 + - col0 - + - col1 - + + 47 DIV col1 DIV - - ( - col0 ) + + 40 + - col1 * + - col1 AS col0 FROM tab0 AS cor0
----
-10
437
-47
6689
-99
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8489
SELECT DISTINCT - col2 col1, + 22 + - col0 - + - col1 - + + 47 / col1 / - - ( - col0 ) + + 40 + - col1 * + - col1 AS col0 FROM tab0 AS cor0
----
-10
437
-47
6689
-99
-33

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT + - col1 + col2 + - col1 FROM tab1 AS cor0
----
-26
49
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8493
SELECT ALL - CAST( NULL AS SIGNED ) * - SUM( - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL - CAST ( NULL AS INTEGER ) * - SUM ( - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + + - col1 * - col2 FROM tab0 AS cor0
----
196
297
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8495
SELECT + - CAST( + + col0 AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NULL > + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8495
SELECT + - CAST ( + + col0 AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NULL > + col0
----

query I rowsort
SELECT DISTINCT + + 48 + + 14 FROM tab2 cor0
----
62

query II rowsort
SELECT DISTINCT + + 53 + - + col1 AS col1, - 62 FROM tab1 AS cor0
----
39
-62
48
-62
6
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8498
SELECT + ( + CAST( + 85 AS SIGNED ) ), COUNT( * ) AS col1 FROM tab2 cor0
----
85
3

skipif mysql # not compatible
query II rowsort label-8498
SELECT + ( + CAST ( + 85 AS INTEGER ) ), COUNT ( * ) AS col1 FROM tab2 cor0
----
85
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 87 > - 74
----

query I rowsort
SELECT DISTINCT - col2 / - 4 + col0 FROM tab1 cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL COUNT( * ) + - 39 + - SUM( ALL col1 ) * + MAX( + + 99 ) FROM tab0
----
-10233

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL COUNT ( * ) + - 39 + - SUM ( ALL col1 ) * + MAX ( + + 99 ) FROM tab0
----
-10233

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ALL - COUNT( * ) * - 73 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL - COUNT ( * ) * - 73 FROM tab2
----
219

query I rowsort
SELECT DISTINCT 91 * + col2 FROM tab1
----
5369
6188
8736

query II rowsort
SELECT ALL col2 AS col2, - col0 * + + col0 AS col2 FROM tab1
----
59
-7225
68
-8281
96
-2601

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT - SUM( ALL - + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - SUM ( ALL - + col1 ) AS col2 FROM tab1
----
66

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT - 27 + - col0 FROM tab1 cor0
----
-112
-118
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT DISTINCT - MIN( ALL 86 ) + - 3 col0 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8508
SELECT DISTINCT - MIN ( ALL 86 ) + - 3 col0 FROM tab0 AS cor0
----
-89

query I rowsort
SELECT + - 23 + col2 FROM tab0 cor0
----
-13
24
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - 10 + 62 + ( col1 ) + + - col2 * - col0 col2 FROM tab1 AS cor0
----
5078
5151
6375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 col1 FROM tab0
----
-9

query I rowsort
SELECT ALL - 32 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL - + 13 + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL - + 13 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8515
SELECT - MIN( DISTINCT col1 ) / ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8515
SELECT - MIN ( DISTINCT col1 ) / ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 78 FROM tab2 AS cor0 WHERE NOT NULL < col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 > col1 + - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 74 * + col1 FROM tab2 cor0
----
3774
4958
5698

query I rowsort
SELECT DISTINCT - 77 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT DISTINCT COUNT( * ) * 54 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT COUNT ( * ) * 54 FROM tab0 AS cor0
----
162

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * col1 + + - 5 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT + col2 * - - col0 + + 92 FROM tab1 WHERE NOT col2 IN ( col1, + CAST( + ( + - col1 ) AS SIGNED ) * 85, + - 57 * col1 / - 42 )
----
4988
5107
6280

skipif mysql # not compatible
query I rowsort label-8522
SELECT + col2 * - - col0 + + 92 FROM tab1 WHERE NOT col2 IN ( col1, + CAST ( + ( + - col1 ) AS INTEGER ) * 85, + - 57 * col1 / - 42 )
----
4988
5107
6280

query II rowsort
SELECT + col1 AS col1, 89 AS col2 FROM tab1 AS cor0
----
14
89
47
89
5
89

query I rowsort
SELECT ALL - col1 * + - col0 AS col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT + + ( 7 ) * + 69 + col2 FROM tab2 AS cor0
----
506
523
541

query I rowsort
SELECT ALL - 90 * + 75 * + ( col0 ) FROM tab1 AS cor0
----
-344250
-573750
-614250

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT DISTINCT - - 79 DIV 19 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT - - 79 / 19 FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT ALL + ( - SUM( + col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL + ( - SUM ( + col1 ) ) FROM tab1
----
-66

query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query I rowsort
SELECT DISTINCT + col0 + - + col2 AS col0 FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT - - 10, + ( - 14 ) AS col1 FROM tab0 AS cor0
----
10
-14
10
-14
10
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT DISTINCT - SUM( DISTINCT - - 71 ) + 5 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT - SUM ( DISTINCT - - 71 ) + 5 FROM tab0 AS cor0
----
-66

query II rowsort
SELECT ALL col2, - 5 FROM tab2 AS cor0
----
23
-5
40
-5
58
-5

query I rowsort
SELECT 61 + - 24 AS col0 FROM tab1 cor0
----
37
37
37

query II rowsort
SELECT ALL col1 AS col2, - 51 AS col2 FROM tab1 cor0
----
14
-51
47
-51
5
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL < ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT DISTINCT ( + SUM( 62 ) ) AS col0 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
186

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT ( + SUM ( 62 ) ) AS col0 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT ALL + MIN( - 26 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL + MIN ( - 26 ) FROM tab2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-8539
SELECT DISTINCT + COUNT( * ) AS col0, - 19 * + - 98 AS col0 FROM tab2, tab0 AS cor0
----
9
1862

skipif mysql # not compatible
query II rowsort label-8539
SELECT DISTINCT + COUNT ( * ) AS col0, - 19 * + - 98 AS col0 FROM tab2, tab0 AS cor0
----
9
1862

query I rowsort
SELECT + 55 * + col2 FROM tab0
----
2585
5445
550

query I rowsort
SELECT 92 * + + col2 * + col1 AS col0 FROM tab2
----
107916
283360
357512

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT SUM( + ( 10 ) ) col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8542
SELECT SUM ( + ( 10 ) ) col2 FROM tab0 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 - + 4 AS col1, + col0 col0 FROM tab2 AS cor0
----
-55
46
-71
75
-81
64

query I rowsort
SELECT ALL - 86 + - col1 + + + col1 - col0 * - - ( - 67 ) FROM tab1 AS cor0
----
3331
5609
6011

query I rowsort
SELECT ALL + 77 + col1 AS col0 FROM tab0 AS cor0
----
158
78
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT DISTINCT + COUNT( + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT + COUNT ( + col2 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT COUNT( * ) * - + COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8548
SELECT COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT SUM( - 53 ) AS col1 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-8549
SELECT SUM ( - 53 ) AS col1 FROM tab1 AS cor0
----
-159

query I rowsort
SELECT DISTINCT - ( - + col0 ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + ( col0 ) * - col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT DISTINCT - MAX( - 7 ) * MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
406

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT - MAX ( - 7 ) * MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
406

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL COUNT( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL COUNT ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + + col2 + - + col0 <= NULL
----

query I rowsort
SELECT DISTINCT - 28 * + col1 * - - col1 AS col1 FROM tab2
----
-125692
-166012
-72828

query I rowsort
SELECT ALL - - 86 + - - 62 + + col1 FROM tab1 AS cor0
----
153
162
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + ( - col1 ) / - col1 + - + 49
----

query I rowsort
SELECT + col2 / col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8559
SELECT col0 + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT col0 + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT DISTINCT 41 DIV - 80 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8560
SELECT DISTINCT 41 / - 80 AS col0 FROM tab1
----
0

query I rowsort
SELECT - 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT DISTINCT 27 * + col1 * - - col2 AS col0 FROM tab1
----
36288
7965
86292

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT COUNT( * ) * + 57 AS col2 FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT COUNT ( * ) * + 57 AS col2 FROM tab0 AS cor0
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8564
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) + + - 2 col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8564
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + + - 2 col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + col2 * + 73 AS col1 FROM tab2 AS cor0
----
1679
2920
4234

onlyif mysql # DIV for integer division: 
query I rowsort label-8566
SELECT DISTINCT 34 + + - col0 DIV + 79 FROM tab0 AS cor0
----
33
34

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT 34 + + - col0 / + 79 FROM tab0 AS cor0
----
33
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8567
SELECT 42 AS col1, 39 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
42
36

skipif mysql # not compatible
query II rowsort label-8567
SELECT 42 AS col1, 39 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
42
36

query II rowsort
SELECT DISTINCT - col2 AS col1, col1 * - + col1 FROM tab1
----
-59
-25
-68
-2209
-96
-196

query I rowsort
SELECT ALL col0 * + col1 * col0 AS col2 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT - col2 - + - col1 + col2 AS col2 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT - CAST( NULL AS SIGNED ) - + - 11 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT - CAST ( NULL AS INTEGER ) - + - 11 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8572
SELECT col2 DIV + col0 + + ( - col1 ) + - col2 AS col0 FROM tab1
----
-109
-115
-64

skipif mysql # not compatible
query I rowsort label-8572
SELECT col2 / + col0 + + ( - col1 ) + - col2 AS col0 FROM tab1
----
-109
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8573
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NULL < NULL
----
0

query I rowsort
SELECT + col1 + - - col2 AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT ALL - col1 - + - 53 FROM tab0
----
-28
32
52

query I rowsort
SELECT + col2 + - 63 AS col0 FROM tab0
----
-16
-53
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT DISTINCT + SUM( - - 75 ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT + SUM ( - - 75 ) FROM tab0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT - CAST( + + col2 AS SIGNED ) FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8578
SELECT - CAST ( + + col2 AS INTEGER ) FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 68 * ( + col2 ) FROM tab1 AS cor0
----
4012
4624
6528

query I rowsort
SELECT DISTINCT 38 + - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT - SUM( + 8 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8581
SELECT - SUM ( + 8 ) FROM tab2 AS cor0
----
-24

query I rowsort
SELECT - 9 * 15 + + + 65 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL + 89 / + + col1 + 8 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT + 14 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8584
SELECT + 14 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT + + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8585
SELECT + + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + 29 AS col2, col0 FROM tab0
----
29
15
29
87
29
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8587
SELECT col2 FROM tab0 WHERE NOT 69 / + col0 >= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8587
SELECT col2 FROM tab0 WHERE NOT 69 / + col0 >= - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT ALL CAST( - AVG ( + - col1 ) AS SIGNED ) AS col2 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL CAST ( - AVG ( + - col1 ) AS INTEGER ) AS col2 FROM tab0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 col0 FROM tab2
----
70

query I rowsort
SELECT DISTINCT - 88 + - + col0 FROM tab1 WHERE + 26 BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8591
SELECT ALL + MAX( ALL + 3 ) FROM tab1 WHERE ( NOT + col1 * - + col1 * + 2 / + CAST( - - ( - + col2 ) AS DECIMAL ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL + MAX ( ALL + 3 ) FROM tab1 WHERE ( NOT + col1 * - + col1 * + 2 / + CAST ( - - ( - + col2 ) AS REAL ) IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ALL - MAX( col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL - MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT DISTINCT + COUNT( - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT + COUNT ( - col2 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - 83 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT - col1 FROM tab2 WHERE NOT ( + CAST( 93 AS SIGNED ) ) IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8595
SELECT - col1 FROM tab2 WHERE NOT ( + CAST ( 93 AS INTEGER ) ) IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8596
SELECT DISTINCT * FROM tab2 WHERE col1 * + CAST( 30 AS SIGNED ) = col2 / + col1
----

skipif mysql # not compatible
query III rowsort label-8596
SELECT DISTINCT * FROM tab2 WHERE col1 * + CAST ( 30 AS INTEGER ) = col2 / + col1
----

query I rowsort
SELECT col2 * 83 AS col0 FROM tab1
----
4897
5644
7968

query I rowsort
SELECT 66 * 24 FROM tab1
----
1584
1584
1584

query I rowsort
SELECT 3 * + col2 AS col0 FROM tab2
----
120
174
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT COUNT( * ) * 33 AS col0 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-8600
SELECT COUNT ( * ) * 33 AS col0 FROM tab1
----
99

query I rowsort
SELECT ALL col1 * 9 FROM tab0
----
189
729
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT DISTINCT COUNT( * ) * 67 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT COUNT ( * ) * 67 FROM tab1
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-8603
SELECT DISTINCT col1 + col2 DIV col2 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT col1 + col2 / col2 FROM tab0
----
2
22
82

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL COUNT( ALL + col1 ) * - 99 AS col2 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL COUNT ( ALL + col1 ) * - 99 AS col2 FROM tab0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8606
SELECT DISTINCT - CAST( + CAST( 15 AS SIGNED ) AS SIGNED ) col2 FROM tab2 WHERE col1 IS NOT NULL
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8606
SELECT DISTINCT - CAST ( + CAST ( 15 AS INTEGER ) AS INTEGER ) col2 FROM tab2 WHERE col1 IS NOT NULL
----
-15

query I rowsort
SELECT ALL + 91 * + col2 AS col1 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT - 30 + - col2 AS col2 FROM tab0
----
-129
-40
-77

query I rowsort
SELECT ALL + col2 + - col2 FROM tab1 WHERE col2 * + col0 IS NOT NULL
----
0
0
0

query I rowsort
SELECT - col0 * - 38 AS col2 FROM tab0
----
3306
3686
570

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 62 IS NOT NULL
----

query I rowsort
SELECT - col0 * ( 82 ) AS col0 FROM tab0
----
-1230
-7134
-7954

query III rowsort
SELECT * FROM tab1 WHERE col1 * - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8614
SELECT ALL col2 DIV 62 col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8614
SELECT ALL col2 / 62 col0 FROM tab0
----
0
0
1

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT + 44 + COUNT( * ) AS col2 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-8616
SELECT + 44 + COUNT ( * ) AS col2 FROM tab2
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * 79 col0 FROM tab1 WHERE - col0 IS NOT NULL
----
4043
6720
7236

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT DISTINCT + col1 DIV 43 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT + col1 / 43 AS col1 FROM tab1
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT DISTINCT - 85 DIV col1 AS col1 FROM tab0 WHERE NOT ( + 59 ) IS NULL
----
-1
-4
-85

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT - 85 / col1 AS col1 FROM tab0 WHERE NOT ( + 59 ) IS NULL
----
-1
-4
-85

query III rowsort
SELECT * FROM tab2 WHERE 87 IS NULL
----

query I rowsort
SELECT ALL col2 + + ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8623
SELECT 30 DIV + col2 AS col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8623
SELECT 30 / + col2 AS col2 FROM tab0
----
0
0
3

query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT DISTINCT SUM( ALL + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT SUM ( ALL + col2 ) AS col2 FROM tab0
----
156

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + - 26 * 76 AS col0 FROM tab0 AS cor0
----
-1976
-1976
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT - 20 * - MAX( ALL 87 * + col0 ) AS col1 FROM tab1 AS cor0
----
158340

skipif mysql # not compatible
query I rowsort label-8628
SELECT - 20 * - MAX ( ALL 87 * + col0 ) AS col1 FROM tab1 AS cor0
----
158340

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT DISTINCT 13 * - COUNT( * ) col0 FROM tab2 AS cor0 WHERE ( + ( + col2 ) ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8629
SELECT DISTINCT 13 * - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE ( + ( + col2 ) ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 * 44 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * - col2 col0 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL + + 2 FROM tab1 cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8633
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 = CAST( col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8633
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 = CAST ( col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT SUM( ALL + - 91 ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-8634
SELECT SUM ( ALL + - 91 ) FROM tab1
----
-273

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 14 * + 3 NOT IN ( 29 * col2 )
----

query I rowsort
SELECT DISTINCT - 16 * - col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8637
SELECT 6 DIV + col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8637
SELECT 6 / + col1 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT + MIN( DISTINCT - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8638
SELECT + MIN ( DISTINCT - col2 ) AS col1 FROM tab2
----
-58

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) <= 67 / col0 + + 10 OR NOT - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT ALL CAST( NULL AS SIGNED ) / - - col2 + - 63 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL CAST ( NULL AS INTEGER ) / - - col2 + - 63 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8641
SELECT COUNT( + 55 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT COUNT ( + 55 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT 81 * col1 + - col2 IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 * - 22 + col1 col0 FROM tab0 AS cor0
----
-1899
-1959
-1979

query I rowsort
SELECT DISTINCT + 18 + + col2 FROM tab2 cor0
----
41
58
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 * - col0 * col0 + col2 * - 76 + + 36 col0 FROM tab2 AS cor0
----
107588
147503
55420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col1 + - 53 col2 FROM tab2
----
-1226
-3133
-3939

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT - 34 + COUNT( * ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-8647
SELECT - 34 + COUNT ( * ) FROM tab2
----
-31

query I rowsort
SELECT - 0 + + 92 * 16 FROM tab2
----
1472
1472
1472

query I rowsort
SELECT ALL col0 * ( col0 ) * - col1 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8650
SELECT - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) 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-8650
SELECT - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8651
SELECT DISTINCT ( - col2 ) DIV + 4 col1 FROM tab0 cor0
----
-11
-2
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8651
SELECT DISTINCT ( - col2 ) / + 4 col1 FROM tab0 cor0
----
-11
-2
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT DISTINCT - MIN( DISTINCT - 96 ) FROM tab2 cor0
----
96

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT - MIN ( DISTINCT - 96 ) FROM tab2 cor0
----
96

query I rowsort
SELECT DISTINCT + - 93 + 5 AS col0 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT ( + 25 ) FROM tab0 AS cor0 WHERE NULL <= ( + + col0 )
----

query I rowsort
SELECT - 3 - + col0 * 72 * - ( col2 ) FROM tab1 AS cor0
----
352509
361077
445533

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) - - col2 + + 87 * + col0 col1 FROM tab2 AS cor0
----
4071
5672
6658

query I rowsort
SELECT + ( - col2 ) - + 16 FROM tab2 AS cor0
----
-39
-56
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - - col2 + col1 col0 FROM tab1 AS cor0
----
123
183
206

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT ALL - - col2 DIV 59 - 97 * - 6 FROM tab1 AS cor0
----
583
583
583

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL - - col2 / 59 - 97 * - 6 FROM tab1 AS cor0
----
583
583
583

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT - col0 - col2 + - col2 - - col1 DIV + col1 AS col2 FROM tab2
----
-143
-190
-91

skipif mysql # not compatible
query I rowsort label-8661
SELECT - col0 - col2 + - col2 - - col1 / + col1 AS col2 FROM tab2
----
-143
-190
-91

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE ( + 93 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 6 - + col1 + - col1 + - 41 * - ( col1 * + 8 ) AS col2 FROM tab1
----
15316
1624
4558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - ( + col0 ) col2 FROM tab2 WHERE - col1 IN ( 22 )
----

query I rowsort
SELECT - col1 * + - col1 + + - col2 FROM tab1
----
-34
100
2141

query I rowsort
SELECT ALL col0 * - - ( col2 ) * + col1 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT - ( - col1 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8667
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT - ( - col1 ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT DISTINCT 90 - - + ( - SUM( 15 ) ) - 26 * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT 90 - - + ( - SUM ( 15 ) ) - 26 * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - + 15 FROM tab0 AS cor0 WHERE NOT col1 - + - 86 IS NULL
----
-15
-15
-15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 2 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col2 ) col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT COUNT( * ) FROM tab1 WHERE NOT NULL >= + + col0 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-8672
SELECT COUNT ( * ) FROM tab1 WHERE NOT NULL >= + + col0 + - col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT DISTINCT + ( + 20 ) DIV + col1 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT + ( + 20 ) / + col1 FROM tab1
----
0
1
4

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE - 26 * + col1 IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 76 IS NOT NULL
----

query I rowsort
SELECT + 71 FROM tab1 AS cor0 WHERE NOT ( - col0 ) NOT IN ( col1 )
----

query II rowsort
SELECT DISTINCT + col2 AS col1, col1 AS col0 FROM tab0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE + 10 / + ( - - 19 ) + + + col2 + - col2 * col1 < + ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8682
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) - + 81 * + - CAST( + + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8682
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) - + 81 * + - CAST ( + + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NOT ( - 63 ) <> col1 ) )
----

query I rowsort
SELECT ( + col0 ) FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8685
SELECT 37 + 74 DIV - 12 AS col0 FROM tab1
----
31
31
31

skipif mysql # not compatible
query I rowsort label-8685
SELECT 37 + 74 / - 12 AS col0 FROM tab1
----
31
31
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8686
SELECT DISTINCT - COUNT( + col2 ) * + 35 * + 98 * ( - COUNT( * ) ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT - COUNT ( + col2 ) * + 35 * + 98 * ( - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - col2, + col0 AS col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8688
SELECT DISTINCT - ( - col2 ) * + - col2 + + col2 * + CAST( 26 AS SIGNED ) AS col2 FROM tab2
----
-1856
-560
69

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT - ( - col2 ) * + - col2 + + col2 * + CAST ( 26 AS INTEGER ) AS col2 FROM tab2
----
-1856
-560
69

query I rowsort
SELECT + col2 + - col1 - ( col0 ) FROM tab0
----
-49
-98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT COUNT( * ) + + 17 AS col0 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT COUNT ( * ) + + 17 AS col0 FROM tab0
----
20

query I rowsort
SELECT 31 + - col0 * col2 * - col1 + - ( col0 ) AS col0 FROM tab2
----
197087
291406
53943

query I rowsort
SELECT col2 * + col2 + col2 - 46 FROM tab1
----
3494
4646
9266

query I rowsort
SELECT + col0 + + - ( - 25 ) + col1 FROM tab0 AS cor0
----
121
123
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT ALL col1 FROM tab2 cor0 WHERE - col0 BETWEEN - col1 * col1 AND + - col0 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL col1 FROM tab2 cor0 WHERE - col0 BETWEEN - col1 * col1 AND + - col0 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT - - COUNT( * ) + 11 AS col2 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8695
SELECT - - COUNT ( * ) + 11 AS col2 FROM tab2 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT - MIN( DISTINCT col0 ) FROM tab2 cor0 WHERE NULL BETWEEN col2 AND - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8696
SELECT - MIN ( DISTINCT col0 ) FROM tab2 cor0 WHERE NULL BETWEEN col2 AND - 94
----
NULL

query I rowsort
SELECT DISTINCT - - col2 * col2 + 12 AS col1 FROM tab1 AS cor0 WHERE ( - col2 IS NULL )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 <= NULL
----

query I rowsort
SELECT DISTINCT col2 + - + 22 AS col1 FROM tab0 AS cor0
----
-12
25
77

query I rowsort
SELECT ALL + 50 FROM tab2 WHERE + col2 IS NULL
----

query II rowsort
SELECT - col2 * + col0 AS col2, col2 * - col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL 38 AS col0, + col2 + - 12 AS col1 FROM tab1
----
38
47
38
56
38
84

query I rowsort
SELECT ALL - ( - - col2 ) AS col1 FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-8704
SELECT + col0 AS col0, + col1 DIV - 85 * + - 20 AS col2 FROM tab0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-8704
SELECT + col0 AS col0, + col1 / - 85 * + - 20 AS col2 FROM tab0
----
15
0
87
0
97
0

query I rowsort
SELECT col0 * col0 * - 69 FROM tab2
----
-146004
-282624
-388125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col0, col1 col0 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT 8 * - + col2 FROM tab1 AS cor0
----
-472
-544
-768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8708
SELECT + MIN( - CAST( 94 AS SIGNED ) ) AS col0 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-8708
SELECT + MIN ( - CAST ( 94 AS INTEGER ) ) AS col0 FROM tab2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT ALL 88 * + COUNT( * ) AS col0 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL 88 * + COUNT ( * ) AS col0 FROM tab1
----
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - col2 ) * + col2 * - + ( - - 21 ) col1 FROM tab2 AS cor0
----
11109
33600
70644

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8711
SELECT * FROM tab1 cor0 WHERE NOT - col1 * - col2 NOT BETWEEN + col2 + + 6 AND ( - 28 * col0 + - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8711
SELECT * FROM tab1 cor0 WHERE NOT - col1 * - col2 NOT BETWEEN + col2 + + 6 AND ( - 28 * col0 + - + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + - 15 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8713
SELECT DISTINCT 87 * - CAST( + ( col2 ) AS SIGNED ) + col2 + + - col1 AS col0 FROM tab1 cor0
----
-5079
-5895
-8270

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT 87 * - CAST ( + ( col2 ) AS INTEGER ) + col2 + + - col1 AS col0 FROM tab1 cor0
----
-5079
-5895
-8270

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + SUM( - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8714
SELECT + SUM ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT ALL * FROM tab2 WHERE + 66 + + + ( + + col0 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT + ( + col1 ) * + - col2 AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT + ( 23 ) * - col2 AS col2 FROM tab0
----
-1081
-2277
-230

query I rowsort
SELECT - col0 FROM tab1 WHERE col0 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + 5
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT - ( + col2 ) / - + CAST( NULL AS SIGNED ) / + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT - ( + col2 ) / - + CAST ( NULL AS INTEGER ) / + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT - col0 DIV + 67 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8721
SELECT - col0 / + 67 FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 * - + col0 col2 FROM tab2
----
276
384
450

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col0 * + - col1 ) AND ( NULL )
----

query I rowsort
SELECT - col2 * + col1 FROM tab2 WHERE + + col1 - - col0 = ( + - col2 + + col1 + + - col2 + + + col2 + + 83 * - col0 )
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE ( NOT - col0 * col0 IS NULL )
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL > NULL
----
0

query I rowsort
SELECT ALL ( + 80 ) * - + col0 + + + col1 AS col0 FROM tab1 AS cor0
----
-4066
-6795
-7233

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT IN ( + ( + col1 ), 84 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8729
SELECT - CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT - CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - - col2 ) - col0 FROM tab0
----
-77
2
32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 14 + col0 IN ( - col2 * - - col2 + 86, + 44 + + 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT + COUNT( DISTINCT + col2 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8732
SELECT + COUNT ( DISTINCT + col2 ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 + - col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col1, col2 * + col2 AS col0 FROM tab1 AS cor0
----
14
9216
47
4624
5
3481

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL ( MAX( DISTINCT 24 ) ) FROM tab0 WHERE + - 2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL ( MAX ( DISTINCT 24 ) ) FROM tab0 WHERE + - 2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < + col0
----

query II rowsort
SELECT col2, col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col1 * - - col0 AS col0, col1 FROM tab2 AS cor0
----
2346
51
4928
77
5025
67

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NOT col0 >= NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 41 col1, + ( col2 ) AS col0 FROM tab1
----
41
59
41
68
41
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8742
SELECT DISTINCT + 94 + + - col2 + - col0 col0, CAST( - 46 AS SIGNED ) FROM tab1
----
-50
-46
-53
-46
-65
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8742
SELECT DISTINCT + 94 + + - col2 + - col0 col0, CAST ( - 46 AS INTEGER ) FROM tab1
----
-50
-46
-53
-46
-65
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 83 * - ( 51 ) > - - col1
----

query I rowsort
SELECT DISTINCT - - col2 * - 10 AS col0 FROM tab1 AS cor0
----
-590
-680
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL + MAX( + col1 ) col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8746
SELECT ALL + MAX ( + col1 ) col0 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT + MIN( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8747
SELECT + MIN ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT + MAX( col2 ) + MIN( + - col1 ) AS col0 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8748
SELECT + MAX ( col2 ) + MIN ( + - col1 ) AS col0 FROM tab1 AS cor0
----
49

query I rowsort
SELECT ( - col0 ) * col2 + + - 0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1058
-2560
-4350

query I rowsort
SELECT col2 + - 28 FROM tab0 cor0
----
-18
19
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL MIN( DISTINCT - - 10 ) AS col0 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL MIN ( DISTINCT - - 10 ) AS col0 FROM tab2 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT + 58 * + COUNT( * ) + COUNT( DISTINCT + - 27 ) FROM tab0
----
175

skipif mysql # not compatible
query I rowsort label-8752
SELECT + 58 * + COUNT ( * ) + COUNT ( DISTINCT + - 27 ) FROM tab0
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8753
SELECT * FROM tab1 WHERE + + col0 >= - + CAST( - - ( - col2 ) AS SIGNED )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-8753
SELECT * FROM tab1 WHERE + + col0 >= - + CAST ( - - ( - col2 ) AS INTEGER )
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8754
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) * + - col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) * + - col0 FROM tab1
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 14 + col2 > + col0 + + 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 10 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8757
SELECT - col1 * + + 15 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-1200
-228
82

skipif mysql # not compatible
query I rowsort label-8757
SELECT - col1 * + + 15 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-1200
-228
82

query I rowsort
SELECT ALL - col2 * - col0 + + + 63 FROM tab1 AS cor0
----
4959
5078
6251

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT ALL COUNT( * ) + ( 5 ) AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL COUNT ( * ) + ( 5 ) AS col2 FROM tab0 AS cor0
----
8

query I rowsort
SELECT 64 + ( - 98 ) AS col0 FROM tab2
----
-34
-34
-34

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 5 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 72 - 35 AS col1 FROM tab1
----
37

query II rowsort
SELECT col2 AS col0, 72 - col2 FROM tab1 AS cor0
----
59
13
68
4
96
-24

query I rowsort
SELECT ( + + 54 ) FROM tab2 AS cor0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( + 6 ) ) col1 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8766
SELECT DISTINCT - ( + 79 ) + + CAST( + col1 AS SIGNED ) AS col2, 59 FROM tab0 AS cor0 WHERE 38 NOT IN ( - 11, - 66 + col2 - col0 - + + 9 + col2 * + + col0 )
----
-58
59
-78
59
2
59

skipif mysql # not compatible
query II rowsort label-8766
SELECT DISTINCT - ( + 79 ) + + CAST ( + col1 AS INTEGER ) AS col2, 59 FROM tab0 AS cor0 WHERE 38 NOT IN ( - 11, - 66 + col2 - col0 - + + 9 + col2 * + + col0 )
----
-58
59
-78
59
2
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8767
SELECT + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT + COUNT( - + col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8768
SELECT + COUNT ( - + col0 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL SUM( ALL col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL SUM ( ALL col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8770
SELECT ALL - 76, col0 * CAST( NULL AS SIGNED ) / + col2 * + col1 AS col2 FROM tab1
----
-76
NULL
-76
NULL
-76
NULL

skipif mysql # not compatible
query II rowsort label-8770
SELECT ALL - 76, col0 * CAST ( NULL AS INTEGER ) / + col2 * + col1 AS col2 FROM tab1
----
-76
NULL
-76
NULL
-76
NULL

query I rowsort
SELECT DISTINCT ( + 35 ) AS col2 FROM tab2
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8772
SELECT 77, + MAX( - - col2 ) AS col1 FROM tab1
----
77
96

skipif mysql # not compatible
query II rowsort label-8772
SELECT 77, + MAX ( - - col2 ) AS col1 FROM tab1
----
77
96

query I rowsort
SELECT ALL + - 55 FROM tab0 WHERE ( col2 + col2 ) = col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8774
SELECT SUM( + 13 ) col0, COUNT( * ) FROM tab0
----
39
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8774
SELECT SUM ( + 13 ) col0, COUNT ( * ) FROM tab0
----
39
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8775
SELECT col0, - col2 + - - 12 DIV 76 DIV - 14 FROM tab1 cor0
----
51
-96
85
-59
91
-68

skipif mysql # not compatible
query II rowsort label-8775
SELECT col0, - col2 + - - 12 / 76 / - 14 FROM tab1 cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT - + 92 * - + col0 FROM tab0 AS cor0
----
1380
8004
8924

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2 + 28, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT DISTINCT + MIN( 50 ) col0 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8778
SELECT DISTINCT + MIN ( 50 ) col0 FROM tab2 AS cor0
----
50

query I rowsort
SELECT col2 + + ( - col1 ) FROM tab1
----
21
54
82

query II rowsort
SELECT col0 + - col0, col0 * + col1 * + - col2 AS col1 FROM tab2
----
0
-197120
0
-291450
0
-53958

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 21 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 24 + + 94 * + - 6 FROM tab1 AS cor0
----
-540

query I rowsort
SELECT - + 85 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL + + 89 + 3 * ( col1 ) FROM tab2 AS cor0
----
242
290
320

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT + ( - + ( COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8785
SELECT + ( - + ( COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL - ( 49 ) + COUNT( + - col2 ) AS col1 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL - ( 49 ) + COUNT ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT DISTINCT - 56 * + col1 AS col0 FROM tab0
----
-1176
-4536
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT + COUNT( * ) * - + 63 AS col0 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-8788
SELECT + COUNT ( * ) * - + 63 AS col0 FROM tab0
----
-189

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + ( + + 64 ) > ( col2 )
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8790
SELECT COUNT( + col0 ) * - MAX( DISTINCT + ( + col2 ) ) - + + 84 / + SUM( ALL CAST( NULL AS SIGNED ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8790
SELECT COUNT ( + col0 ) * - MAX ( DISTINCT + ( + col2 ) ) - + + 84 / + SUM ( ALL CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8791
SELECT DISTINCT + COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT + COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8792
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * + col1 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * + col1 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 * - 67 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 50 + + ( col2 ) AS col0 FROM tab1 WHERE + + ( - 67 ) IS NULL
----

query I rowsort
SELECT - 28 + + col0 FROM tab1
----
23
57
63

query I rowsort
SELECT col1 FROM tab2 WHERE ( 13 ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8797
SELECT DISTINCT COUNT( * ) - + + COUNT( * ) DIV 79 AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT COUNT ( * ) - + + COUNT ( * ) / 79 AS col0 FROM tab2
----
3

query II rowsort
SELECT DISTINCT + 39 + + col2 AS col0, col1 AS col2 FROM tab2
----
62
51
79
77
97
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT DISTINCT + COUNT( - - 90 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8799
SELECT DISTINCT + COUNT ( - - 90 ) col0 FROM tab0 cor0
----
3

query I rowsort
SELECT + - col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8801
SELECT + - 61 DIV + COUNT( * ) col0 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8801
SELECT + - 61 / + COUNT ( * ) col0 FROM tab1 AS cor0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8802
SELECT - MIN( ALL + col0 ) DIV + - 97 * - 77 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8802
SELECT - MIN ( ALL + col0 ) / + - 97 * - 77 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 14 * - col2 AS col1 FROM tab2 AS cor0
----
322
560
812

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND 33 * - col0
----

query I rowsort
SELECT + col2 * - 7 AS col2 FROM tab0
----
-329
-693
-70

query II rowsort
SELECT - 2, col1 FROM tab0
----
-2
1
-2
21
-2
81

query I rowsort
SELECT DISTINCT - col0 * + + col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT CAST( + - col2 AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8808
SELECT CAST ( + - col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - 15 FROM tab1 WHERE NOT + col1 IS NULL
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8810
SELECT * FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8810
SELECT * FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8811
SELECT + - COUNT( * ) * 83 * - - COUNT( * ) col2, 49 FROM tab1 cor0
----
-747
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8811
SELECT + - COUNT ( * ) * 83 * - - COUNT ( * ) col2, 49 FROM tab1 cor0
----
-747
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 * col0 * col0 col1 FROM tab2 AS cor0
----
-192512
-264375
-99452

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE 36 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8813
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE 36 IS NOT NULL
----
3

query I rowsort
SELECT + 89 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT + + 96 + + + 8 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT + + 96 + + + 8 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-8816
SELECT MAX( ALL - col2 ) AS col2, COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8816
SELECT MAX ( ALL - col2 ) AS col2, COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8817
SELECT - - 56 + COUNT( * ) - - MIN( 0 ) DIV - ( - 20 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8817
SELECT - - 56 + COUNT ( * ) - - MIN ( 0 ) / - ( - 20 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT DISTINCT - COUNT( ALL + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT - COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT + + col0 + + col0 + - col2 DIV col2 FROM tab2 cor0
----
127
149
91

skipif mysql # not compatible
query I rowsort label-8819
SELECT + + col0 + + col0 + - col2 / col2 FROM tab2 cor0
----
127
149
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8820
SELECT col0 DIV - 78 + col0 * col1 AS col1 FROM tab0 AS cor0
----
1215
1826
96

skipif mysql # not compatible
query I rowsort label-8820
SELECT col0 / - 78 + col0 * col1 AS col1 FROM tab0 AS cor0
----
1215
1826
96

query I rowsort
SELECT ALL + 90 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
90
90
90

query I rowsort
SELECT ALL + col1 + col0 + + ( - 77 ) + + 93 AS col2 FROM tab1 AS cor0
----
106
154
81

query I rowsort
SELECT - 71 + 41 AS col2 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT - 79 + - + col1 + + - col0 FROM tab2 cor0
----
-176
-220
-221

query I rowsort
SELECT DISTINCT col1 + 42 FROM tab0 AS cor0
----
123
43
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL 11 * - COUNT( * ) AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL 11 * - COUNT ( * ) AS col1 FROM tab1
----
-33

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab0 WHERE NOT + - 45 IN ( - 15, ( - col1 ) * col1 * + col2 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT + - MIN( - + 37 ) FROM tab1 WHERE - 36 IS NOT NULL
----
37

skipif mysql # not compatible
query I rowsort label-8828
SELECT + - MIN ( - + 37 ) FROM tab1 WHERE - 36 IS NOT NULL
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT col2 DIV + 96 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8829
SELECT col2 / + 96 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL + - 5 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT COUNT( + 24 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8831
SELECT COUNT ( + 24 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8832
SELECT col2 * - CAST( NULL AS SIGNED ), col0 + + - 69 + 18 AS col1, 92 AS col0 FROM tab0
----
9 values hashing to b897a7bc9680753f8555025d5ea96648

skipif mysql # not compatible
query III rowsort label-8832
SELECT col2 * - CAST ( NULL AS INTEGER ), col0 + + - 69 + 18 AS col1, 92 AS col0 FROM tab0
----
9 values hashing to b897a7bc9680753f8555025d5ea96648

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT - ( + COUNT( + col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8833
SELECT - ( + COUNT ( + col2 ) ) FROM tab0
----
-3

query II rowsort
SELECT DISTINCT + 7 + - col1, + col0 FROM tab0 AS cor0
----
-14
87
-74
15
6
97

query I rowsort
SELECT col0 * - ( + + col1 ) - + - col0 + + 27 FROM tab0 AS cor0
----
-1173
-1713
27

query I rowsort
SELECT - col1 - + + 56 AS col0 FROM tab0 AS cor0
----
-137
-57
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 <= 45 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + 94 + + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col1, col1 AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT + + 61 * col2 AS col2 FROM tab1 AS cor0
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL - MIN( + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL - MIN ( + col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-8843
SELECT + + 63 DIV + col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-8843
SELECT + + 63 / + col2 FROM tab0 AS cor0
----
0
1
6

query I rowsort
SELECT ALL + col2 * + + 33 + col2 AS col0 FROM tab0 AS cor0
----
1598
3366
340

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col1 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL - col0 * - col1 + - col0 FROM tab0
----
0
1200
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT - - COUNT( * ) * - - 93 + - 23 col1 FROM tab0 cor0
----
256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8848
SELECT DISTINCT - - COUNT ( * ) * - - 93 + - 23 col1 FROM tab0 cor0
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT + COUNT( * ) * 59 + + - 92 + + 65 AS col1 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT + COUNT ( * ) * 59 + + - 92 + + 65 AS col1 FROM tab0 AS cor0
----
150

query I rowsort
SELECT DISTINCT col1 * 90 + + col2 FROM tab1
----
1356
4298
509

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 42 + + 83 * - + col2 NOT IN ( - col1, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 42 + + 83 * - + col2 NOT IN ( - col1, col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col2 FROM tab0 AS cor0 WHERE col0 * - + col1 BETWEEN col2 * + col2 - + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 49 + + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL 77 + - - COUNT( * ) + + 95 AS col2 FROM tab1 AS cor0
----
175

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL 77 + - - COUNT ( * ) + + 95 AS col2 FROM tab1 AS cor0
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8855
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) <= - + col1
----

skipif mysql # not compatible
query III rowsort label-8855
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <= - + col1
----

query I rowsort
SELECT col0 * + 54 - + + 96 - - - col0 AS col2 FROM tab1 cor0
----
2607
4409
4727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8857
SELECT + COUNT( * ) * + COUNT( * ) * + SUM( - col0 ) - CAST( - 21 AS SIGNED ) AS col1, + 92 col0 FROM tab0
----
-1770
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8857
SELECT + COUNT ( * ) * + COUNT ( * ) * + SUM ( - col0 ) - CAST ( - 21 AS INTEGER ) AS col1, + 92 col0 FROM tab0
----
-1770
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT ALL - CAST( - + col1 AS SIGNED ) + - 99 FROM tab0
----
-18
-78
-98

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL - CAST ( - + col1 AS INTEGER ) + - 99 FROM tab0
----
-18
-78
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8859
SELECT ALL col1, + CAST( - col1 AS SIGNED ) FROM tab2
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-8859
SELECT ALL col1, + CAST ( - col1 AS INTEGER ) FROM tab2
----
51
-51
67
-67
77
-77

query I rowsort
SELECT DISTINCT col0 - + + 92 FROM tab0
----
-5
-77
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT + col2 * + CAST( NULL AS SIGNED ) + + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT + col2 * + CAST ( NULL AS INTEGER ) + + - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col1 AS col0, 19 AS col2 FROM tab1
----
14
19
47
19
5
19

query I rowsort
SELECT - - col1 AS col1 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT 80 + - 88 * - + col0 - - - col0 FROM tab2
----
4082
5648
6605

query II rowsort
SELECT DISTINCT + 76 AS col2, col2 AS col1 FROM tab2 AS cor0
----
76
23
76
40
76
58

query II rowsort
SELECT DISTINCT + col1, - 59 * - + col2 AS col0 FROM tab1 cor0
----
14
5664
47
4012
5
3481

query I rowsort
SELECT ALL + + 95 * - col0 FROM tab2 AS cor0
----
-4370
-6080
-7125

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT + MIN( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8868
SELECT + MIN ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT ALL + - 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-8869
SELECT ALL + - COUNT ( col2 ) col1 FROM tab1 AS cor0
----
-3

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT + 57 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8871
SELECT - col2, - col0 - CAST( + 85 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 37 * - - 50 ) > + col2
----

skipif mysql # not compatible
query II rowsort label-8871
SELECT - col2, - col0 - CAST ( + 85 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + 37 * - - 50 ) > + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT - col2 DIV + + 9 + col1 + col0 col2 FROM tab0 AS cor0
----
107
87
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8872
SELECT - col2 / + + 9 + col1 + col0 col2 FROM tab0 AS cor0
----
107
87
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8873
SELECT ALL 40 DIV + 54 + 51 FROM tab0 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL 40 / + 54 + 51 FROM tab0 AS cor0
----
51
51
51

query II rowsort
SELECT col0 * - col0, + 55 AS col1 FROM tab1 AS cor0
----
-2601
55
-7225
55
-8281
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8875
SELECT ALL - col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL - col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT 30 * COUNT( * ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-8876
SELECT 30 * COUNT ( * ) FROM tab2
----
90

query I rowsort
SELECT col0 + + + col2 * - + col1 * ( - col2 ) FROM tab2
----
123264
225463
27025

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 31 + col1 FROM tab1 AS cor0
----
-17
-26
16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 88 >= NULL
----

query II rowsort
SELECT 3, + col1 FROM tab2 AS cor0
----
3
51
3
67
3
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT + COUNT( * ) * - 86 + - 90 FROM tab1 AS cor0
----
-348

skipif mysql # not compatible
query I rowsort label-8882
SELECT + COUNT ( * ) * - 86 + - 90 FROM tab1 AS cor0
----
-348

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT ALL + + 55 DIV + - 4 AS col1 FROM tab1 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL + + 55 / + - 4 AS col1 FROM tab1 AS cor0
----
-13
-13
-13

query II rowsort
SELECT ALL + col1 AS col1, col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + ( - 78 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8885
SELECT + col2 DIV - + 3 + - col0 AS col2 FROM tab1
----
-104
-113
-83

skipif mysql # not compatible
query I rowsort label-8885
SELECT + col2 / - + 3 + - col0 AS col2 FROM tab1
----
-104
-113
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL 13 * - COUNT( * ) AS col1 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL 13 * - COUNT ( * ) AS col1 FROM tab1
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 31 * + col1 col0, col2 + + - 12 AS col0 FROM tab0
----
2511
35
31
87
651
-2

query I rowsort
SELECT col1 * + 91 + col1 AS col1 FROM tab1
----
1288
4324
460

query I rowsort
SELECT + + col0 + + - col1 AS col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8890
SELECT ALL + 47 DIV + COUNT( * ) + + 35 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL + 47 / + COUNT ( * ) + + 35 FROM tab1 AS cor0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 cor0 WHERE NULL < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT COUNT( * ) + + 28 AS col0 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8892
SELECT COUNT ( * ) + + 28 AS col0 FROM tab2 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8893
SELECT DISTINCT - + col1 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT - + col1 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 31 + - 63 * - - col0 + - col0 FROM tab2 AS cor0
----
-2975
-4127
-4831

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT SUM( + 35 ) + - + SUM( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-8895
SELECT SUM ( + 35 ) + - + SUM ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL - COUNT( * ) + + 27 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL - COUNT ( * ) + + 27 FROM tab0 AS cor0
----
24

query I rowsort
SELECT DISTINCT - col0 * + 55 - col0 AS col1 FROM tab2 AS cor0
----
-2576
-3584
-4200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8898
SELECT ALL + COUNT( * ) DIV + + COUNT( * ) FROM tab1, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL + COUNT ( * ) / + + COUNT ( * ) FROM tab1, tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT 70 / - 45 FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0, col2 * + + col2 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT + MIN( DISTINCT + + 29 ) AS col2 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-8904
SELECT + MIN ( DISTINCT + + 29 ) AS col2 FROM tab1
----
29

query II rowsort
SELECT ALL 84 AS col0, + col1 + - col2 FROM tab0
----
84
-98
84
11
84
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT - 35 * 34 + + + COUNT( * ) + - COUNT( + 68 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1190

skipif mysql # not compatible
query I rowsort label-8906
SELECT - 35 * 34 + + + COUNT ( * ) + - COUNT ( + 68 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1190

query II rowsort
SELECT 63, - col1 AS col2 FROM tab0 cor0
----
63
-1
63
-21
63
-81

query I rowsort
SELECT DISTINCT - 38 * - col0 AS col0 FROM tab1 AS cor0
----
1938
3230
3458

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8909
SELECT ALL + col1 AS col1, + CAST( NULL AS SIGNED ) * 19 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8909
SELECT ALL + col1 AS col1, + CAST ( NULL AS INTEGER ) * 19 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT ( + 39 ) + - 44 FROM tab0 AS cor0 WHERE NOT 69 IS NULL
----
-5
-5
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - col2 * + col2 + - 16 = - 33 * - col2 * - 18 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 * + - col2 * + 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 99 * - 28 AS col1, 11 FROM tab2
----
-2772
11
-2772
11
-2772
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8914
SELECT 17 * - COUNT( col1 ) DIV 88 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8914
SELECT 17 * - COUNT ( col1 ) / 88 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ( MAX( DISTINCT + col0 ) ) col0 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8915
SELECT ( MAX ( DISTINCT + col0 ) ) col0 FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8916
SELECT 40 DIV + col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8916
SELECT 40 / + col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NULL < + ( - col1 )
----

query I rowsort
SELECT + 56 * col2 AS col1 FROM tab2
----
1288
2240
3248

query I rowsort
SELECT DISTINCT ( + col0 ) + col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - 15 + - ( + 40 ) FROM tab2 AS cor0 WHERE - col2 * - ( + + col0 ) * col2 IS NOT NULL
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT - 37 * ( COUNT( * ) ) + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-8921
SELECT - 37 * ( COUNT ( * ) ) + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-108

query I rowsort
SELECT ALL 41 - - col1 AS col0 FROM tab1
----
46
55
88

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL 79 + - + ( + col2 ) AS col0 FROM tab0 WHERE NOT - col0 IS NULL
----
-20
32
69

query I rowsort
SELECT 75 * 3 * - - col2 FROM tab0
----
10575
22275
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL SUM( ALL - - 19 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
171

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL SUM ( ALL - - 19 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
171

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT - + col0 - + col1 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT DISTINCT + - col0 + - CAST( 37 AS SIGNED ) * - col2 AS col2 FROM tab1 cor0
----
2098
2425
3501

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT + - col0 + - CAST ( 37 AS INTEGER ) * - col2 AS col2 FROM tab1 cor0
----
2098
2425
3501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8929
SELECT - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE 83 IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8929
SELECT - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE 83 IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT DISTINCT + - 35 + + col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-35
-40

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT + - 35 + + col1 / - col0 AS col1 FROM tab0 AS cor0
----
-35
-40

query III rowsort
SELECT * FROM tab0 cor0 WHERE 91 / - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 14 + + + 46 + col0 + 40 + col1 * col0 + col0 AS col2 FROM tab0 AS cor0
----
1345
2101
391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8933
SELECT MIN( DISTINCT - + ( - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT MIN ( DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query I rowsort
SELECT - col1 + 16 AS col0 FROM tab2 WHERE NOT NULL >= 74 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8935
SELECT DISTINCT - 38 * + + CAST( - 79 AS SIGNED ) FROM tab0
----
3002

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT - 38 * + + CAST ( - 79 AS INTEGER ) FROM tab0
----
3002

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8936
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) NOT BETWEEN - + col2 AND - col0 + - col1 * + col2
----

skipif mysql # not compatible
query III rowsort label-8936
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) NOT BETWEEN - + col2 AND - col0 + - col1 * + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8937
SELECT ALL - 89 DIV - MIN( + 44 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL - 89 / - MIN ( + 44 ) FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 30 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 65 * + 36 - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 67 * col0 * - col0 AS col1 FROM tab0 AS cor0
----
15075
507123
630403

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL < - col0
----

query I rowsort
SELECT - col2 * col1 * 87 AS col2 FROM tab2
----
-102051
-267960
-338082

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT MAX( DISTINCT + 17 ) AS col2 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-8944
SELECT MAX ( DISTINCT + 17 ) AS col2 FROM tab1
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( - col0 ) - + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( - col0 ) - + col0 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT - ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0 WHERE NOT ( - col0 ) + - - 76 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8947
SELECT - ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0 WHERE NOT ( - col0 ) + - - 76 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8948
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + col0, + 54 FROM tab2 AS cor0
----
46
54
64
54
75
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + COUNT( * ) + - 33 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8950
SELECT + COUNT ( * ) + - 33 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT - col0 * + - col1 + - - col2 + + col0 AS col2 FROM tab2 AS cor0
----
2415
5032
5158

query I rowsort
SELECT 47 + + col0 AS col1 FROM tab0 AS cor0
----
134
144
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL 4 * + COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL 4 * + COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
36

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT + 38 * + + COUNT( * ) AS col0 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-8955
SELECT + 38 * + + COUNT ( * ) AS col0 FROM tab2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT COUNT( * ) + + COUNT( * ) FROM tab2, tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8956
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab2, tab0 AS cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8957
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( DISTINCT - + col1 ) + - ( - COUNT( * ) ) AS col0 FROM tab1 WHERE NOT + 76 NOT BETWEEN NULL AND - + col2 - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - + col1 ) + - ( - COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT + 76 NOT BETWEEN NULL AND - + col2 - col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8958
SELECT + ( + + MIN( + + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT + ( + + MIN ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8959
SELECT - COUNT( * ) AS col1, 70 AS col0 FROM tab1 AS cor0
----
-3
70

skipif mysql # not compatible
query II rowsort label-8959
SELECT - COUNT ( * ) AS col1, 70 AS col0 FROM tab1 AS cor0
----
-3
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT + MIN( - 87 ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8960
SELECT + MIN ( - 87 ) FROM tab2 AS cor0
----
-87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 55 IS NULL
----

query II rowsort
SELECT - - 33 AS col0, 4 + - col2 FROM tab0 AS cor0
----
33
-43
33
-6
33
-95

query I rowsort
SELECT ALL + - col0 + + - col0 + - 76 * + 32 FROM tab2 AS cor0
----
-2524
-2560
-2582

query I rowsort
SELECT - - col1 - + + 33 * 89 AS col1 FROM tab2 AS cor0
----
-2860
-2870
-2886

query I rowsort
SELECT 99 - - + col0 + col0 - + + 13 FROM tab0
----
116
260
280

query I rowsort
SELECT ALL col0 * + + col1 FROM tab1
----
425
4277
714

query III rowsort
SELECT * FROM tab2 WHERE + - 89 / col2 BETWEEN - - 10 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8968
SELECT DISTINCT + col2 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT + col2 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT COUNT( * ) + - + 97 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-8969
SELECT COUNT ( * ) + - + 97 FROM tab1
----
-94

query I rowsort
SELECT 3 + col0 + + col1 + ( - 17 ) AS col1 FROM tab1
----
124
51
76

query I rowsort
SELECT - - ( + - 38 ) * 32 + - col2 * - + 62 AS col2 FROM tab0 AS cor0
----
-596
1698
4922

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 98 < - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 cor0 WHERE + 84 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL - ( - col1 ) + - 36 FROM tab0 AS cor0
----
-15
-35
45

query I rowsort
SELECT - + 57 AS col1 FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT - col0 * - col1 + - col2 FROM tab0 cor0
----
-2
1168
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT - 0 * + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8977
SELECT - 0 * + COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8978
SELECT DISTINCT + MAX( DISTINCT - ( - 66 ) ) AS col0, + 77 FROM tab2 AS cor0
----
66
77

skipif mysql # not compatible
query II rowsort label-8978
SELECT DISTINCT + MAX ( DISTINCT - ( - 66 ) ) AS col0, + 77 FROM tab2 AS cor0
----
66
77

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8980
SELECT ALL - + CAST( + COUNT( * ) AS SIGNED ) * 42 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL - + CAST ( + COUNT ( * ) AS INTEGER ) * 42 FROM tab1 AS cor0
----
-126

query I rowsort
SELECT + 51 * - col2 FROM tab2 WHERE NOT NULL BETWEEN + col1 / - - 77 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 51 ) col2 FROM tab0
----
-51

query III rowsort
SELECT * FROM tab1 WHERE NOT - 35 BETWEEN NULL AND 31 + + + col0
----

query II rowsort
SELECT ALL + 34 AS col0, + col1 AS col0 FROM tab0
----
34
1
34
21
34
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT MAX( ALL - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8985
SELECT MAX ( ALL - col2 ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT DISTINCT + + COUNT( DISTINCT 6 ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8986
SELECT DISTINCT + + COUNT ( DISTINCT 6 ) FROM tab0 WHERE NOT + col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 28 * 36 FROM tab1
----
-1008

query I rowsort
SELECT 8 * - 18 AS col2 FROM tab1
----
-144
-144
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8989
SELECT ALL COUNT( * ) DIV + 46 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL COUNT ( * ) / + 46 AS col0 FROM tab1
----
0

query I rowsort
SELECT 0 * + 43 * 58 * + col0 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT + COUNT( DISTINCT - - 90 ) FROM tab2 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8992
SELECT + COUNT ( DISTINCT - - 90 ) FROM tab2 WHERE NOT ( NULL IS NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT DISTINCT 79 DIV - 96 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT 79 / - 96 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 * - col0 * + + 83 * 10 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * + + col0 * - - col1 + + col0 + - 88 FROM tab0 AS cor0
----
106
38366
98342

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 WHERE + 8 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE + 8 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col2 ) col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + 69 + + col1 AS col2 FROM tab2 AS cor0
----
120
136
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT - - COUNT( * ) * - 71 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-8999
SELECT - - COUNT ( * ) * - 71 FROM tab2 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT ALL + COUNT( ALL - 13 ) * + 55 * - - 23 AS col1 FROM tab2
----
3795

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL + COUNT ( ALL - 13 ) * + 55 * - - 23 AS col1 FROM tab2
----
3795

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 17 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, - col2 AS col0 FROM tab1
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9003
SELECT DISTINCT CAST( NULL AS SIGNED ), + 9 * - - col2 * + col1 * - col2 AS col1 FROM tab1
----
NULL
-1161216
NULL
-156645
NULL
-1955952

skipif mysql # not compatible
query II rowsort label-9003
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 9 * - - col2 * + col1 * - col2 AS col1 FROM tab1
----
NULL
-1161216
NULL
-156645
NULL
-1955952

query I rowsort
SELECT + col0 - 29 + + col1 AS col0 FROM tab2
----
112
113
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - - 92 col0 FROM tab2
----
17
28
46

query I rowsort
SELECT ALL col1 - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-21
-54
-82

query I rowsort
SELECT ALL col0 + + col0 + + col0 * - 20 AS col2 FROM tab0 AS cor0
----
-1566
-1746
-270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9008
SELECT ALL + 97 - + + MAX( - + col1 ) DIV - + COUNT( * ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL + 97 - + + MAX ( - + col1 ) / - + COUNT ( * ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT COUNT( col0 ) * + 53 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-9009
SELECT COUNT ( col0 ) * + 53 FROM tab0
----
159

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * 59 BETWEEN + 10 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT DISTINCT - COUNT( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL + col0 AS col1, - 95 FROM tab1 AS cor0
----
51
-95
85
-95
91
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT - 69 * + ( - - COUNT( * ) ) FROM tab1 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-9013
SELECT - 69 * + ( - - COUNT ( * ) ) FROM tab1 cor0
----
-207

query I rowsort
SELECT col2 * - 67 + 77 FROM tab0 AS cor0
----
-3072
-593
-6556

query II rowsort
SELECT + col2, - col1 * col1 FROM tab0 AS cor0
----
10
-441
47
-6561
99
-1

query I rowsort
SELECT col0 / + + 47 FROM tab0 AS cor0 WHERE NOT ( 40 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT DISTINCT ( - 47 ) * COUNT( * ) * SUM( + 25 ) col2 FROM tab1
----
-10575

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9017
SELECT DISTINCT ( - 47 ) * COUNT ( * ) * SUM ( + 25 ) col2 FROM tab1
----
-10575

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL 36 * + COUNT( * ) col2 FROM tab1
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9018
SELECT ALL 36 * + COUNT ( * ) col2 FROM tab1
----
108

query III rowsort
SELECT ALL * FROM tab0 WHERE + + ( - 49 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 76 FROM tab0, tab0 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - - col1 AS col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT - - MIN( col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT - - MIN ( col0 ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9025
SELECT DISTINCT - col0 DIV + + col2, + col0 FROM tab0 AS cor0
----
-8
87
0
15
0
97

skipif mysql # not compatible
query II rowsort label-9025
SELECT DISTINCT - col0 / + + col2, + col0 FROM tab0 AS cor0
----
-8
87
0
15
0
97

query I rowsort
SELECT ALL col0 * - 84 AS col0 FROM tab1
----
-4284
-7140
-7644

query I rowsort
SELECT DISTINCT - + 45 AS col2 FROM tab2 cor0
----
-45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 32 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 * + col2 + - + 7 + + col2 col0 FROM tab0 AS cor0
----
-1887
-3967
-407

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT - + CAST( - ( + col2 ) AS SIGNED ) + + 29 col0 FROM tab1 AS cor0
----
125
88
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9030
SELECT - + CAST ( - ( + col2 ) AS INTEGER ) + + 29 col0 FROM tab1 AS cor0
----
125
88
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT - + CAST( - - col0 AS SIGNED ) + - col0 + - 33 AS col0 FROM tab0 AS cor0
----
-207
-227
-63

skipif mysql # not compatible
query I rowsort label-9031
SELECT - + CAST ( - - col0 AS INTEGER ) + - col0 + - 33 AS col0 FROM tab0 AS cor0
----
-207
-227
-63

query I rowsort
SELECT 57 AS col1 FROM tab2 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT 26 + + 95 FROM tab1 AS cor0
----
121
121
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT + col0 + col1 - CAST( + - ( + col1 ) AS SIGNED ) col1 FROM tab2 AS cor0
----
148
209
218

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9034
SELECT + col0 + col1 - CAST ( + - ( + col1 ) AS INTEGER ) col1 FROM tab2 AS cor0
----
148
209
218

query I rowsort
SELECT - col1 + + 56 * + 87 FROM tab0 AS cor0
----
4791
4851
4871

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 36 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 93 - col1 FROM tab0
----
12
72
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9038
SELECT CAST( NULL AS SIGNED ) * 28 AS col2, + col2 + col0 col2 FROM tab0
----
NULL
196
NULL
62
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9038
SELECT CAST ( NULL AS INTEGER ) * 28 AS col2, + col2 + col0 col2 FROM tab0
----
NULL
196
NULL
62
NULL
97

query I rowsort
SELECT + ( - 55 ) / col2 * col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - - 35 + + col1 AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9041
SELECT + col1 - - col1 * + - CAST( + + col0 AS SIGNED ) AS col1 FROM tab2 WHERE - 69 - - - CAST( + col0 AS SIGNED ) + + col2 - - col0 IS NOT NULL
----
-2295
-4851
-4958

skipif mysql # not compatible
query I rowsort label-9041
SELECT + col1 - - col1 * + - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2 WHERE - 69 - - - CAST ( + col0 AS INTEGER ) + + col2 - - col0 IS NOT NULL
----
-2295
-4851
-4958

query I rowsort
SELECT DISTINCT + ( - 72 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

query II rowsort
SELECT DISTINCT 61 AS col2, - col1 AS col1 FROM tab1 AS cor0
----
61
-14
61
-47
61
-5

query II rowsort
SELECT + + col1 * - 34 * - col1 + + ( col0 ), + col2 FROM tab0 AS cor0
----
131
99
15081
10
223089
47

query II rowsort
SELECT + col1 AS col1, + col1 * col1 * + + 0 FROM tab0 AS cor0
----
1
0
21
0
81
0

query I rowsort
SELECT DISTINCT - - 98 * 98 * - 28 + - col2 FROM tab2 AS cor0
----
-268935
-268952
-268970

query I rowsort
SELECT DISTINCT - 99 * + col2 FROM tab2 cor0
----
-2277
-3960
-5742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9048
SELECT DISTINCT 33 DIV COUNT( * ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT 33 / COUNT ( * ) FROM tab1 AS cor0
----
11

query II rowsort
SELECT DISTINCT col0 + + col1 + 0 * - col2 + - - 46 + col0, - col1 * + - col2 * - + col1 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
157
-308367
241
-4410
241
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9050
SELECT * FROM tab1 cor0 WHERE NOT col1 * col1 * CAST( - 23 AS SIGNED ) * col0 / col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9050
SELECT * FROM tab1 cor0 WHERE NOT col1 * col1 * CAST ( - 23 AS INTEGER ) * col0 / col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - ( 42 ) - 26 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - + 8 AS col2, + col0 * col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN col2 AND col0 * - col2 + - + 24 - + col2 * + col2
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE + 37 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9054
SELECT + CAST( + SUM( - 6 ) AS SIGNED ) col2 FROM tab0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9054
SELECT + CAST ( + SUM ( - 6 ) AS INTEGER ) col2 FROM tab0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9055
SELECT + 27 AS col0, SUM( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-9055
SELECT + 27 AS col0, SUM ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
27
NULL

query II rowsort
SELECT ALL + col2, - 64 * - 6 AS col0 FROM tab1
----
59
384
68
384
96
384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9058
SELECT MIN( DISTINCT - - CAST( + col2 AS SIGNED ) ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9058
SELECT MIN ( DISTINCT - - CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT ALL SUM( ALL - + ( - col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL SUM ( ALL - + ( - col1 ) ) FROM tab1
----
66

query I rowsort
SELECT DISTINCT - 86 * - - 88 * col2 AS col2 FROM tab2
----
-174064
-302720
-438944

query II rowsort
SELECT DISTINCT + col1 AS col0, - col1 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9062
SELECT ALL + COUNT( ALL + col2 ) AS col0, + 82 AS col0 FROM tab0
----
3
82

skipif mysql # not compatible
query II rowsort label-9062
SELECT ALL + COUNT ( ALL + col2 ) AS col0, + 82 AS col0 FROM tab0
----
3
82

query II rowsort
SELECT - col1 AS col2, - ( - + col1 ) AS col2 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL - SUM( - col1 ) AS col1 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL - SUM ( - col1 ) AS col1 FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT + COUNT( * ) + - MAX( ALL + - ( - col1 ) ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9065
SELECT + COUNT ( * ) + - MAX ( ALL + - ( - col1 ) ) FROM tab2 AS cor0
----
-74

query II rowsort
SELECT DISTINCT + - col2 AS col0, + col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT col1 - - col0 - - ( 24 ) * col0 - - col2 AS col2 FROM tab2 AS cor0
----
1224
1717
2000

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9069
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + - col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9069
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + - col2 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + 42 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9071
SELECT ALL CAST( NULL AS SIGNED ) * ( 21 ) AS col1, col1 + col1 AS col1 FROM tab1
----
NULL
10
NULL
28
NULL
94

skipif mysql # not compatible
query II rowsort label-9071
SELECT ALL CAST ( NULL AS INTEGER ) * ( 21 ) AS col1, col1 + col1 AS col1 FROM tab1
----
NULL
10
NULL
28
NULL
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT ALL + col2 DIV col1 - + col1 col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9072
SELECT ALL + col2 / col1 - + col1 col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col0 - - ( col0 ) AS col1 FROM tab1
----
102
170
182

query I rowsort
SELECT col1 - - 97 FROM tab0
----
118
178
98

query I rowsort
SELECT + 24 + - col2 FROM tab1
----
-35
-44
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( - col2 )
----

query II rowsort
SELECT DISTINCT - col1, - 54 * + 55 AS col1 FROM tab2
----
-51
-2970
-67
-2970
-77
-2970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 * - 27 col0 FROM tab1
----
-270

query I rowsort
SELECT DISTINCT 99 * - 64 AS col0 FROM tab1 AS cor0
----
-6336

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <> + 45
----

query II rowsort
SELECT - + col2, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT DISTINCT SUM( ALL - col0 ) + - COUNT( * ) * + 76 AS col2 FROM tab2
----
-413

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT SUM ( ALL - col0 ) + - COUNT ( * ) * + 76 AS col2 FROM tab2
----
-413

query III rowsort
SELECT ALL * FROM tab2 WHERE + 79 - col2 = ( col0 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT DISTINCT - 9 - + 9 * - COUNT( ALL + 32 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT - 9 - + 9 * - COUNT ( ALL + 32 ) FROM tab1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 WHERE + 98 = NULL
----

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE + 98 = NULL
----

query I rowsort
SELECT 44 * col1 FROM tab2 WHERE NOT 62 IS NULL
----
2244
2948
3388

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9088
SELECT ALL * FROM tab0 WHERE col1 + - CAST( NULL AS SIGNED ) BETWEEN + 20 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9088
SELECT ALL * FROM tab0 WHERE col1 + - CAST ( NULL AS INTEGER ) BETWEEN + 20 AND NULL
----

query I rowsort
SELECT + 4 AS col0 FROM tab0 WHERE NULL IS NULL
----
4
4
4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 72 ) >= col2 / col1 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL + MAX( ALL 22 ) AS col2 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL + MAX ( ALL 22 ) AS col2 FROM tab0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT - COUNT( ALL - 99 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT - COUNT ( ALL - 99 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT + SUM( ALL + col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9093
SELECT + SUM ( ALL + col1 ) AS col1 FROM tab2
----
195

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 94 * 80 ) = NULL
----

query I rowsort
SELECT DISTINCT 51 * col0 FROM tab2 WHERE NOT col0 IS NULL
----
2346
3264
3825

query III rowsort
SELECT * FROM tab0 WHERE 51 + + 64 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 * + 44 BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT COUNT( * ) + 95 FROM tab2 AS cor0 WHERE NOT ( 74 ) < NULL
----
95

skipif mysql # not compatible
query I rowsort label-9099
SELECT COUNT ( * ) + 95 FROM tab2 AS cor0 WHERE NOT ( 74 ) < NULL
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col0 FROM tab1 AS cor0 WHERE NOT ( - 58 ) IS NULL
----
16
16
16

query I rowsort
SELECT ALL col0 + ( - 55 ) FROM tab1 AS cor0
----
-4
30
36

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 73 < 92 / + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 76 + col1 BETWEEN 78 AND ( 47 * - 91 )
----

query I rowsort
SELECT col2 + - col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 36 AS col1 FROM tab0
----
-1692
-3564
-360

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NULL <= ( 94 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 * + col1 col1 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT 38 + - col2 AS col1 FROM tab0
----
-61
-9
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT MIN( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL <> col1 / - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT MIN ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL <> col1 / - col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 + + col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 + + col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + - 23 + + col0 FROM tab2 cor0
----
23
41
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9112
SELECT DISTINCT - + 84 DIV + CAST( + 76 * + 46 AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT - + 84 / + CAST ( + 76 * + 46 AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9113
SELECT CAST( col0 AS SIGNED ) + + 55 AS col1 FROM tab2 AS cor0
----
101
119
130

skipif mysql # not compatible
query I rowsort label-9113
SELECT CAST ( col0 AS INTEGER ) + + 55 AS col1 FROM tab2 AS cor0
----
101
119
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9114
SELECT ALL + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL + + COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL + + COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( + col1 * + col1 ) AND - col0
----

query I rowsort
SELECT DISTINCT - 66 FROM tab2 AS cor0 WHERE - col0 BETWEEN + col1 + - 25 AND - ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 25 col2 FROM tab2 AS cor0
----
-100
-71
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT MAX( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT MAX ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 42 * + col0 + + col2 col2 FROM tab1 AS cor0
----
-2046
-3511
-3754

query I rowsort
SELECT DISTINCT col0 + - 31 FROM tab1 AS cor0
----
20
54
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT + COUNT( ( 32 ) ) + + COUNT( * ) * - 31 AS col1 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9123
SELECT + COUNT ( ( 32 ) ) + + COUNT ( * ) * - 31 AS col1 FROM tab2 AS cor0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 * col0 col1 FROM tab0 AS cor0 WHERE ( col0 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9125
SELECT DISTINCT CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9125
SELECT DISTINCT CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9126
SELECT DISTINCT + COUNT( * ) * MAX( ALL - CAST( - ( + col1 ) AS SIGNED ) * - CAST( 41 AS SIGNED ) ) + - 56 DIV + COUNT( * ) AS col0 FROM tab1 cor0
----
-633

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT + COUNT ( * ) * MAX ( ALL - CAST ( - ( + col1 ) AS INTEGER ) * - CAST ( 41 AS INTEGER ) ) + - 56 / + COUNT ( * ) AS col0 FROM tab1 cor0
----
-633

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 >= col1 * col0 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 / ( ( + col0 ) * 2 ) + - 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT ALL COUNT( * ) - + ( + 93 ) AS col1 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL COUNT ( * ) - + ( + 93 ) AS col1 FROM tab1
----
-90

query III rowsort
SELECT * FROM tab0 WHERE col0 + - 23 BETWEEN col1 AND col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT DISTINCT + SUM( ALL + ( - 1 ) ) * + 69 FROM tab0
----
-207

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT + SUM ( ALL + ( - 1 ) ) * + 69 FROM tab0
----
-207

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 7 + 73 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( 0 * col1 ) >= + col1
----

query I rowsort
SELECT DISTINCT - 23 * + - col2 FROM tab0
----
1081
2277
230

query I rowsort
SELECT - 19 - + + 4 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT ALL 72 + - col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND 66
----

query I rowsort
SELECT 85 * - col2 + 85 FROM tab2 AS cor0
----
-1870
-3315
-4845

query I rowsort
SELECT + col1 + - col0 FROM tab2 AS cor0 WHERE NOT ( - col0 - - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9139
SELECT DISTINCT - COUNT( * ), - 89 AS col2 FROM tab0 AS cor0
----
-3
-89

skipif mysql # not compatible
query II rowsort label-9139
SELECT DISTINCT - COUNT ( * ), - 89 AS col2 FROM tab0 AS cor0
----
-3
-89

query I rowsort
SELECT 73 * + col0 FROM tab2 AS cor0
----
3358
4672
5475

query II rowsort
SELECT ALL + - 17, - 0 AS col0 FROM tab2 cor0
----
-17
0
-17
0
-17
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT - + MAX( - ( - 46 ) ) col2 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9144
SELECT DISTINCT - + MAX ( - ( - 46 ) ) col2 FROM tab1 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT 24 * COUNT( * ) AS col1 FROM tab0 cor0
----
72

skipif mysql # not compatible
query I rowsort label-9145
SELECT 24 * COUNT ( * ) AS col1 FROM tab0 cor0
----
72

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - - col0 + col1 * - col2 > ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 82 * - col1 AS col2, col1 AS col2 FROM tab0
----
-1722
21
-6642
81
-82
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT col1 * + - 45 * 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-9148
SELECT col1 * + - 45 * CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - AVG ( col2 ) col2 FROM tab2 WHERE NOT col0 + - + col2 > NULL
----
NULL

query I rowsort
SELECT + col1 * 94 - - 78 FROM tab0 WHERE NOT - col0 <> col0
----

query I rowsort
SELECT ALL - 33 AS col1 FROM tab1
----
-33
-33
-33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + col0 AND + - 12 + + ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT DISTINCT MAX( + - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT MAX ( + - col0 ) FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col1 FROM tab2
----
57
57
57

query I rowsort
SELECT 73 AS col1 FROM tab2 WHERE NOT col1 - - col2 > ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT - col0 DIV - 62 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9156
SELECT - col0 / - 62 AS col0 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL SUM( DISTINCT + - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL SUM ( DISTINCT + - col1 ) FROM tab2
----
-195

query I rowsort
SELECT DISTINCT + col1 + col0 + - col2 FROM tab1
----
-31
31
70

query I rowsort
SELECT DISTINCT col0 + - ( - + col2 ) AS col2 FROM tab0 cor0
----
196
62
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN col1 AND + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT DISTINCT - + 88 * - 66 + + COUNT( * ) FROM tab2 cor0
----
5811

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT - + 88 * - 66 + + COUNT ( * ) FROM tab2 cor0
----
5811

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT DISTINCT - + COUNT( - - 58 ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT - + COUNT ( - - 58 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT + MAX( ALL - 28 ) * + COUNT( * ) + + MIN( col2 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-25

skipif mysql # not compatible
query I rowsort label-9163
SELECT + MAX ( ALL - 28 ) * + COUNT ( * ) + + MIN ( col2 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-25

query II rowsort
SELECT DISTINCT col1 * - 61 + + - col1 AS col1, 54 FROM tab1 AS cor0
----
-2914
54
-310
54
-868
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT IN ( - ( 11 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9166
SELECT CAST( NULL AS DECIMAL ) + - ( + + CAST( + 38 AS SIGNED ) ) FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9166
SELECT CAST ( NULL AS REAL ) + - ( + + CAST ( + 38 AS INTEGER ) ) FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9167
SELECT DISTINCT - + SUM( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT - + SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9168
SELECT ALL + col1 / - CAST( - col0 AS DECIMAL ) + + 17 AS col2 FROM tab2 AS cor0 WHERE - + col1 >= ( - + 17 * - 12 + col1 ) AND NULL IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL + col1 / - CAST ( - col0 AS REAL ) + + 17 AS col2 FROM tab2 AS cor0 WHERE - + col1 >= ( - + 17 * - 12 + col1 ) AND NULL IN ( + col2 )
----

query I rowsort
SELECT DISTINCT 68 + + col0 FROM tab0 cor0
----
155
165
83

query I rowsort
SELECT col2 - + 21 AS col1 FROM tab2 AS cor0
----
19
2
37

query I rowsort
SELECT col1 * + 84 - - + col2 FROM tab0 AS cor0
----
1774
183
6851

query I rowsort
SELECT + col0 - - - col1 - + - 91 * col1 + + col1 FROM tab2 AS cor0
----
4687
6172
7071

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * - CAST( NULL AS SIGNED ) + + col1 col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9174
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + col1 col1 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9175
SELECT + col2 DIV - - col2 + - col1 - - ( + col0 ) FROM tab0 AS cor0
----
-65
67
97

skipif mysql # not compatible
query I rowsort label-9175
SELECT + col2 / - - col2 + - col1 - - ( + col0 ) FROM tab0 AS cor0
----
-65
67
97

query I rowsort
SELECT 86 - - col2 + - 2 + + col2 AS col0 FROM tab2 AS cor0
----
130
164
200

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT 97 - MIN( ALL 53 ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT 97 - MIN ( ALL 53 ) FROM tab1
----
44

query III rowsort
SELECT * FROM tab2 WHERE + col2 <= NULL
----

query I rowsort
SELECT 22 + col1 FROM tab1
----
27
36
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT + MIN( ALL col1 ) AS col2 FROM tab2 WHERE - 41 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT + MIN ( ALL col1 ) AS col2 FROM tab2 WHERE - 41 = NULL
----
NULL

query I rowsort
SELECT - ( - col0 ) + 98 + col2 + - + col1 * + col0 AS col1 FROM tab1
----
-183
-4020
-469

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT ( 61 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT ALL 98 / - 41 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL 98 / - 41 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 21 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT + col2 * + 81 * + 43 * + col2 AS col0 FROM tab1
----
12124323
16105392
32099328

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9186
SELECT - col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-9186
SELECT - col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL MIN( + col1 ) * + COUNT( + - 72 ) AS col0 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL MIN ( + col1 ) * + COUNT ( + - 72 ) AS col0 FROM tab2 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT + CAST( - 58 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

skipif mysql # not compatible
query I rowsort label-9188
SELECT + CAST ( - 58 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * col1 col2, + col1 AS col1 FROM tab2 AS cor0
----
2601
51
4489
67
5929
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9190
SELECT - - COUNT( * ) * 3 + - CAST( NULL AS DECIMAL ) * - 28 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9190
SELECT - - COUNT ( * ) * 3 + - CAST ( NULL AS REAL ) * - 28 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9191
SELECT ALL + col2 DIV - + 99 + - + col1 AS col0, col0 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
-2
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-9191
SELECT ALL + col2 / - + 99 + - + col1 AS col0, col0 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
-2
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT + + SUM( ALL + 62 ) * 87 * + - MIN( DISTINCT 69 ) FROM tab0 AS cor0
----
-1116558

skipif mysql # not compatible
query I rowsort label-9192
SELECT + + SUM ( ALL + 62 ) * 87 * + - MIN ( DISTINCT 69 ) FROM tab0 AS cor0
----
-1116558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - - col0 col0 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 / + 34 * + col2 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 4 + - + col2 AS col1 FROM tab1 AS cor0
----
-55
-64
-92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 1 + - + col1 BETWEEN NULL AND ( - ( 83 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT + COUNT( * ) + + - MIN( - col1 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9197
SELECT + COUNT ( * ) + + - MIN ( - col1 ) FROM tab2 AS cor0
----
80

query I rowsort
SELECT - 15 + - 31 FROM tab0
----
-46
-46
-46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + - 74 * - 93 / - - 8 NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + - col0 * 72 + - - ( - col2 ) AS col1 FROM tab0
----
-1046
-6253
-7082

query II rowsort
SELECT DISTINCT - col2, 19 AS col2 FROM tab2
----
-23
19
-40
19
-58
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9202
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 NOT BETWEEN NULL AND - + CAST( NULL AS SIGNED ) * - 19 OR ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9202
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 NOT BETWEEN NULL AND - + CAST ( NULL AS INTEGER ) * - 19 OR ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + + + col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9205
SELECT - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9206
SELECT + COUNT( * ) AS col0, 23 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-9206
SELECT + COUNT ( * ) AS col0, 23 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----
0
0

query I rowsort
SELECT - - 63 * col2 + + col0 - + col0 * - col2 FROM tab1 cor0
----
10563
10995
8817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + + 87 ) col2 FROM tab2 cor0 WHERE NOT + ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT col0 + - 58 AS col2 FROM tab0 AS cor0
----
-43
29
39

query I rowsort
SELECT ALL col2 + col0 * + + col1 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT DISTINCT - MAX( DISTINCT + 18 ) AS col2 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT - MAX ( DISTINCT + 18 ) AS col2 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - + col2 + - 40 + + 62 + + col0 * + 50 AS col2 FROM tab1 AS cor0
----
2476
4213
4504

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT - + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = - col2
----
0

skipif mysql # not compatible
query I rowsort label-9213
SELECT - + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = - col2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 28, 12 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col2 FROM tab1 WHERE + - 79 > NULL
----

query I rowsort
SELECT ALL 26 * col2 FROM tab1
----
1534
1768
2496

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 NOT IN ( 75 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9218
SELECT COUNT( * ) * - - 97 DIV + + 92 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9218
SELECT COUNT ( * ) * - - 97 / + + 92 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 7 * - + col2 FROM tab1
----
-413
-476
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT + 2 * - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9220
SELECT + 2 * - COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL + MIN( - 8 ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL + MIN ( - 8 ) FROM tab0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9222
SELECT - COUNT( + - CAST( - + 76 AS SIGNED ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9222
SELECT - COUNT ( + - CAST ( - + 76 AS INTEGER ) ) FROM tab1
----
-3

query I rowsort
SELECT + + ( - + 98 ) * - - col1 FROM tab2 AS cor0
----
-4998
-6566
-7546

query I rowsort
SELECT - col2 * - col2 + + 67 AS col0 FROM tab1 cor0
----
3548
4691
9283

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + ( ( + col2 ) ) ) BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT ALL - COUNT( * ) * - 2 + + + COUNT( ALL - + col0 ) FROM tab1 AS cor0 WHERE + 87 > + - col0 / + col1
----
9

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL - COUNT ( * ) * - 2 + + + COUNT ( ALL - + col0 ) FROM tab1 AS cor0 WHERE + 87 > + - col0 / + col1
----
9

query II rowsort
SELECT col0, col2 * col1 AS col1 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9228
SELECT ALL - + CAST( - col2 AS SIGNED ) * + ( - + col0 ) * + 4 + + - col2 FROM tab0 AS cor0 WHERE NOT 53 * col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - + CAST ( - col2 AS INTEGER ) * + ( - + col0 ) * + 4 + + - col2 FROM tab0 AS cor0 WHERE NOT 53 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 32 + - - 74 FROM tab2 AS cor0
----
42

query I rowsort
SELECT 88 FROM tab1 WHERE + 95 * col1 + 3 IS NOT NULL
----
88
88
88

onlyif mysql # DIV for integer division: 
query II rowsort label-9231
SELECT DISTINCT 99 DIV - 30 AS col0, + col1 * - - 26 FROM tab1
----
-3
1222
-3
130
-3
364

skipif mysql # not compatible
query II rowsort label-9231
SELECT DISTINCT 99 / - 30 AS col0, + col1 * - - 26 FROM tab1
----
-3
1222
-3
130
-3
364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 col0 FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + col2 col1, + col2 FROM tab0
----
100
99
128
47
31
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT DISTINCT - col1 * + CAST( col2 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT - col1 * + CAST ( col2 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-9235
SELECT ALL + - COUNT( * ) + + + 55 AS col0, 18 FROM tab2 AS cor0
----
52
18

skipif mysql # not compatible
query II rowsort label-9235
SELECT ALL + - COUNT ( * ) + + + 55 AS col0, 18 FROM tab2 AS cor0
----
52
18

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT col2 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9237
SELECT * FROM tab1 cor0 WHERE col1 * - ( + - col2 ) <> ( - 98 + + 23 + col0 * - CAST( NULL AS SIGNED ) * + ( 0 ) / + 75 + 76 )
----

skipif mysql # not compatible
query III rowsort label-9237
SELECT * FROM tab1 cor0 WHERE col1 * - ( + - col2 ) <> ( - 98 + + 23 + col0 * - CAST ( NULL AS INTEGER ) * + ( 0 ) / + 75 + 76 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col1 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT ALL - COUNT( - + 11 ) FROM tab0 AS cor0 WHERE - 95 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - COUNT ( - + 11 ) FROM tab0 AS cor0 WHERE - 95 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9240
SELECT - + col1, - col1 DIV + 96 * - col2 + + col1 * - col0 AS col2 FROM tab1 cor0
----
-14
-714
-47
-4277
-5
-425

skipif mysql # not compatible
query II rowsort label-9240
SELECT - + col1, - col1 / + 96 * - col2 + + col1 * - col0 AS col2 FROM tab1 cor0
----
-14
-714
-47
-4277
-5
-425

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT + COUNT( ALL + ( - - col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9242
SELECT + COUNT ( ALL + ( - - col2 ) ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col2, 79 AS col0 FROM tab0 AS cor0
----
10
79
47
79
99
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9244
SELECT 65 * - + ( + ( - + CAST( - col0 AS SIGNED ) ) ) * - col1 AS col1 FROM tab2
----
152490
320320
326625

skipif mysql # not compatible
query I rowsort label-9244
SELECT 65 * - + ( + ( - + CAST ( - col0 AS INTEGER ) ) ) * - col1 AS col1 FROM tab2
----
152490
320320
326625

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT MIN( DISTINCT - - 10 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9245
SELECT MIN ( DISTINCT - - 10 ) FROM tab0
----
10

query II rowsort
SELECT 55 * - col1 AS col0, + col1 FROM tab2
----
-2805
51
-3685
67
-4235
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT + COUNT( ALL - + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9247
SELECT + COUNT ( ALL - + col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT DISTINCT + MIN( DISTINCT 45 ) * 41 AS col0 FROM tab0
----
1845

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT + MIN ( DISTINCT 45 ) * 41 AS col0 FROM tab0
----
1845

query I rowsort
SELECT DISTINCT ( - col2 ) + - col1 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - ( col2 ) AS col0, col0 AS col2 FROM tab2
----
-23
46
-40
64
-58
75

query I rowsort
SELECT + col0 * - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-38367
-97
-98415

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - + 72 * col0 AS col2 FROM tab1 cor0
----
-3672
-6120
-6552

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NULL <> + + col1 AND NOT col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT ALL + COUNT( ALL - + 25 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL + COUNT ( ALL - + 25 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT + col2 DIV - + col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9256
SELECT + col2 / - + col0 FROM tab0
----
-1
-3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9257
SELECT ALL MIN( DISTINCT - CAST( + col1 AS SIGNED ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL MIN ( DISTINCT - CAST ( + col1 AS INTEGER ) ) FROM tab0
----
-81

query I rowsort
SELECT ALL - 67 + - col0 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT - COUNT( + col2 ) + - + 66 col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9259
SELECT - COUNT ( + col2 ) + - + 66 col0 FROM tab1 AS cor0
----
-69

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > col1 * - col2
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE - col1 * - - 94 * + + col1 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL + 36 * + + ( - 38 ) + 84 FROM tab2 AS cor0
----
-1284
-1284
-1284

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN col1 * + col0 AND NULL
----

query I rowsort
SELECT + + 41 - + + 52 / - col1 AS col0 FROM tab2 AS cor0 WHERE col2 + - col0 IS NULL
----

query I rowsort
SELECT + 38 * - + col1 + + col0 FROM tab0 AS cor0
----
-3063
-711
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9266
SELECT ALL - - COUNT( * ) AS col2 FROM tab2 WHERE NOT CAST( + col0 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 WHERE NOT CAST ( + col0 AS INTEGER ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL - SUM( col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL - SUM ( col2 ) AS col0 FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT + 72 DIV - - 41 - - 86 AS col0 FROM tab0 cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-9268
SELECT + 72 / - - 41 - - 86 AS col0 FROM tab0 cor0
----
87
87
87

query I rowsort
SELECT ALL col0 + - + col2 AS col1 FROM tab2 AS cor0 WHERE - 63 >= 64 * + col2
----

query I rowsort
SELECT + ( col0 ) - + col2 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 59 / 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT DISTINCT col0 + CAST( + 42 AS SIGNED ) * col1 + + col0 FROM tab0
----
1056
236
3432

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT col0 + CAST ( + 42 AS INTEGER ) * col1 + + col0 FROM tab0
----
1056
236
3432

query I rowsort
SELECT - col1 * + ( + col0 ) - col0 FROM tab1 AS cor0
----
-4368
-510
-765

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9274
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - 96 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - CAST ( NULL AS REAL ) / - 96 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 + - - 41 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9276
SELECT col1 DIV - - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9276
SELECT col1 / - - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT DISTINCT + COUNT( DISTINCT col2 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9277
SELECT DISTINCT + COUNT ( DISTINCT col2 ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT + SUM( + 73 ) * CAST( + 43 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
9417

skipif mysql # not compatible
query I rowsort label-9278
SELECT + SUM ( + 73 ) * CAST ( + 43 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
9417

query I rowsort
SELECT + - col2 * - 50 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - col1, + col2 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT ALL - col0 FROM tab1 WHERE NULL < col2 + + - col1 * - CAST( NULL AS SIGNED ) + - - col1 + - col1 * + - 66
----

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - col0 FROM tab1 WHERE NULL < col2 + + - col1 * - CAST ( NULL AS INTEGER ) + - - col1 + - col1 * + - 66
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT DISTINCT SUM( ALL - - 44 ) AS col0 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT SUM ( ALL - - 44 ) AS col0 FROM tab2
----
132

query I rowsort
SELECT - col2 * + 96 FROM tab1
----
-5664
-6528
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT - SUM( ALL + col0 ) + - COUNT( * ) FROM tab0
----
-202

skipif mysql # not compatible
query I rowsort label-9285
SELECT - SUM ( ALL + col0 ) + - COUNT ( * ) FROM tab0
----
-202

query II rowsort
SELECT ALL 90 + 36, col0 AS col0 FROM tab0 AS cor0
----
126
15
126
87
126
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1 - + 37, + 37, 2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9288
SELECT DISTINCT - CAST( - ( - + COUNT( * ) ) AS SIGNED ) + + 78 AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT - CAST ( - ( - + COUNT ( * ) ) AS INTEGER ) + + 78 AS col0 FROM tab2 AS cor0
----
75

query II rowsort
SELECT ALL - + 51 + - - col1, - col0 AS col0 FROM tab0 cor0
----
-30
-87
-50
-97
30
-15

query I rowsort
SELECT DISTINCT + + col1 + + - col0 * - col2 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT col2 * - + 91 FROM tab2
----
-2093
-3640
-5278

query I rowsort
SELECT col0 * + col0 - - - 53 FROM tab1
----
2548
7172
8228

query I rowsort
SELECT ALL + col2 * - col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT 56 + - MAX( - col0 ) AS col2 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-9294
SELECT 56 + - MAX ( - col0 ) AS col2 FROM tab0
----
71

query I rowsort
SELECT + 58 + + - col1 AS col1 FROM tab2
----
-19
-9
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9296
SELECT * FROM tab1 WHERE NULL <= col1 * CAST( + - ( + CAST( col0 AS SIGNED ) ) AS SIGNED ) + + - col0
----

skipif mysql # not compatible
query III rowsort label-9296
SELECT * FROM tab1 WHERE NULL <= col1 * CAST ( + - ( + CAST ( col0 AS INTEGER ) ) AS INTEGER ) + + - col0
----

query I rowsort
SELECT col0 + - col2 + + col1 * + col0 FROM tab0
----
1183
1904
95

query I rowsort
SELECT - 40 * 74 * - col2 * col0 + col2 + - + col0 * + ( col2 ) * 47 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND + + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 61, col0 * - col1 * - col0 col2 FROM tab1
----
61
36125
61
36414
61
389207

query I rowsort
SELECT + 44 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - 81 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT DISTINCT - + COUNT( * ) AS col1, COUNT( DISTINCT 39 ) FROM tab0 cor0
----
-3
1

skipif mysql # not compatible
query II rowsort label-9303
SELECT DISTINCT - + COUNT ( * ) AS col1, COUNT ( DISTINCT 39 ) FROM tab0 cor0
----
-3
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > NULL OR NOT + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9305
SELECT - ( - SUM( + col2 ) ) DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9305
SELECT - ( - SUM ( + col2 ) ) / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-40

query II rowsort
SELECT + - 38 AS col1, - 91 FROM tab1 AS cor0
----
-38
-91
-38
-91
-38
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT SUM( - + 36 ) FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-9307
SELECT SUM ( - + 36 ) FROM tab2
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9308
SELECT + AVG ( CAST( NULL AS SIGNED ) ) * - + 3 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) * - + 3 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT ( - col2 ) * - col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE NOT - ( col1 ) * + col2 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT - - COUNT( * ) FROM tab2 cor0 WHERE ( + + col2 < + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-9312
SELECT - - COUNT ( * ) FROM tab2 cor0 WHERE ( + + col2 < + col1 )
----
3

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 97 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9314
SELECT ALL - 31, - CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
-31
-59
-31
-68
-31
-96

skipif mysql # not compatible
query II rowsort label-9314
SELECT ALL - 31, - CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
-31
-59
-31
-68
-31
-96

query II rowsort
SELECT DISTINCT + col0, + 3 * - col1 + col0 * - ( - 54 ) + + col0 AS col1 FROM tab0 AS cor0
----
15
582
87
4722
97
5332

query I rowsort
SELECT DISTINCT - + col2 + + col2 - + 42 AS col2 FROM tab1 AS cor0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9317
SELECT ALL + col2 + + col2 DIV col0 * - 99 - - - col1 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL + col2 + + col2 / col0 * - 99 - - - col1 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

query II rowsort
SELECT - col2 * + - 72 + + col2 AS col0, 60 AS col1 FROM tab0 AS cor0 WHERE - ( + 49 ) IS NOT NULL
----
3431
60
7227
60
730
60

query I rowsort
SELECT + + col2 + - col0 * + - col0 * - + 98 AS col1 FROM tab1 cor0
----
-254802
-707991
-811470

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 cor0 WHERE ( - 17 + + + col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + + col2 - - col0
----

query I rowsort
SELECT - 46 + + 24 AS col0 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT col0 + + col2 * 84 FROM tab0 AS cor0
----
3963
8413
927

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 90 * col2 = ( NULL )
----

query I rowsort
SELECT DISTINCT + 58 * + - col2 * + 88 AS col0 FROM tab0
----
-239888
-505296
-51040

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE 25 * - + col2 IS NOT NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9327
SELECT DISTINCT * FROM tab2 WHERE NOT + 59 * - 58 + + - col2 + + CAST( col2 AS SIGNED ) / 76 * + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9327
SELECT DISTINCT * FROM tab2 WHERE NOT + 59 * - 58 + + - col2 + + CAST ( col2 AS INTEGER ) / 76 * + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT ALL + 99 * CAST( col2 AS SIGNED ) - - col2 AS col2 FROM tab2
----
2300
4000
5800

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL + 99 * CAST ( col2 AS INTEGER ) - - col2 AS col2 FROM tab2
----
2300
4000
5800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9329
SELECT * FROM tab1 WHERE - + col0 - + CAST( NULL AS SIGNED ) + + - col1 + + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9329
SELECT * FROM tab1 WHERE - + col0 - + CAST ( NULL AS INTEGER ) + + - col1 + + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - - 65 * - col0 - + - col1 + + col1 FROM tab1
----
-27615
-277911
-46382

query I rowsort
SELECT + 77 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
77
77
77

query I rowsort
SELECT ALL + 15 + - col1 + - 92 FROM tab2 AS cor0
----
-128
-144
-154

query I rowsort
SELECT DISTINCT - 13 * - + 60 + + 4 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9334
SELECT DISTINCT - - MAX( - + col2 ) AS col0, - 52 AS col1 FROM tab1 AS cor0
----
-59
-52

skipif mysql # not compatible
query II rowsort label-9334
SELECT DISTINCT - - MAX ( - + col2 ) AS col0, - 52 AS col1 FROM tab1 AS cor0
----
-59
-52

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 23 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = 50 * + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9337
SELECT ALL - 2 DIV + - 35 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL - 2 / + - 35 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + + 55 * + 46 AS col2 FROM tab1 AS cor0
----
2530
2530
2530

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL COUNT( * ) * - 85 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL COUNT ( * ) * - 85 FROM tab0 AS cor0
----
-255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9340
SELECT DISTINCT + + CAST( + 74 AS SIGNED ) AS col2 FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT + + CAST ( + 74 AS INTEGER ) AS col2 FROM tab2 cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9341
SELECT ( + + col0 ) / - - col1 - - + CAST( NULL AS SIGNED ) - 7 / + col0, 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-9341
SELECT ( + + col0 ) / - - col1 - - + CAST ( NULL AS INTEGER ) - 7 / + col0, col0 col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9342
SELECT ALL - MIN( + col2 ) DIV + 50 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL - MIN ( + col2 ) / + 50 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9343
SELECT DISTINCT + COUNT( * ) DIV + + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT + COUNT ( * ) / + + COUNT ( * ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9344
SELECT + 33 AS col1, CAST( - col2 AS SIGNED ) * - 91 FROM tab0
----
33
4277
33
9009
33
910

skipif mysql # not compatible
query II rowsort label-9344
SELECT + 33 AS col1, CAST ( - col2 AS INTEGER ) * - 91 FROM tab0
----
33
4277
33
9009
33
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - 15 * - - col0 AS col2 FROM tab1
----
51
-765
85
-1275
91
-1365

query III rowsort
SELECT * FROM tab2 WHERE NOT 55 + - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9347
SELECT - MIN( ALL - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT - MIN ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9348
SELECT ALL - MIN( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - MIN ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 55 col2, - 6 FROM tab0
----
-55
-6

query I rowsort
SELECT - + col2 * + - col1 + - col2 FROM tab1 AS cor0
----
1248
236
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT + - SUM( 54 ) col2 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9351
SELECT + - SUM ( 54 ) col2 FROM tab2 AS cor0
----
-162

query I rowsort
SELECT ALL - ( + + 3 ) FROM tab2 cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT col1 + - - 18 + + ( - col1 ) - - 57 AS col1 FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9354
SELECT COUNT( * ) + - COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-9354
SELECT COUNT ( * ) + - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0
3

query I rowsort
SELECT ALL 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query II rowsort
SELECT col2 * 5 AS col1, ( - - col1 ) AS col0 FROM tab0
----
235
81
495
1
50
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9357
SELECT DISTINCT + col1 DIV - - 41 + col0 + + 53 FROM tab0 AS cor0
----
140
150
69

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT + col1 / - - 41 + col0 + + 53 FROM tab0 AS cor0
----
140
150
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9358
SELECT DISTINCT - 42 + - 35 DIV - col1 + + + col1 AS col1 FROM tab2 AS cor0
----
25
35
9

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT - 42 + - 35 / - col1 + + + col1 AS col1 FROM tab2 AS cor0
----
25
35
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT ALL - COUNT( * ) + - - 25 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL - COUNT ( * ) + - - 25 FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9361
SELECT COUNT( * ) - + + 83 AS col2, - 90 FROM tab0 cor0
----
-80
-90

skipif mysql # not compatible
query II rowsort label-9361
SELECT COUNT ( * ) - + + 83 AS col2, - 90 FROM tab0 cor0
----
-80
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9362
SELECT DISTINCT - + CAST( - - col2 AS SIGNED ) + + - col2 AS col2 FROM tab1 cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT - + CAST ( - - col2 AS INTEGER ) + + - col2 AS col2 FROM tab1 cor0
----
-118
-136
-192

query I rowsort
SELECT ALL col2 + + col2 * - + col2 FROM tab0 AS cor0
----
-2162
-90
-9702

query I rowsort
SELECT col1 * + 23 + - 7 AS col1 FROM tab1
----
1074
108
315

query I rowsort
SELECT col2 + + col0 + - col2 * - col0 AS col0 FROM tab0
----
767
967
9799

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT + ( MIN( DISTINCT + 0 ) ) + - COUNT( * ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9366
SELECT + ( MIN ( DISTINCT + 0 ) ) + - COUNT ( * ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT ALL - col0 - + - col1 AS col1 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT + 80 + - - COUNT( * ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-9368
SELECT + 80 + - - COUNT ( * ) FROM tab2
----
83

query I rowsort
SELECT DISTINCT - + col2 / - 91 + + - col1 - - col1 FROM tab1 WHERE + col0 IS NULL AND col2 * - 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT DISTINCT + SUM( - + ( + col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT + SUM ( - + ( + col0 ) ) FROM tab0
----
-199

query II rowsort
SELECT DISTINCT col1, col2 AS col0 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9372
SELECT + col2 + + ( CAST( - + col1 AS SIGNED ) ) + + 5 FROM tab1
----
26
59
87

skipif mysql # not compatible
query I rowsort label-9372
SELECT + col2 + + ( CAST ( - + col1 AS INTEGER ) ) + + 5 FROM tab1
----
26
59
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9373
SELECT DISTINCT - COUNT( * ) AS col2, + 28 FROM tab2
----
-3
28

skipif mysql # not compatible
query II rowsort label-9373
SELECT DISTINCT - COUNT ( * ) AS col2, + 28 FROM tab2
----
-3
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9374
SELECT COUNT( ( + - CAST( NULL AS SIGNED ) ) ) * + CAST( NULL AS SIGNED ) + + - AVG ( ALL + col1 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT COUNT ( ( + - CAST ( NULL AS INTEGER ) ) ) * + CAST ( NULL AS INTEGER ) + + - AVG ( ALL + col1 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT + ( CAST( - - col2 AS SIGNED ) ) col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9375
SELECT + ( CAST ( - - col2 AS INTEGER ) ) col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT DISTINCT ( - 62 ) + + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

skipif mysql # not compatible
query I rowsort label-9376
SELECT DISTINCT ( - 62 ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-71

query I rowsort
SELECT ALL col2 * + + 87 FROM tab2
----
2001
3480
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE col2 >= - + col1 * + - 1 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 >= - + col1 * + - 1 + + col0
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT DISTINCT - 64 * + MAX( DISTINCT 16 ) FROM tab1 AS cor0
----
-1024

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT - 64 * + MAX ( DISTINCT 16 ) FROM tab1 AS cor0
----
-1024

query I rowsort
SELECT DISTINCT - 25 * 97 FROM tab2 AS cor0
----
-2425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - col1 + + col2 col1 FROM tab0
----
-200
-3760
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9383
SELECT ALL * FROM tab2 WHERE NOT ( - CAST( col0 AS DECIMAL ) * + col0 * + ( - col2 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9383
SELECT ALL * FROM tab2 WHERE NOT ( - CAST ( col0 AS REAL ) * + col0 * + ( - col2 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 35 AS col0, + 76 FROM tab1
----
35
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT - 6 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9385
SELECT - 6 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query II rowsort label-9387
SELECT ALL + + COUNT( * ) AS col0, COUNT( * ) col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9387
SELECT ALL + + COUNT ( * ) AS col0, COUNT ( * ) col2 FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9388
SELECT - CAST( NULL AS SIGNED ) + - + 21, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9388
SELECT - CAST ( NULL AS INTEGER ) + - + 21, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9389
SELECT CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT + COUNT( 81 ) + - + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9390
SELECT + COUNT ( 81 ) + - + COUNT ( * ) FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 66 <= NULL
----

query I rowsort
SELECT + 23 + 37 AS col0 FROM tab0 cor0
----
60
60
60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( - col0 + 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT + 30 + + COUNT( * ) col2 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9394
SELECT + 30 + + COUNT ( * ) col2 FROM tab0 AS cor0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9395
SELECT SUM( - col2 ) * + SUM( col0 ) + 46 + + - ( CAST( 25 AS SIGNED ) ) - - 54 FROM tab1 AS cor0
----
-50546

skipif mysql # not compatible
query I rowsort label-9395
SELECT SUM ( - col2 ) * + SUM ( col0 ) + 46 + + - ( CAST ( 25 AS INTEGER ) ) - - 54 FROM tab1 AS cor0
----
-50546

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 * 8 + - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 - - col2 * 97 - + + 40 FROM tab1 AS cor0
----
5742
6624
9368

query I rowsort
SELECT ALL - + 87 + + col1 * + - col1 + ( - + col1 ) FROM tab2 AS cor0
----
-2739
-4643
-6093

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT + SUM( - 21 ) + + - MIN( col2 ) FROM tab1
----
-122

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT + SUM ( - 21 ) + + - MIN ( col2 ) FROM tab1
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT - 59 * - - 60 + + MIN( ALL + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9401
SELECT - 59 * - - 60 + + MIN ( ALL + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9402
SELECT DISTINCT CAST( col2 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + - ( + - col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT - - 19 AS col0 FROM tab0 AS cor0
----
19

query II rowsort
SELECT ALL + - 1, 83 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT - SUM( DISTINCT + 91 ) FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9406
SELECT - SUM ( DISTINCT + 91 ) FROM tab2 AS cor0
----
-91

query I rowsort
SELECT - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 WHERE NOT - - 64 + - 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9409
SELECT - 68 DIV COUNT( * ) FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-9409
SELECT - 68 / COUNT ( * ) FROM tab0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL - COUNT( * ) FROM tab0 WHERE + col1 * - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL - COUNT ( * ) FROM tab0 WHERE + col1 * - col1 < NULL
----
0

query I rowsort
SELECT col2 + 18 + - col0 FROM tab0
----
-59
20
50

query I rowsort
SELECT ALL 14 + col0 + - + col0 * + ( + col2 ) AS col1 FROM tab2
----
-2482
-4261
-998

query II rowsort
SELECT - col0 + + - col0 AS col1, col0 * + col2 FROM tab1 AS cor0
----
-102
4896
-170
5015
-182
6188

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NULL < col1
----

query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9416
SELECT + col2 * + + col0 * col2 * + col2 DIV + col2 AS col2 FROM tab0
----
33135
8700
950697

skipif mysql # not compatible
query I rowsort label-9416
SELECT + col2 * + + col0 * col2 * + col2 / + col2 AS col2 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT DISTINCT - - col2 * - + 59 FROM tab0 AS cor0
----
-2773
-5841
-590

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 53 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT - + COUNT( * ) - SUM( ALL - 4 ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9419
SELECT - + COUNT ( * ) - SUM ( ALL - 4 ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9420
SELECT ALL + col2 + + 13 * + CAST( NULL AS SIGNED ) AS col0, 6 DIV 36 * 71 * 36 + + - col2 FROM tab2 cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-9420
SELECT ALL + col2 + + 13 * + CAST ( NULL AS INTEGER ) AS col0, 6 / 36 * 71 * 36 + + - col2 FROM tab2 cor0
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT DISTINCT + col2 DIV - - col0 + - 51 FROM tab1 AS cor0
----
-50
-51

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + col2 / - - col0 + - 51 FROM tab1 AS cor0
----
-50
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9422
SELECT + 9 + + + ( COUNT( * ) ) AS col0, - 15 AS col0 FROM tab0 AS cor0
----
12
-15

skipif mysql # not compatible
query II rowsort label-9422
SELECT + 9 + + + ( COUNT ( * ) ) AS col0, - 15 AS col0 FROM tab0 AS cor0
----
12
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 + - col1 + + col1 - + 75 * - col2 col2 FROM tab0 AS cor0
----
3604
7504
829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9424
SELECT + - col0 / ( + col2 ) / + + col0 * - - col2 + - col0 - - CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT + - col0 / ( + col2 ) / + + col0 * - - col2 + - col0 - - CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2, + 87 + + col1 * 33 AS col2 FROM tab1
----
59
252
68
1638
96
549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 16 ) col0 FROM tab0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 97 + - - 92 col2 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9428
SELECT 18 AS col0, - COUNT( * ) AS col0 FROM tab1
----
18
-3

skipif mysql # not compatible
query II rowsort label-9428
SELECT 18 AS col0, - COUNT ( * ) AS col0 FROM tab1
----
18
-3

query II rowsort
SELECT col2, - col1 + + col0 AS col2 FROM tab0
----
10
66
47
-66
99
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT ALL MAX( + + ( col2 ) ) col0 FROM tab0 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9430
SELECT ALL MAX ( + + ( col2 ) ) col0 FROM tab0 cor0
----
99

query II rowsort
SELECT DISTINCT + col1, + 96 FROM tab1 AS cor0
----
14
96
47
96
5
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 52 col0, 50 col2 FROM tab2 AS cor0
----
52
50
52
50
52
50

query I rowsort
SELECT + 35 * + col2 AS col1 FROM tab0 AS cor0
----
1645
3465
350

query I rowsort
SELECT DISTINCT - + 66 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-66

query I rowsort
SELECT ALL - col1 + + 26 FROM tab1 AS cor0
----
-21
12
21

query I rowsort
SELECT ALL + 62 * + col2 + + col0 + 93 AS col2 FROM tab0 cor0
----
3022
6328
800

query I rowsort
SELECT - col2 + + col1 + + ( + 45 ) * 46 FROM tab0 AS cor0
----
1972
2081
2104

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT DISTINCT - MAX( col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT - MAX ( col2 ) AS col1 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT + ( 30 ) AS col0 FROM tab1 AS cor0
----
30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( col1 ) <= NULL
----

query I rowsort
SELECT 70 + col2 AS col1 FROM tab2
----
110
128
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT 78 + + COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-9442
SELECT 78 + + COUNT ( * ) FROM tab1
----
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + 40 * + ( - col0 ) + col0
----

query I rowsort
SELECT - AVG ( 54 ) * 47 AS col2 FROM tab2 WHERE col1 IN ( + col2, 94 * + col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 NOT BETWEEN - col1 / - - col0 AND NULL
----

query I rowsort
SELECT + col2 * + col1 / + col1 * + 47 + col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9447
SELECT + 76 col1, COUNT( * ) FROM tab1
----
76
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9447
SELECT + 76 col1, COUNT ( * ) FROM tab1
----
76
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL >= col0 * + - 70
----

query I rowsort
SELECT ALL - - col0 * - 10 + col1 + + 46 AS col1 FROM tab2 AS cor0
----
-363
-517
-637

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9451
SELECT - + COUNT( * ) - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT - + COUNT ( * ) - + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL - 75 + - col2 AS col1 FROM tab0 AS cor0
----
-122
-174
-85

query I rowsort
SELECT + - col0 * 43 * col2 + + - 67 AS col2 FROM tab0 cor0
----
-30382
-37477
-412996

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= ( col2 )
----

query II rowsort
SELECT - col2 * - col0 * col0 * - - 59 + - 7 + - col0 * - - col1 + + 62 * - col0 * - 85 * + 25 AS col1, + col2 AS col0 FROM tab1 AS cor0 WHERE - 18 + col0 IS NULL
----

query I rowsort
SELECT ALL 19 AS col0 FROM tab1 cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT - MIN( - 73 ) * + + 9 FROM tab1 AS cor0
----
657

skipif mysql # not compatible
query I rowsort label-9459
SELECT - MIN ( - 73 ) * + + 9 FROM tab1 AS cor0
----
657

query I rowsort
SELECT - - col1 * + 38 FROM tab1 AS cor0
----
1786
190
532

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT - + MAX( DISTINCT + - 29 ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9461
SELECT - + MAX ( DISTINCT + - 29 ) FROM tab1 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT ALL + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST( 34 AS SIGNED ) * - col2 * - ( col2 )
----

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - CAST ( 34 AS INTEGER ) * - col2 * - ( col2 )
----

query I rowsort
SELECT + - 71 AS col0 FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL + MIN( ALL + - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + MIN ( ALL + - col2 ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 WHERE - - 80 <= - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT - + COUNT( * ) * + 6 * 9 FROM tab0 WHERE NOT + - col0 + - 11 > + - col1
----
-108

skipif mysql # not compatible
query I rowsort label-9467
SELECT - + COUNT ( * ) * + 6 * 9 FROM tab0 WHERE NOT + - col0 + - 11 > + - col1
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-9468
SELECT ALL - col0 DIV - 33 AS col0 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL - col0 / - 33 AS col0 FROM tab1
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT ALL COUNT( DISTINCT + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL COUNT ( DISTINCT + col1 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT DISTINCT - col1 AS col2, - ( + + col0 ) FROM tab0
----
-1
-97
-21
-87
-81
-15

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 83 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9472
SELECT CAST( + - COUNT( * ) AS SIGNED ) * + COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9472
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT DISTINCT ( + + MAX( ALL 0 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT ( + + MAX ( ALL 0 ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - 44 - + 19 + col2 - - col0 * col1 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT - MAX( DISTINCT - col0 ) + 2 AS col2 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-9475
SELECT - MAX ( DISTINCT - col0 ) + 2 AS col2 FROM tab2
----
48

query II rowsort
SELECT col0 AS col1, col1 AS col0 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9477
SELECT + COUNT( + CAST( - 72 AS SIGNED ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9477
SELECT + COUNT ( + CAST ( - 72 AS INTEGER ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - ( - 16 ) IS NULL
----

query I rowsort
SELECT ALL + col2 + 61 FROM tab2 cor0
----
101
119
84

query II rowsort
SELECT ALL - col2 AS col2, 98 AS col1 FROM tab1 AS cor0
----
-59
98
-68
98
-96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT - COUNT( ALL col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9481
SELECT - COUNT ( ALL col2 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ( + COUNT( * ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9482
SELECT ( + COUNT ( * ) ) col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT ALL + CAST( - - 39 AS SIGNED ) FROM tab1
----
39
39
39

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL + CAST ( - - 39 AS INTEGER ) FROM tab1
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9484
SELECT col1 + - ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT col1 + - ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - col0 + col2, 48 AS col2 FROM tab2
----
-17
48
-23
48
-24
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT ALL col2 * - col0 DIV + - col0 AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL col2 * - col0 / + - col0 AS col0 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9487
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL ) > - 10 * + 71 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 + + col0 col1 FROM tab0
----
141
151
69

query I rowsort
SELECT 95 + + 37 * - col1 AS col2 FROM tab2
----
-1792
-2384
-2754

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9491
SELECT ALL * FROM tab2 WHERE col1 + + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9491
SELECT ALL * FROM tab2 WHERE col1 + + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 82 - - col2 AS col1 FROM tab2
----
-24
-42
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ALL - COUNT( * ) * 41 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-369

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL - COUNT ( * ) * 41 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-369

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 44 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT 8 * 62 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
499

skipif mysql # not compatible
query I rowsort label-9495
SELECT 8 * 62 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
499

onlyif mysql # aggregate syntax: 
query II rowsort label-9496
SELECT - 41 * 14 * MAX( 30 ), + 97 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-17220
291

skipif mysql # not compatible
query II rowsort label-9496
SELECT - 41 * 14 * MAX ( 30 ), + 97 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-17220
291

query I rowsort
SELECT + + col0 * - 89 FROM tab2 AS cor0
----
-4094
-5696
-6675

query I rowsort
SELECT 59 * + + 40 AS col0 FROM tab0 AS cor0
----
2360
2360
2360

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT + SUM( DISTINCT col1 ) col2 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9500
SELECT + SUM ( DISTINCT col1 ) col2 FROM tab2
----
195

query I rowsort
SELECT ALL col2 * col1 * - col2 AS col1 FROM tab1
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9502
SELECT ALL + COUNT( * ) DIV - - ( + + 16 ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9502
SELECT ALL + COUNT ( * ) / - - ( + + 16 ) col1 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9503
SELECT ALL + 59 DIV + - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL + 59 / + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9504
SELECT ALL - CAST( - COUNT( 87 ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL - CAST ( - COUNT ( 87 ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9505
SELECT + + SUM( col1 ) AS col1, + 19 - - - 56 * + 36 * + 40 FROM tab0 AS cor0
----
103
-80621

skipif mysql # not compatible
query II rowsort label-9505
SELECT + + SUM ( col1 ) AS col1, + 19 - - - 56 * + 36 * + 40 FROM tab0 AS cor0
----
103
-80621

query I rowsort
SELECT ALL + - ( + ( + + col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 69 BETWEEN - ( 10 ) AND col1 + ( - col2 )
----

query II rowsort
SELECT DISTINCT - col0 * 45 AS col2, + 15 * - 40 + - col2 FROM tab2 AS cor0
----
-2070
-623
-2880
-640
-3375
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT DISTINCT COUNT( * ) * + 21 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT COUNT ( * ) * + 21 FROM tab1 AS cor0
----
63

query II rowsort
SELECT col2 * - col0 * 75 * - 4, col0 * - + col1 AS col2 FROM tab2 AS cor0
----
1305000
-5025
317400
-2346
768000
-4928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9511
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9512
SELECT ALL + - COUNT( * ) DIV - - 62 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL + - COUNT ( * ) / - - 62 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 65 * 11 FROM tab2
----
715
715
715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9514
SELECT ALL + - 90 / + - MAX( DISTINCT - + col0 ) AS col0 FROM tab2 WHERE NOT 39 * + CAST( - 98 AS SIGNED ) NOT BETWEEN ( + 17 ) AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + - 90 / + - MAX ( DISTINCT - + col0 ) AS col0 FROM tab2 WHERE NOT 39 * + CAST ( - 98 AS INTEGER ) NOT BETWEEN ( + 17 ) AND - col1
----
NULL

query I rowsort
SELECT ALL + 24 + - - 86 + + ( 77 ) AS col1 FROM tab1 AS cor0
----
187
187
187

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT - 55 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-9516
SELECT - 55 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT DISTINCT 23 + SUM( DISTINCT - 33 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT 23 + SUM ( DISTINCT - 33 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT 20 DIV - - col1 + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9518
SELECT 20 / - - col1 + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL - 70 + + MIN( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL - 70 + + MIN ( DISTINCT - + col2 ) AS col2 FROM tab2 AS cor0
----
-128

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 45 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL + COUNT( * ) + - 85 AS col1 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + COUNT ( * ) + - 85 AS col1 FROM tab2 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT - 12 + + 40 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-9522
SELECT - 12 + + 40 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 + + - ( 62 ) col2 FROM tab1 cor0
----
-45
-45
-45

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 73 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT DISTINCT + COUNT( * ) + - - 19 AS col1 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT + COUNT ( * ) + - - 19 AS col1 FROM tab1
----
22

query I rowsort
SELECT DISTINCT + ( + + col0 ) AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL COUNT( DISTINCT + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL COUNT ( DISTINCT + col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9528
SELECT ALL SUM( DISTINCT - col2 ) - - + 88 DIV 90 AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL SUM ( DISTINCT - col2 ) - - + 88 / 90 AS col0 FROM tab2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9529
SELECT - COUNT( * ) * + 60 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9529
SELECT - COUNT ( * ) * + 60 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col2 + - + col0 * col1 FROM tab2 AS cor0
----
-2369
-4968
-5083

query I rowsort
SELECT 51 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT DISTINCT + 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + 14 * + + COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9533
SELECT + 14 * + + COUNT ( * ) FROM tab0 AS cor0
----
42

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL = + 34
----

query I rowsort
SELECT ( - + 27 ) * - col2 FROM tab1 AS cor0
----
1593
1836
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT + MAX( - col1 ) * 80 FROM tab1 AS cor0
----
-400

skipif mysql # not compatible
query I rowsort label-9536
SELECT + MAX ( - col1 ) * 80 FROM tab1 AS cor0
----
-400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 * - col2 col0 FROM tab1 AS cor0
----
-3363
-3876
-5472

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT + ( - 24 ) * + + SUM( DISTINCT + - col2 ) col0 FROM tab0 AS cor0
----
3744

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9538
SELECT DISTINCT + ( - 24 ) * + + SUM ( DISTINCT + - col2 ) col0 FROM tab0 AS cor0
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT COUNT( + - col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9539
SELECT COUNT ( + - col2 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT + MAX( - + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9540
SELECT + MAX ( - + col0 ) FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9541
SELECT ALL - ( - - ( - col0 ) ) DIV col0 * - 43 col1 FROM tab1
----
-43
-43
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9541
SELECT ALL - ( - - ( - col0 ) ) / col0 * - 43 col1 FROM tab1
----
-43
-43
-43

query II rowsort
SELECT DISTINCT 44, - ( + - col0 ) AS col0 FROM tab0
----
44
15
44
87
44
97

query II rowsort
SELECT ALL col0 AS col2, + col2 * - col1 AS col1 FROM tab2
----
46
-1173
64
-3080
75
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9544
SELECT SUM( DISTINCT - 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-9544
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - 14 AS col2, col1 + - + col0 FROM tab2 AS cor0
----
-14
-8
-14
13
-14
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9546
SELECT ALL - MAX( + - 49 ) + + 17 col2, + MIN( + col0 ) AS col2 FROM tab2 AS cor0
----
66
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9546
SELECT ALL - MAX ( + - 49 ) + + 17 col2, + MIN ( + col0 ) AS col2 FROM tab2 AS cor0
----
66
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 IN ( + + col1 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT ALL MIN( + col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL MIN ( + col1 ) FROM tab0 cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE - 15 - - col1 >= - col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9550
SELECT - 82 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT - 82 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + ( col1 ) + + 25 FROM tab1
----
-1319
-270
-3171

query III rowsort
SELECT * FROM tab2 WHERE col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 64 NOT IN ( - 58 )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 < + col1 + col0
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab1 WHERE 16 + + col1 BETWEEN ( col0 * - 24 + + 92 ) AND col1
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT ( NULL ) <= + 1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 70 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 69 + + col2 * col1 FROM tab2
----
1242
3149
3955

query I rowsort
SELECT - 69 + col0 AS col1 FROM tab1
----
-18
16
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 * 61 col1 FROM tab1
----
1525

onlyif mysql # DIV for integer division: 
query I rowsort label-9561
SELECT DISTINCT + 93 DIV col1 - 0 * - col2 FROM tab0
----
1
4
93

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT + 93 / col1 - 0 * - col2 FROM tab0
----
1
4
93

query I rowsort
SELECT DISTINCT 10 + + 11 AS col2 FROM tab2
----
21

query III rowsort
SELECT * FROM tab1 WHERE NULL <= col2
----

query I rowsort
SELECT + 94 * + col1 FROM tab1
----
1316
4418
470

query III rowsort
SELECT * FROM tab1 WHERE ( + 31 ) NOT IN ( 89 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) IN ( + 40 )
----
64
77
40

query I rowsort
SELECT - col2 + - ( - col1 ) * - col1 FROM tab2
----
-2624
-4547
-5969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT ALL - col0 * CAST( col0 AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL < - ( CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL - col0 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL < - ( CAST ( + col0 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 56 * - 0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT DISTINCT - 82 + SUM( - col0 ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
599

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT - 82 + SUM ( - col0 ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
599

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 + 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9572
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9572
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ( 36 ) * - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2
----
-324

skipif mysql # not compatible
query I rowsort label-9573
SELECT ( 36 ) * - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2
----
-324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT 16 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( - col0 * col0 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT ALL + COUNT( ALL 38 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL + COUNT ( ALL 38 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL MIN( DISTINCT 91 ) col0 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9577
SELECT ALL MIN ( DISTINCT 91 ) col0 FROM tab0 AS cor0
----
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9579
SELECT - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9579
SELECT - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT 17 * COUNT( * ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9580
SELECT 17 * COUNT ( * ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT - 81 * MAX( DISTINCT 68 + ( - col1 ) ) FROM tab0 AS cor0
----
-5427

skipif mysql # not compatible
query I rowsort label-9581
SELECT - 81 * MAX ( DISTINCT 68 + ( - col1 ) ) FROM tab0 AS cor0
----
-5427

onlyif mysql # DIV for integer division: 
query I rowsort label-9582
SELECT - col1 DIV + 73 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9582
SELECT - col1 / + 73 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9583
SELECT COUNT( * ) + - 49 DIV COUNT( * ) AS col0 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-9583
SELECT COUNT ( * ) + - 49 / COUNT ( * ) AS col0 FROM tab2
----
-13

query I rowsort
SELECT + ( - col0 ) + col2 * 31 FROM tab1
----
1744
2017
2925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9585
SELECT ALL - MIN( - CAST( 1 AS SIGNED ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL - MIN ( - CAST ( 1 AS INTEGER ) ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT 3 DIV - 39 + 48 FROM tab1
----
48
48
48

skipif mysql # not compatible
query I rowsort label-9586
SELECT 3 / - 39 + 48 FROM tab1
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL SUM( DISTINCT - col2 ) col1 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9587
SELECT ALL SUM ( DISTINCT - col2 ) col1 FROM tab1
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9588
SELECT CAST( - - 81 AS SIGNED ) AS col2 FROM tab2
----
81
81
81

skipif mysql # not compatible
query I rowsort label-9588
SELECT CAST ( - - 81 AS INTEGER ) AS col2 FROM tab2
----
81
81
81

query I rowsort
SELECT - col0 * - 88 AS col0 FROM tab2 WHERE NOT NULL = ( 39 )
----

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT col1 BETWEEN NULL AND ( 63 )
----
-64
-75

query I rowsort
SELECT col2 * col0 FROM tab1 WHERE NOT ( col2 ) BETWEEN + 83 + 77 AND ( 43 )
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT DISTINCT + 99 + SUM( ALL col0 ) FROM tab2 AS cor0
----
284

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT + 99 + SUM ( ALL col0 ) FROM tab2 AS cor0
----
284

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL 37 + - COUNT( * ) * + ( + COUNT( * ) * 33 ) AS col0 FROM tab1 AS cor0
----
-260

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL 37 + - COUNT ( * ) * + ( + COUNT ( * ) * 33 ) AS col0 FROM tab1 AS cor0
----
-260

query I rowsort
SELECT ALL + - col0 + + + 65 * 17 AS col2 FROM tab0 AS cor0
----
1008
1018
1090

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT DISTINCT + ( + SUM( col1 ) ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT + ( + SUM ( col1 ) ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT - - 57 * col0 FROM tab0 AS cor0
----
4959
5529
855

query I rowsort
SELECT + col0 * + 46 AS col2 FROM tab1
----
2346
3910
4186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT ALL + col0 * + CAST( CAST( NULL AS SIGNED ) 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-9598
SELECT ALL + col0 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 35 * + - 54 - - - ( - col2 ) AS col2 FROM tab1 AS cor0
----
1949
1958
1986

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT MIN( col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - col0 * - ( - col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT MIN ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - col0 * - ( - col1 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9602
SELECT - - CAST( col2 AS SIGNED ) + - - 41 DIV col0 FROM tab0 AS cor0
----
10
49
99

skipif mysql # not compatible
query I rowsort label-9602
SELECT - - CAST ( col2 AS INTEGER ) + - - 41 / col0 FROM tab0 AS cor0
----
10
49
99

query I rowsort
SELECT - 88 + + col2 + + - ( - 80 ) * col2 FROM tab0 AS cor0
----
3719
722
7931

query I rowsort
SELECT - 89 * col1 AS col2 FROM tab0 AS cor0 WHERE ( col1 ) NOT BETWEEN 59 AND NULL
----
-1869
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT ( 91 ) * col1 + + col2 DIV - 35 + - 24 FROM tab2 AS cor0
----
4617
6072
6982

skipif mysql # not compatible
query I rowsort label-9605
SELECT ( 91 ) * col1 + + col2 / - 35 + - 24 FROM tab2 AS cor0
----
4617
6072
6982

query I rowsort
SELECT DISTINCT 58 * + col1 FROM tab1 cor0 WHERE NOT + - col1 * + 55 IS NULL OR NULL > 74
----
2726
290
812

query I rowsort
SELECT ALL - - 83 * - col2 - - ( col2 ) FROM tab0 AS cor0
----
-3854
-8118
-820

query I rowsort
SELECT DISTINCT - ( - 79 ) FROM tab2 cor0
----
79

query I rowsort
SELECT DISTINCT 78 + col2 + - col0 AS col0 FROM tab2
----
54
55
61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 15 <= ( + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9611
SELECT DISTINCT 23 - - - CAST( NULL AS DECIMAL ), col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-9611
SELECT DISTINCT 23 - - - CAST ( NULL AS REAL ), col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT ( col2 ) FROM tab1 WHERE NULL BETWEEN - col2 AND ( + col2 )
----

query I rowsort
SELECT + col1 - - 10 FROM tab2
----
61
77
87

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT SUM( + col0 ) * - COUNT( * ) FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-9615
SELECT SUM ( + col0 ) * - COUNT ( * ) FROM tab0
----
-597

query II rowsort
SELECT + + col0 * + 34 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
2958
-10
3298
-99
510
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 87 + - - ( + col0 ) * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - 87 + col1
----

query II rowsort
SELECT DISTINCT col1, + col2 + ( col2 ) FROM tab2
----
51
46
67
116
77
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9620
SELECT DISTINCT 20 - + SUM( 75 ) col1 FROM tab2 WHERE ( CAST( - col0 AS SIGNED ) + - col0 ) > + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9620
SELECT DISTINCT 20 - + SUM ( 75 ) col1 FROM tab2 WHERE ( CAST ( - col0 AS INTEGER ) + - col0 ) > + col1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 58 ) <= NULL
----

query I rowsort
SELECT + + 6 AS col1 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT + ( - 48 ) FROM tab2 AS cor0
----
-48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL + MAX( DISTINCT + + 25 ) AS col0 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + MAX ( DISTINCT + + 25 ) AS col0 FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT MAX( DISTINCT + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9626
SELECT MAX ( DISTINCT + ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT DISTINCT - SUM( - - col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT - SUM ( - - col0 ) FROM tab2 cor0
----
-185

query I rowsort
SELECT 76 + + - 29 - - 24 * - col0 * - col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 93 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL + MAX( ALL + - 78 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL + MAX ( ALL + - 78 ) FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT NULL <= + col0 * - col0 / - col2 + + - 18 * col1
----
0

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT NULL <= + col0 * - col0 / - col2 + + - 18 * col1
----
0

query I rowsort
SELECT ( - 40 ) AS col2 FROM tab2
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9633
SELECT DISTINCT - 48 AS col0, col2 * + 15 + + 34 + - 92 DIV + col1 + CAST( + col0 + 59 AS SIGNED ) * 38 FROM tab0
----
-48
3550
-48
5728
-48
7355

skipif mysql # not compatible
query II rowsort label-9633
SELECT DISTINCT - 48 AS col0, col2 * + 15 + + 34 + - 92 / + col1 + CAST ( + col0 + 59 AS INTEGER ) * 38 FROM tab0
----
-48
3550
-48
5728
-48
7355

onlyif mysql # aggregate syntax: 
query II rowsort label-9634
SELECT 54 AS col2, COUNT( * ) FROM tab2
----
54
3

skipif mysql # not compatible
query II rowsort label-9634
SELECT 54 AS col2, COUNT ( * ) FROM tab2
----
54
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9635
SELECT CAST( + 90 AS SIGNED ) AS col2 FROM tab0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-9635
SELECT CAST ( + 90 AS INTEGER ) AS col2 FROM tab0
----
90
90
90

query I rowsort
SELECT + 95 + + col2 FROM tab0
----
105
142
194

query I rowsort
SELECT + col2 + col0 * + col0 AS col1 FROM tab2 AS cor0 WHERE - 2 IS NOT NULL
----
2139
4136
5683

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * - col2 col1 FROM tab2 cor0
----
-1150
-3040
-3828

query I rowsort
SELECT DISTINCT - col2 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT ALL COUNT( * ) col2 FROM tab2 AS cor0 WHERE 9 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9640
SELECT ALL COUNT ( * ) col2 FROM tab2 AS cor0 WHERE 9 IS NULL
----
0

query I rowsort
SELECT DISTINCT - + 31 + col1 FROM tab1 AS cor0
----
-17
-26
16

query I rowsort
SELECT DISTINCT - - col1 + + col0 + - - col0 AS col2 FROM tab0 AS cor0
----
111
195

query III rowsort
SELECT ALL * FROM tab2 WHERE + 40 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9644
SELECT col1 DIV 17 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9644
SELECT col1 / 17 FROM tab1
----
0
0
2

query III rowsort
SELECT * FROM tab2 WHERE ( + ( col0 ) ) * - 64 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
94

query I rowsort
SELECT ALL - 55 * + col0 + - 53 - + - 87 AS col0 FROM tab1 AS cor0
----
-2771
-4641
-4971

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT ALL - MAX( + col1 ) + COUNT( * ) AS col0 FROM tab2 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL - MAX ( + col1 ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
-74

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT col1 NOT BETWEEN NULL AND - col1 )
----

query I rowsort
SELECT + col1 * - col2 - 29 FROM tab1 AS cor0
----
-1373
-3225
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT DISTINCT + ( - + SUM( - 93 ) ) - COUNT( DISTINCT - - 87 ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT + ( - + SUM ( - 93 ) ) - COUNT ( DISTINCT - - 87 ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9652
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( + + col1 )
----
0

query II rowsort
SELECT - - col2 * + col2 + 54, - col0 * + col0 AS col2 FROM tab2 AS cor0
----
1654
-4096
3418
-5625
583
-2116

query I rowsort
SELECT ALL 94 * - - col0 + - - col1 + col2 * + 64 AS col0 FROM tab2 AS cor0
----
10829
5847
8653

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 + + col0 - col2 ) <= - 3 * + 49
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9656
SELECT - col2 * col1 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9656
SELECT - col2 * col1 + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9657
SELECT * FROM tab0 WHERE NOT col2 IN ( + CAST( + col0 AS SIGNED ) + 74, 48 ) OR NOT NULL > NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9657
SELECT * FROM tab0 WHERE NOT col2 IN ( + CAST ( + col0 AS INTEGER ) + 74, 48 ) OR NOT NULL > NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + + 89 * col1 * - 20 * + 63 * col0 FROM tab0
----
-10877579
-136250019
-204879759

onlyif mysql # aggregate syntax: 
query II rowsort label-9659
SELECT 71 col0, + COUNT( * ) AS col2 FROM tab2
----
71
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9659
SELECT 71 col0, + COUNT ( * ) AS col2 FROM tab2
----
71
3

query I rowsort
SELECT DISTINCT + 21 * + col0 * col1 AS col1 FROM tab2
----
103488
105525
49266

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT ALL + 15 DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL + 15 / col0 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 26 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT COUNT( * ) * - - ( SUM( + + 73 ) ) FROM tab2
----
657

skipif mysql # not compatible
query I rowsort label-9664
SELECT COUNT ( * ) * - - ( SUM ( + + 73 ) ) FROM tab2
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT ALL - MAX( ALL + 30 ) AS col0 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL - MAX ( ALL + 30 ) AS col0 FROM tab0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9666
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 * CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9666
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 * CAST ( NULL AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT + 12 * + - col0 * + + ( CAST( + col0 AS SIGNED ) ) + col1 NOT BETWEEN col1 + col2 * col0 AND - 67 * col0
----

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT + 12 * + - col0 * + + ( CAST ( + col0 AS INTEGER ) ) + col1 NOT BETWEEN col1 + col2 * col0 AND - 67 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9669
SELECT - + MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT - + MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9670
SELECT DISTINCT - + 96 * - + ( + COUNT( * ) ) AS col2, + ( COUNT( * ) ) FROM tab0 AS cor0
----
288
3

skipif mysql # not compatible
query II rowsort label-9670
SELECT DISTINCT - + 96 * - + ( + COUNT ( * ) ) AS col2, + ( COUNT ( * ) ) FROM tab0 AS cor0
----
288
3

query I rowsort
SELECT ALL - ( - - 65 ) AS col0 FROM tab0 AS cor0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + - 79 col0 FROM tab2 AS cor0
----
4029
5293
6083

query I rowsort
SELECT DISTINCT - col2 * + 10 AS col2 FROM tab1
----
-590
-680
-960

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 66 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9675
SELECT + COUNT( DISTINCT 47 ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 28 * + - col1 + + col2 * + ( - col1 ) * + CAST( - + 66 AS SIGNED ) + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9675
SELECT + COUNT ( DISTINCT 47 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 28 * + - col1 + + col2 * + ( - col1 ) * + CAST ( - + 66 AS INTEGER ) + - col1 IS NULL
----
0

query I rowsort
SELECT DISTINCT + ( - col0 ) + + col0 FROM tab0 cor0
----
0

query I rowsort
SELECT + - 60 AS col0 FROM tab1 cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT + + 50 * - CAST( - AVG ( DISTINCT - 86 ) AS SIGNED ) FROM tab1 AS cor0
----
-4300

skipif mysql # not compatible
query I rowsort label-9678
SELECT + + 50 * - CAST ( - AVG ( DISTINCT - 86 ) AS INTEGER ) FROM tab1 AS cor0
----
-4300

query I rowsort
SELECT + - 81 + + + col0 FROM tab1 AS cor0
----
-30
10
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT - col1 DIV + 6 + col1 * + 15 + + - col0 AS col0 FROM tab2 AS cor0
----
1079
711
919

skipif mysql # not compatible
query I rowsort label-9680
SELECT - col1 / + 6 + col1 * + 15 + + - col0 AS col0 FROM tab2 AS cor0
----
1079
711
919

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT COUNT( col1 ) + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9681
SELECT COUNT ( col1 ) + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 60 BETWEEN NULL AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9683
SELECT DISTINCT * FROM tab0 WHERE + CAST( + col2 AS SIGNED ) + - ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9683
SELECT DISTINCT * FROM tab0 WHERE + CAST ( + col2 AS INTEGER ) + - ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9684
SELECT col2 FROM tab0 WHERE ( + - col1 * - + 30 * + CAST( NULL AS SIGNED ) - - col1 ) NOT BETWEEN 8 / + 87 AND + + CAST( NULL AS SIGNED ) / - + CAST( NULL AS DECIMAL ) * + 75
----

skipif mysql # not compatible
query I rowsort label-9684
SELECT col2 FROM tab0 WHERE ( + - col1 * - + 30 * + CAST ( NULL AS INTEGER ) - - col1 ) NOT BETWEEN 8 / + 87 AND + + CAST ( NULL AS INTEGER ) / - + CAST ( NULL AS REAL ) * + 75
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9685
SELECT CAST( + COUNT( * ) AS SIGNED ) + + - 4 col1 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9685
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + + - 4 col1 FROM tab1
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT DISTINCT + MAX( ALL 98 ) col1 FROM tab1
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9687
SELECT DISTINCT + MAX ( ALL 98 ) col1 FROM tab1
----
98

query II rowsort
SELECT - col2, col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / - ( + col2 ) * - 96 col0 FROM tab0 WHERE - 36 BETWEEN ( NULL ) AND ( col2 + - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL COUNT( * ) - - + COUNT( * ) + 60 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL COUNT ( * ) - - + COUNT ( * ) + 60 FROM tab0
----
66

query I rowsort
SELECT - 33 AS col2 FROM tab1 WHERE col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( 41 ) + - col0 FROM tab0 AS cor0
----
-46
-56
26

query I rowsort
SELECT DISTINCT + + col1 * - col1 + + 19 FROM tab2 AS cor0
----
-2582
-4470
-5910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9694
SELECT - - MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT - - MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9695
SELECT - 28 DIV + - 67 AS col1, col2 AS col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-9695
SELECT - 28 / + - 67 AS col1, col2 AS col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9696
SELECT DISTINCT + CAST( + - 56 AS SIGNED ) AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-56
3

skipif mysql # not compatible
query II rowsort label-9696
SELECT DISTINCT + CAST ( + - 56 AS INTEGER ) AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-56
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9697
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT - + CAST ( NULL AS REAL ) + + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9698
SELECT COUNT( * ) AS col0, - 74 FROM tab2 AS cor0
----
3
-74

skipif mysql # not compatible
query II rowsort label-9698
SELECT COUNT ( * ) AS col0, - 74 FROM tab2 AS cor0
----
3
-74

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + col2 * - 40 * col1 FROM tab2 AS cor0 WHERE - col1 BETWEEN ( + col2 * - 47 / col1 * 86 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9701
SELECT DISTINCT + col0 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9701
SELECT DISTINCT + col0 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 17 IS NULL
----

query I rowsort
SELECT + 50 * - + col0 * + col1 AS col0 FROM tab0
----
-4850
-60750
-91350

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT + SUM( DISTINCT + - ( + + col2 ) ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9704
SELECT + SUM ( DISTINCT + - ( + + col2 ) ) AS col2 FROM tab1
----
-223

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND col1
----

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT 69 NOT BETWEEN + 30 * - col1 AND ( col2 + col1 / - 62 )
----
-51

query I rowsort
SELECT - col0 AS col2 FROM tab0 cor0 WHERE NOT + col2 = + 58
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 68 ) NOT BETWEEN NULL AND - col2 / - col2 * - 11 * 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT 15 * COUNT( col1 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT 15 * COUNT ( col1 ) FROM tab2
----
45

query II rowsort
SELECT + col1 AS col2, - 94 + - - col1 - - col1 AS col2 FROM tab0
----
1
-92
21
-52
81
68

query I rowsort
SELECT ALL + col0 * col2 + + col0 + 75 AS col1 FROM tab1 AS cor0
----
5022
5175
6354

query I rowsort
SELECT DISTINCT + + 53 AS col0 FROM tab1 AS cor0
----
53

query I rowsort
SELECT ALL - 53 + - col0 + - 59 * + col2 FROM tab1 AS cor0
----
-3619
-4156
-5768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9715
SELECT DISTINCT + col1 + - col1 DIV - + col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-9715
SELECT DISTINCT + col1 + - col1 / - + col1 FROM tab2 AS cor0
----
52
68
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( NOT + - col0 - col0 BETWEEN NULL AND 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-9719
SELECT 92 * - 46 + + + CAST( NULL AS SIGNED ) * 89 + - 63 - - CAST( - col0 AS SIGNED ) + + - 8 * col0 + + + 34 + - col1 * + - ( col1 ) * - 61 * 30 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT 92 * - 46 + + + CAST ( NULL AS INTEGER ) * 89 + - 63 - - CAST ( - col0 AS INTEGER ) + + - 8 * col0 + + + 34 + - col1 * + - ( col1 ) * - 61 * 30 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col1 ) + - ( - + col2 ) AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT + 55 + ( + - col1 ) FROM tab0
----
-26
34
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT + COUNT( * ) FROM tab1 WHERE col0 * + + col0 - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9722
SELECT + COUNT ( * ) FROM tab1 WHERE col0 * + + col0 - col2 IS NULL
----
0

query I rowsort
SELECT ALL + 70 + + + ( col0 ) FROM tab0
----
157
167
85

query I rowsort
SELECT + + col0 + 46 + + col2 AS col0 FROM tab1 AS cor0
----
190
193
205

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9725
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9725
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9726
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) / - 7 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9726
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) / - 7 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-67

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IN ( 24 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) > - - col1 + - 67
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9730
SELECT CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0 WHERE - col1 + - col1 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9730
SELECT CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0 WHERE - col1 + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT + MAX( - - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT + MAX ( - - col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT ALL + - MAX( ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL + - MAX ( ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 9 )
----

query I rowsort
SELECT - + 55 FROM tab2 cor0
----
-55
-55
-55

query I rowsort
SELECT ALL - - ( + col0 ) * - 84 FROM tab1 AS cor0
----
-4284
-7140
-7644

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT + COUNT( col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9736
SELECT + COUNT ( col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( - - ( + - col2 ) ) * col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT ALL + - col1 * 94 AS col2 FROM tab1 AS cor0
----
-1316
-4418
-470

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col0, - 53 )
----

query II rowsort
SELECT ALL + col0, - col2 FROM tab1
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9741
SELECT MIN( + 95 ) DIV + 52 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9741
SELECT MIN ( + 95 ) / + 52 AS col2 FROM tab2
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - + 90 - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9743
SELECT ALL CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col1, col1 col0 FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 75 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT - COUNT( * ) * + - MAX( DISTINCT + col1 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-9746
SELECT - COUNT ( * ) * + - MAX ( DISTINCT + col1 ) FROM tab1
----
141

query I rowsort
SELECT - 42 * + col1 * - + col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 90 * - col1 AND 70
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 34 / + ( 12 ) NOT IN ( + 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT + 52 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= col1 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-9749
SELECT + 52 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= col1 * + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9750
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) + ( col0 ) AND + 94
----

skipif mysql # not compatible
query III rowsort label-9750
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) + ( col0 ) AND + 94
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 66 * + 71 AS col0, + col0 col1 FROM tab0
----
4686
15
4686
87
4686
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 52 AND col0 + + 72 + - col2 + - - col0 * 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9753
SELECT CAST( - col2 AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-9753
SELECT CAST ( - col2 AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

query II rowsort
SELECT DISTINCT - col2 + - ( + - 95 ), col1 AS col0 FROM tab2 AS cor0
----
37
67
55
77
72
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9755
SELECT ALL CAST( NULL AS DECIMAL ) + + 1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9755
SELECT ALL CAST ( NULL AS REAL ) + + 1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + - ( col2 ) + + col2 * + - col2 * + col0 AS col2 FROM tab1 AS cor0
----
-295939
-420805
-470098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9757
SELECT - AVG ( - col2 ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT - AVG ( - col2 ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 + 99 - + col0 * + + col2 FROM tab2 AS cor0
----
-2397
-4176
-913

query I rowsort
SELECT ALL - col2 + + col0 + + col2 AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9760
SELECT + CAST( NULL AS DECIMAL ) / - col2 * - col1 + + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT + CAST ( NULL AS REAL ) / - col2 * - col1 + + - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - + ( + col2 ) ) AS col1 FROM tab1 WHERE NOT - + 11 + - col1 >= - + 94
----

query II rowsort
SELECT DISTINCT - 61 AS col0, - 48 FROM tab1
----
-61
-48

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT ALL col0 + + 9 FROM tab1
----
100
60
94

query I rowsort
SELECT DISTINCT + ( - - 78 ) AS col1 FROM tab1
----
78

query I rowsort
SELECT DISTINCT 18 + - col0 + + col2 - col2 * 34 AS col0 FROM tab1
----
-2014
-2317
-3201

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> 93
----

query I rowsort
SELECT 78 FROM tab1 cor0 WHERE 61 IS NOT NULL
----
78
78
78

query I rowsort
SELECT DISTINCT col0 * - col1 - + + 74 + - - col2 AS col0 FROM tab2
----
-2397
-4962
-5041

query I rowsort
SELECT DISTINCT - - 84 AS col1 FROM tab2 AS cor0
----
84

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * col0 / + 78 + 63 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL < + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9774
SELECT DISTINCT - MAX( DISTINCT 24 ) AS col1, MIN( col2 ) * - + 48 + + + 72 FROM tab0 AS cor0
----
-24
-408

skipif mysql # not compatible
query II rowsort label-9774
SELECT DISTINCT - MAX ( DISTINCT 24 ) AS col1, MIN ( col2 ) * - + 48 + + + 72 FROM tab0 AS cor0
----
-24
-408

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + col2 * col1 / 28 AND NULL
----

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT + SUM( - col0 ) * + 21 FROM tab2
----
-3885

skipif mysql # not compatible
query I rowsort label-9778
SELECT + SUM ( - col0 ) * + 21 FROM tab2
----
-3885

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 34 * col0 * + 59 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 50 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
50
50
50

query I rowsort
SELECT + col1 + + + 17 + - - col0 * 12 AS col2 FROM tab2 AS cor0
----
620
862
984

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT DISTINCT COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT ( ( 71 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9783
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT ( ( 71 ) ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT DISTINCT + SUM( - 33 ) col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9784
SELECT DISTINCT + SUM ( - 33 ) col0 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT SUM( DISTINCT col0 ) + - + COUNT( * ) col0 FROM tab0
----
196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9785
SELECT SUM ( DISTINCT col0 ) + - + COUNT ( * ) col0 FROM tab0
----
196

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT col1 DIV col2 * - 84 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9786
SELECT col1 / col2 * - 84 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT 34 AS col1, col1 AS col1 FROM tab2
----
34
51
34
67
34
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9788
SELECT col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-9788
SELECT col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9789
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT ALL SUM( - col1 ) + 31 AS col0 FROM tab2 AS cor0
----
-164

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL SUM ( - col1 ) + 31 AS col0 FROM tab2 AS cor0
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9791
SELECT ALL * FROM tab2 AS cor0 WHERE + 34 NOT IN ( 4, - col2 - + 43, + + CAST( + col1 AS SIGNED ) / - col2 + col2 * + 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9791
SELECT ALL * FROM tab2 AS cor0 WHERE + 34 NOT IN ( 4, - col2 - + 43, + + CAST ( + col1 AS INTEGER ) / - col2 + col2 * + 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IN ( col2, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9793
SELECT ALL + CAST( + - col1 AS SIGNED ) - - col1 DIV ( + ( col0 ) ) FROM tab0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL + CAST ( + - col1 AS INTEGER ) - - col1 / ( + ( col0 ) ) FROM tab0
----
-1
-21
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT ( - COUNT( * ) ) + - 3 col0 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9794
SELECT ( - COUNT ( * ) ) + - 3 col0 FROM tab2
----
-6

query I rowsort
SELECT + ( - 50 ) + col0 AS col1 FROM tab1
----
1
35
41

query I rowsort
SELECT ALL col0 * col0 * - col1 * col0 AS col1 FROM tab2
----
-20185088
-28265625
-4964136

query I rowsort
SELECT - col2 + + 75 AS col2 FROM tab1
----
-21
16
7

query I rowsort
SELECT 4 + - - col1 AS col1 FROM tab0
----
25
5
85

query I rowsort
SELECT ALL - 44 * - + 11 FROM tab0
----
484
484
484

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + - 18
----

query III rowsort
SELECT * FROM tab2 WHERE + + col2 BETWEEN col0 / - col0 * + col1 + + 70 AND NULL
----

query I rowsort
SELECT 53 + - 65 AS col2 FROM tab1
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT 9 * - COUNT( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9803
SELECT 9 * - COUNT ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT ALL + ( + - ( + 65 ) ) AS col1 FROM tab0
----
-65
-65
-65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + 42 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 86 col2 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT + 30 - + + 9 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 AND col1 + + - 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9809
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + - 76, + 13 AS col0 FROM tab0 AS cor0
----
-76
13

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9812
SELECT + ( + 49 ) - 89 AS col0 FROM tab1 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) IS NULL
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-9812
SELECT + ( + 49 ) - 89 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) IS NULL
----
-40
-40
-40

query II rowsort
SELECT col1 AS col0, 13 AS col2 FROM tab2 AS cor0
----
51
13
67
13
77
13

query I rowsort
SELECT - ( - - 2 ) * + 23 + + - col1 FROM tab0 AS cor0
----
-127
-47
-67

query I rowsort
SELECT 95 * + - 2 FROM tab0
----
-190
-190
-190

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + 84 ) IS NULL
----

query I rowsort
SELECT ALL + 36 * + - 73 + - + col1 AS col1 FROM tab2 WHERE ( NOT 80 NOT BETWEEN NULL AND 79 )
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE col2 * - 94 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE 78 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9820
SELECT DISTINCT + CAST( - MAX( ALL - 78 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT + CAST ( - MAX ( ALL - 78 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9821
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - ( - col0 ) + 91 AS col0 FROM tab0 AS cor0
----
106
178
188

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9824
SELECT + col2 + + col0 DIV + + col2 AS col2 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-9824
SELECT + col2 + + col0 / + + col2 AS col2 FROM tab2 AS cor0
----
25
41
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL 34 - + MIN( 7 ) AS col1 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL 34 - + MIN ( 7 ) AS col1 FROM tab0 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT - - col0 * + 94 / + - CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT - - col0 * + 94 / + - CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - ( - - col2 ) AND - 71 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 32 * + col0 + - col0 FROM tab2
----
1426
1984
2325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 col2 FROM tab1 WHERE NULL BETWEEN + + col1 AND 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT ALL - COUNT( * ) - - 13 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL - COUNT ( * ) - - 13 FROM tab0
----
10

query I rowsort
SELECT ALL ( col2 ) * + col2 * + col1 FROM tab2
----
123200
225388
26979

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 16 / - col0 < + 65 * + 15
----

query III rowsort
SELECT * FROM tab1 WHERE + + 0 * + - 99 - + ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 60 FROM tab1 WHERE NOT NULL NOT IN ( - col1 * col1 + col1, 78 * - + col2, + col2 * + 4 + - col2 + + col1 * col1 / ( col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col2, + 87 col1 FROM tab0
----
-10
87
-47
87
-99
87

query I rowsort
SELECT 14 - 35 + + col2 * 21 FROM tab0
----
189
2058
966

query I rowsort
SELECT DISTINCT 11 FROM tab0 cor0 WHERE NULL > ( + col1 )
----

query II rowsort
SELECT DISTINCT - col1 AS col1, col1 * col2 FROM tab0 cor0
----
-1
99
-21
210
-81
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT + 59 * + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
531

skipif mysql # not compatible
query I rowsort label-9839
SELECT + 59 * + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
531

query I rowsort
SELECT ALL + 7 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT + COUNT( * ) * + - 65 - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT + COUNT ( * ) * + - 65 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-9842
SELECT DISTINCT + 55 DIV + - 71 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT + 55 / + - 71 AS col0 FROM tab0 cor0
----
0

query II rowsort
SELECT DISTINCT col1 AS col1, + 90 - col1 + col2 FROM tab2
----
51
62
67
81
77
53

query II rowsort
SELECT DISTINCT col1, - col2 AS col2 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9845
SELECT + COUNT( * ) DIV + 33 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT + COUNT ( * ) / + 33 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL 84 + + - 18 AS col2 FROM tab0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT DISTINCT - 69 * 7 + + + SUM( DISTINCT col2 ) FROM tab2 cor0
----
-362

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT - 69 * 7 + + + SUM ( DISTINCT col2 ) FROM tab2 cor0
----
-362

query I rowsort
SELECT ALL + col1 * - - col0 * col0 + col0 + col1 + + col0 + + 59 AS col2 FROM tab1 AS cor0
----
36359
36589
389495

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL - MAX( + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - MAX ( + col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT + + ( - col2 ) AS col0 FROM tab0 WHERE NOT - - col0 = col0 - - 38
----
-10
-47
-99

query I rowsort
SELECT ALL - 23 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT + - ( - + MIN( + + col0 ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT + - ( - + MIN ( + + col0 ) ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL - - col0 + + - ( col1 ) - - 83 * 33 AS col2 FROM tab2 cor0
----
2726
2734
2747

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + - col2 AS col1, col1 col0 FROM tab1 AS cor0
----
-110
14
-115
47
-64
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9855
SELECT ALL + MAX( ALL col2 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + MAX ( ALL col2 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9856
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9857
SELECT ALL + 8 DIV - 49 - + - COUNT( ( + + col2 ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9857
SELECT ALL + 8 / - 49 - + - COUNT ( ( + + col2 ) ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 63 + col2 AS col1 FROM tab2
----
103
121
86

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9859
SELECT * FROM tab2 WHERE 37 + col2 * - col2 + + ( - CAST( NULL AS DECIMAL ) ) / + col1 / col2 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9859
SELECT * FROM tab2 WHERE 37 + col2 * - col2 + + ( - CAST ( NULL AS REAL ) ) / + col1 / col2 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NULL NOT IN ( - - col0 + 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT DISTINCT SUM( + 18 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT SUM ( + 18 ) FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT COUNT( * ) * - COUNT( * ) + - ( - CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - CAST( NULL AS SIGNED ) + + col1 / - 32
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9862
SELECT COUNT ( * ) * - COUNT ( * ) + - ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - CAST ( NULL AS INTEGER ) + + col1 / - 32
----
NULL

query I rowsort
SELECT ALL + col2 * 87 + col0 * + ( - + col1 ) - + col1 AS col0 FROM tab2 AS cor0
----
-1525
-396
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9864
SELECT + + CAST( NULL AS SIGNED ) * 70 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9864
SELECT + + CAST ( NULL AS INTEGER ) * 70 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 54, col2 FROM tab2 cor0
----
54
23
54
40
54
58

query I rowsort
SELECT ALL - 17 * - col1 AS col1 FROM tab0 AS cor0
----
1377
17
357

query I rowsort
SELECT - + col1 * - - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 col1 FROM tab2 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT DISTINCT ( + 82 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT ( + 82 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
246

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL - col0 * + col2 * - col1 * col1 FROM tab0 AS cor0
----
383670
4625505
9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9873
SELECT COUNT( DISTINCT ( + CAST( NULL AS DECIMAL ) ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9873
SELECT COUNT ( DISTINCT ( + CAST ( NULL AS REAL ) ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT + + COUNT( + col0 ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9874
SELECT + + COUNT ( + col0 ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT + col1 + - col2 DIV 21 AS col2 FROM tab0 AS cor0
----
-3
21
79

skipif mysql # not compatible
query I rowsort label-9875
SELECT + col1 + - col2 / 21 AS col2 FROM tab0 AS cor0
----
-3
21
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9876
SELECT DISTINCT + col0 DIV - + col0 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9876
SELECT DISTINCT + col0 / - + col0 AS col1 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col0 FROM tab1
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 <= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9879
SELECT ALL + ( - ( CAST( - - 52 AS SIGNED ) ) ) FROM tab2
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL + ( - ( CAST ( - - 52 AS INTEGER ) ) ) FROM tab2
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT COUNT( * ) * + ( + + 4 ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9880
SELECT COUNT ( * ) * + ( + + 4 ) AS col0 FROM tab0
----
12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 42 IN ( col1 )
----

query I rowsort
SELECT col2 * + + 36 * ( col0 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 97 * 14 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT ALL - - 47 + col2 DIV + + col1 AS col2 FROM tab1 AS cor0
----
48
53
58

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL - - 47 + col2 / + + col1 AS col2 FROM tab1 AS cor0
----
48
53
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT ALL + 44 DIV - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL + 44 / - col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9885
SELECT DISTINCT SUM( DISTINCT - CAST( + 98 AS SIGNED ) ) AS col2 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT SUM ( DISTINCT - CAST ( + 98 AS INTEGER ) ) AS col2 FROM tab1
----
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9886
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 * 71 + + 5 FROM tab2
----
3626
4762
5472

query I rowsort
SELECT 79 + - 81 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT - 77 AS col1 FROM tab2 cor0
----
-77
-77
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9890
SELECT * FROM tab0 AS cor0 WHERE NULL = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9890
SELECT * FROM tab0 AS cor0 WHERE NULL = CAST ( NULL AS REAL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT COUNT( ALL - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9892
SELECT COUNT ( ALL - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT ALL + + 59 - + COUNT( * ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL + + 59 - + COUNT ( * ) FROM tab0 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT ALL - COUNT( * ) - + MAX( + 90 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL - COUNT ( * ) - + MAX ( + 90 ) FROM tab0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9896
SELECT ALL col0 - + 37 * - + CAST( - 43 AS SIGNED ) * + col2 - - - 57 * col1, - col2 * + + CAST( NULL AS SIGNED ) col1 FROM tab2
----
-39454
NULL
-67965
NULL
-96022
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9896
SELECT ALL col0 - + 37 * - + CAST ( - 43 AS INTEGER ) * + col2 - - - 57 * col1, - col2 * + + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
-39454
NULL
-67965
NULL
-96022
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT DISTINCT + MIN( col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT + MIN ( col0 ) AS col1 FROM tab2
----
46

query I rowsort
SELECT + col2 * - - 1 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9899
SELECT - COUNT( * ) * 39 DIV 65 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9899
SELECT - COUNT ( * ) * 39 / 65 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - 2 AS col1 FROM tab0 AS cor0 WHERE NOT ( - 72 + col1 IS NULL )
----
-2
-2
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9901
SELECT ALL - + CAST( NULL AS SIGNED ) col2, COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9901
SELECT ALL - + CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT + COUNT( * ) * 51 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-9902
SELECT + COUNT ( * ) * 51 FROM tab0
----
153

query II rowsort
SELECT - col0, + col0 FROM tab0
----
-15
15
-87
87
-97
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 1 > + - 94
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9905
SELECT - CAST( - MAX( ALL + col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9905
SELECT - CAST ( - MAX ( ALL + col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT ALL - ( - CAST( - - col0 AS SIGNED ) ) * - 6 AS col2 FROM tab0 AS cor0
----
-522
-582
-90

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL - ( - CAST ( - - col0 AS INTEGER ) ) * - 6 AS col2 FROM tab0 AS cor0
----
-522
-582
-90

query I rowsort
SELECT DISTINCT - - 8 / - col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - - 79 AS col0 FROM tab0 AS cor0
----
79
79
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * 11 * + 34 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 65 AND - - col0
----
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 65 AND - - col0
----
0

query I rowsort
SELECT 23 * + 40 AS col1 FROM tab2
----
920
920
920

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT - MIN( DISTINCT + 36 ) AS col0 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - MIN ( DISTINCT + 36 ) AS col0 FROM tab2
----
-36

query I rowsort
SELECT col2 * + ( + col2 ) FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9915
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) > - 33
----

skipif mysql # not compatible
query III rowsort label-9915
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) > - 33
----

query I rowsort
SELECT ALL - 5 * + 84 AS col0 FROM tab0
----
-420
-420
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL MIN( ALL col0 ) AS col2 FROM tab1 WHERE NOT + 82 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL MIN ( ALL col0 ) AS col2 FROM tab1 WHERE NOT + 82 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9918
SELECT col1 + CAST( - ( + 48 ) AS SIGNED ) * + col1 AS col2 FROM tab0
----
-3807
-47
-987

skipif mysql # not compatible
query I rowsort label-9918
SELECT col1 + CAST ( - ( + 48 ) AS INTEGER ) * + col1 AS col2 FROM tab0
----
-3807
-47
-987

query I rowsort
SELECT ALL - col1 * col0 * - col0 AS col2 FROM tab0
----
158949
18225
9409

query II rowsort
SELECT col0 + - - 51, 89 AS col2 FROM tab0
----
138
89
148
89
66
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT - COUNT( * ) * + MAX( ALL - - 47 ) FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT - COUNT ( * ) * + MAX ( ALL - - 47 ) FROM tab2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT + MAX( DISTINCT col2 ) + + + ( + - COUNT( * ) ) AS col0 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-9922
SELECT + MAX ( DISTINCT col2 ) + + + ( + - COUNT ( * ) ) AS col0 FROM tab2
----
55

query II rowsort
SELECT + col1 AS col2, col1 * + col0 - + ( 96 ) FROM tab0 AS cor0
----
1
1
21
1731
81
1119

query I rowsort
SELECT - - 59 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT + + col1 * 71 FROM tab2 cor0
----
3621
4757
5467

query I rowsort
SELECT ALL 90 + - - 29 FROM tab1 AS cor0
----
119
119
119

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + 15 * - 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL - COUNT( ALL col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL - COUNT ( ALL col2 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT - 28, 93 + - col1 * - col0 AS col1, + col2 FROM tab1
----
9 values hashing to 3a1d654f63ce5dbf616325279cc025b3

query I rowsort
SELECT 45 * + - col1 AS col2 FROM tab2
----
-2295
-3015
-3465

onlyif mysql # aggregate syntax: 
query II rowsort label-9931
SELECT 59 col2, COUNT( * ) + - + SUM( - col1 ) FROM tab1
----
59
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9931
SELECT 59 col2, COUNT ( * ) + - + SUM ( - col1 ) FROM tab1
----
59
69

query II rowsort
SELECT DISTINCT 18, + 98 AS col0 FROM tab2
----
18
98

query II rowsort
SELECT + 35 AS col2, 37 * + - 12 AS col2 FROM tab2
----
35
-444
35
-444
35
-444

query I rowsort
SELECT DISTINCT 66 FROM tab1 WHERE NULL NOT BETWEEN + - col2 + - ( + 11 ) AND - - 38 + - col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT COUNT( + ( + col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9935
SELECT COUNT ( + ( + col1 ) ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9936
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST( 12 AS SIGNED ) <> - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9936
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST ( 12 AS INTEGER ) <> - CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT - 15 * 80 * + 25 FROM tab2
----
-30000
-30000
-30000

query III rowsort
SELECT ALL * FROM tab2 WHERE 42 IN ( + 92, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT DISTINCT 85 + - - ( SUM( + col0 ) ) - 76 * - 70 FROM tab1 AS cor0
----
5632

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT 85 + - - ( SUM ( + col0 ) ) - 76 * - 70 FROM tab1 AS cor0
----
5632

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - ( + + 76 ) ) ) + - col1 IS NOT NULL
----

query I rowsort
SELECT - + 87 + 62 * 89 AS col1 FROM tab0 AS cor0
----
5431
5431
5431

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 + + col0 + + col0 col1 FROM tab1 AS cor0
----
155
223
235

query II rowsort
SELECT + 93, + ( + - col1 ) - + 87 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT DISTINCT 44 + - ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT 44 + - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9945
SELECT ALL - ( ( - CAST( - col2 AS SIGNED ) ) ) AS col1, - col1 AS col0 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

skipif mysql # not compatible
query II rowsort label-9945
SELECT ALL - ( ( - CAST ( - col2 AS INTEGER ) ) ) AS col1, - col1 AS col0 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT + col2 * - + col1 + + CAST( - col1 AS SIGNED ) + CAST( - 12 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1370
-312
-3255

skipif mysql # not compatible
query I rowsort label-9946
SELECT + col2 * - + col1 + + CAST ( - col1 AS INTEGER ) + CAST ( - 12 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1370
-312
-3255

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT - - 64 + - COUNT( * ) col2 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9947
SELECT - - 64 + - COUNT ( * ) col2 FROM tab1 AS cor0
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 51 col1, col2 AS col2 FROM tab0
----
51
10
51
47
51
99

query III rowsort
SELECT * FROM tab1 WHERE NULL < + col0
----

query I rowsort
SELECT - ( col2 ) * - + col2 AS col2 FROM tab0
----
100
2209
9801

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN NULL AND ( + + 38 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - - col0 / + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9953
SELECT ALL - 84 DIV ( - col2 ) * col2 + + + 68 AS col2 FROM tab0
----
115
148
68

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL - 84 / ( - col2 ) * col2 + + + 68 AS col2 FROM tab0
----
115
148
68

query I rowsort
SELECT ALL + col2 * + - col0 + - 55 * - 56 FROM tab1 AS cor0
----
-1816
-1935
-3108

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - col1 - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - + 24 ) - + col1 * - ( col2 ) FROM tab1 AS cor0
----
1320
271
3172

query I rowsort
SELECT - ( - + ( + + col2 ) ) - - col0 AS col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL - col1 + - col2 * 78 * - - 12 FROM tab1 AS cor0
----
-55229
-63695
-89870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9959
SELECT 7 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9959
SELECT 7 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT + 3 + + 42 + - col0 DIV 76 FROM tab2 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-9960
SELECT + 3 + + 42 + - col0 / 76 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9961
SELECT DISTINCT COUNT( * ) DIV + 11 + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT COUNT ( * ) / + 11 + COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT 63 * COUNT( * ) + - 34 + - COUNT( * ) * - + 19 * + 14 * + 57 FROM tab2 AS cor0
----
45641

skipif mysql # not compatible
query I rowsort label-9962
SELECT 63 * COUNT ( * ) + - 34 + - COUNT ( * ) * - + 19 * + 14 * + 57 FROM tab2 AS cor0
----
45641

onlyif mysql # DIV for integer division: 
query I rowsort label-9963
SELECT - 84 DIV + + col1 AS col2 FROM tab0 AS cor0
----
-1
-4
-84

skipif mysql # not compatible
query I rowsort label-9963
SELECT - 84 / + + col1 AS col2 FROM tab0 AS cor0
----
-1
-4
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9964
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - col1 + 0 + + ( - col0 ) + + col2 + + col1 + + 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9964
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col1 + 0 + + ( - col0 ) + + col2 + + col1 + + 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 86 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col0 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT - COUNT( * ) * - 15 col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9969
SELECT - COUNT ( * ) * - 15 col1 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT - - COUNT( * ) * 90 + + - 74 FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-9970
SELECT - - COUNT ( * ) * 90 + + - 74 FROM tab0 AS cor0
----
196

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT - 55 * + + col0 AS col0 FROM tab0 AS cor0
----
-4785
-5335
-825

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL SUM( ALL - + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL SUM ( ALL - + col1 ) FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9975
SELECT + col0 * col2 AS col2, + col1 + CAST( 3 AS SIGNED ) AS col0 FROM tab1
----
4896
17
5015
8
6188
50

skipif mysql # not compatible
query II rowsort label-9975
SELECT + col0 * col2 AS col2, + col1 + CAST ( 3 AS INTEGER ) AS col0 FROM tab1
----
4896
17
5015
8
6188
50

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT 76 * col0 <> + 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE NOT - + col1 * 85 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9977
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT - + col1 * 85 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col0 - + ( + - col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - ( - col1 ) + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT ALL COUNT( + + 84 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL COUNT ( + + 84 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9981
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 63 + + 87 + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
159

skipif mysql # not compatible
query II rowsort label-9981
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 63 + + 87 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
159

onlyif mysql # DIV for integer division: 
query I rowsort label-9982
SELECT DISTINCT col2 DIV + col2 col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9982
SELECT DISTINCT col2 / + col2 col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT DISTINCT MIN( ALL 65 ) AS col1 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT MIN ( ALL 65 ) AS col1 FROM tab1
----
65

query I rowsort
SELECT ALL col2 * + col0 * col2 + - + col2 + + - col2 FROM tab0
----
33041
8680
950499

query I rowsort
SELECT ALL + - col1 * + - 17 FROM tab0 AS cor0
----
1377
17
357

query I rowsort
SELECT DISTINCT + col1 + - 44 AS col2 FROM tab2 AS cor0
----
23
33
7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE + 66 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE + 66 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 50 + + col1 FROM tab0 AS cor0
----
-29
-49
31

query I rowsort
SELECT ALL - col0 * - 14 + - col2 + + col1 FROM tab0 AS cor0
----
1229
1260
244

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT + COUNT( col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9992
SELECT + COUNT ( col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT DISTINCT COUNT( * ) + + - 20 AS col0 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT COUNT ( * ) + + - 20 AS col0 FROM tab2 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9994
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - - CAST( NULL AS SIGNED ) - + col0
----

skipif mysql # not compatible
query III rowsort label-9994
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - - CAST ( NULL AS INTEGER ) - + col0
----

query I rowsort
SELECT DISTINCT - col1 * col1 - - 58 AS col0 FROM tab1
----
-138
-2151
33

query I rowsort
SELECT DISTINCT col0 * 29 * col1 FROM tab0
----
2813
35235
52983

query II rowsort
SELECT col2 + + + col2, col2 AS col0 FROM tab1
----
118
59
136
68
192
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9998
SELECT ALL * FROM tab0 WHERE NOT - - col1 > + - CAST( + - col2 AS SIGNED )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-9998
SELECT ALL * FROM tab0 WHERE NOT - - col1 > + - CAST ( + - col2 AS INTEGER )
----
97
1
99

query I rowsort
SELECT - - col1 FROM tab0 WHERE NULL BETWEEN - col0 AND NULL
----

