sqllogictest
Artifact Content
Not logged in

Artifact 22ef93f03db290d2b82ba04c4691a72910c3a78f:


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: 
q